]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/include/_variables.scss
6102e32f1cfdbc471da9a1c598d2f95363069182
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _variables.scss
1 @use 'sass:math';
2 @use '~bootstrap/scss/functions' as *;
3
4 $small-view: 800px;
5 $mobile-view: 500px;
6
7 $main-fonts: 'Source Sans Pro', sans-serif;
8 $font-regular: 400;
9 $font-semibold: 600;
10 $font-bold: 700;
11 $line-height-normal: 1.2;
12
13 $grey-background-color: #E5E5E5;
14 $grey-background-hover-color: #EFEFEF;
15 $grey-foreground-color: #585858;
16 $grey-foreground-hover-color: #303030;
17 $grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%);
18
19 $main-color: hsl(24, 90%, 50%);
20 $main-color-lighter: lighten($main-color, 10%);
21 $main-color-lightest: lighten($main-color, 40%);
22
23 $main-hover-color: lighten($main-color, 5%);
24 $main-background-hover-color: #e9ecef;
25
26 $support-button: inherit;
27 $support-button-heart: #e83e8c;
28
29 $bg-color: #fff;
30 $fg-color: #000;
31
32 $red: #FF0000;
33 $green: #39CC0B;
34
35 $grey-actor-name: #777272;
36
37 $expanded-horizontal-margins: 150px;
38 $not-expanded-horizontal-margins: 30px;
39
40 $button-height: 30px;
41
42 $header-height: 50px;
43 $header-border-color: #e9eff6;
44 $search-input-width: 375px;
45
46 $menu-background: #000;
47 $menu-color: #fff;
48 $menu-bottom-color: #C6C6C6;
49 $menu-width: 240px;
50 $menu-lateral-padding: 26px;
51
52 $sub-menu-background-color: #F7F7F7;
53 $sub-menu-height: 81px;
54
55 $channel-background-color: #f6ede8;
56
57 $banner-inverted-ratio: math.div(1, 6);
58
59 $max-channels-width: 1200px;
60
61 $footer-height: 30px;
62 $footer-margin: 30px;
63
64 $separator-border-color: rgba(0, 0, 0, 0.1);
65
66 $video-miniature-margin-bottom: 15px;
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
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;
80
81 $theater-bottom-space: 115px;
82
83 $input-foreground-color: $fg-color;
84 $input-background-color: $bg-color;
85 $input-placeholder-color: #898989;
86 $input-border-color: #C6C6C6;
87
88 $textarea-foreground-color: $fg-color;
89 $textarea-background-color: $bg-color;
90 $markdown-textarea-background-color: $grey-background-hover-color;
91
92 $sub-menu-margin-bottom: 30px;
93 $sub-menu-margin-bottom-small-view: 10px;
94
95 $activated-action-button-color: #000;
96
97 $focus-box-shadow-form: 0 0 0 .2rem;
98
99 $video-watch-player-factor: math.div(16, 9);
100 $video-watch-info-margin-left: 44px;
101
102 $primeng-breakpoint: 960px;
103
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),
110 --mainColorLighter: var(--mainColorLighter),
111 --mainColorLightest: var(--mainColorLightest),
112
113 --mainHoverColor: var(--mainHoverColor),
114 --mainBackgroundHoverColor: var(--mainBackgroundHoverColor),
115
116 --mainBackgroundColor: var(--mainBackgroundColor),
117 --mainForegroundColor: var(--mainForegroundColor),
118
119 --greyForegroundColor: var(--greyForegroundColor),
120 --greyBackgroundColor: var(--greyBackgroundColor),
121 --greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),
122
123 --menuBackgroundColor: var(--menuBackgroundColor),
124 --menuForegroundColor: var(--menuForegroundColor),
125
126 --submenuBackgroundColor: var(--submenuBackgroundColor),
127 --channelBackgroundColor: var(--channelBackgroundColor),
128
129 --inputForegroundColor: var(--inputForegroundColor),
130 --inputBackgroundColor: var(--inputBackgroundColor),
131 --inputPlaceholderColor: var(--inputPlaceholderColor),
132
133 --textareaForegroundColor: var(--textareaForegroundColor),
134 --textareaBackgroundColor: var(--textareaBackgroundColor),
135 --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
136
137 --actionButtonColor: var(--actionButtonColor),
138 --activatedActionButtonColor: var(--activatedActionButtonColor),
139
140 --supportButtonColor: var(--supportButtonColor),
141 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
142 --supportButtonHeartColor: var(--supportButtonHeartColor),
143
144 --embedForegroundColor: var(--embedForegroundColor),
145 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor),
146
147 --horizontalMarginContent: var(--horizontalMarginContent),
148 --videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
149 --mainColWidth: var(--mainColWidth)
150 );
151
152 // SASS type check our CSS variables
153 @function pvar($variable) {
154 @if map-has-key($variables, $variable) {
155 @return map-get($variables, $variable);
156 } @else {
157 @error 'ERROR: Variable #{$variable} does not exist';
158 }
159 }
160
161 /*** z-index groups ***/
162
163 $zindex: (
164 miniature : 10,
165 sub-menu : 12500,
166 overlay : 12550,
167 menu : 12600,
168 search-typeahead: 12650,
169 popover : 13000,
170 tooltip : 14000,
171 loadbar : 15000,
172 dropdown : 17000,
173 help-popover : 17000,
174 privacymsg : 17500,
175 header : 17500,
176 modal : 19000,
177 hotkeys : 19000,
178 notification : 20000
179 );
180
181 @function z($label) {
182 @return map-get($zindex, $label);
183 }