mirror of https://github.com/mue/mue.git
Corresponding styling to HTML structure
This commit is contained in:
parent
7eb9b1e248
commit
002c743794
106
index.css
106
index.css
|
@ -1,27 +1,95 @@
|
||||||
|
/* VARIABLES */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
|
||||||
|
--shadow-color: #111111CC;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* BASIC STYLING */
|
||||||
|
|
||||||
|
html, body { height: 100%; }
|
||||||
body {
|
body {
|
||||||
color: white;
|
|
||||||
font-family: "Roboto Light";
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
background-size: cover;
|
||||||
|
background-position: 50%;
|
||||||
|
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
color: white;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
/* BACKGROUND CLASSES */
|
||||||
font-size: 150px;
|
|
||||||
}
|
.mountain { background-image: url('images/1.jpeg'); }
|
||||||
h2 {
|
.sunrise { background-image: url('images/2.jpeg'); }
|
||||||
font-size: 100px;
|
.butterfly { background-image: url('images/3.jpeg'); }
|
||||||
}
|
.leaves { background-image: url('images/4.jpeg'); }
|
||||||
h3 {
|
|
||||||
font-size: 25px;
|
/* TEXT SHADOW */
|
||||||
|
|
||||||
|
.greeting,
|
||||||
|
time,
|
||||||
|
.quote {
|
||||||
|
|
||||||
|
filter: drop-shadow(var(--shadow-shift) var(--shadow-shift) 0 var(--shadow-color));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Greeting */
|
||||||
|
|
||||||
|
.greeting {
|
||||||
|
|
||||||
|
--shadow-shift: 0.2rem;
|
||||||
|
|
||||||
|
font-size: 3.25rem;
|
||||||
|
|
||||||
html {
|
|
||||||
overflow: scroll;
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 0px;
|
/* Time */
|
||||||
background: transparent; /* https://stackoverflow.com/questions/16670931/ */
|
|
||||||
|
time {
|
||||||
|
|
||||||
|
--shadow-shift: 0.4rem;
|
||||||
|
|
||||||
|
font-size: 12rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: #FF0000;
|
/* Quote */
|
||||||
}
|
|
||||||
|
.quote {
|
||||||
|
|
||||||
|
--shadow-shift: 0.125rem;
|
||||||
|
|
||||||
|
width: 37.5%;
|
||||||
|
max-width: 37.5rem; /* 600px on desktop */
|
||||||
|
|
||||||
|
font-size: 1.5rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* quote text */
|
||||||
|
|
||||||
|
.quote blockquote {
|
||||||
|
|
||||||
|
margin: 0 0 0.25rem 0;
|
||||||
|
|
||||||
|
line-height: 1.125;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.quote blockquote::before { content: '“'; margin-right: 0.25ch; }
|
||||||
|
.quote blockquote::after { content: '”'; margin-left: 0.25ch; }
|
||||||
|
|
||||||
|
/* quote author */
|
||||||
|
|
||||||
|
.quote cite { font-size: 83.33%; }
|
||||||
|
|
Loading…
Reference in New Issue