]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/include/_variables.scss
Put box-shadow for input focus in variables, apply form-control to p-multiselect
[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 $sub-menu-margin-bottom: 30px;
72
73 $activated-action-button-color: black;
74
75 $focus-box-shadow-form: 0 0 0 .2rem;
76
77 /*** map theme ***/
78
79 // pass variables into a sass map,
80 // to be warned of non-existing variables
81 $variables: (
82 --mainColor: var(--mainColor),
83 --mainColorLighter: var(--mainColorLighter),
84 --mainColorLightest: var(--mainColorLightest),
85 --mainHoverColor: var(--mainHoverColor),
86 --mainBackgroundColor: var(--mainBackgroundColor),
87 --mainForegroundColor: var(--mainForegroundColor),
88 --secondaryColor: var(--secondaryColor),
89
90 --menuBackgroundColor: var(--menuBackgroundColor),
91 --menuForegroundColor: var(--menuForegroundColor),
92 --submenuColor: var(--submenuColor),
93
94 --inputBackgroundColor: var(--inputBackgroundColor),
95 --inputPlaceholderColor: var(--inputPlaceholderColor),
96
97 --actionButtonColor: var(--actionButtonColor),
98 --supportButtonColor: var(--supportButtonColor),
99 --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
100 --supportButtonHeartColor: var(--supportButtonHeartColor),
101
102 --embedForegroundColor: var(--embedForegroundColor),
103 --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor)
104 );
105
106 @function var($variable) {
107 @return map-get($variables, $variable);
108 }
109
110 /*** z-index groups ***/
111
112 $zindex: (
113 miniature : 10,
114 privacymsg : 20,
115 typeahead : 30,
116 header : 1000,
117 menu : 11000,
118 dropdown : 12000,
119 popover : 13000,
120 tooltip : 14000,
121 loadbar : 15000,
122 modal : 16000,
123 help-popover : 17000,
124 notification : 18000,
125 hotkeys : 19000
126 );
127
128 @function z($label) {
129 @return map-get($zindex, $label);
130 }