1
0

A header overhaul.

This commit is contained in:
Alexander Andreev 2024-06-19 03:09:33 +04:00
parent 83a6111660
commit 077a5ba612
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
2 changed files with 39 additions and 33 deletions

View File

@ -2,21 +2,21 @@ body {
margin-top: 25vh; margin-top: 25vh;
min-height: 75vh; } min-height: 75vh; }
header { position: relative; } header.main {
align-items: center;
flex-direction: column; }
#logo { width: 100%; } header.main svg { width: 100%; }
nav,
#services { #services {
text-align: center; text-align: center;
width: 100%; } width: 100%; }
nav a:last-child { margin-left: .6rem; }
#services :is(a, span) { margin: .3rem; } #services :is(a, span) { margin: .3rem; }
#services span a { margin: 0; } #services span a { margin: 0; }
@media screen and (max-width: 640px) { @media screen and (max-width: 640px) {
#services { display: flex; flex-direction: column; } } #services {
display: flex;
flex-direction: column; } }

View File

@ -5,6 +5,7 @@
src: local('RobotoCondensed'), local('RobotoCondensed-Regular'), src: local('RobotoCondensed'), local('RobotoCondensed-Regular'),
url(/assets/fonts/RobotoCondensed-Regular.ttf); } url(/assets/fonts/RobotoCondensed-Regular.ttf); }
:root { :root {
--background-color: #0a0a0a; --background-color: #0a0a0a;
--background-image: url('/assets/img/alpha1918_z.webp'); --background-image: url('/assets/img/alpha1918_z.webp');
@ -21,12 +22,15 @@
--secondary-color: #cd2682; --secondary-color: #cd2682;
--text-color: #0a0a0a; } } --text-color: #0a0a0a; } }
* { margin: 0; } * { margin: 0; }
::selection { ::selection {
background-color: var(--secondary-color); background-color: var(--secondary-color);
color: var(--background-color); } color: var(--background-color); }
a, a,
button { button {
color: var(--primary-color); color: var(--primary-color);
@ -45,6 +49,7 @@ button {
font: inherit; font: inherit;
padding: 0; } padding: 0; }
p { p {
text-align: justify; text-align: justify;
line-height: var(--text-indent); line-height: var(--text-indent);
@ -56,6 +61,7 @@ p.center {
text-align: center; text-align: center;
text-indent: 0; } text-indent: 0; }
h1 { h1 {
font-size: 1.8rem; font-size: 1.8rem;
text-align: center; text-align: center;
@ -87,8 +93,10 @@ tr :is(th, td):not(:last-child) { padding-right: .5rem; }
tr a:not(:last-child) { margin-right: .25rem; } tr a:not(:last-child) { margin-right: .25rem; }
.highlighted { color: var(--primary-color); } .highlighted { color: var(--primary-color); }
html { html {
margin-left: calc(100vw - 100%); margin-left: calc(100vw - 100%);
margin-right: 0; } margin-right: 0; }
@ -108,39 +116,37 @@ body {
background-image: var(--background-image); background-image: var(--background-image);
background-size: min(calc((100vw - 960px)/2), 25vw); background-size: min(calc((100vw - 960px)/2), 25vw);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom left; background-position: bottom left; } }
}
}
header { header.main {
display: flex; display: flex;
flex-wrap: wrap;
justify-content: space-between; } justify-content: space-between; }
#logo { header.main svg { width: 360px; }
display: block;
width: 360px; }
#logo text { fill: var(--text-color); } header.main svg text { fill: var(--text-color); }
#logo .logo { header.main svg text:first-child {
font-size: 2rem; font-size: 3.55rem;
font-variant-caps: small-caps; font-variant-caps: small-caps;
font-weight: bold; } font-weight: bold; }
@media screen and (-webkit-min-device-pixel-ratio:0) { header.main svg text:last-child { font-size: 1.5rem; }
#logo .logo { font-size: 2.082rem; } }
@-moz-document url-prefix() { @supports (-moz-appearance: none) {
#logo .logo { font-size: 2rem; } } header.main svg text:last-child { transform: scale(.993, 1); } }
#logo .under { font-size: .88rem; } header.main nav {
align-items: center;
display: flex;
flex-direction: column;
font-variant: small-caps;
width: 360px; }
nav { margin-top: .5rem; } header.main nav div {
display: flex;
nav a { font-variant: small-caps; } justify-content: space-evenly;
width: 100%; }
nav a:not(:first-child) { margin-left: .6rem; }
section { section {
margin-top: 1rem; margin-top: 1rem;
@ -151,9 +157,9 @@ footer {
text-align: center; text-align: center;
padding: 1rem 0; } padding: 1rem 0; }
@media screen and (max-width: 640px) { @media screen and (max-width: 740px) {
body > header { display: block; } header.main {
align-items: center;
flex-direction: column; }
#logo { width: 100%; } header.main svg { width: 100%; } }
body > header nav { text-align: center; } }