[HOME] Header hierarchy fixes, proper 'buttons' styling added

This commit is contained in:
Eliseu Amaro 2022-07-25 18:00:40 +01:00
parent 437675b9aa
commit c7f74fee5d
Signed by: eliseuamaro
GPG Key ID: 96DA09D4B97BC2D5
2 changed files with 109 additions and 27 deletions

View File

@ -4,20 +4,29 @@
box-sizing: border-box !important; box-sizing: border-box !important;
scroll-margin: 5rem; scroll-margin: 5rem;
} }
a img, a img,
:link img, :link img,
:visited img { :visited img {
border: none; border: none;
} }
:focus { :focus {
outline: none; outline: none;
} }
::-moz-focus-inner { ::-moz-focus-inner {
border: 0; border: 0;
} }
form { form {
all: unset; all: unset;
} }
ul li {
margin-left: 1rem !important;
}
body, body,
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
@ -25,13 +34,15 @@ html {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
height: 100vh; height: 100vh;
font-size: 1rem; font-size: 1rem;
font-family: "open_sansregular"; font-family: "open_sansregular", sans-serif;
color: #221e22; color: #221e22;
background-color: #f6f4f6; background-color: #f6f4f6;
} }
body * { body * {
position: relative; position: relative;
} }
header { header {
z-index: 3; z-index: 3;
position: fixed; position: fixed;
@ -43,40 +54,56 @@ header {
top: 0; top: 0;
left: 0; left: 0;
padding: 0.5rem 1rem 0.5rem 1rem; padding: 0.5rem 1rem 0.5rem 1rem;
-webkit-box-shadow: 2px 5px 16px 0px rgba(162, 36, 48, 0.4),
17px 26px 15px 0px rgba(0, 0, 0, 0); box-shadow: 0 1px 1px rgba(162, 36, 48, 0.1), 0 2px 2px rgba(162, 36, 48, 0.1),
box-shadow: 2px 5px 16px 0px rgba(162, 36, 48, 0.4), 0 4px 4px rgba(162, 36, 48, 0.1), 0 8px 8px rgba(162, 36, 48, 0.1),
17px 26px 15px 0px rgba(0, 0, 0, 0); 0 16px 16px rgba(162, 36, 48, 0.1);
} }
header ul { header ul {
list-style: none; list-style: none;
} }
header * { header * {
font-size: inherit; font-size: inherit;
color: #f6f4f6; color: #f6f4f6;
height: 100vh; height: 100vh;
max-height: 3rem; max-height: 2rem;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.home-menu { .home-menu {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.menu-heading { .menu-heading {
display: flex; display: flex;
color: #f6f4f6; color: #f6f4f6;
} }
.menu-heading b {
}
.menu-heading img { .menu-heading img {
height: 1.25rem; height: 1.25rem;
} }
.menu-link { .menu-link {
line-height: 1.4em; padding: 2px 12px;
margin-left: 1rem; font-size: 0.8em;
color: #f6f4f6; color: #f6f4f6;
font-family: "open_sansbold", sans-serif;
border-radius: 0.5rem;
box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075), 0 2px 2px hsl(0deg 0% 0% / 0.075), 0 4px 4px hsl(0deg 0% 0% / 0.075), 0 8px 8px hsl(0deg 0% 0% / 0.075), 0 16px 16px hsl(0deg 0% 0% / 0.075);
} }
.menu-link:focus,
.menu-link:hover,
.ribbon-content a:focus,
.ribbon-content a:hover {
text-decoration: none !important;
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 0.075), inset 0 2px 2px hsl(0deg 0% 0% / 0.075), inset 0 4px 4px hsl(0deg 0% 0% / 0.075), inset 0 8px 8px hsl(0deg 0% 0% / 0.075), inset 0 16px 16px hsl(0deg 0% 0% / 0.075);
}
.button { .button {
background-color: #221e22ee; background-color: #221e22ee;
border-radius: 0.5rem; border-radius: 0.5rem;
@ -85,15 +112,18 @@ header * {
align-self: flex-end; align-self: flex-end;
width: max-content; width: max-content;
} }
hr { hr {
margin-bottom: 1rem; margin-bottom: 1rem;
width: 100%; width: 100%;
color: #221e2266; color: #221e2266;
} }
#log-of-past-successes { #log-of-past-successes {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
@media screen and (min-width: 2000px) and (min-height: 1000px) { @media screen and (min-width: 2000px) and (min-height: 1000px) {
.content, .content,
.content-team { .content-team {
@ -101,61 +131,75 @@ hr {
padding-right: 20% !important; padding-right: 20% !important;
} }
} }
@media screen and (min-width: 800px) { @media screen and (min-width: 800px) {
.l-box { .l-box {
margin-right: 4rem; margin-right: 4rem;
} }
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
.menu-list { .menu-list {
font-size: 1rem !important; font-size: 1rem !important;
} }
.content, .content,
.content ~ * { .content ~ * {
top: unset !important; top: unset !important;
padding-top: 0 !important; padding-top: 0 !important;
position: relative !important; position: relative !important;
} }
.soc { .soc {
top: 3rem !important; top: 3rem !important;
height: calc(100vh - 4rem); height: calc(100vh - 4rem);
} }
.splash-head { .splash-head {
font-size: 2rem !important; font-size: 3rem !important;
} }
.splash-head img { .splash-head img {
height: 3rem !important; height: 3rem !important;
width: 3rem !important; width: 3rem !important;
} }
.content, .content,
.ribbon-wrapper, .ribbon-wrapper,
.content-team { .content-team {
padding: 1.5rem !important; padding: 1.5rem !important;
} }
.content-team .g .l-box-lrg:last-child { .content-team .g .l-box-lrg:last-child {
flex: 1 !important; flex: 1 !important;
word-break: keep-all; word-break: keep-all;
white-space: nowrap; white-space: nowrap;
} }
.l-box { .l-box {
margin-right: 1rem; margin-right: 1rem;
} }
footer { footer {
position: relative !important; position: relative !important;
} }
} }
.body-wrapper { .body-wrapper {
margin-top: 4rem; margin-top: 4rem;
} }
.body-wrapper a { .body-wrapper a {
font-family: "open_sansbold"; font-family: "open_sansbold", sans-serif;
font-weight: bold; font-weight: bold;
} }
.splash { .splash {
text-align: center; text-align: center;
padding: 3rem; padding: 1rem;
background-color: #f6f4f6; background-color: #f6f4f6;
} }
.splash-head { .splash-head {
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -167,61 +211,86 @@ hr {
cursor: default; cursor: default;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.splash-head img { .splash-head img {
height: 6rem; height: 6rem;
width: 6rem; width: 6rem;
margin-right: 5px; margin-right: 5px;
} }
.content-head { .content-head {
font-family: "open_sansbold", sans-serif; font-family: "open_sansbold", sans-serif;
} }
.content { .content {
z-index: 2; z-index: 2;
position: sticky; position: sticky;
padding: 4rem; padding: 3rem;
background-color: #e9eaed; background-color: #e9eaed;
} }
[class^="content"] h1 {
font-family: "open_sansbold", sans-serif;
}
h2 {
font-family: "open_sansbold", sans-serif !important;
margin: 0.4em 0 0.2em 0 !important;
}
.is-center { .is-center {
text-align: center; text-align: center;
} }
.content .g { .content .g {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} }
.content .g .l-box { .content .g .l-box {
flex: 1; flex: 1;
min-width: 10rem; min-width: 10rem;
} }
.content ~ * { .content ~ * {
z-index: 3; z-index: 3;
position: sticky; position: sticky;
top: 4rem;
} }
.ribbon-wrapper { .ribbon-wrapper {
background-color: #f6f4f6; background-color: #f6f4f6;
padding: 4rem; padding: 4rem;
} }
.ribbon { .ribbon {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.ribbon img { .ribbon img {
min-width: 15rem; min-width: 15rem;
max-height: 200px; max-height: 200px;
margin: 0 2rem 2rem 2rem; margin: 0 2rem 2rem 2rem;
} }
.ribbon-content h2 { .ribbon-content h2 {
margin-top: unset; margin-top: unset;
} }
.ribbon-content a { .ribbon-content a {
background-color: #a22430; background-color: #a22430;
color: #f6f4f6; color: #f6f4f6;
padding: 4px 12px; padding: 4px 12px;
margin-right: 4px;
border-radius: 0.5rem; border-radius: 0.5rem;
box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
0 2px 2px hsl(0deg 0% 0% / 0.075), 0 4px 4px hsl(0deg 0% 0% / 0.075),
0 8px 8px hsl(0deg 0% 0% / 0.075), 0 16px 16px hsl(0deg 0% 0% / 0.075);
} }
.content-team { .content-team {
z-index: 3; z-index: 3;
position: sticky; position: sticky;
@ -229,25 +298,31 @@ hr {
padding: 4rem; padding: 4rem;
background-color: #e9eaed; background-color: #e9eaed;
} }
.content-team .g { .content-team .g {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} }
.content-team .g .l-box-lrg { .content-team .g .l-box-lrg {
text-align: justify-all; text-align: justify-all;
padding-inline-end: 2rem; padding-inline-end: 2rem;
} }
.content-team .g .l-box-lrg:first-child { .content-team .g .l-box-lrg:first-child {
flex: 1; flex: 1;
min-width: 20rem; min-width: 20rem;
} }
.content-team .g .l-box-lrg:nth-child(2) { .content-team .g .l-box-lrg:nth-child(2) {
flex: 1; flex: 1;
} }
.content-team .g .l-box-lrg:last-child { .content-team .g .l-box-lrg:last-child {
flex: 0.5; flex: 0.5;
} }
#nodes { #nodes {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -258,21 +333,26 @@ hr {
max-width: max-content; max-width: max-content;
width: 100%; width: 100%;
} }
#nodes td, #nodes td,
#nodes th { #nodes th {
width: 100%; width: 100%;
border: 1px solid #ddd; border: 1px solid #ddd;
padding: 6px 12px; padding: 6px 12px;
} }
#nodes tr:nth-child(even) { #nodes tr:nth-child(even) {
background-color: #f6f4f6; background-color: #f6f4f6;
} }
#nodes tr:nth-child(odd) { #nodes tr:nth-child(odd) {
background-color: #eeeeee; background-color: #eeeeee;
} }
#nodes tr:hover { #nodes tr:hover {
background-color: #e9eaed; background-color: #e9eaed;
} }
#nodes th { #nodes th {
padding-top: 12px; padding-top: 12px;
padding-bottom: 12px; padding-bottom: 12px;
@ -280,14 +360,16 @@ hr {
background-color: #a22430; background-color: #a22430;
color: #f6f4f6; color: #f6f4f6;
} }
.footer { .footer {
width: 100%; width: 100%;
padding: 1rem; padding: 1rem;
background-color: #333333; background-color: #333333;
color: #e9eaed; color: #e9eaed;
} }
.footer a { .footer a {
font-family: "open_sansbold"; font-family: "open_sansbold", sans-serif;
font-weight: bold; font-weight: bold;
color: #e9eaed; color: #e9eaed;
} }

