e59-website/html/src/css/style.css
2024-03-08 18:44:00 +00:00

208 lines
3.5 KiB
CSS

:root {
--text: #000000;
--background: hsl(0, 0%, 100%);
--dark-background: hsl(0, 0%, 100%);
--darker-background: hsl(0, 0%, 100%);
--article-background: hsl(0, 0%, 100%);
--article-text: hsl(0, 0%, 0%);
}
.light {
--text: #373737;
--background: hsl(0, 0%, 100%);
--dark-background: hsl(0, 0%, 100%);
--darker-background: hsl(0, 0%, 100%);
--article-background: hsl(0, 0%, 100%);
--article-text: hsl(0, 0%, 0%);
}
.dark {
--text: #b3b3b3;
--background: hsl(0, 0%, 15%);
--dark-background: hsl(0, 0%, 10%);
--darker-background: hsl(0, 0%, 5%);
--article-background: hsl(0, 0%, 15%);
--article-text: hsl(0, 0%, 100%);
}
@font-face {
font-family: crfont; /* Nom de la police */
src: url('/src/fonts/bahnschrift.ttf') format('truetype'); /* Chemin vers votre fichier TTF */
/* Autres attributs de la police (facultatif) */
font-weight: normal;
font-style: normal;
}
body {
font-family: crfont, sans-serif;
color: var(--text);
margin: 0;
}
main {
font-family: Helvetica, Arial, sans-serif;
background: var(--background);
width: 100%;
margin: 0;
min-height: 100em;
}
header, footer, nav {
width: 100%;
margin: 0;
background: var(--dark-background);
display: flex;
}
header, footer {
justify-content: space-between;
}
input, textarea {
background-color: var(--background);
color: var(--text);
padding: 0.4em 1em;
border: 1px solid var(--text);
margin: 15px 0;
font-size: 1.2em;
}
input[type='submit'], button {
background-color: var(--darker-background);
color: var(--text);
border: 1px solid var(--text);
border-radius: 10px;
}
input[type='submit']:hover, button:hover {
box-shadow: 0 0 15px rgba(255, 255, 255, 0.322);
}
.navitem {
padding: 0.5em;
background-color: var(--darker-background);
margin-right: 1em;
}
a {
text-decoration: none;
color: var(--text-color);
}
.content {
width: 80%;
margin: 0 auto;
padding: 2em 0;
}
.pancontent {
width: 90%;
display: flex;
margin: 0 auto;
}
.athena-container {
padding: 1em 0;
}
.athena {
height: 7em;
border-radius: 3.5em;
}
.athena:hover {
box-shadow: 0 0 15px rgba(255, 255, 255, 0.322);
}
.main-title {
text-align: right;
}
.main-title .title {
font-size: 3em;
}
.article-preview {
padding: 0.5em;
}
.article-link {
color: var(--text);
}
.article-titre {
font: 1.5em crfont, Arial;
padding: 0 0 0.3em 0;
}
.article-date {
font-size: 0.8em;
}
.article-info {
}
.article-info .article-auteur {
float: right;
}
.article-info .article-classification {
padding: 1em 0;
font-size: 1.3em;
}
.article-info .article-date {
}
.article-info .article-titre {
font-size: 2em;
}
.article-info .article-id {
}
.article {
background-color: var(--article-background);
color: var(--article-text);
border-radius: 10px;
}
.article-content {
padding: 2em;
}
.row {
display: inline-block;
background-color: var(--dark-background);
border-radius: 10px;
padding: 2em;
margin: 2em;
}
.row input {
font-size: 1em;
}
.button {
background-color: var(--darker-background);
color: var(--text);
border-radius: 10px;
color: var(--text);
padding: 0.4em 1em;
border: 1px solid var(--text);
margin: 15px;
font-size: 1.2em;
display: inline-block;
}
@media(max-width: 750px) {
body {
font-size: 0.8em
}
.navitem {
font-size: 1.4em;
}
}