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