1
0
Fork 0
forked from Deuxfleurs/site

layout.css: homogénéisation de l'indentation

This commit is contained in:
Tixie 2024-06-07 16:37:48 +02:00
parent 24f2d73ede
commit 39228d1b09
No known key found for this signature in database

View file

@ -1,17 +1,17 @@
/*PARAMETRES GENERAUX*/ /*PARAMETRES GENERAUX*/
:root{ :root {
--big_margin:100px; --big_margin: 100px;
--med_margin:50px; --med_margin: 50px;
--small_margin:10px; --small_margin: 10px;
--day-background: #fdfff9; --day-background: #fdfff9;
--day-highlight-color: white; --day-highlight-color: white;
--day-highlight-bg: darkgreen; --day-highlight-bg: darkgreen;
--night-highlight-color: #ebebed; --night-highlight-color: #ebebed;
--night-highlight-bg: #565a4d; --night-highlight-bg: #565a4d;
--night-background: #242526;/*#3c3c39;*/ --night-background: #242526; /*#3c3c39;*/
--txt-night: #ebebed;/*#c7c4d4;*/ --txt-night: #ebebed; /*#c7c4d4;*/
color-scheme: light dark; color-scheme: light dark;
/* /*
--menu: pink; --menu: pink;
--jardin: darkseagreen; --jardin: darkseagreen;
--infras: gold; --infras: gold;
@ -29,72 +29,70 @@
--calendrier: darkkhaki; --calendrier: darkkhaki;
--footer: deeppink; --footer: deeppink;
--lightgrey: lightgrey;*/ --lightgrey: lightgrey;*/
} }
/* PAR DEFAUT */ /* PAR DEFAUT */
html, body, main{ html, body, main {
margin:0; margin: 0;
padding: 0; padding: 0;
font-size: 13px; font-size: 13px;
} }
body{ body {
font-family: monospace; font-family: monospace;
color: black; color: black;
background-color: var(--day-background); background-color: var(--day-background);
} }
pre{ pre {
padding: 0; padding: 0;
margin: 0; margin: 0;
font-size: 1rem; font-size: 1rem;
} }
p{ p {
font-size: 1rem; font-size: 1rem;
} }
a{ a {
color: darkgreen; color: darkgreen;
} }
nav ul {
nav ul{ list-style: none;
list-style: none; padding: 0px;
padding: 0px; margin: 0px;
margin: 0px;
} }
h1:after, h2:after{ h1:after, h2:after {
content:'\A___________________________________\A"""""""""""""""""""""""""""""""""""'; content: '\A___________________________________\A"""""""""""""""""""""""""""""""""""';
} }
h2, h1{ h2, h1 {
font-size: 1rem; font-size: 1rem;
font-weight: normal; font-weight: normal;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
text-align: left; text-align: left;
} }
h2, h1{ h2, h1 {
text-transform: uppercase; text-transform: uppercase;
white-space:pre; white-space: pre;
overflow: hidden; overflow: hidden;
} }
img{ img {
width: 100%; width: 100%;
} }
.noscroll{ .noscroll {
overflow: hidden; overflow: hidden;
} }
.highlight{ .highlight {
color: var(--day-highlight-color); color: var(--day-highlight-color);
background-color: var(--day-highlight-bg); background-color: var(--day-highlight-bg);
} }
.underline { .underline {
@ -102,7 +100,7 @@ img{
} }
/*GESTION DE LA GRILLE DU DOCUMENT*/ /*GESTION DE LA GRILLE DU DOCUMENT*/
div#container{ div#container {
display: grid; display: grid;
grid-template-columns: [main-col-start] repeat(12, calc(100% / 12) [main-col-sep]); grid-template-columns: [main-col-start] repeat(12, calc(100% / 12) [main-col-sep]);
grid-template-rows: grid-template-rows:
@ -117,158 +115,158 @@ div#container{
/* EN-TETE */ /* EN-TETE */
header { header {
grid-area: header-start / main-col-sep 1 / header-end / main-col-sep 12; grid-area: header-start / main-col-sep 1 / header-end / main-col-sep 12;
} }
/* PIED DE PAGE */ /* PIED DE PAGE */
footer { footer {
background-color: var(--footer); background-color: var(--footer);
grid-area: footer-start / main-col-start / footer-end / main-col-sep 12; grid-area: footer-start / main-col-start / footer-end / main-col-sep 12;
} }
#liens{ #liens {
text-align: center; text-align: center;
margin-bottom: var(--med_margin) margin-bottom: var(--med_margin);
} }
/* MENU */ /* MENU */
nav#menu{ nav#menu {
background-color: var(--day-background); background-color: var(--day-background);
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
flex-direction: column; flex-direction: column;
position: fixed; position: fixed;
bottom: 1rem; bottom: 1rem;
right: 1rem; right: 1rem;
} }
.icone > pre{ .icone > pre {
padding-top: 1rem; padding-top: 1rem;
color: black; color: black;
} }
.icone{ .icone {
position : relative; position: relative;
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
} }
.icone .img_top{ .icone .img_top {
display: none; display: none;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
z-index: 99; z-index: 99;
background-color: var(--day-background); background-color: var(--day-background);
color: darkgreen; color: darkgreen;
} }
.icone:hover .img_top{ .icone:hover .img_top {
display: inline; display: inline;
} }
.icone a{ .icone a {
text-decoration: none; text-decoration: none;
color:black; color: black;
} }
nav#menu > a{ nav#menu > a {
display: block; display: block;
color: black; color: black;
text-decoration: none; text-decoration: none;
} }
nav#menu > a:hover{ nav#menu > a:hover {
color: darkgreen; color: darkgreen;
text-decoration: none; text-decoration: none;
} }
/* ILLUSTRATIONS ASCII (Y COMPRIS FOOTER) */ /* ILLUSTRATIONS ASCII (Y COMPRIS FOOTER) */
pre.center{ pre.center {
font-size: 1rem; font-size: 1rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
pre.hide { pre.hide {
display: none; display: none;
} }
pre.center > a{ pre.center > a {
font-size: 1rem; font-size: 1rem;
display: contents; display: contents;
text-decoration: 1px black solid; text-decoration: 1px black solid;
} }
/* RESPONSIVE */ /* RESPONSIVE */
/* Tablettes */ /* Tablettes */
@media (max-width: 1500px) and (min-width: 801px) { @media (max-width: 1500px) and (min-width: 801px) {
h2, h1{ h2,
font-size: 1rem; h1 {
font-weight: normal; font-size: 1rem;
margin: 0px; font-weight: normal;
padding: 0px; margin: 0px;
text-transform: uppercase; padding: 0px;
white-space:pre; text-transform: uppercase;
overflow: hidden; white-space: pre;
} overflow: hidden;
}
} }
/* Smartphones */ /* Smartphones */
@media (max-width: 800px) { @media (max-width: 800px) {
:root{ :root {
--big_margin:50px; --big_margin: 50px;
--med_margin:25px; --med_margin: 25px;
--small_margin:5px; --small_margin: 5px;
} }
h1:before, h1:after{ h1:before, h1:after {
content: ''; content: "";
} }
h2:before{ h2:before {
content: '______________________________________________________________________\A""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\A* '; content: '______________________________________________________________________\A""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\A* ';
} }
h2:after{ h2:after {
content: ' *\A______________________________________________________________________\A""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""'; content: ' *\A______________________________________________________________________\A""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""';
} }
h2, h1{ h2, h1 {
font-size: 1rem; font-size: 1rem;
text-align: center; text-align: center;
} }
h2, h1{
text-transform: uppercase;
white-space: pre;
overflow: hidden;
}
h2, h1 {
text-transform: uppercase;
white-space: pre;
overflow: hidden;
}
} }
/* THEME SOMBRE */ /* THEME SOMBRE */
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
div#container, nav#menu, body{ div#container, nav#menu, body {
background-color: var(--night-background); background-color: var(--night-background);
} }
p, pre, ul, li, a, a:hover, h1, h2, footer{ p, pre, ul, li, a, a:hover, h1, h2, footer {
color: var(--txt-night); color: var(--txt-night);
} }
.highlight{ .highlight {
color: var(--night-highlight-color); color: var(--night-highlight-color);
background-color: var(--night-highlight-bg); background-color: var(--night-highlight-bg);
} }
.icone > pre{ .icone > pre {
color: var(--txt-night); color: var(--txt-night);
} }
.icone .img_top{ .icone .img_top {
background-color: var(--night-background); background-color: var(--night-background);
color: var(--txt-night); color: var(--txt-night);
} }
.icone a{ .icone a {
color: var(--txt-night); color: var(--txt-night);
} }
div#ronce, #coop, #autonomie, #solidarite, #liberte, nav#menu, div#rennes, div#orsay{ div#ronce, #coop, #autonomie, #solidarite, #liberte, nav#menu, div#rennes, div#orsay {
border-color: var(--txt-night); border-color: var(--txt-night);
} }
} }