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