chore: added CV and theme-toggle-system

This commit is contained in:
Ward Truyen
2024-08-09 15:47:56 +02:00
parent a017d7283f
commit b39c4102ed
4 changed files with 82 additions and 25 deletions

View File

@@ -2,10 +2,9 @@
* Version: 1.0.0
*/
:root {
color-scheme: light dark;
}
/* :root { */
/* color-scheme: only light; */
/* } */
html,
body {
margin: 0px;
@@ -13,53 +12,68 @@ body {
height: 100%;
display: flex;
flex-direction: column;
}
html {
/* colors */
background-image: linear-gradient(-30deg, #C0E0FF6F 70%, #FFE0C04F);
}
main {
margin: auto;
width: 80%;
min-width: 80%;
padding: 10px;
min-height: 40%;
/* colors */
border: 1px solid darkblue;
background-color: white;
box-shadow: 3px 3px 3px #30303090;
box-shadow: 3px 3px 3px #30303090;
}
main h1 {
main>h1 {
font-family: "Raleway", sans-serif;
font-size: 4em;
margin-top: 4px;
margin-top: 0px;
margin-bottom: 8px;
text-decoration: underline;
text-shadow: 0px 0px 4px white, 2px 2px 6px;
}
main p,
main a {
padding-left: 1em;
main>p {
margin-left: 1em;
}
main>h2 {
margin-left: 0.2em;
}
ul.dashed {
list-style-type: '- ';
}
.text-red {
color: red;
}
@media(prefers-color-scheme: dark) {
html.theme-dark {
color-scheme: dark;
background-image: none;
background-image: linear-gradient(-10deg, #1010206F 60%, #5050506F);
color: white;
}
html,
body {
background-image: linear-gradient(-10deg, #1010206F 60%, #5050506F);
}
.theme-dark>body>main {
border: 1px solid darkgray;
background-color: black;
box-shadow: 3px 3px 5px #101010C0;
}
main {
border: 1px solid darkgray;
background-color: black;
box-shadow: 3px 3px 5px #101010C0;
}
main h1 {
.theme-dark>body>main>h1 {
text-shadow: 0px 0px 3px blue, 2px 2px 6px;
}
@media(orientation: portrait){
main{
margin: 1em;
}
}