mylloon.fr/static/css/style.css
Mylloon 44e38c3db9
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
Revert ">" for style.css
This reverts commit 23f1135e37.
2023-04-27 00:38:41 +02:00

245 lines
3.8 KiB
CSS

/* Title font */
@import url("https://api.fonts.coollabs.io/css2?family=Overpass:wght@200&display=swap");
/* Normal font */
@font-face {
font-family: "Luciole";
font-style: normal;
font-weight: normal;
src: url(/css/fonts/Luciole-Regular.ttf);
}
/* Italic font */
@font-face {
font-family: "Luciole";
font-style: italic;
font-weight: normal;
src: url(/css/fonts/Luciole-Regular-Italic.ttf);
}
/* Bold fond */
@font-face {
font-family: "Luciole";
font-style: normal;
font-weight: bold;
src: url(/css/fonts/Luciole-Bold.ttf);
}
/* Bold italic font */
@font-face {
font-family: "Luciole";
font-style: italic;
font-weight: bold;
src: url(/css/fonts/Luciole-Bold-Italic.ttf);
}
/* Page bottom */
footer {
margin-top: 1em;
height: 3rem;
}
/* Regular tags */
html {
position: relative;
min-height: 100vh;
height: 100%;
scroll-behavior: smooth;
}
body {
position: relative;
padding-bottom: 3em;
min-height: 90%;
background-color: rgb(24, 24, 24);
}
p,
h1,
h2,
h3,
li,
a {
font-family: "Luciole", sans-serif;
}
::selection {
color: rgb(255, 255, 255);
background: rgba(124, 75, 173, 0.486);
}
/* Frames */
h1.subtitle {
text-decoration: none;
color: rgb(28, 118, 236);
}
h1#title {
text-align: center;
color: rgb(28, 236, 174);
}
h2.subtitle,
h2.subtitle a {
color: rgb(28, 118, 236) !important;
}
h3.subsubtitle,
#content h3.subsubtitle a {
text-align: left;
color: rgb(149, 87, 201);
}
#content h3.subsubtitle a:hover {
color: rgb(0, 181, 236);
transition: color 0.1s;
}
div#content {
margin-left: auto;
margin-right: auto;
margin-top: 2%;
padding: 0.9% 0.9% 0.9% 0.9%;
width: 42%;
border-radius: 6px;
border: 1px solid rgb(170, 170, 170);
text-align: center;
}
@media only screen and (max-width: 850px) {
/* Mobile display */
div#content {
width: 90%;
}
}
#content a,
#content a:visited,
#content ul {
text-decoration: none;
color: rgb(201, 201, 201);
text-align: center;
}
#content p {
text-decoration: none;
color: rgb(201, 201, 201);
text-align: center;
padding: 0.7em;
}
#content a:hover {
color: rgb(0, 181, 236);
transition: color 0.1s;
}
/* https://stackoverflow.com/a/40244401/15436737 */
#content a {
position: relative;
text-decoration: none;
display: inline-block;
}
#content a:after {
display: block;
content: "";
border-bottom: solid 3px;
transform: scaleX(0);
transition: transform 250ms ease-in-out;
transform-origin: 100% 50%;
}
#content a:hover:after {
transform: scaleX(1);
transform-origin: 0 50%;
}
/* ------------------------------------------- */
div.subcontent {
margin-left: auto;
margin-right: auto;
margin-top: 5%;
padding: 1.2% 1.2% 1.2% 1.2%;
width: 78%;
border-radius: 6px;
border: 1px solid rgb(170, 170, 170);
text-align: center;
}
#listecontent li {
margin-bottom: 0.5em;
}
/* Index */
.index {
height: 100%;
padding: 0;
margin: 0;
}
.divIndex {
width: 50%;
height: 50%;
float: left;
}
button.buttonIndex {
width: 100%;
height: 100%;
border: none;
opacity: 0.6;
transition: all 0.1s;
cursor: pointer;
}
span.buttonIndex {
font-family: "Overpass", sans-serif;
font-size: 500%;
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.buttonIndex:hover,
span.buttonIndex:after {
opacity: 1;
padding-right: 2%;
}
#buttonIndexTL {
background-color: rgb(0, 255, 255);
}
#buttonIndexTR {
background-color: rgb(21, 255, 0);
}
#buttonIndexBL {
background-color: rgb(187, 255, 0);
}
#buttonIndexBR {
background-color: rgb(208, 88, 255);
}
/* Back links going to the index */
footer.backToIndexPage {
text-align: center;
}
footer.backToIndexPage a {
color: rgb(114, 180, 76);
text-decoration: none;
}
footer.backToIndexPage a:hover {
color: rgb(152, 187, 132);
}
/* Hide content */
.hide {
display: none;
}