SAE15_2022/assets/css/style.css
Lyanis SOUIDI 3c9943bd47 Modification du style
- Modification des couleurs
- Ajout d'une animation sur les liens
2023-01-17 22:20:58 +01:00

102 lines
1.9 KiB
CSS

:root {
--c-a-primary: #0d1117;
--c-a-secondary: #1c2431;
--c-b-primary: white;
--c-b-secondary: #ddd;
--c-links: #0087ca;
--c-bg: var(--c-a-primary);
--c-title: var(--c-b-primary);
--c-text: var(--c-b-secondary);
--c-bg-footer: var(--c-bg);
--c-footer-text: var(--c-b-primary);
}
@media (prefers-color-scheme: light) {
:root {
--c-a-primary: white;
--c-a-secondary: #ddd;
--c-b-primary: #0d1117;
--c-b-secondary: #1c2431;
--c-bg: var(--c-a-primary);
--c-title: var(--c-b-primary);
--c-text: var(--c-b-secondary);
--c-bg-footer: #616A6B;
--c-footer-text: var(--c-a-primary);
}
}
html {
height: 100%;
box-sizing: border-box;
}
body {
height: 100%;
padding: 0;
margin: 0;
min-height: 100%;
display: grid;
grid-template-rows: auto 1fr auto;
background-color: var(--c-bg);
color: var(--c-text);
}
h1, h2, h3, h4, h5, h6, .title {
color: var(--c-title);
}
* {
box-sizing: inherit;
font-family: system-ui;
}
main {
width: 100%;
max-width: 1280px;
margin-right: auto;
margin-left: auto;
padding: 2rem 1rem;
}
main a {
display: inline-block;
position: relative;
color: var(--c-links);
text-decoration: none;
}
main a::after {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: var(--c-links);
transform-origin: bottom left;
transition: transform 0.25s ease-out;
}
main a:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}
@media screen and (min-width: 700px) {
.right {
grid-column: 2;
grid-row: 1;
}
.left {
grid-column: 1;
grid-row: 1;
}
}
@media screen and (max-width: 700px) {
.right, .left {
grid-column: 1;
}
}