]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/include/_variables.scss
Improve admin tables responsive
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _variables.scss
CommitLineData
fa12eacc 1@use 'sass:math';
9b8a7aa8 2
8ff3f883
C
3$small-view: 800px;
4$mobile-view: 500px;
5
8a8e02a4 6$main-fonts: 'Source Sans Pro', sans-serif;
b33f657c
C
7$font-regular: 400;
8$font-semibold: 600;
9$font-bold: 700;
26171379 10$line-height-normal: 1.2;
b33f657c 11
457bb213
C
12$grey-background-color: #E5E5E5;
13$grey-background-hover-color: #EFEFEF;
14$grey-foreground-color: #585858;
15$grey-foreground-hover-color: #303030;
a6d5ff76 16$grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%);
457bb213 17
680b5496 18$main-color: hsl(24, 90%, 50%);
680b5496 19$main-color-lighter: lighten($main-color, 10%);
a6d5ff76 20$main-color-lightest: lighten($main-color, 40%);
60c35932
C
21$main-hover-color: lighten($main-color, 5%);
22
72aa835e 23$secondary-color: hsl(187, 77%, 34%);
aa0f1963 24
0240da5c
RK
25$support-button: inherit;
26$support-button-heart: #e83e8c;
2fcc2294 27
769ac6c1
RK
28$bg-color: #fff;
29$fg-color: #000;
41a676db
C
30
31$red: #FF0000;
32$green: #39CC0B;
383bfc83 33
22a16e36
C
34$grey-actor-name: #777272;
35
c30745f3 36$expanded-horizontal-margins: 150px;
0f7407d9 37$not-expanded-horizontal-margins: 30px;
c30745f3 38
b33f657c
C
39$button-height: 30px;
40
b33f657c 41$header-height: 50px;
383bfc83 42$header-border-color: #e9eff6;
26c6ee80
C
43$search-input-width: 375px;
44
9a0fc840 45$menu-background: #000;
26c6ee80 46$menu-color: #fff;
8afc19a6 47$menu-bottom-color: #C6C6C6;
26c6ee80 48$menu-width: 240px;
35c29307 49$menu-lateral-padding: 26px;
26c6ee80 50
218f730c 51$sub-menu-background-color: #F7F7F7;
ed5bb517 52$sub-menu-height: 81px;
9a0fc840 53
60c35932 54$channel-background-color: #f6ede8;
cdeddff1 55
8cbc40b2
C
56// FIXME: cannot use math.div here because of compilation error
57$banner-inverted-ratio: 0.1666666666;
cdeddff1 58
900f7820 59$max-channels-width: 1200px;
60c35932 60
efbf0ed7
C
61$footer-height: 30px;
62$footer-margin: 30px;
63
931d3430 64$separator-border-color: rgba(0, 0, 0, 0.1);
f0a39880 65
435258ea 66$video-miniature-margin-bottom: 15px;
4429a4a6
C
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
0f7407d9
C
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;
054a103b 80
432e7ddc 81$theater-bottom-space: 115px;
9a0fc840 82
3bf07dd8 83$input-foreground-color: $fg-color;
db6d617d 84$input-background-color: $bg-color;
9a0fc840
RK
85$input-placeholder-color: #898989;
86
3bf07dd8 87$textarea-foreground-color: $fg-color;
f33dc6ab
C
88$textarea-background-color: $bg-color;
89$markdown-textarea-background-color: $grey-background-hover-color;
b15fe00f 90
bce47964 91$sub-menu-margin-bottom: 30px;
4682468d 92$sub-menu-margin-bottom-small-view: 10px;
bce47964 93
931d3430 94$activated-action-button-color: #000;
0240da5c 95
6a4c30de
RK
96$focus-box-shadow-form: 0 0 0 .2rem;
97
b0c43e36
C
98$video-watch-player-factor: math.div(16, 9);
99$video-watch-info-margin-left: 44px;
100
d94b8ecf
C
101$primeng-breakpoint: 960px;
102
9a0fc840
RK
103/*** map theme ***/
104
105// pass variables into a sass map,
106// to be warned of non-existing variables
107$variables: (
108 --mainColor: var(--mainColor),
d3217560 109 --mainColorLighter: var(--mainColorLighter),
a6d5ff76 110 --mainColorLightest: var(--mainColorLightest),
17119e4a 111
9a0fc840 112 --mainHoverColor: var(--mainHoverColor),
17119e4a 113
9a0fc840
RK
114 --mainBackgroundColor: var(--mainBackgroundColor),
115 --mainForegroundColor: var(--mainForegroundColor),
17119e4a 116
aa0f1963 117 --secondaryColor: var(--secondaryColor),
2fcc2294 118
c123027f 119 --greyForegroundColor: var(--greyForegroundColor),
441e453a 120 --greyBackgroundColor: var(--greyBackgroundColor),
c123027f 121
1d9d9cfd
RK
122 --menuBackgroundColor: var(--menuBackgroundColor),
123 --menuForegroundColor: var(--menuForegroundColor),
60c35932 124
218f730c 125 --submenuBackgroundColor: var(--submenuBackgroundColor),
60c35932 126 --channelBackgroundColor: var(--channelBackgroundColor),
2fcc2294 127
3bf07dd8 128 --inputForegroundColor: var(--inputForegroundColor),
14aa8556 129 --inputBackgroundColor: var(--inputBackgroundColor),
5efab546 130 --inputPlaceholderColor: var(--inputPlaceholderColor),
2fcc2294 131
3bf07dd8 132 --textareaForegroundColor: var(--textareaForegroundColor),
b15fe00f 133 --textareaBackgroundColor: var(--textareaBackgroundColor),
f33dc6ab 134 --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
b15fe00f 135
0240da5c 136 --actionButtonColor: var(--actionButtonColor),
5f57df54
C
137 --activatedActionButtonColor: var(--activatedActionButtonColor),
138
2fcc2294
C
139 --supportButtonColor: var(--supportButtonColor),
140 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
0240da5c 141 --supportButtonHeartColor: var(--supportButtonHeartColor),
2fcc2294 142
5efab546 143 --embedForegroundColor: var(--embedForegroundColor),
d7941370
C
144 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor),
145
146 --horizontalMarginContent: var(--horizontalMarginContent),
0f7407d9 147 --videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
d7941370 148 --mainColWidth: var(--mainColWidth)
9a0fc840
RK
149);
150
d7941370 151// SASS type check our CSS variables
e66883b3 152@function pvar($variable) {
d7941370
C
153 @if map-has-key($variables, $variable) {
154 @return map-get($variables, $variable);
155 } @else {
931d3430 156 @error 'ERROR: Variable #{$variable} does not exist';
d7941370 157 }
9a0fc840 158}
36f2981f
RK
159
160/*** z-index groups ***/
161
162$zindex: (
d6eace77 163 miniature : 10,
d6eace77 164 sub-menu : 12500,
43599029 165 overlay : 12550,
d6eace77
C
166 menu : 12600,
167 search-typeahead: 12650,
d6eace77
C
168 popover : 13000,
169 tooltip : 14000,
170 loadbar : 15000,
171 modal : 16000,
8b57efbf 172 dropdown : 17000,
d6eace77 173 help-popover : 17000,
43599029 174 privacymsg : 17500,
09f7837d 175 header : 17500,
d6eace77
C
176 notification : 18000,
177 hotkeys : 19000
36f2981f
RK
178);
179
180@function z($label) {
181 @return map-get($zindex, $label);
182}