movie-web/src/setup/index.css

176 lines
3.9 KiB
CSS
Raw Normal View History

@tailwind base;
@tailwind components;
@tailwind utilities;
2022-02-10 23:45:17 +01:00
html,
body {
2023-02-27 08:19:38 +01:00
@apply bg-denim-100 font-open-sans text-denim-700 overflow-x-hidden;
2023-01-23 23:01:08 +01:00
min-height: 100vh;
min-height: 100dvh;
2022-02-10 23:45:17 +01:00
}
2023-02-27 08:19:38 +01:00
html[data-full],
html[data-full] body {
2023-01-23 23:51:40 +01:00
overscroll-behavior-y: none;
}
body[data-no-scroll] {
overflow-y: hidden;
height: 100vh;
}
#root {
2023-01-07 21:36:18 +01:00
padding: 0.05px;
min-height: 100vh;
2023-01-23 23:01:08 +01:00
min-height: 100dvh;
width: 100%;
}
2023-01-08 22:29:38 +01:00
body[data-no-select] {
user-select: none;
}
.roll {
animation: roll 1s;
}
@keyframes roll {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.line-clamp {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
2023-02-27 08:19:38 +01:00
-webkit-box-orient: vertical;
overflow: hidden;
}
.google-cast-button:not(.casting) google-cast-launcher {
@apply brightness-[500];
}
2023-03-15 15:48:50 +01:00
2023-03-19 14:17:53 +01:00
/*generated with Input range slider CSS style generator (version 20211225)
https://toughengineer.github.io/demo/slider-styler*/
:root {
--slider-height: 0.25rem;
--slider-border-radius: 1em;
--slider-progress-background: #8652bb;
}
input[type=range].styled-slider {
height: var(--slider-height);
2023-03-15 15:48:50 +01:00
-webkit-appearance: none;
appearance: none;
2023-03-19 14:17:53 +01:00
border-radius: var(--slider-border-radius);
background: #1C161B;
}
/*progress support*/
input[type=range].styled-slider.slider-progress {
--range: calc(var(--max) - var(--min));
--ratio: calc((var(--value) - var(--min)) / var(--range));
--sx: calc(0.5 * 1rem + var(--ratio) * (100% - 1rem));
2023-03-15 15:48:50 +01:00
}
2023-03-19 14:17:53 +01:00
/*webkit*/
input[type=range].styled-slider::-webkit-slider-thumb {
2023-03-15 15:48:50 +01:00
-webkit-appearance: none;
2023-03-19 14:17:53 +01:00
width: 1rem;
2023-03-15 15:48:50 +01:00
height: 1rem;
2023-03-19 14:17:53 +01:00
border-radius: var(--slider-border-radius);
background: #FFFFFF;
border: none;
box-shadow: 0 0 2px #000000;
margin-top: calc(0.25em * 0.5 - 1rem * 0.5);
}
input[type=range].styled-slider::-webkit-slider-runnable-track {
height: var(--slider-height);
border: none;
box-shadow: none;
border-radius: var(--slider-border-radius);
}
input[type=range].styled-slider::-webkit-slider-thumb:hover {
background: #DCDCDC;
}
input[type=range].styled-slider.slider-progress::-webkit-slider-runnable-track {
background: linear-gradient(var(--slider-progress-background),var(--slider-progress-background)) 0/var(--sx) 100% no-repeat, #1C161B;
2023-03-15 15:48:50 +01:00
}
2023-03-19 14:17:53 +01:00
/*mozilla*/
input[type=range].styled-slider::-moz-range-thumb {
width: 1rem;
2023-03-15 15:48:50 +01:00
height: 1rem;
2023-03-19 14:17:53 +01:00
border-radius: var(--slider-border-radius);
background: #FFFFFF;
border: none;
box-shadow: 0 0 2px #000000;
}
input[type=range].styled-slider::-moz-range-track {
height: var(--slider-height);
border: none;
border-radius: var(--slider-border-radius);
background: #1C161B;
box-shadow: none;
}
input[type=range].styled-slider::-moz-range-thumb:hover {
background: #DCDCDC;
}
input[type=range].styled-slider.slider-progress::-moz-range-track {
background: linear-gradient(var(--slider-progress-background),var(--slider-progress-background)) 0/var(--sx) 100% no-repeat, #1C161B;
}
/*ms*/
input[type=range].styled-slider::-ms-fill-upper {
background: transparent;
border-color: transparent;
}
input[type=range].styled-slider::-ms-fill-lower {
background: transparent;
border-color: transparent;
}
input[type=range].styled-slider::-ms-thumb {
width: 1rem;
height: 1rem;
border-radius: var(--slider-border-radius);
background: #FFFFFF;
border: none;
box-shadow: 0 0 2px #000000;
margin-top: 0;
box-sizing: border-box;
}
input[type=range].styled-slider::-ms-track {
height: var(--slider-height);
border-radius: var(--slider-border-radius);
background: #1C161B;
border: none;
box-shadow: none;
box-sizing: border-box;
}
input[type=range].styled-slider::-ms-thumb:hover {
background: #DCDCDC;
}
input[type=range].styled-slider.slider-progress::-ms-fill-lower {
height: var(--slider-height);
border-radius: var(--slider-border-radius) 0 0 5px;
margin: -undefined 0 -undefined -undefined;
background: var(--slider-progress-background);
border: none;
border-right-width: 0;
}