]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Added pointer to the .env file
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
161b061d 1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
63c4db6d 2
dcbc29d5
C
3@import '_variables';
4@import '_mixins';
5
fa40cbc3 6@import '_fonts';
63c4db6d 7
d592e0a9 8@import '~video.js/dist/video-js.css';
c893d451 9
2a19a1e4 10$assets-path: '../assets/';
b335ccec 11@import './player/index';
c893d451 12@import './loading-bar';
e31f6ad6 13
2f4c784a 14@import './bootstrap';
bbe0f064
C
15@import './primeng-custom';
16
383bfc83
C
17[hidden] {
18 display: none !important;
19}
a64668c0 20
b33f657c 21body {
dcbc29d5
C
22 /*** theme ***/
23 // now beware node-sass requires interpolation
24 // for css custom properties #{$var}
25 --mainColor: #{$orange-color};
457bb213 26 --mainHoverColor: #{$orange-hover-color};
dcbc29d5
C
27 --mainBackgroundColor: #{$bg-color};
28 --mainForegroundColor: #{$fg-color};
2fcc2294 29
1d9d9cfd
RK
30 --menuBackgroundColor: #{$menu-background};
31 --menuForegroundColor: #{$menu-color};
dcbc29d5 32 --submenuColor: #{$sub-menu-color};
2fcc2294 33
db6d617d 34 --inputColor: #{$input-background-color};
dcbc29d5
C
35 --inputPlaceholderColor: #{$input-placeholder-color};
36
2fcc2294
C
37 --supportButtonBackgroundColor: #{$support-button};
38 --supportButtonColor: #{$white};
39
8a8e02a4 40 font-family: $main-fonts;
b33f657c 41 font-weight: $font-regular;
9a0fc840 42 color: var(--mainForegroundColor);
cdbfd2b0 43 background-color: var(--mainBackgroundColor);
b34a444e 44 font-size: 14px;
b33f657c
C
45}
46
73e09f27
C
47#incompatible-browser {
48 display: none;
49 text-align: center;
50 position: absolute;
51 width: 100%;
52 top: 45%;
53}
54
07fa4c97
C
55strong {
56 font-weight: $font-semibold;
57}
58
383bfc83
C
59input.readonly {
60 /* Force blank on readonly inputs */
20c3a59e 61 background-color: var(--inputColor) !important;
0ac5edd9 62}
63
63347a0f
C
64input, textarea {
65 outline: none;
20c3a59e 66 color: var(--mainForegroundColor);
63347a0f
C
67}
68
a7f9fae9
C
69.btn-outline-secondary {
70 border-color: $input-border-color;
71}
72
d235f6b0
C
73label {
74 font-weight: $font-bold;
75 font-size: 15px;
09223546
C
76}
77
a2b817d3
C
78.form-error {
79 display: block;
41a676db 80 color: $red;
a2b817d3
C
81 margin-top: 5px;
82}
83
84.input-error {
41a676db 85 border-color: $red !important;
a2b817d3
C
86}
87
2d9fea16
RK
88.fullWidth {
89 width: 100%;
90 margin-left: auto;
91 margin-right: auto;
92 max-width: initial;
93}
94
383bfc83
C
95.glyphicon-black {
96 color: black;
97}
98
383bfc83 99.main-col {
c30745f3 100 margin-left: $menu-width;
b34a444e 101 width: auto;
9bf9d2a5 102
c30745f3 103 .margin-content {
d178b5c1
C
104 margin-left: $not-expanded-horizontal-margins;
105 margin-right: $not-expanded-horizontal-margins;
b34a444e 106 flex-grow: 1;
c30745f3
C
107 }
108
109 .sub-menu {
9a0fc840 110 background-color: var(--submenuColor);
c30745f3
C
111 width: 100%;
112 height: 81px;
bce47964 113 margin-bottom: $sub-menu-margin-bottom;
c30745f3
C
114 display: flex;
115 align-items: center;
d178b5c1 116 padding-left: $not-expanded-horizontal-margins;
22a16e36 117 padding-right: $not-expanded-horizontal-margins;
c30745f3
C
118 }
119
120 // Override some properties if the main content is expanded (no menu on the left)
121 &.expanded {
122 margin-left: 0;
123
124 .margin-content {
125 margin-left: $expanded-horizontal-margins;
126 margin-right: $expanded-horizontal-margins;
127 }
128
129 .sub-menu {
130 padding-left: $expanded-horizontal-margins;
22a16e36 131 padding-right: $expanded-horizontal-margins;
c30745f3 132 }
602eb142 133 }
383bfc83 134}
602eb142 135
59aa1e5e 136.title-page {
9a0fc840 137 color: var(--mainForegroundColor);
59aa1e5e
C
138 font-size: 16px;
139 display: inline-block;
140 margin-right: 55px;
141 font-weight: $font-semibold;
142 @include disable-default-a-behaviour;
143
144 &.active, &.title-page-single {
9a0fc840 145 border-bottom: 2px solid var(--mainColor);
59aa1e5e
C
146 font-weight: $font-bold;
147 margin-top: 30px;
148 margin-bottom: 25px;
149 }
cadb46d8
C
150
151 &:hover, &:active, &:focus {
9a0fc840 152 color: var(--mainForegroundColor);
04e0fc48 153 }
1952a538
C
154
155 @media screen and (max-width: 500px) {
2c3abc4f 156 margin-right: 15px;
1952a538 157 }
cadb46d8 158}
04e0fc48 159
cd83ea1b
C
160.admin-sub-header {
161 display: flex;
162 align-items: center;
163 margin-bottom: 30px;
164
08c1efbe 165 .form-sub-title {
cd83ea1b
C
166 flex-grow: 1;
167 }
65b247dd
C
168
169 .admin-sub-nav a {
170 @include disable-default-a-behaviour;
171
172 font-size: 16px;
9a0fc840 173 color: var(--mainForegroundColor);
65b247dd
C
174 padding: 5px 15px;
175 border-radius: 0.25rem;
176
177 &.active {
178 font-weight: $font-semibold;
179 background-color: #f0f0f0;
9a0fc840 180 color: #000;
65b247dd
C
181 }
182 }
cd83ea1b
C
183}
184
08c1efbe 185.form-sub-title {
04e0fc48
C
186 font-size: 20px;
187 font-weight: bold;
59aa1e5e
C
188}
189
315cc0cc
C
190@keyframes spin {
191 from { transform: scale(1) rotate(0deg);}
192 to { transform: scale(1) rotate(360deg);}
193}
194
0727cab0
C
195.orange-button {
196 @include peertube-button;
197 @include orange-button;
198}
199
200.orange-button-link {
201 @include peertube-button-link;
202 @include orange-button;
203}
204
205.grey-button {
206 @include peertube-button;
207 @include grey-button;
208}
209
210.grey-button-link {
211 @include peertube-button-link;
212 @include grey-button;
213}
20206dfb 214
fb4fd623
C
215// In tables, don't have a hover different background
216table {
217 .action-button-edit, .action-button-delete {
218 &:hover, &:active, &:focus, &[disabled], &.disabled {
457bb213 219 background-color: $grey-background-color !important;
fb4fd623
C
220 }
221 }
222}
223
2d3741d6
C
224.no-results {
225 height: 40vh;
226 display: flex;
227 align-items: center;
228 justify-content: center;
229 font-size: 16px;
230 font-weight: $font-semibold;
231}
232
19f22055 233@media screen and (max-width: 1600px) {
2303a803
RK
234 .main-col {
235 &.expanded {
236 .margin-content {
237 margin-left: $expanded-horizontal-margins/2;
238 margin-right: $expanded-horizontal-margins/2;
239 }
240 }
241 }
242}
243
1f788f20
C
244@media screen and (max-width: 900px) {
245 .main-col {
2303a803 246 &.expanded {
1f788f20 247 .margin-content {
2303a803
RK
248 margin-left: $expanded-horizontal-margins/3;
249 margin-right: $expanded-horizontal-margins/3;
1f788f20 250 }
dd778941
C
251
252 .sub-menu {
253 padding-left: 50px;
22a16e36
C
254
255 .title-page {
256 font-size: 15px;
257 }
dd778941 258 }
1f788f20
C
259 }
260 }
261}
262
8ff3f883 263@media screen and (max-width: $small-view) {
20206dfb
C
264 .main-col {
265 margin-left: 0;
266
267 &, &.expanded {
268 .margin-content {
6693df9d
C
269 margin-left: 15px;
270 margin-right: 15px;
20206dfb
C
271 }
272
273 .sub-menu {
2c3abc4f
C
274 width: 100vw;
275 overflow-x: auto;
dd778941 276 padding-left: 15px;
22a16e36 277 padding-right: 15px;
20206dfb
C
278 margin-bottom: 10px;
279 }
280
281 input[type=text], input[type=password] {
282 width: 100% !important;
283 }
284 }
285 }
457bb213 286}