Files
Tooloop-Packages/onboarding/package/assets/data/css/styles.css
T

214 lines
3.7 KiB
CSS
Raw Normal View History

2023-12-19 09:13:33 +01:00
:root {
--font-size: 18px;
--light-grey: #f2f2f2;
--medium-grey: #999999;
--dark-grey: #333333;
--pink: #E6004C;
--width: 800px;
--height: 600px;
--scale: 1.0;
2024-02-21 10:20:24 +01:00
--slide-duration: 10s;
2023-12-19 09:13:33 +01:00
}
2024-02-20 21:19:41 +01:00
@font-face {
font-family: "Clear Sans";
src: url("../fonts/ClearSans-Regular.ttf");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Clear Sans";
src: url("../fonts/ClearSans-Italic.ttf");
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Clear Sans";
src: url("../fonts/ClearSans-Bold.ttf");
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "Clear Sans";
src: url("../fonts/ClearSans-BoldItalic.ttf");
font-weight: bold;
font-style: italic;
}
2023-12-19 09:13:33 +01:00
html {
background-color: var(--dark-grey);
}
body {
width: var(--width);
height: var(--height);
transform: scale(var(--scale));
transform-origin: 0 0;
2024-02-19 17:12:43 +01:00
background-color: black;
2023-12-19 09:13:33 +01:00
margin: 0;
padding: 0;
font-size: var(--font-size);
position: absolute;
inset: 0;
2024-02-20 21:19:41 +01:00
font-family: "Clear Sans", system-ui, sans-serif;
2023-12-19 09:13:33 +01:00
}
nav {
position: absolute;
inset: 0;
pointer-events: none;
}
button {
pointer-events: all;
position: absolute;
padding: 0;
width: 2rem;
height: 2rem;
border: none;
background: none;
display: flex;
align-items: center;
justify-content: center;
}
button:hover {
background: var(--light-grey);
}
button:active {
background: var(--medium-grey);
}
button.close-button {
top: 1rem;
right: 1rem;
}
button.close-button:hover {
background-color: rgba(255,255,255, 0.1);
}
button.close-button svg {
stroke: white;
}
button.slide-button {
bottom: calc((var(--height) / 4 - 2rem) / 2);
}
button.slide-button svg {
stroke: var(--pink);
}
button.slide-button.previous {
left: 1rem;
}
button.slide-button.next {
right: 1rem;
}
#slider {
display: flex;
flex-direction: row;
overflow-x: auto;
overflow-y: none;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
-ms-overflow-style: none;
scrollbar-width: none;
}
#slider::-webkit-scrollbar {
display: none;
}
.slide {
scroll-snap-align: center;
display: flex;
flex-direction: column;
flex-shrink: 0;
width: var(--width);
height: var(--height);
}
.slide .image {
background-color: var(--light-grey);
height: calc(var(--height) * 3 / 4);
}
.slide.no-text .image {
height: var(--height);
}
.slide .image img,
.slide .image video {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.slide.no-text .description {
display: none;
}
.slide .description {
position: relative;
2024-02-21 10:20:24 +01:00
padding: 0.5rem 8rem 1rem;
2023-12-19 09:13:33 +01:00
height: calc(var(--height) / 4);
2024-02-19 17:12:43 +01:00
background-color: white;
2023-12-19 09:13:33 +01:00
overflow: auto;
2024-02-21 10:20:24 +01:00
display: flex;
flex-direction: column;
justify-content: center;
2023-12-19 09:13:33 +01:00
}
.slide .description h1,
.slide .description p {
2024-02-21 10:20:24 +01:00
margin: 0 0 0.5rem 0;
}
.slide .description p:last-child {
margin-bottom: 0;
2023-12-19 09:13:33 +01:00
}
.slide .description h1 {
font-size: 1.5rem;
}
.slide .description h1:first-child {
margin-top: 0;
}
2024-02-21 10:20:24 +01:00
.slide .description code {
2024-02-23 11:36:39 +01:00
background-color: #ddd;
padding: 0.1rem 0.3rem;
color: var(--dark-grey);
font-size: 0.888rem;
border-radius: 2px;
2024-02-21 10:20:24 +01:00
}
.progressBar {
position: fixed;
height: .333rem;
width: 0%;
background-color: #ccc;
mix-blend-mode: multiply;
/* opacity: 0.5; */
bottom: 0px;
transition: width;
transition-duration: 0s;
transition-timing-function: linear;
}
.progressBar.playing {
width: 100%;
transition-duration: var(--slide-duration);
2023-12-19 09:13:33 +01:00
}