nohlelo.co.za/subsystem/substyle.css
2025-03-20 16:21:55 +02:00

160 lines
2.9 KiB
CSS

:root {
--l-red: #f73631;
--red: #bd2f2a;
--d-red: #4f0503;
--green: #2b954d;
--d-green: #1a7236;
--l-yellow: #dfbc73;
--orange: #c54928;
--black: #101010;
--white: #edddd4;
}
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@font-face {
font-family: "inter";
src: url("./subres/inter.woff2") format("woff2");
font-display: swap;
}
body {
position: relative;
margin: 0;
padding: 0;
background-color: var(--l-yellow);
font-family: "inter", sans-serif;
}
a {
color: var(--orange);
}
a:hover {
color: var(--black);
background-color: var(--orange);
}
nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
width: 100%;
text-align: center;
background-color: var(--d-red);
}
nav a {
margin: 0 5px;
background-color: var(--red);
color: var(--white);
-webkit-transition: ease-out 100ms;
-o-transition: ease-out 100ms;
transition: ease-out 100ms;
}
nav a:hover {
background-color: var(--l-red);
color: var(--black);
}
#bnav {
position: absolute;
top: 10px;
left: 40px;
width: 80%;
height: 60px;
-webkit-transform: rotate(-0.4deg);
-ms-transform: rotate(-0.4deg);
transform: rotate(-0.4deg);
background-color: var(--orange);
}
#here {
background-color: var(--d-green);
color: var(--black);
}
#here:hover {
cursor: not-allowed;
}
#here::before {
content: "You Are ";
color: var(--white);
}
#headnav {
margin: 20px auto;
margin-bottom: 30px;
-webkit-transform: rotate(1deg);
-ms-transform: rotate(1deg);
transform: rotate(1deg);
-webkit-box-shadow: #00000085 0 1px 2px;
box-shadow: #00000085 0 1px 2px;
}
#headnav a {
padding: 10px 20px;
}
#headnav a:first-child {
margin-left: 10px;
}
#headnav .spacer {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
#socials {
width: min(100%, 800px);
margin: 10px auto;
margin-top: 30px;
}
#socials a {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
width: calc(100% / 5);
padding: 5px;
background-color: var(--d-red);
margin: 0;
}
#socials a:hover {
background-color: var(--l-red);
}
@media only screen and (max-width: 520px) {
#headnav {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 25px;
-webkit-writing-mode: vertical-rl;
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
text-orientation: mixed;
margin: auto 0;
margin-right: 5px;
-webkit-transform: rotate(0deg) !important;
-ms-transform: rotate(0deg) !important;
transform: rotate(0deg) !important;
z-index: 100;
}
#headnav a {
padding: 5px 0;
margin: 5px 0;
}
body {
width: calc(100% - 25px) !important;
margin: auto 0 auto auto !important;
}
#headnav a:first-child {
margin-left: 0;
margin-top: 0;
}
#bnav {
display: none;
}
}