css is now in old form

This commit is contained in:
asus
2024-05-27 14:18:48 +02:00
parent 04883ef891
commit 8ac471331f
6 changed files with 94 additions and 94 deletions

View File

@@ -6,30 +6,32 @@
.cv { .cv {
display: flex; display: flex;
text-align: left; text-align: left;
summary { }
.cv summary {
position: relative; position: relative;
list-style-position: outside; list-style-position: outside;
list-style-type: "▸ "; list-style-type: "▸ ";
font-size: 1.8rem; font-size: 1.8rem;
margin: auto; margin: auto;
width: fit-content; width: fit-content;
.open { }
.cv summary .open {
display: none; display: none;
} }
.close { .cv summary .close {
display: inline; display: inline;
} }
}
&[open] summary { .cv[open] summary {
list-style-type: "▾ "; list-style-type: "▾ ";
.open { }
.cv[open] summary .open {
display: inline; display: inline;
} }
.close { .cv[open] summary .close {
display: none; display: none;
} }
}
> *:last-child { .cv > *:last-child {
margin-bottom: 100px; margin-bottom: 100px;
} }
}

View File

@@ -9,13 +9,13 @@
grid-template-rows: 1fr auto 1fr; grid-template-rows: 1fr auto 1fr;
*/ */
grid-template-rows: auto auto 1fr; grid-template-rows: auto auto 1fr;
.subtitle { }
#hero .subtitle {
text-align: center; text-align: center;
} }
.cv { #hero .cv {
#cv_download { }
#hero .cv #cv_download {
margin-top: 20px; margin-top: 20px;
text-align: center; text-align: center;
} }
}
}

View File

@@ -1,4 +1,3 @@
#infos article { #infos article {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@@ -7,22 +7,21 @@
margin: auto; margin: auto;
width: fit-content; width: fit-content;
overflow: hidden; overflow: hidden;
}
.frames { .mouse .frames {
position: relative; position: relative;
animation: mouse_move infinite 2s normal steps(4); animation: mouse_move infinite 2s normal steps(4);
&::before { }
.mouse .frames::before {
position: relative; position: relative;
top: 0px; top: 0px;
left: 0px; left: 0px;
} }
&::after { .mouse .frames::after {
position: absolute; position: absolute;
top: 100%; top: 100%;
left: 0px; left: 0px;
} }
}
}
/* /*
* using 'transform' instead of 'top', because 'top' needs * using 'transform' instead of 'top', because 'top' needs

View File

@@ -2,20 +2,21 @@
header { header {
height: 300px; height: 300px;
} }
.projects_grid { }
#projects .projects_grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, auto)); grid-template-columns: repeat(auto-fit, minmax(200px, auto));
grid-template-columns: repeat(2, minmax(100px, auto)); grid-template-columns: repeat(2, minmax(100px, auto));
grid-template-columns: repeat(2, minmax(100px, 500px)); grid-template-columns: repeat(2, minmax(100px, 500px));
grid-gap: 20px; grid-gap: 20px;
figure { }
figcaption { #projects .projects_grid figure {
}
#projects .projects_grid figure figcaption {
text-align: left; text-align: left;
margin-bottom: 100px; margin-bottom: 100px;
} }
}
} #projects .mouse {
.mouse {
margin-top: 100px; margin-top: 100px;
} }
}

View File

@@ -9,31 +9,30 @@ section {
min-height: 100vh; min-height: 100vh;
justify-items: center; justify-items: center;
text-align: center; text-align: center;
}
header { section header {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
place-content: center; place-content: center;
}
h1 { section header h1 {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
} }
}
article { section article {
text-align: left; text-align: left;
} }
> * { section > * {
grid-column: 2 / span 1; grid-column: 2 / span 1;
} }
> .grid_full_width { section > .grid_full_width {
grid-column: 1 / span 3; grid-column: 1 / span 3;
} }
.banner { section .banner {
overflow-x: hidden; overflow-x: hidden;
} }
}