1
0
Fork 0
forked from Deuxfleurs/site

reformat css

This commit is contained in:
Quentin 2023-10-17 10:58:34 +02:00
parent 8986e5b6b1
commit dad198ea29
Signed by untrusted user: quentin
GPG key ID: E9602264D639FF68
2 changed files with 306 additions and 333 deletions

View file

@ -98,7 +98,7 @@
</nav> </nav>
<div id="container"> <div id="container">
<main aria-label="contenu de la page web"> <main class="home" aria-label="contenu de la page web">
<h1 id="deuxfleurs"><span role="img" aria-label="2 emojis fleur blanche">💮💮 </span>deuxfleurs</h1> <h1 id="deuxfleurs"><span role="img" aria-label="2 emojis fleur blanche">💮💮 </span>deuxfleurs</h1>
<div id="jardin"> <div id="jardin">
<div id="illustration-accueil" class="noscroll" role="img" aria-label="deux fleurs dessinées en ascii animées"> <div id="illustration-accueil" class="noscroll" role="img" aria-label="deux fleurs dessinées en ascii animées">

View file

@ -11,7 +11,7 @@
--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;
@ -106,7 +106,7 @@ pre.hide {
} }
div#calendrier > pre.center{ div#calendrier > pre.center{
justify-content: right; justify-content: right;
} }
#calendrier #mois_actuel{ #calendrier #mois_actuel{
@ -149,7 +149,9 @@ div#container{
} }
/*GESTION DE LA GRILLE DU MAIN*/ /*GESTION DE LA GRILLE DU MAIN*/
main{ main.home {
grid-area: main-row-debut / main-col-start / main-row-fin / main-col-sep 12;
display: grid; display: grid;
grid-template-columns: [col-start] repeat(12, calc(100% / 12) [col-sep]); grid-template-columns: [col-start] repeat(12, calc(100% / 12) [col-sep]);
grid-template-rows: grid-template-rows:
@ -170,8 +172,6 @@ main{
/*POSITIONNEMENT SUR LA GRILLE PRINCIPALE*/ /*POSITIONNEMENT SUR LA GRILLE PRINCIPALE*/
nav#menu{ nav#menu{
/*
grid-area: row-start / col-sep 6 / end-nav / col-sep 12;*/
background-color: var(--day-background); background-color: var(--day-background);
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
@ -181,10 +181,6 @@ nav#menu{
right: 1rem; right: 1rem;
} }
main{
grid-area: main-row-debut / main-col-start / main-row-fin / main-col-sep 12;
}
.icone > pre{ .icone > pre{
padding-top: 1rem; padding-top: 1rem;
color: black; color: black;
@ -467,177 +463,154 @@ nav ul{
/*Tablettes et petits ordinateurs*/ /*Tablettes et petits ordinateurs*/
@media (max-width: 1500px) and (min-width: 801px){ @media (max-width: 1500px) and (min-width: 801px){
h2, h1{ h2, h1{
font-size: 1rem; font-size: 1rem;
font-weight: normal; font-weight: normal;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
h2, h1{ h2, h1{
text-transform: uppercase; text-transform: uppercase;
white-space:pre; white-space:pre;
overflow: hidden; overflow: hidden;
} }
h1#deuxfleurs{ h1#deuxfleurs{
grid-area: h1-start / col-sep 1 / h1-end / col-sep 12; grid-area: h1-start / col-sep 1 / h1-end / col-sep 12;
} }
h2#infras{ h2#infras{
grid-area: title-start 1 / col-sep 1 / title-end 1 / col-sep 12; grid-area: title-start 1 / col-sep 1 / title-end 1 / col-sep 12;
} }
h2#outils{ h2#outils{
grid-area: title-start 2 / col-sep 1 / title-end 2 / col-sep 12; grid-area: title-start 2 / col-sep 1 / title-end 2 / col-sep 12;
} }
h2#valeurs{ h2#valeurs{
grid-area: title-start 3 / col-sep 1 / title-end 3 / col-sep 12; grid-area: title-start 3 / col-sep 1 / title-end 3 / col-sep 12;
} }
h2#connaissance{ h2#connaissance{
grid-area: title-start-contact / col-sep 1 / title-end-contact / col-sep 12; grid-area: title-start-contact / col-sep 1 / title-end-contact / col-sep 12;
} }
div#rennes{ div#rennes{
grid-area: illu-start 1 / col-sep 2 / illu-end 1 / col-sep 6; grid-area: illu-start 1 / col-sep 2 / illu-end 1 / col-sep 6;
margin-right: 0.5rem; margin-right: 0.5rem;
} }
div#orsay{ div#orsay{
grid-area: illu-start 1 / col-sep 6 / illu-end 1 / col-sep 10; grid-area: illu-start 1 / col-sep 6 / illu-end 1 / col-sep 10;
margin-left: 0.5rem; margin-left: 0.5rem;
} }
div#rennes, div#orsay{ div#rennes, div#orsay{
border: 1px solid black; border: 1px solid black;
border-radius: 5px; border-radius: 5px;
} }
div#rennes pre.center, div#orsay pre.center{ div#rennes pre.center, div#orsay pre.center{
margin-top: -5px; margin-top: -5px;
margin-bottom: -5px margin-bottom: -5px
} }
div#orsay pre.center{ div#orsay pre.center{
justify-content: center; justify-content: center;
} }
p#txt_infras{ p#txt_infras{
background-color: var(--txt_infras); background-color: var(--txt_infras);
grid-area: txt-start 1 / col-sep 2 / txt-end 1 / col-sep 10; grid-area: txt-start 1 / col-sep 2 / txt-end 1 / col-sep 10;
} }
div#txt_outils{ div#txt_outils{
background-color: var(--txt_outils); background-color: var(--txt_outils);
grid-area: txt-start 2 / col-sep 2 / txt-end 2 / col-sep 10; grid-area: txt-start 2 / col-sep 2 / txt-end 2 / col-sep 10;
} }
div#txt_connaissance{ div#txt_connaissance{
grid-area: txt-start-contact / col-sep 2 / txt-end-contact / col-sep 10; grid-area: txt-start-contact / col-sep 2 / txt-end-contact / col-sep 10;
} }
div#txt_connaissance ul{ div#txt_connaissance ul{
padding-left: 0px; padding-left: 0px;
list-style-position: inside; list-style-position: inside;
} }
div#ordinateur { div#ordinateur {
grid-area: illu-start 2 / col-sep 1 / illu-end 2 / col-sep 11; grid-area: illu-start 2 / col-sep 1 / illu-end 2 / col-sep 11;
overflow: hidden; overflow: hidden;
} }
section#liste_outils{ section#liste_outils{
background-color: var(--liste_outils); background-color: var(--liste_outils);
grid-area: illu-end 2 / col-sep 1 / illu-extended-end 2 / col-sep 11; grid-area: illu-end 2 / col-sep 1 / illu-extended-end 2 / col-sep 11;
margin-top: var(--med_margin); margin-top: var(--med_margin);
} }
/*
section#liste_outils {
--demie-goutiere: calc(var(--small_margin) / 2);
--valeurs_width: calc(33% - var(--demie-goutiere));
display: grid;
grid-template-columns:
[col-tiers1-start] var(--valeurs_width) [col-tiers1-end] bloc de gauche
var(--small_margin) goutière
[col-tiers2-start] var(--valeurs_width) [col-tiers2-end]
var(--small_margin) goutière
[col-tiers3-start] var(--valeurs_width) [col-tiers3-end]; bloc de droite
grid-template-rows: section#liste_outils{
[line1-start] auto [line1-end]
var(--small_margin)
[line2-start] auto [line2-end]
var(--small_margin)
[faisons-connaissance-start] auto [faisons-connaissance-end];
);
}
*/
section#liste_outils{
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
row-gap: 1rem; row-gap: 1rem;
column-gap: 1rem; column-gap: 1rem;
} }
div#discussion { div#discussion {
background-color: var(--lightgrey); background-color: var(--lightgrey);
grid-area: line1-start / col-tiers1-start / line1-end / col-tiers1-end; grid-area: line1-start / col-tiers1-start / line1-end / col-tiers1-end;
overflow: hidden; overflow: hidden;
} }
div#emails { div#emails {
background-color: var(--lightgrey); background-color: var(--lightgrey);
grid-area: line1-start / col-tiers2-start / line1-end / col-tiers2-start; grid-area: line1-start / col-tiers2-start / line1-end / col-tiers2-start;
} }
div#visio { div#visio {
background-color: var(--lightgrey); background-color: var(--lightgrey);
grid-area: line1-start / col-tiers3-start / line1-end / col-tiers3-end; grid-area: line1-start / col-tiers3-start / line1-end / col-tiers3-end;
overflow: hidden; overflow: hidden;
} }
/**/ div#sites-web {
div#sites-web {
background-color: var(--lightgrey); background-color: var(--lightgrey);
grid-area: line2-start / col-tiers1-start / line2-end / col-tiers1-end; grid-area: line2-start / col-tiers1-start / line2-end / col-tiers1-end;
overflow: hidden; overflow: hidden;
} }
div#collaboration { div#collaboration {
background-color: var(--lightgrey); background-color: var(--lightgrey);
grid-area: line2-start / col-tiers2-start / line2-end / col-tiers2-end; grid-area: line2-start / col-tiers2-start / line2-end / col-tiers2-end;
} }
div#blog { div#blog {
background-color: var(--lightgrey); background-color: var(--lightgrey);
grid-area: line2-start / col-tiers3-start / line2-end / col-tiers3-end; grid-area: line2-start / col-tiers3-start / line2-end / col-tiers3-end;
} }
div#ronce{ div#ronce{
grid-area: illu-start 3 / col-sep 1 / illu-end 3 / col-sep 11; grid-area: illu-start 3 / col-sep 1 / illu-end 3 / col-sep 11;
} }
div#calendrier{ div#calendrier{
margin-top: var(--med_margin); margin-top: var(--med_margin);
grid-area: txt-end-contact / col-sep 1 / cal-end-contact / col-sep 11; grid-area: txt-end-contact / col-sep 1 / cal-end-contact / col-sep 11;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
#mois_actuel, #mois_suivant{ #mois_actuel, #mois_suivant{
overflow: hidden; overflow: hidden;
} }
#mois_actuel{ #mois_actuel{
margin-bottom: 0px; margin-bottom: 0px;
margin-right: 2rem; margin-right: 2rem;
} }
} }
@ -645,60 +618,60 @@ div#calendrier{
/*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{ h2, h1{
text-transform: uppercase; text-transform: uppercase;
white-space: pre; white-space: pre;
overflow: hidden; overflow: hidden;
} }
h1#deuxfleurs{ h1#deuxfleurs{
grid-area: h1-start / col-start / h1-end / col-sep 12; grid-area: h1-start / col-start / h1-end / col-sep 12;
} }
h2#infras{ h2#infras{
grid-area: title-start 1 / col-start / title-end 1 / col-sep 12; grid-area: title-start 1 / col-start / title-end 1 / col-sep 12;
} }
h2#outils{ h2#outils{
grid-area: title-start 2 / col-start / title-end 2 / col-sep 12; grid-area: title-start 2 / col-start / title-end 2 / col-sep 12;
} }
h2#valeurs{ h2#valeurs{
grid-area: title-start 3 / col-start / title-end 3 / col-sep 12; grid-area: title-start 3 / col-start / title-end 3 / col-sep 12;
} }
h2#connaissance{ h2#connaissance{
grid-area: title-start-contact / col-start / title-end-contact / col-sep 12; grid-area: title-start-contact / col-start / title-end-contact / col-sep 12;
} }
div#jardin{ div#jardin{
grid-area: row-start / col-sep 1 / jardin-end / col-sep 11; grid-area: row-start / col-sep 1 / jardin-end / col-sep 11;
} }
nav#menu{ nav#menu{
position: fixed; position: fixed;
width: 100%; width: 100%;
right: 0px; right: 0px;
@ -707,9 +680,9 @@ nav#menu{
background-color: --day-background; background-color: --day-background;
z-index: 1; z-index: 1;
border-top: black 1px dashed; border-top: black 1px dashed;
} }
nav#menu ul{ nav#menu ul{
list-style: none; list-style: none;
flex-direction: row; flex-direction: row;
display: flex; display: flex;
@ -717,42 +690,42 @@ nav#menu ul{
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
width: 100%; width: 100%;
} }
div#txt_connaissance ul{ div#txt_connaissance ul{
padding-left: 0px; padding-left: 0px;
list-style-position: inside; list-style-position: inside;
margin-bottom: var(--med_margin); margin-bottom: var(--med_margin);
} }
.icone > pre{ .icone > pre{
font-size: 0.8rem; font-size: 0.8rem;
} }
#illustration-accueil > pre.center{ #illustration-accueil > pre.center{
font-size: 0.85rem; font-size: 0.85rem;
} }
div#orsay{ div#orsay{
display: none; display: none;
} }
div#rennes{ div#rennes{
grid-area: illu-start 1 / col-sep 1 / illu-end 1 / col-sep 11; grid-area: illu-start 1 / col-sep 1 / illu-end 1 / col-sep 11;
border: 1px solid black; border: 1px solid black;
border-radius: 5px; border-radius: 5px;
} }
div#rennes pre{ div#rennes pre{
margin-top: -5px; margin-top: -5px;
margin-bottom: -5px; margin-bottom: -5px;
} }
pre{ pre{
font-size: 0.95rem; font-size: 0.95rem;
} }
#txt_infras, #txt_outils, #txt_connaissance{ #txt_infras, #txt_outils, #txt_connaissance{
text-align: left; text-align: left;
hyphens: none; hyphens: none;
margin-top: 0; margin-top: 0;
@ -762,83 +735,83 @@ pre{
-webkit-hyphens: none; -webkit-hyphens: none;
-moz-hyphens: none; -moz-hyphens: none;
margin-top: 0; margin-top: 0;
} }
p#txt_infras{ p#txt_infras{
background-color: var(--txt_infras); background-color: var(--txt_infras);
grid-area: txt-start 1 / col-sep 1 / txt-end 1 / col-sep 11; grid-area: txt-start 1 / col-sep 1 / txt-end 1 / col-sep 11;
} }
div#txt_outils{ div#txt_outils{
background-color: var(--txt_outils); background-color: var(--txt_outils);
grid-area: txt-start 2 / col-sep 1 / txt-end 2 / col-sep 11; grid-area: txt-start 2 / col-sep 1 / txt-end 2 / col-sep 11;
} }
div#txt_connaissance{ div#txt_connaissance{
grid-area: txt-start-contact / col-sep 1 / txt-end-contact / col-sep 11; grid-area: txt-start-contact / col-sep 1 / txt-end-contact / col-sep 11;
} }
div#ordinateur { div#ordinateur {
display: none; display: none;
} }
section#liste_outils { section#liste_outils {
display: block; display: block;
} }
section#liste_outils{ section#liste_outils{
grid-area: illu-start 2 / col-start / illu-end 2 / col-sep 12; grid-area: illu-start 2 / col-start / illu-end 2 / col-sep 12;
font-size: 1rem; font-size: 1rem;
} }
section#liste_outils pre{ section#liste_outils pre{
font-size: 1rem; font-size: 1rem;
} }
section#liste_outils > a > div{ section#liste_outils > a > div{
margin-bottom: 1rem; margin-bottom: 1rem;
} }
div#ronce{ div#ronce{
grid-area: illu-start 3 / col-sep 1 / illu-end 3 / col-sep 11; grid-area: illu-start 3 / col-sep 1 / illu-end 3 / col-sep 11;
border: none; border: none;
padding: 0px; padding: 0px;
} }
#coop, #autonomie, #solidarite, #liberte{ #coop, #autonomie, #solidarite, #liberte{
padding: 1rem; padding: 1rem;
margin: 0px; margin: 0px;
} }
#suivre{ #suivre{
margin-top: 2rem; margin-top: 2rem;
} }
section#liste_valeurs{ section#liste_valeurs{
grid-area: txt-start 3 / col-sep 1 / txt-end 3 / col-sep 11; grid-area: txt-start 3 / col-sep 1 / txt-end 3 / col-sep 11;
} }
section#liste_valeurs .description{ section#liste_valeurs .description{
display: none; display: none;
} }
div#calendrier{ div#calendrier{
grid-area: txt-end-contact / col-sep 1 / cal-end-contact / col-sep 11; grid-area: txt-end-contact / col-sep 1 / cal-end-contact / col-sep 11;
display: none; display: none;
} }
div#calendrier > pre.center { div#calendrier > pre.center {
justify-content: center; justify-content: center;
} }
footer pre.center{ footer pre.center{
font-size: 0.85rem; font-size: 0.85rem;
} }
#liens{ #liens{
text-align: center; text-align: center;
margin-bottom: 12rem; margin-bottom: 12rem;
} }
} }