2026.camp.public.website/css/base.css
vincent-peugnet 63af8d89f5 retire l'ombre et la transparence des nav, footer et aside
c'était à l'époque du papier, maintenant c'est caduc
2025-12-20 17:45:05 +01:00

186 lines
3.3 KiB
CSS

/* Primary Font */
@font-face {
font-family: MonTrappist;
src: url(../assets/fonts/MonTrappist-Black.woff);
}
/* Secondary Font */
@font-face {
font-family: Segoesc;
src: url(../assets/fonts/segoesc.ttf);
}
/* Basic Font */
/* font-family: Courier New */
:root {
--primary-bg-color: black; /* global scope */
--accent-violet: #8800FF;
--accent-yellow: #ffbf3e;
--accent-orange: #FF4E00 ;
--accent-minor-blue: #33D8D8;
--text-color-primary: #FFFFFF;
}
html, body {
margin: 0;
font-family: "Verdana", "Helvetica", "Arial", sans-serif;
color: var(--text-color-primary);
background: var(--primary-bg-color);
}
img {
max-width: 100%;
}
a {
color: var(--accent-yellow);
text-decoration: none;
}
main h1, main h2, main h3 {
font-family: MonTrappist;
color: white;
z-index: 20;
}
main h1 {
position: relative;
text-align: center;
margin: auto;
width: 50%;
font-size: clamp(4em, 14vw, 8em);
margin-top: 5%;
max-width: 1400px;
font-size: 8em;
}
main h2 {
position: relative;
margin: 4% auto;
text-align: center;
font-size: clamp(1.5em, 4vw, 3em);
font-family: segoesc;
}
main h3 {
position: relative;
text-align: center;
margin: auto;
width: 100%;
font-size: clamp(2em, 4vw, 4em);
margin-top: 5%;
}
main p {
margin: 1%;
padding: 1%;
/* border: solid 1px; */
opacity: 0.90;
display: inline-block;
z-index: 3;
background-color: black;
}
section {
position: relative ;
max-width: 1400px;
font-size: 2em;
text-align:justify;
margin: auto;
margin-bottom: 100px;
padding: 2%;
padding-left: 0px;
z-index: 1000;
box-shadow: -5px 5px 0px var(--accent-yellow), -10px 10px 0px var(--accent-orange), -15px 15px 0px var(--accent-violet);
}
nav, footer, aside {
background: var(--accent-violet);
padding: 5px;
font-family: MonTrappist;
z-index: 10000;
position: relative;
}
nav {
padding-left: 10%;
}
nav a, footer a, aside a {
font-size: 3em;
display: inline-block;
margin: 0.1em 0.3em;
}
nav a.current {
text-decoration: underline 3px;
}
footer a:hover, nav a:hover {
transform: rotate(-2deg);
}
footer {
display: block;
text-align: center;
display: flex;
justify-content: space-evenly;
align-items: end;
}
@media (max-width: 600px) {
footer {
flex-direction: column;
align-items: center;
}
}
main > img {
object-fit: scale-down;
}
main > .sticker {
background: none;
z-index: 0;
}
main > *.draggable:not(.sticker) {
&:not(h2) {
width: 100%;
}
&:not(h1):not(h2):hover {
animation: none;
}
}
.btn-nice {
color: #FFFFFF;
text-shadow: -5px 5px 0px var(--accent-orange), -10px 10px 0px var(--accent-violet);
color: var(--accent-yellow);
font-size: 1.2em;
text-align: center;
margin: auto;
position: relative;
display: block;
}
#camp {
font-family: segoesc;
float: left;
margin-left: 10%;
line-height: 0.8em;
font-size: 0.9em;
}
#interhack {
text-shadow: -5px 5px 0px var(--accent-orange), -10px 10px 0px var(--accent-violet);
color: var(--accent-yellow);
margin-right: 10%;
line-height: 0.5em;
margin-top: -0.4em;
}