140 lines
2.4 KiB
CSS
140 lines
2.4 KiB
CSS
/* Support dark mode */
|
|
:root {
|
|
color-scheme: light dark;
|
|
|
|
--primary-color: #03FCBAFF;
|
|
--primary-color-rgb: rgb(3, 252, 186);
|
|
|
|
min-width: 200px;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
ul.links img {
|
|
filter: invert(100%);
|
|
}
|
|
}
|
|
|
|
/* Main styling */
|
|
body {
|
|
font-family: Roboto, monospace;
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
min-height: 100vh;
|
|
|
|
display: flex;
|
|
flex-direction: column; /* To show elements below each other */
|
|
align-items: center;
|
|
}
|
|
|
|
.wrapper { /* Wrapper to center the content */
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column; /* To show elements below each other */
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.landing {
|
|
text-align: center;
|
|
}
|
|
|
|
footer {
|
|
max-width: 80%;
|
|
bottom: 2vh;
|
|
padding-bottom: 5%;
|
|
|
|
opacity: 0.6;
|
|
font-size: small;
|
|
|
|
text-align: center;
|
|
}
|
|
|
|
.heart {
|
|
color: #CD001A; /* Cherry red */
|
|
}
|
|
|
|
.quote {
|
|
border-left: 4px solid var(--primary-color);
|
|
padding-left: 10px;
|
|
margin: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
.signature {
|
|
/* Italics and aligned to the right */
|
|
/*font-style: italic;*/
|
|
/*text-align: right;*/
|
|
/*margin-right: 20px*/
|
|
}
|
|
|
|
/* Show icons with links next to each other */
|
|
ul.links {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
ul.links li {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
ul.links img {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
ul.links a:hover {
|
|
-webkit-filter: opacity(50%);
|
|
-webkit-transition: all 0.5s ease;
|
|
-moz-transition: all 0.5s ease;
|
|
-o-transition: all 0.5s ease;
|
|
-ms-transition: all 0.5s ease;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
/* URL animation on hover in footer
|
|
Draw a line from left to right when hovering over the link */
|
|
footer a {
|
|
text-decoration: none;
|
|
color: inherit; /* Reset to default text color */
|
|
position: relative;
|
|
}
|
|
|
|
footer a::before {
|
|
content: '';
|
|
position: absolute;
|
|
/* Height of the line */
|
|
bottom: -2px;
|
|
height: 2px;
|
|
left: 0;
|
|
width: 0;
|
|
background-color: var(--primary-color);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
footer a:hover::before {
|
|
width: 100%;
|
|
}
|
|
|
|
footer > button-collection {
|
|
max-width: 100%;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
footer {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (min-height: 100vh) {
|
|
.footer {
|
|
position: static;
|
|
}
|
|
}
|