Files
zap.stream/src/pages/layout.css
2023-09-15 10:22:32 +01:00

236 lines
3.9 KiB
CSS

.page {
--page-pad-tb: 16px;
--page-pad-lr: 40px;
--header-page-padding: calc(var(--page-pad-tb) + var(--page-pad-tb));
padding: var(--page-pad-tb) var(--page-pad-lr);
display: flex;
flex-direction: column;
gap: var(--gap-s);
}
.page.stream {
height: calc(100vh - var(--header-page-padding));
overflow: hidden;
}
@media (max-width: 1020px) {
.page {
--page-pad-tb: 8px;
--page-pad-lr: 0;
}
.page.stream {
display: flex;
flex-direction: column;
}
header {
padding: 0 16px;
}
}
header {
display: flex;
gap: 24px;
}
header .logo {
background: url("public/logo.png") no-repeat #171717;
background-size: cover;
border-radius: 16px;
width: 48px;
height: 48px;
cursor: pointer;
}
header .btn-header {
height: 32px;
border-bottom: 2px solid transparent;
user-select: none;
cursor: pointer;
font-weight: 700;
font-size: 16px;
line-height: 20px;
padding: 8px 16px;
display: flex;
align-items: center;
}
header .btn-header.active {
border-bottom: 2px solid;
}
header .btn-header:hover {
border-bottom: 2px solid;
}
header .paper {
min-width: 300px;
height: 32px;
}
header .header-right {
justify-self: end;
display: flex;
gap: 24px;
}
header input[type="text"]:active {
border: unset;
}
header button {
height: 48px;
display: flex;
align-items: center;
gap: 8px;
}
header .profile img {
width: 48px;
height: 48px;
}
@media (max-width: 1020px) {
header .header-right {
gap: 8px;
}
header .paper {
min-width: unset;
}
header .paper .search-input {
display: none;
}
header .new-stream-button-text {
display: none;
}
}
button span.hide-on-mobile {
display: none;
}
@media (min-width: 1020px) {
button span.hide-on-mobile {
display: block;
}
}
.zap-icon {
color: #ff8d2b;
}
.tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.fullscreen-exclusive {
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 999;
background: #0a0a0a;
}
.age-check {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 24px;
}
.age-check::after {
content: " ";
background: url("public/zap-stream.svg") no-repeat;
background-position: center;
background-size: contain;
position: absolute;
top: 20px;
left: 20px;
width: calc(100vw - 40px);
height: calc(100vh - 40px);
z-index: -1;
opacity: 0.02;
}
.age-check .btn {
padding: 12px 16px;
}
.profile-menu {
cursor: pointer;
}
.fi {
background-position: 50%;
background-repeat: no-repeat;
width: 30px;
height: 30px;
aspect-ratio: 1;
border-radius: 100%;
background-size: cover;
}
.fi:before {
content: "\00a0";
}
/* [DefaultLocale, "de-DE", "es-ES", "th-TH", "nl-NL", "ja-JP", "fa-IR", "sw-KE", "sv-SE"]; */
.fi-us {
background-image: url("flag-icons/flags/1x1/us.svg");
}
.fi-de {
background-image: url("flag-icons/flags/1x1/de.svg");
}
.fi-es {
background-image: url("flag-icons/flags/1x1/es.svg");
}
.fi-th {
background-image: url("flag-icons/flags/1x1/th.svg");
}
.fi-nl {
background-image: url("flag-icons/flags/1x1/nl.svg");
}
.fi-jp {
background-image: url("flag-icons/flags/1x1/jp.svg");
}
.fi-ir {
background-image: url("flag-icons/flags/1x1/ir.svg");
}
.fi-ke {
background-image: url("flag-icons/flags/1x1/ke.svg");
}
.fi-se {
background-image: url("flag-icons/flags/1x1/se.svg");
}
.fi-bg {
background-image: url("flag-icons/flags/1x1/bg.svg");
}
.fi-bd {
background-image: url("flag-icons/flags/1x1/bd.svg");
}
.fi-cn {
background-image: url("flag-icons/flags/1x1/cn.svg");
}
.fi-tw {
background-image: url("flag-icons/flags/1x1/tw.svg");
}
.fi-fi {
background-image: url("flag-icons/flags/1x1/fi.svg");
}
.fi-fr {
background-image: url("flag-icons/flags/1x1/fr.svg");
}
.fi-br {
background-image: url("flag-icons/flags/1x1/br.svg");
}
.fi-ru {
background-image: url("flag-icons/flags/1x1/ru.svg");
}