source: resources/assets/sass/layouts.scss@ 7304c7f

develop
Last change on this file since 7304c7f was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago

added user authentication, create & forgot password methods and blades

  • Property mode set to 100644
File size: 21.2 KB
Line 
1@media (min-width: 1200px) {
2 body {
3
4 &.boxed-layout {
5 background-color: white;
6
7 .layout-wrapper {
8 background-color: #f8fafb;
9 box-shadow: 0 4px 25px 0 rgba(0, 0, 0, .1);
10 margin: 0 120px;
11
12 .header {
13 margin: 0 120px;
14 }
15
16 .navigation {
17 left: 120px
18 }
19 }
20
21 &.right-navigation {
22 .navigation {
23 left: auto;
24 right: 120px
25 }
26 }
27
28 &.horizontal-navigation {
29 .horizontal-navigation {
30 left: 120px;
31 right: 120px;
32 }
33 }
34 }
35
36 &.small-navigation:not(.hidden-navigation):not(.horizontal-navigation) {
37
38 .navigation {
39 width: $navigation-tab-width;
40 transition: width .3s;
41
42 .navigation-menu-tab {
43 border-right-color: transparent;
44 }
45
46 .navigation-menu-body {
47 display: none;
48
49 & > ul > li > a {
50 padding: 12px 0;
51 }
52
53 ul {
54
55 li {
56 position: relative;
57
58 &:hover > a {
59
60 .nav-link-icon {
61 stroke: $color-primary;
62 }
63 }
64
65 &.open > a {
66 border-radius: 4px;
67 }
68
69 a {
70 span:not(.badge):not(.avatar-title) {
71 display: none;
72 }
73
74 .badge {
75 position: absolute;
76 right: 20px;
77 top: 12px;
78 }
79
80 .nav-link-icon {
81 margin: 0 !important;
82 }
83 }
84
85 &.open {
86 & > a {
87 & + ul {
88 li.open > a {
89 background: none;
90 color: $color-primary
91 }
92 }
93 }
94
95 & > ul {
96 display: none;
97 }
98 }
99 }
100 }
101
102 & > ul {
103 & > li {
104 &:not(.navigation-divider) {
105 padding: 0 15px;
106 }
107
108 & > a {
109 display: block;
110
111 .sub-menu-arrow {
112 display: none;
113 }
114
115 & + ul {
116 li {
117 a {
118 padding-left: 53px;
119
120 & + ul {
121 li {
122 a {
123 padding-left: 65px;
124 }
125 }
126 }
127 }
128 }
129 }
130
131 &.active {
132 border-radius: 5px;
133 background-color: $color-primary;
134 position: static;
135
136 .nav-link-icon {
137 stroke: white;
138 }
139 }
140 }
141 }
142 }
143
144 }
145
146 &:hover {
147 width: $navigation-width;
148
149 .navigation-menu-tab {
150 border-right-color: $border-style-color;
151 }
152
153 .navigation-menu-body {
154 display: flex;
155 height: calc(100vh - #{$header-height});
156 }
157
158 ul {
159
160 li {
161 a {
162 display: flex;
163
164 & > span, .sub-menu-arrow {
165 display: inherit !important;
166 }
167
168 .nav-link-icon {
169 margin-right: .8rem !important;
170 }
171 }
172
173 &.open {
174 & > ul {
175 display: block;
176 }
177 }
178 }
179 }
180 }
181 }
182
183 .layout-wrapper .content-wrapper .content-body .content {
184 padding-left: $navigation-tab-width + 30px;
185 }
186
187 .content-footer {
188 margin-left: $navigation-tab-width;
189 }
190 }
191
192 &.hidden-navigation:not(.small-navigation) {
193
194 .header {
195 .navigation-toggler {
196 display: block;
197 }
198 }
199
200 .navigation {
201 z-index: 1000;
202 left: -80%;
203 top: 0;
204 bottom: 0;
205 opacity: 0;
206 transition: left .3s;
207 position: fixed !important;
208
209 &.open {
210 left: 0;
211 opacity: 1;
212 }
213 }
214
215 &.right-navigation {
216 .navigation {
217 left: auto;
218 right: -80%;
219 transition: right .3s;
220
221 &.open {
222 right: 0;
223 opacity: 1;
224 }
225 }
226 }
227
228 .layout-wrapper .content-wrapper .content-body .content {
229 padding-left: 30px;
230 }
231
232 .content-footer {
233 margin-left: 0;
234 }
235 }
236
237 &.right-navigation {
238 .navigation {
239 left: auto;
240 right: 0;
241 flex-direction: row-reverse;
242
243 .navigation-menu-tab {
244 border-right: none;
245 border-left: 1px solid $border-style-color;
246 }
247 }
248
249 .layout-wrapper .content-wrapper .content-body .content {
250 padding-left: 30px;
251 padding-right: $navigation-width + 30px;
252 }
253
254 .content-footer {
255 margin-left: 0;
256 margin-right: $navigation-width;
257 }
258
259 &.small-navigation {
260 .layout-wrapper .content-wrapper .content-body .content {
261 padding-left: 30px !important;
262 padding-right: $navigation-tab-width + 30px;
263 }
264
265 .content-footer {
266 margin-left: 0 !important;
267 margin-right: $navigation-tab-width;
268 }
269 }
270
271 &.hidden-navigation {
272 .layout-wrapper .content-wrapper .content-body .content {
273 padding-left: 30px !important;
274 padding-right: 30px;
275 }
276 }
277 }
278
279 &.horizontal-navigation {
280
281 .header {
282 box-shadow: none;
283 }
284
285 .horizontal-navigation {
286 border-top: 1px solid $border-style-color;
287 box-shadow: 0px 5px 10px -10px rgba(0, 0, 0, 0.40);
288 position: fixed;
289 top: $header-height;
290 background-color: white;
291 height: $header-height - 20px;
292 right: 0;
293 left: 0;
294 padding: 0 30px;
295 display: flex;
296 align-items: center;
297 z-index: 997;
298
299 & > ul {
300 height: 100%;
301
302 & > li {
303 display: flex;
304 align-items: center;
305 margin-right: .5rem;
306
307 & > a {
308 border-radius: 100px;
309 text-transform: uppercase;
310 letter-spacing: 1px;
311 font-size: 12px;
312 padding: 10px 15px !important;
313 display: flex;
314 align-items: center;
315
316 .sub-menu-arrow {
317 display: none;
318 }
319
320 .badge {
321 margin-left: .5rem;
322 }
323
324 & + ul {
325 border-top: 1px solid $border-style-color;
326 }
327 }
328
329 &:hover {
330 & > a {
331 color: $color-primary !important;
332 }
333 }
334 }
335 }
336
337 ul {
338 display: flex;
339
340 li {
341 position: relative;
342
343 a {
344 padding: 10px 25px;
345 display: flex;
346 justify-content: space-between;
347 align-items: center;
348
349 .nav-icon {
350 margin-right: .5rem;
351 }
352 }
353
354 &.open {
355 & > a {
356 color: $color-primary
357 }
358 }
359
360 &:hover {
361 & > ul {
362 display: block;
363 }
364 }
365
366 ul {
367 display: none;
368 position: absolute;
369 top: $header-height - 20px - 1px;
370 width: 220px;
371 background-color: white;
372 padding: 10px 0;
373 border-bottom-left-radius: .25rem;
374 border-bottom-right-radius: .25rem;
375 box-shadow: 0px 5px 9px -5px rgba(0, 0, 0, 0.30);
376
377 li {
378 position: relative;
379
380 &:hover > a {
381 color: $color-primary
382 }
383
384 a {
385 color: black;
386
387 &.active {
388 color: $color-primary
389 }
390 }
391
392 &.open {
393 & > a {
394 color: $color-primary;
395 }
396 }
397
398 ul {
399 left: 220px;
400 top: -12px;
401 border-left: 1px solid darken(white, 5%);
402 box-shadow: 3px 0px 10px -5px rgba(0, 0, 0, 0.3);
403
404 &:before {
405 display: none;
406 }
407 }
408 }
409 }
410 }
411 }
412 }
413
414 .layout-wrapper .content-wrapper .content-body .content {
415 padding-left: 30px;
416 padding-top: $header-height + ($header-height - 20px) + 30px;
417 }
418
419 .content-footer {
420 margin-left: 0;
421 }
422
423 }
424
425 &.sticky-header {
426 .header {
427 position: sticky !important;
428 top: 0;
429 }
430 }
431 }
432
433}
434
435@media (max-width: 1200px) {
436 body {
437 &.horizontal-navigation {
438 .horizontal-navigation {
439 position: fixed;
440 left: 0;
441 top: 0;
442 bottom: 0;
443 height: auto;
444 width: $navigation-width;
445 background-color: white;
446 z-index: 1000;
447 overflow: auto;
448 padding: 15px 0;
449 display: none;
450
451 ul {
452
453 li {
454 a {
455 display: flex;
456 align-items: center;
457 padding: 15px 30px;
458
459 .nav-icon {
460 margin-right: .5rem;
461 }
462
463 &.active {
464 color: $color-primary;
465 }
466
467 .badge, .sub-menu-arrow {
468 margin-left: auto;
469 }
470
471 .sub-menu-arrow {
472 transform: rotate(90deg);
473 }
474 }
475
476 ul {
477 display: none;
478
479 li {
480 a {
481 padding-left: 60px;
482 }
483
484 ul {
485 li {
486 a {
487 padding-left: 80px;
488 }
489
490 ul {
491 li {
492 a {
493 padding-left: 100px;
494 }
495 }
496 }
497 }
498 }
499 }
500 }
501
502 &.open {
503 & > a {
504 color: $color-primary;
505 }
506
507 & > ul {
508 display: block !important;
509 }
510 }
511 }
512 }
513
514 &.open {
515 display: block;
516 }
517 }
518 }
519 }
520}
521
522body.semi-dark:not(.dark) {
523
524 .nicescroll-cursors {
525 background-color: rgba(255, 255, 255, 0.30) !important;
526 }
527
528 .navigation {
529 background-color: $body-bg-color-dark-light;
530 color: $default-dark-text-color;
531
532 .navigation-menu-tab {
533 border-right-color: lighten($body-bg-color-dark-light, 10%);
534
535 ul {
536 li {
537 a {
538 color: $default-dark-text-color;
539
540 &.active {
541 color: white;
542 }
543
544 &:not(.active):hover, &:not(.active):focus {
545 color: $color-primary;
546 }
547 }
548 }
549 }
550 }
551
552 .navigation-menu-body {
553
554 .avatar {
555 border-color: $body-bg-color-dark-light;
556 }
557
558 .list-group-item {
559 background: none;
560 border-color: #454c66;
561 }
562
563 #navigation-logo {
564 border-color: #454c66;
565
566 img {
567 display: block;
568
569 &:not(.logo-light) {
570 display: none;
571 }
572 }
573 }
574
575 ul {
576 li {
577 &.navigation-divider {
578 color: #dbdbdb
579 }
580
581 a {
582 color: $default-dark-text-color;
583
584 .nav-link-icon {
585 stroke: rgba($default-dark-text-color, .5);
586 }
587
588 &.active {
589 color: white;
590
591 &:after {
592 background-color: $color-primary;
593 }
594 }
595
596 &:hover, &:focus {
597 background: none;
598 color: white;
599 }
600
601 & + ul {
602 li {
603 a.active {
604 color: white
605 }
606 }
607 }
608 }
609
610 &.open {
611 & > a {
612 color: white;
613 }
614 }
615
616 .dropdown-divider {
617 color: $color-primary
618 }
619
620 ul {
621 background-color: $body-bg-color-dark-light !important;
622 border-left-color: #454c66 !important;
623
624 ul {
625 border-left-color: #454c66 !important;
626 }
627 }
628
629 &.navigation-divider {
630 &:after {
631 background-color: #454c66 !important;
632 }
633 }
634 }
635 }
636 }
637
638 .avatar:before {
639 border-color: #2c2f42;
640 }
641 }
642
643 .horizontal-navigation {
644 background-color: $body-bg-color-dark-light;
645
646 & > ul {
647 & > li {
648 & > a {
649 & + ul {
650 border-top: 1px solid lighten($body-bg-color-dark-light, 10%);
651 ul {
652 border-left: 1px solid lighten($body-bg-color-dark-light, 10%);
653 }
654 }
655 }
656 &.open > a {
657 color: lighten($color-primary, 5%);
658 }
659 }
660 }
661
662 ul {
663 li {
664 a {
665 color: $default-dark-text-color;
666
667 &.active {
668 color: lighten($color-primary, 5%);
669 }
670
671 &:not(.active):hover, &:not(.active):focus {
672 color: lighten($color-primary, 5%);
673 }
674 }
675 ul {
676 background-color: $body-bg-color-dark-light;
677 }
678 }
679 }
680
681 }
682
683 &.right-navigation {
684 .navigation {
685 .navigation-menu-tab {
686 border-left-color: lighten($body-bg-color-dark-light, 10%);
687 }
688 }
689 }
690
691 &.small-navigation {
692 .navigation:hover {
693 .navigation-menu-tab {
694 border-right-color: lighten($body-bg-color-dark-light, 10%);
695 }
696 }
697
698 &.right-navigation {
699 .navigation:hover {
700 .navigation-menu-tab {
701 border-left-color: lighten($body-bg-color-dark-light, 10%);
702 }
703 }
704 }
705 }
706}
707
708body.header-dark:not(.dark) {
709
710 .header {
711 background-color: $body-bg-color-dark-light;
712 color: $default-dark-text-color;
713 border-bottom-color: lighten($body-bg-color-dark-light, 10%);
714
715 .header-logo {
716 a {
717 img {
718 display: block;
719
720 &:not(.logo-light) {
721 display: none;
722 }
723 }
724 }
725 }
726
727 .navigation-toggler {
728 a {
729 color: $default-dark-text-color;
730
731 &:hover {
732 color: white;
733 }
734 }
735 }
736
737 a.nav-link {
738 color: $default-dark-text-color;
739
740 &:hover {
741 color: white;
742 }
743 }
744
745 .dropdown-menu {
746 border-top: none !important;
747 }
748 }
749
750}
Note: See TracBrowser for help on using the repository browser.