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