]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/application.scss
Responsive my account
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
1 $FontPathSourceSansPro: "../fonts/source-sans-pro";
2 @import '~source-sans-pro/source-sans-pro';
3 @import '~primeng/resources/themes/bootstrap/theme.css';
4 @import '~primeng/resources/primeng.css';
5 @import '~video.js/dist/video-js.css';
6 @import './video-js-custom.scss';
7
8 [hidden] {
9 display: none !important;
10 }
11
12 body {
13 font-family: 'Source Sans Pro';
14 font-weight: $font-regular;
15 color: #000;
16 }
17
18 input.readonly {
19 /* Force blank on readonly inputs */
20 background-color: #fff !important;
21 }
22
23 label {
24 font-weight: $font-bold;
25 font-size: 15px;
26 }
27
28 .form-error {
29 display: block;
30 color: $red-error;
31 margin-top: 5px;
32 }
33
34 .input-error {
35 border-color: $red-error !important;
36 }
37
38 .glyphicon-black {
39 color: black;
40 }
41
42 .main-col {
43 margin-left: $menu-width;
44
45 .margin-content {
46 margin-left: $not-expanded-horizontal-margins;
47 margin-right: $not-expanded-horizontal-margins;
48 }
49
50 .sub-menu {
51 background-color: #F7F7F7;
52 width: 100%;
53 height: 81px;
54 margin-bottom: 30px;
55 display: flex;
56 align-items: center;
57 padding-left: $not-expanded-horizontal-margins;
58 }
59
60 // Override some properties if the main content is expanded (no menu on the left)
61 &.expanded {
62 margin-left: 0;
63
64 .margin-content {
65 margin-left: $expanded-horizontal-margins;
66 margin-right: $expanded-horizontal-margins;
67 }
68
69 .sub-menu {
70 padding-left: $expanded-horizontal-margins;
71 }
72 }
73 }
74
75 .title-page {
76 color: #000;
77 font-size: 16px;
78 display: inline-block;
79 margin-right: 55px;
80 font-weight: $font-semibold;
81 @include disable-default-a-behaviour;
82
83 &.active, &.title-page-single {
84 border-bottom: 2px solid $orange-color;
85 font-weight: $font-bold;
86 margin-top: 30px;
87 margin-bottom: 25px;
88 }
89
90 &:hover, &:active, &:focus {
91 color: #000;
92 }
93 }
94
95 .admin-sub-header {
96 display: flex;
97 align-items: center;
98 margin-bottom: 30px;
99
100 .admin-sub-title {
101 flex-grow: 1;
102 }
103 }
104
105 .admin-sub-title {
106 font-size: 20px;
107 font-weight: bold;
108 }
109
110 // On small screen, menu is absolute
111 @media screen and (max-width: 800px) {
112 .title-menu-left {
113 width: 150px !important;
114 position: absolute !important;
115 z-index: 10000;
116 }
117
118 .main-col {
119 margin-left: 0;
120
121 &, &.expanded {
122 .margin-content {
123 margin-left: 10px;
124 margin-right: 10px;
125 }
126
127 .sub-menu {
128 padding-left: 10px;
129 margin-bottom: 10px;
130 }
131
132 input[type=text], input[type=password] {
133 width: 100% !important;
134 }
135 }
136 }
137 }
138
139 // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
140 .glyphicon-refresh-animate {
141 -animation: spin .7s infinite linear;
142 -ms-animation: spin .7s infinite linear;
143 -webkit-animation: spinw .7s infinite linear;
144 -moz-animation: spinm .7s infinite linear;
145 }
146
147 @keyframes spin {
148 from { transform: scale(1) rotate(0deg);}
149 to { transform: scale(1) rotate(360deg);}
150 }
151
152 @-webkit-keyframes spinw {
153 from { -webkit-transform: rotate(0deg);}
154 to { -webkit-transform: rotate(360deg);}
155 }
156
157 @-moz-keyframes spinm {
158 from { -moz-transform: rotate(0deg);}
159 to { -moz-transform: rotate(360deg);}
160 }
161
162 // ngprime data table customizations
163 p-datatable {
164 font-size: 15px !important;
165
166 .ui-datatable-scrollable-header {
167 background-color: #fff !important;
168 }
169
170 .ui-widget-content {
171 border: none !important;
172 }
173
174 .ui-datatable-virtual-table {
175 border-top: none !important;
176 }
177
178 td {
179 border: 1px solid #E5E5E5 !important;
180 padding-left: 15px !important;
181 }
182
183 tr {
184 background-color: #fff !important;
185 height: 46px;
186
187 &:hover {
188 background-color: #f0f0f0 !important;
189 }
190
191 &:not(:hover) {
192 .action-cell * {
193 display: none !important;
194 }
195 }
196
197 &:first-child td {
198 border-top: none !important;
199 }
200
201 &:last-child td {
202 border-bottom: none !important;
203 }
204 }
205
206 th {
207 border: none !important;
208 border-bottom: 1px solid #f0f0f0 !important;
209 text-align: left !important;
210 padding: 5px 0 5px 15px !important;
211 font-weight: $font-semibold !important;
212 color: #000 !important;
213
214 &.ui-state-active, &.ui-sortable-column:hover {
215 background-color: #f0f0f0 !important;
216 border: 1px solid #f0f0f0 !important;
217 border-width: 0 1px !important;
218 }
219 }
220
221 .action-cell {
222 width: 250px !important;
223 padding: 0 !important;
224 text-align: center;
225 }
226
227 p-paginator {
228 .ui-paginator-bottom {
229 position: relative;
230 border: none !important;
231 border: 1px solid #f0f0f0 !important;
232 height: 40px;
233 display: flex;
234 justify-content: center;
235 align-items: center;
236
237 a {
238 color: #000 !important;
239 font-weight: $font-semibold !important;
240 margin-right: 20px !important;
241 outline: 0 !important;
242 border-radius: 3px !important;
243 padding: 5px 2px !important;
244
245 &.ui-state-active {
246 &, &:hover, &:active, &:focus {
247 color: #fff !important;
248 background-color: $orange-color !important;
249 }
250 }
251 }
252 }
253 }
254 }
255
256 // Bootstrap customizations
257 .dropdown-menu {
258 border-radius: 3px;
259 box-shadow: 0 3px 6px;
260 font-size: 15px;
261
262 .dropdown-item {
263 padding: 3px 15px;
264 }
265
266 a {
267 color: #000 !important;
268 }
269 }
270
271 .modal {
272 .modal-header {
273 border-bottom: none;
274
275 .title-page-single {
276 margin: 0;
277 }
278 }
279 }
280
281 .nav {
282 font-size: 16px !important;
283 border: none !important;
284
285 .nav-item .nav-link {
286 margin-right: 30px;
287 padding: 0;
288 border-radius: 3px;
289 border: none !important;
290
291 .tab-link {
292 display: flex !important;
293 align-items: center;
294 height: 30px !important;
295 padding: 0 15px;
296 }
297
298 &, & a {
299 color: #000 !important;
300 @include disable-default-a-behaviour;
301 }
302
303 &.active, &:hover {
304 background-color: #F0F0F0;
305 }
306
307 &.active {
308 font-weight: $font-semibold !important;
309 }
310 }
311 }
312
313
314 .orange-button {
315 @include peertube-button;
316 @include orange-button;
317 }
318
319 .orange-button-link {
320 @include peertube-button-link;
321 @include orange-button;
322 }
323
324 .grey-button {
325 @include peertube-button;
326 @include grey-button;
327 }
328
329 .grey-button-link {
330 @include peertube-button-link;
331 @include grey-button;
332 }