140 lines
2.5 KiB
CSS
Executable file
140 lines
2.5 KiB
CSS
Executable file
@import url(_colours.css);
|
|
|
|
/*****************************
|
|
* HOME
|
|
* Styling for the homepage.
|
|
*****************************/
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.content {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
margin: 0 auto;
|
|
max-width: 900px;
|
|
padding: 0;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.content ul {
|
|
align-items: center;
|
|
display: flex;
|
|
font-size: 30px;
|
|
height: 1.4em;
|
|
justify-content: center;
|
|
left: 50%;
|
|
line-height: 1.4em;
|
|
list-style: none;
|
|
margin: 0 !important;
|
|
max-width: 900px;
|
|
overflow: visible;
|
|
pointer-events: none;
|
|
padding: 0;
|
|
position: absolute;
|
|
text-align: center;
|
|
top: 20px;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
z-index: 5;
|
|
}
|
|
|
|
.content ul li {
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
font-size: calc((min(100vw, 900px)) / 10);
|
|
inset: 0;
|
|
justify-content: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
pointer-events: auto;
|
|
position: absolute;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.content ul li a {
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
.content ul li:nth-child(2) {
|
|
font-family: var(--primary-font);
|
|
}
|
|
|
|
.content ul li:nth-child(3) {
|
|
font-family: var(--secondary-font);
|
|
}
|
|
|
|
.content ul li:nth-child(4) {
|
|
font-family: var(--tertiary-font);
|
|
}
|
|
|
|
.content .faces {
|
|
align-items: center;
|
|
flex-grow: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
min-height: 320px;
|
|
margin-top: 0;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.faces .slide {
|
|
border-radius: 10px;
|
|
left: 50%;
|
|
max-width: 600px;
|
|
opacity: 0;
|
|
position: absolute;
|
|
transform: translate(-50%, -50%);
|
|
top: 50%;
|
|
visibility: hidden;
|
|
width: 80%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.faces .slide img {
|
|
border-radius: 10px;
|
|
display: block;
|
|
height: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.down-arrow {
|
|
animation: flash 1s infinite;
|
|
bottom: 20px;
|
|
color: var(--secondary-colour);
|
|
font-size: 2rem;
|
|
left: 50%;
|
|
position: fixed;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
@keyframes flash {
|
|
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.hero {
|
|
align-items: center;
|
|
display: flex;
|
|
height: 100vh;
|
|
justify-content: center;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|