View File

@ -49,33 +49,33 @@
<div class="g"> <div class="g">
<div class="l-box u-1 u-md-1-2 u-lg-1-4"> <div class="l-box u-1 u-md-1-2 u-lg-1-4">
<h3 class="content-subhead"> <h2 class="content-subhead">
Versatile Versatile
</h3> </h2>
<p> <p>
GNU social supports both single-user and community modes and can be used in an intranet environment or as part of the wider Free Network. GNU social supports both single-user and community modes and can be used in an intranet environment or as part of the wider Free Network.
</p> </p>
</div> </div>
<div class="l-box u-1 u-md-1-2 u-lg-1-4"> <div class="l-box u-1 u-md-1-2 u-lg-1-4">
<h3 class="content-subhead"> <h2 class="content-subhead">
Accessible Accessible
</h3> </h2>
<p> <p>
Follows AnyBrowser and A11Y guidelines. It runs virtually anywhere you can run a common piece of web software, such as WordPress or Drupal. JavaScript is optional. Follows AnyBrowser and A11Y guidelines. It runs virtually anywhere you can run a common piece of web software, such as WordPress or Drupal. JavaScript is optional.
</p> </p>
</div> </div>
<div class="l-box u-1 u-md-1-2 u-lg-1-4"> <div class="l-box u-1 u-md-1-2 u-lg-1-4">
<h3 class="content-subhead"> <h2 class="content-subhead">
Customizable Customizable
</h3> </h2>
<p> <p>
True to the Unix-philosophy of small programs to do a small job, GNU social can be easily expanded and customized via its simple plugin API. True to the Unix-philosophy of small programs to do a small job, GNU social can be easily expanded and customized via its simple plugin API.
</p> </p>
</div> </div>
<div class="l-box u-1 u-md-1-2 u-lg-1-4"> <div class="l-box u-1 u-md-1-2 u-lg-1-4">
<h3 class="content-subhead"> <h2 class="content-subhead">
Privacy focused Privacy focused
</h3> </h2>
<p> <p>
GNU social is part of the GNU project, it's 100% free software, with no malicious features or spyware. GNU social is part of the GNU project, it's 100% free software, with no malicious features or spyware.
</p> </p>
@ -100,7 +100,7 @@
<h1>Support the team making GNU social possible!</h1> <h1>Support the team making GNU social possible!</h1>
<div class="g"> <div class="g">
<div class="l-box-lrg u-1 u-md-1-3"> <div class="l-box-lrg u-1 u-md-1-3">
<h3>Who makes GNU social?</h3> <h2>Who makes GNU social?</h2>
<p>Many developers have been involved in the making of GNU social. It's hard to keep a precise record of so many valuable contributions.</p> <p>Many developers have been involved in the making of GNU social. It's hard to keep a precise record of so many valuable contributions.</p>
<p>Version 3 development is being maintained by <a href="https://www.diogo.site/">Diogo Cordeiro</a>, <a href="https://hsal.es/">Hugo Sales</a> and <a href="https://eliseuama.ro/">Eliseu Amaro</a>.</p> <p>Version 3 development is being maintained by <a href="https://www.diogo.site/">Diogo Cordeiro</a>, <a href="https://hsal.es/">Hugo Sales</a> and <a href="https://eliseuama.ro/">Eliseu Amaro</a>.</p>
<p>Version 2 development was maintained by <a href="https://www.diogo.site/">Diogo Cordeiro</a> with many important contributions from <a href="https://loadaverage.org/XRevan86">Alexei Sorokin</a> and the help of <a href="soc/">Summer of Code students</a>.</p> <p>Version 2 development was maintained by <a href="https://www.diogo.site/">Diogo Cordeiro</a> with many important contributions from <a href="https://loadaverage.org/XRevan86">Alexei Sorokin</a> and the help of <a href="soc/">Summer of Code students</a>.</p>
@ -109,7 +109,7 @@
</div> </div>
<div class="l-box-lrg u-1 u-md-1-3"> <div class="l-box-lrg u-1 u-md-1-3">
<h3>Discuss</h3> <h2>Discuss</h2>
<p>Discuss the project on:<br> <p>Discuss the project on:<br>
XMPP: <a XMPP: <a
href="xmpp:gnusocial@conference.bka.li?join">xmpp:gnusocial@conference.bka.li?join</a>,<br> href="xmpp:gnusocial@conference.bka.li?join">xmpp:gnusocial@conference.bka.li?join</a>,<br>
@ -123,7 +123,7 @@
</div> </div>
<div class="l-box-lrg u-1 u-md-1-3"> <div class="l-box-lrg u-1 u-md-1-3">
<h3>Tell Others</h3> <h2>Tell Others</h2>
<p><a href="assets/tgz/logos.tar.gz">gs-logos.tar.gz</a> (14.2 kB)</p> <p><a href="assets/tgz/logos.tar.gz">gs-logos.tar.gz</a> (14.2 kB)</p>
</div> </div>
</div> </div>