From 8ac471331ff731f04b49c53cea126af3dbc72477 Mon Sep 17 00:00:00 2001 From: asus Date: Mon, 27 May 2024 14:18:48 +0200 Subject: [PATCH] css is now in old form --- styles/elements/cv.css | 54 +++++++++++++++++++----------------- styles/elements/hero.css | 18 ++++++------ styles/elements/infos.css | 1 - styles/elements/mouses.css | 29 ++++++++++--------- styles/elements/projects.css | 33 +++++++++++----------- styles/sections.css | 53 +++++++++++++++++------------------ 6 files changed, 94 insertions(+), 94 deletions(-) diff --git a/styles/elements/cv.css b/styles/elements/cv.css index 5147844..5aa4046 100644 --- a/styles/elements/cv.css +++ b/styles/elements/cv.css @@ -6,30 +6,32 @@ .cv { display: flex; text-align: left; - summary { - position: relative; - list-style-position: outside; - list-style-type: "▸ "; - font-size: 1.8rem; - margin: auto; - width: fit-content; - .open { - display: none; - } - .close { - display: inline; - } - } - &[open] summary { - list-style-type: "▾ "; - .open { - display: inline; - } - .close { - display: none; - } - } - > *:last-child { - margin-bottom: 100px; - } +} +.cv summary { + position: relative; + list-style-position: outside; + list-style-type: "▸ "; + font-size: 1.8rem; + margin: auto; + width: fit-content; +} +.cv summary .open { + display: none; +} +.cv summary .close { + display: inline; +} + +.cv[open] summary { + list-style-type: "▾ "; +} +.cv[open] summary .open { + display: inline; +} +.cv[open] summary .close { + display: none; +} + +.cv > *:last-child { + margin-bottom: 100px; } diff --git a/styles/elements/hero.css b/styles/elements/hero.css index 3534cee..7292408 100644 --- a/styles/elements/hero.css +++ b/styles/elements/hero.css @@ -9,13 +9,13 @@ grid-template-rows: 1fr auto 1fr; */ grid-template-rows: auto auto 1fr; - .subtitle { - text-align: center; - } - .cv { - #cv_download { - margin-top: 20px; - text-align: center; - } - } +} +#hero .subtitle { + text-align: center; +} +#hero .cv { +} +#hero .cv #cv_download { + margin-top: 20px; + text-align: center; } diff --git a/styles/elements/infos.css b/styles/elements/infos.css index 7d5ce38..debd2ef 100644 --- a/styles/elements/infos.css +++ b/styles/elements/infos.css @@ -1,4 +1,3 @@ - #infos article { display: flex; flex-direction: column; diff --git a/styles/elements/mouses.css b/styles/elements/mouses.css index 6c10818..e3aa855 100644 --- a/styles/elements/mouses.css +++ b/styles/elements/mouses.css @@ -7,21 +7,20 @@ margin: auto; width: fit-content; overflow: hidden; - - .frames { - position: relative; - animation: mouse_move infinite 2s normal steps(4); - &::before { - position: relative; - top: 0px; - left: 0px; - } - &::after { - position: absolute; - top: 100%; - left: 0px; - } - } +} +.mouse .frames { + position: relative; + animation: mouse_move infinite 2s normal steps(4); +} +.mouse .frames::before { + position: relative; + top: 0px; + left: 0px; +} +.mouse .frames::after { + position: absolute; + top: 100%; + left: 0px; } /* diff --git a/styles/elements/projects.css b/styles/elements/projects.css index b65e564..4497bf7 100644 --- a/styles/elements/projects.css +++ b/styles/elements/projects.css @@ -2,20 +2,21 @@ header { height: 300px; } - .projects_grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, auto)); - grid-template-columns: repeat(2, minmax(100px, auto)); - grid-template-columns: repeat(2, minmax(100px, 500px)); - grid-gap: 20px; - figure { - figcaption { - text-align: left; - margin-bottom: 100px; - } - } - } - .mouse { - margin-top: 100px; - } +} +#projects .projects_grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, auto)); + grid-template-columns: repeat(2, minmax(100px, auto)); + grid-template-columns: repeat(2, minmax(100px, 500px)); + grid-gap: 20px; +} +#projects .projects_grid figure { +} +#projects .projects_grid figure figcaption { + text-align: left; + margin-bottom: 100px; +} + +#projects .mouse { + margin-top: 100px; } diff --git a/styles/sections.css b/styles/sections.css index 8da1c61..afbd7cd 100644 --- a/styles/sections.css +++ b/styles/sections.css @@ -9,31 +9,30 @@ section { min-height: 100vh; justify-items: center; text-align: center; - - header { - display: flex; - flex-direction: column; - place-content: center; - - h1 { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: center; - } - } - article { - text-align: left; - } - - > * { - grid-column: 2 / span 1; - } - > .grid_full_width { - grid-column: 1 / span 3; - } - - .banner { - overflow-x: hidden; - } +} +section header { + display: flex; + flex-direction: column; + place-content: center; +} +section header h1 { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; +} + +section article { + text-align: left; +} + +section > * { + grid-column: 2 / span 1; +} +section > .grid_full_width { + grid-column: 1 / span 3; +} + +section .banner { + overflow-x: hidden; }