]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/include/_variables.scss
Translated using Weblate (Chinese (Simplified))
[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
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 --secondaryColor: var(--secondaryColor),
120
121 --greyForegroundColor: var(--greyForegroundColor),
122 --greyBackgroundColor: var(--greyBackgroundColor),
123 --greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),
124
125 --menuBackgroundColor: var(--menuBackgroundColor),
126 --menuForegroundColor: var(--menuForegroundColor),
127
128 --submenuBackgroundColor: var(--submenuBackgroundColor),
129 --channelBackgroundColor: var(--channelBackgroundColor),
130
131 --inputForegroundColor: var(--inputForegroundColor),
132 --inputBackgroundColor: var(--inputBackgroundColor),
133 --inputPlaceholderColor: var(--inputPlaceholderColor),
134
135 --textareaForegroundColor: var(--textareaForegroundColor),
136 --textareaBackgroundColor: var(--textareaBackgroundColor),
137 --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
138
139 --actionButtonColor: var(--actionButtonColor),
140 --activatedActionButtonColor: var(--activatedActionButtonColor),
141
142 --supportButtonColor: var(--supportButtonColor),
143 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
144 --supportButtonHeartColor: var(--supportButtonHeartColor),
145
146 --embedForegroundColor: var(--embedForegroundColor),
147 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor),
148
149 --horizontalMarginContent: var(--horizontalMarginContent),
150 --videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
151 --mainColWidth: var(--mainColWidth)
152 );
153
154 // SASS type check our CSS variables
155 @function pvar($variable) {
156 @if map-has-key($variables, $variable) {
157 @return map-get($variables, $variable);
158 } @else {
159 @error 'ERROR: Variable #{$variable} does not exist';
160 }
161 }
162
163 /*** z-index groups ***/
164
165 $zindex: (
166 miniature : 10,
167 sub-menu : 12500,
168 overlay : 12550,
169 menu : 12600,
170 search-typeahead: 12650,
171 popover : 13000,
172 tooltip : 14000,
173 loadbar : 15000,
174 dropdown : 17000,
175 help-popover : 17000,
176 privacymsg : 17500,
177 header : 17500,
178 notification : 18000,
179 modal : 19000,
180 hotkeys : 19000
181 );
182
183 @function z($label) {
184 @return map-get($zindex, $label);
185 }