2021-12-21 02:27:25 +01:00
|
|
|
@import 'breakpoints';
|
2017-08-13 07:37:33 +02:00
|
|
|
|
2017-08-18 07:37:35 +02:00
|
|
|
:root {
|
2022-02-11 19:50:55 +01:00
|
|
|
--border-radius: 6px;
|
|
|
|
--border-radius-thumbnail: 6px;
|
2020-07-24 19:17:43 +02:00
|
|
|
--height-input: 2.5rem;
|
2022-02-11 19:50:55 +01:00
|
|
|
--height-input-slim: 1.8rem;
|
2020-07-24 19:17:43 +02:00
|
|
|
--height-button: 2.5rem;
|
2021-12-21 14:47:24 +01:00
|
|
|
--height-button-mobile: 2rem;
|
2020-07-24 19:17:43 +02:00
|
|
|
--height-checkbox: 24px;
|
|
|
|
--height-radio: 24px;
|
|
|
|
--height-badge: 24px;
|
|
|
|
|
|
|
|
// Spacing
|
2022-02-11 19:50:55 +01:00
|
|
|
--spacing-xxxs: calc(2rem / 6);
|
2020-07-24 19:17:43 +02:00
|
|
|
--spacing-xxs: calc(2rem / 5);
|
|
|
|
--spacing-xs: calc(2rem / 4);
|
|
|
|
--spacing-s: calc(2rem / 3);
|
|
|
|
--spacing-m: calc(2rem / 2);
|
|
|
|
--spacing-l: 2rem;
|
|
|
|
--spacing-xl: 3rem;
|
2021-10-29 16:53:46 +02:00
|
|
|
--spacing-xxl: 4rem;
|
2021-12-21 02:27:25 +01:00
|
|
|
--spacing-vertical: 2rem;
|
|
|
|
--spacing-width: 36px;
|
2020-07-24 19:17:43 +02:00
|
|
|
|
|
|
|
// Aspect ratio
|
|
|
|
--aspect-ratio-bluray: 41.6666666667%; // 12:5
|
|
|
|
--aspect-ratio-panavision: 36.3636363636%; // 11:4
|
|
|
|
--aspect-ratio-sd: 75%; // 4:3
|
|
|
|
--aspect-ratio-standard: 56.25%; // 16:9
|
|
|
|
|
|
|
|
// Type
|
|
|
|
--font-mono: 'Fira Code';
|
|
|
|
--font-sans: Inter;
|
|
|
|
--font-serif: Georgia;
|
|
|
|
--font-weight-base: 400;
|
|
|
|
--font-weight-light: 300;
|
|
|
|
--font-weight-bold: 700;
|
|
|
|
--font-base: 14px;
|
|
|
|
--font-body: 1rem;
|
2022-02-11 19:50:55 +01:00
|
|
|
--font-xxxsmall: 0.5rem;
|
2020-10-20 19:10:02 +02:00
|
|
|
--font-xxsmall: 0.65rem;
|
2022-02-11 19:50:55 +01:00
|
|
|
--font-xsmall: 0.7777rem;
|
|
|
|
--font-small: 0.8333rem;
|
2020-07-24 19:17:43 +02:00
|
|
|
--font-large: 1.3rem;
|
|
|
|
--font-title: 1.71rem;
|
|
|
|
--font-heading: 2.94rem;
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Width & spacing
|
2020-08-10 22:47:39 +02:00
|
|
|
--page-max-width: 1280px;
|
|
|
|
--page-max-width--filepage: 1700px;
|
2020-11-06 22:25:47 +01:00
|
|
|
--mac-titlebar-height: 24px;
|
2019-06-11 20:10:58 +02:00
|
|
|
--mobile: 600px;
|
2020-08-21 04:05:12 +02:00
|
|
|
--side-nav-width: 230px;
|
2022-02-11 19:50:55 +01:00
|
|
|
--side-nav-width--micro: 93px;
|
2022-03-18 15:25:14 +01:00
|
|
|
--recommended-content-width: 32rem;
|
2020-06-01 19:03:19 +02:00
|
|
|
|
|
|
|
--spacing-main-padding: var(--spacing-xl);
|
2019-08-13 07:35:13 +02:00
|
|
|
--floating-viewer-width: 32rem;
|
|
|
|
--floating-viewer-height: 18rem; // 32 * 9/16
|
2022-02-11 19:50:55 +01:00
|
|
|
--floating-viewer-info-height: 4rem;
|
2019-08-13 07:35:13 +02:00
|
|
|
--floating-viewer-container-height: calc(var(--floating-viewer-height) + var(--floating-viewer-info-height));
|
2020-02-10 20:43:24 +01:00
|
|
|
--option-select-width: 8rem;
|
2019-05-07 04:35:04 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Text
|
2017-08-18 07:37:35 +02:00
|
|
|
--text-max-width: 660px;
|
|
|
|
--text-link-padding: 4px;
|
2017-08-19 06:33:01 +02:00
|
|
|
|
2019-05-07 04:35:04 +02:00
|
|
|
// Tabs
|
|
|
|
--tab-indicator-size: 0.5rem;
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Header
|
2020-10-20 19:10:02 +02:00
|
|
|
// This is tied to the floating player so it knows where to attach to
|
|
|
|
// ui/component/fileRenderFloating/view.jsx
|
2022-02-11 19:50:55 +01:00
|
|
|
--header-height: 60px;
|
2021-12-21 14:47:24 +01:00
|
|
|
--header-height-mobile: 56px;
|
2018-04-17 04:21:19 +02:00
|
|
|
|
2019-11-14 18:23:42 +01:00
|
|
|
// Inline Player
|
2022-02-11 19:50:55 +01:00
|
|
|
// --inline-player-max-height: calc(100vh - var(--header-height) - var(--spacing-l) * 2);
|
2021-12-15 21:04:18 +01:00
|
|
|
--inline-player-max-height: calc(100vh - var(--header-height) - var(--spacing-l) * 4);
|
2022-02-01 21:30:57 +01:00
|
|
|
--mobile-player-max-height: 50vh;
|
2019-11-14 18:23:42 +01:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Card
|
2019-11-22 22:13:00 +01:00
|
|
|
--card-radius: var(--border-radius);
|
2018-06-18 18:30:24 +02:00
|
|
|
--card-max-width: 1000px;
|
2020-03-18 18:33:17 +01:00
|
|
|
--card-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Modal
|
2020-02-06 19:49:05 +01:00
|
|
|
--modal-width: 550px;
|
2017-09-21 18:48:29 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Animation :)
|
2019-05-07 04:35:04 +02:00
|
|
|
--animation-duration: 0.2s;
|
|
|
|
--animation-style: ease-in-out;
|
2018-07-18 17:55:17 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Image
|
2018-07-18 17:55:17 +02:00
|
|
|
--thumbnail-preview-height: 100px;
|
|
|
|
--thumbnail-preview-width: 177px;
|
2020-04-21 15:56:03 +02:00
|
|
|
--cover-photo-height: 210px;
|
2019-06-11 20:10:58 +02:00
|
|
|
--channel-thumbnail-width: 10rem;
|
2019-07-21 23:31:22 +02:00
|
|
|
--channel-thumbnail-width--small: 4rem;
|
2022-02-11 19:50:55 +01:00
|
|
|
--file-list-thumbnail-width: 12rem;
|
2019-11-22 22:13:00 +01:00
|
|
|
|
|
|
|
--tag-height: 1.5rem;
|
2021-04-23 21:59:48 +02:00
|
|
|
|
|
|
|
--livestream-comments-width: 30rem;
|
2022-01-04 16:48:15 +01:00
|
|
|
--live-timestamp-opacity: 0;
|
2021-12-11 15:59:32 +01:00
|
|
|
|
|
|
|
// Animations
|
|
|
|
--resizing-animation-function: ease-in;
|
|
|
|
--resizing-animation-timing: 180ms;
|
2022-02-18 18:03:15 +01:00
|
|
|
|
|
|
|
//Scrollbars
|
|
|
|
--body-scrollbar-width: 12px;
|
|
|
|
--scrollbar-width: 6px;
|
|
|
|
--scrollbar-radius: 0.5rem;
|
2017-08-13 07:37:33 +02:00
|
|
|
}
|
2019-12-18 06:27:08 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
:root {
|
2020-08-21 21:44:54 +02:00
|
|
|
--font-body: 0.8rem;
|
2022-02-18 18:03:15 +01:00
|
|
|
--body-scrollbar-width: 0px;
|
2019-12-18 06:27:08 +01:00
|
|
|
}
|
|
|
|
}
|