]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/include/_variables.scss
Add external login tests
[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
11 $grey-background-color: #E5E5E5;
12 $grey-background-hover-color: #EFEFEF;
13 $grey-foreground-color: #585858;
14 $grey-foreground-hover-color: #303030;
15 $grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%);
16
17 // Palette
18 $main-color: hsl(24, 90%, 50%);
19 $main-hover-color: lighten($main-color, 5%);
20 $main-color-lighter: lighten($main-color, 10%);
21 $main-color-lightest: lighten($main-color, 40%);
22 $secondary-color: hsl(187, 77, 34);
23 //
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-color: #F7F7F7;
52
53 $footer-height: 30px;
54 $footer-margin: 30px;
55
56 $footer-border-color: $header-border-color;
57
58 $separator-border-color: rgba(0, 0, 0, 0.10);
59
60 $video-miniature-width: 238px;
61 $video-miniature-margin-bottom: 30px;
62 $video-thumbnail-height: 122px;
63 $video-thumbnail-width: 223px;
64 $video-thumbnail-ratio: $video-thumbnail-width / $video-thumbnail-height;
65
66 $theater-bottom-space: 115px;
67
68 $input-background-color: $bg-color;
69 $input-placeholder-color: #898989;
70
71 $textarea-background-color: $grey-background-hover-color;
72
73 $sub-menu-margin-bottom: 30px;
74 $sub-menu-margin-bottom-small-view: 10px;
75
76 $activated-action-button-color: black;
77
78 $focus-box-shadow-form: 0 0 0 .2rem;
79
80 /*** map theme ***/
81
82 // pass variables into a sass map,
83 // to be warned of non-existing variables
84 $variables: (
85 --mainColor: var(--mainColor),
86 --mainColorLighter: var(--mainColorLighter),
87 --mainColorLightest: var(--mainColorLightest),
88 --mainHoverColor: var(--mainHoverColor),
89 --mainBackgroundColor: var(--mainBackgroundColor),
90 --mainForegroundColor: var(--mainForegroundColor),
91 --secondaryColor: var(--secondaryColor),
92
93 --menuBackgroundColor: var(--menuBackgroundColor),
94 --menuForegroundColor: var(--menuForegroundColor),
95 --submenuColor: var(--submenuColor),
96
97 --inputBackgroundColor: var(--inputBackgroundColor),
98 --inputPlaceholderColor: var(--inputPlaceholderColor),
99
100 --textareaBackgroundColor: var(--textareaBackgroundColor),
101
102 --actionButtonColor: var(--actionButtonColor),
103 --supportButtonColor: var(--supportButtonColor),
104 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
105 --supportButtonHeartColor: var(--supportButtonHeartColor),
106
107 --embedForegroundColor: var(--embedForegroundColor),
108 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor)
109 );
110
111 @function var($variable) {
112 @return map-get($variables, $variable);
113 }
114
115 /*** z-index groups ***/
116
117 $zindex: (
118 miniature : 10,
119 privacymsg : 20,
120 typeahead : 30,
121 header : 1000,
122 menu : 11000,
123 dropdown : 12000,
124 popover : 13000,
125 tooltip : 14000,
126 loadbar : 15000,
127 modal : 16000,
128 help-popover : 17000,
129 notification : 18000,
130 hotkeys : 19000
131 );
132
133 @function z($label) {
134 @return map-get($zindex, $label);
135 }