]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/sass/include/_variables.scss
Move to sass @use
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _variables.scss
... / ...
CommitLineData
1@use 'sass:math';
2@use '_bootstrap-variables';
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$main-hover-color: lighten($main-color, 5%);
23
24$secondary-color: hsl(187, 77%, 34%);
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
87$textarea-foreground-color: $fg-color;
88$textarea-background-color: $bg-color;
89$markdown-textarea-background-color: $grey-background-hover-color;
90
91$sub-menu-margin-bottom: 30px;
92$sub-menu-margin-bottom-small-view: 10px;
93
94$activated-action-button-color: #000;
95
96$focus-box-shadow-form: 0 0 0 .2rem;
97
98/*** map theme ***/
99
100// pass variables into a sass map,
101// to be warned of non-existing variables
102$variables: (
103 --mainColor: var(--mainColor),
104 --mainColorLighter: var(--mainColorLighter),
105 --mainColorLightest: var(--mainColorLightest),
106
107 --mainHoverColor: var(--mainHoverColor),
108
109 --mainBackgroundColor: var(--mainBackgroundColor),
110 --mainForegroundColor: var(--mainForegroundColor),
111
112 --secondaryColor: var(--secondaryColor),
113
114 --greyForegroundColor: var(--greyForegroundColor),
115 --greyBackgroundColor: var(--greyBackgroundColor),
116
117 --menuBackgroundColor: var(--menuBackgroundColor),
118 --menuForegroundColor: var(--menuForegroundColor),
119
120 --submenuBackgroundColor: var(--submenuBackgroundColor),
121 --channelBackgroundColor: var(--channelBackgroundColor),
122
123 --inputForegroundColor: var(--inputForegroundColor),
124 --inputBackgroundColor: var(--inputBackgroundColor),
125 --inputPlaceholderColor: var(--inputPlaceholderColor),
126
127 --textareaForegroundColor: var(--textareaForegroundColor),
128 --textareaBackgroundColor: var(--textareaBackgroundColor),
129 --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
130
131 --actionButtonColor: var(--actionButtonColor),
132 --activatedActionButtonColor: var(--activatedActionButtonColor),
133
134 --supportButtonColor: var(--supportButtonColor),
135 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
136 --supportButtonHeartColor: var(--supportButtonHeartColor),
137
138 --embedForegroundColor: var(--embedForegroundColor),
139 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor),
140
141 --horizontalMarginContent: var(--horizontalMarginContent),
142 --videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
143 --mainColWidth: var(--mainColWidth)
144);
145
146// SASS type check our CSS variables
147@function pvar($variable) {
148 @if map-has-key($variables, $variable) {
149 @return map-get($variables, $variable);
150 } @else {
151 @error 'ERROR: Variable #{$variable} does not exist';
152 }
153}
154
155/*** z-index groups ***/
156
157$zindex: (
158 miniature : 10,
159 privacymsg : 20,
160 sub-menu : 12500,
161 menu : 12600,
162 search-typeahead: 12650,
163 header : 12700,
164 popover : 13000,
165 tooltip : 14000,
166 loadbar : 15000,
167 modal : 16000,
168 dropdown : 17000,
169 help-popover : 17000,
170 notification : 18000,
171 hotkeys : 19000
172);
173
174@function z($label) {
175 @return map-get($zindex, $label);
176}