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