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