]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/include/_variables.scss
Translated using Weblate (Vietnamese)
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _variables.scss
CommitLineData
fa12eacc 1@use 'sass:math';
9b8a7aa8 2
8ff3f883
C
3$small-view: 800px;
4$mobile-view: 500px;
5
8a8e02a4 6$main-fonts: 'Source Sans Pro', sans-serif;
b33f657c
C
7$font-regular: 400;
8$font-semibold: 600;
9$font-bold: 700;
26171379 10$line-height-normal: 1.2;
b33f657c 11
457bb213
C
12$grey-background-color: #E5E5E5;
13$grey-background-hover-color: #EFEFEF;
14$grey-foreground-color: #585858;
15$grey-foreground-hover-color: #303030;
a6d5ff76 16$grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%);
457bb213 17
680b5496 18$main-color: hsl(24, 90%, 50%);
680b5496 19$main-color-lighter: lighten($main-color, 10%);
a6d5ff76 20$main-color-lightest: lighten($main-color, 40%);
b788e691 21
60c35932 22$main-hover-color: lighten($main-color, 5%);
b788e691 23$main-background-hover-color: #e9ecef;
60c35932 24
72aa835e 25$secondary-color: hsl(187, 77%, 34%);
aa0f1963 26
0240da5c
RK
27$support-button: inherit;
28$support-button-heart: #e83e8c;
2fcc2294 29
769ac6c1
RK
30$bg-color: #fff;
31$fg-color: #000;
41a676db
C
32
33$red: #FF0000;
34$green: #39CC0B;
383bfc83 35
22a16e36
C
36$grey-actor-name: #777272;
37
c30745f3 38$expanded-horizontal-margins: 150px;
0f7407d9 39$not-expanded-horizontal-margins: 30px;
c30745f3 40
b33f657c
C
41$button-height: 30px;
42
b33f657c 43$header-height: 50px;
383bfc83 44$header-border-color: #e9eff6;
26c6ee80
C
45$search-input-width: 375px;
46
9a0fc840 47$menu-background: #000;
26c6ee80 48$menu-color: #fff;
8afc19a6 49$menu-bottom-color: #C6C6C6;
26c6ee80 50$menu-width: 240px;
35c29307 51$menu-lateral-padding: 26px;
26c6ee80 52
218f730c 53$sub-menu-background-color: #F7F7F7;
ed5bb517 54$sub-menu-height: 81px;
9a0fc840 55
60c35932 56$channel-background-color: #f6ede8;
cdeddff1 57
02b2e482 58$banner-inverted-ratio: math.div(1, 6);
cdeddff1 59
900f7820 60$max-channels-width: 1200px;
60c35932 61
efbf0ed7
C
62$footer-height: 30px;
63$footer-margin: 30px;
64
931d3430 65$separator-border-color: rgba(0, 0, 0, 0.1);
f0a39880 66
435258ea 67$video-miniature-margin-bottom: 15px;
4429a4a6
C
68
69$video-miniature-row-name-font-size: 1.3em;
70$video-miniature-row-mobile-name-font-size: 14px;
71
72$video-miniature-row-info-font-size: 14px;
73$video-miniature-row-mobile-info-font-size: 12px;
74
0f7407d9
C
75$video-thumbnail-height: 153px;
76$video-thumbnail-width: 280px;
77$video-thumbnail-medium-height: 114px;
78$video-thumbnail-medium-width: 201px;
79$video-thumbnail-small-height: 71px;
80$video-thumbnail-small-width: 125px;
054a103b 81
432e7ddc 82$theater-bottom-space: 115px;
9a0fc840 83
3bf07dd8 84$input-foreground-color: $fg-color;
db6d617d 85$input-background-color: $bg-color;
9a0fc840
RK
86$input-placeholder-color: #898989;
87
3bf07dd8 88$textarea-foreground-color: $fg-color;
f33dc6ab
C
89$textarea-background-color: $bg-color;
90$markdown-textarea-background-color: $grey-background-hover-color;
b15fe00f 91
bce47964 92$sub-menu-margin-bottom: 30px;
4682468d 93$sub-menu-margin-bottom-small-view: 10px;
bce47964 94
931d3430 95$activated-action-button-color: #000;
0240da5c 96
6a4c30de
RK
97$focus-box-shadow-form: 0 0 0 .2rem;
98
b0c43e36
C
99$video-watch-player-factor: math.div(16, 9);
100$video-watch-info-margin-left: 44px;
101
d94b8ecf
C
102$primeng-breakpoint: 960px;
103
9a0fc840
RK
104/*** map theme ***/
105
106// pass variables into a sass map,
107// to be warned of non-existing variables
108$variables: (
109 --mainColor: var(--mainColor),
d3217560 110 --mainColorLighter: var(--mainColorLighter),
a6d5ff76 111 --mainColorLightest: var(--mainColorLightest),
17119e4a 112
9a0fc840 113 --mainHoverColor: var(--mainHoverColor),
b788e691 114 --mainBackgroundHoverColor: var(--mainBackgroundHoverColor),
17119e4a 115
9a0fc840
RK
116 --mainBackgroundColor: var(--mainBackgroundColor),
117 --mainForegroundColor: var(--mainForegroundColor),
17119e4a 118
aa0f1963 119 --secondaryColor: var(--secondaryColor),
2fcc2294 120
c123027f 121 --greyForegroundColor: var(--greyForegroundColor),
441e453a 122 --greyBackgroundColor: var(--greyBackgroundColor),
b788e691 123 --greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),
c123027f 124
1d9d9cfd
RK
125 --menuBackgroundColor: var(--menuBackgroundColor),
126 --menuForegroundColor: var(--menuForegroundColor),
60c35932 127
218f730c 128 --submenuBackgroundColor: var(--submenuBackgroundColor),
60c35932 129 --channelBackgroundColor: var(--channelBackgroundColor),
2fcc2294 130
3bf07dd8 131 --inputForegroundColor: var(--inputForegroundColor),
14aa8556 132 --inputBackgroundColor: var(--inputBackgroundColor),
5efab546 133 --inputPlaceholderColor: var(--inputPlaceholderColor),
2fcc2294 134
3bf07dd8 135 --textareaForegroundColor: var(--textareaForegroundColor),
b15fe00f 136 --textareaBackgroundColor: var(--textareaBackgroundColor),
f33dc6ab 137 --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
b15fe00f 138
0240da5c 139 --actionButtonColor: var(--actionButtonColor),
5f57df54
C
140 --activatedActionButtonColor: var(--activatedActionButtonColor),
141
2fcc2294
C
142 --supportButtonColor: var(--supportButtonColor),
143 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
0240da5c 144 --supportButtonHeartColor: var(--supportButtonHeartColor),
2fcc2294 145
5efab546 146 --embedForegroundColor: var(--embedForegroundColor),
d7941370
C
147 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor),
148
149 --horizontalMarginContent: var(--horizontalMarginContent),
0f7407d9 150 --videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
d7941370 151 --mainColWidth: var(--mainColWidth)
9a0fc840
RK
152);
153
d7941370 154// SASS type check our CSS variables
e66883b3 155@function pvar($variable) {
d7941370
C
156 @if map-has-key($variables, $variable) {
157 @return map-get($variables, $variable);
158 } @else {
931d3430 159 @error 'ERROR: Variable #{$variable} does not exist';
d7941370 160 }
9a0fc840 161}
36f2981f
RK
162
163/*** z-index groups ***/
164
165$zindex: (
d6eace77 166 miniature : 10,
d6eace77 167 sub-menu : 12500,
43599029 168 overlay : 12550,
d6eace77
C
169 menu : 12600,
170 search-typeahead: 12650,
d6eace77
C
171 popover : 13000,
172 tooltip : 14000,
173 loadbar : 15000,
8b57efbf 174 dropdown : 17000,
d6eace77 175 help-popover : 17000,
43599029 176 privacymsg : 17500,
09f7837d 177 header : 17500,
d6eace77 178 notification : 18000,
42d73f1c 179 modal : 19000,
d6eace77 180 hotkeys : 19000
36f2981f
RK
181);
182
183@function z($label) {
184 @return map-get($zindex, $label);
185}