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