diff options
Diffstat (limited to 'client/src/sass')
-rw-r--r-- | client/src/sass/application.scss | 12 | ||||
-rw-r--r-- | client/src/sass/bootstrap.scss | 14 | ||||
-rw-r--r-- | client/src/sass/include/_bootstrap-variables.scss | 5 | ||||
-rw-r--r-- | client/src/sass/include/_miniature.scss | 2 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 18 | ||||
-rw-r--r-- | client/src/sass/include/_variables.scss | 22 | ||||
-rw-r--r-- | client/src/sass/loading-bar.scss | 5 | ||||
-rw-r--r-- | client/src/sass/primeng-custom.scss | 3 |
8 files changed, 59 insertions, 22 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index e4840dd81..560414e90 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss | |||
@@ -1,5 +1,6 @@ | |||
1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; | 1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
2 | 2 | ||
3 | @import '_bootstrap-variables'; | ||
3 | @import '_variables'; | 4 | @import '_variables'; |
4 | @import '_mixins'; | 5 | @import '_mixins'; |
5 | 6 | ||
@@ -47,6 +48,11 @@ body { | |||
47 | font-size: 14px; | 48 | font-size: 14px; |
48 | } | 49 | } |
49 | 50 | ||
51 | ::selection { | ||
52 | color: var(--mainBackgroundColor); | ||
53 | background-color: var(--mainHoverColor); | ||
54 | } | ||
55 | |||
50 | #incompatible-browser { | 56 | #incompatible-browser { |
51 | display: none; | 57 | display: none; |
52 | text-align: center; | 58 | text-align: center; |
@@ -162,7 +168,7 @@ label { | |||
162 | color: var(--mainForegroundColor); | 168 | color: var(--mainForegroundColor); |
163 | } | 169 | } |
164 | 170 | ||
165 | @media screen and (max-width: 500px) { | 171 | @media screen and (max-width: $mobile-view) { |
166 | margin-right: 15px; | 172 | margin-right: 15px; |
167 | } | 173 | } |
168 | } | 174 | } |
@@ -229,7 +235,7 @@ table { | |||
229 | } | 235 | } |
230 | } | 236 | } |
231 | 237 | ||
232 | @media screen and (max-width: 1600px) { | 238 | @media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) { |
233 | .main-col { | 239 | .main-col { |
234 | &.expanded { | 240 | &.expanded { |
235 | .margin-content { | 241 | .margin-content { |
@@ -240,7 +246,7 @@ table { | |||
240 | } | 246 | } |
241 | } | 247 | } |
242 | 248 | ||
243 | @media screen and (max-width: 900px) { | 249 | @media screen and (max-width: #{map-get($grid-breakpoints, lg)}) { |
244 | .main-col { | 250 | .main-col { |
245 | &.expanded { | 251 | &.expanded { |
246 | .margin-content { | 252 | .margin-content { |
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 035270e89..e10b84596 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss | |||
@@ -9,6 +9,10 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; | |||
9 | animation: spin .7s infinite linear; | 9 | animation: spin .7s infinite linear; |
10 | } | 10 | } |
11 | 11 | ||
12 | .flex-auto { | ||
13 | flex: auto; | ||
14 | } | ||
15 | |||
12 | @keyframes spin { | 16 | @keyframes spin { |
13 | from { | 17 | from { |
14 | transform: scale(1) rotate(0deg); | 18 | transform: scale(1) rotate(0deg); |
@@ -19,7 +23,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; | |||
19 | } | 23 | } |
20 | 24 | ||
21 | .dropdown { | 25 | .dropdown { |
22 | z-index: 10001 !important; | 26 | z-index: z(dropdown) !important; |
23 | } | 27 | } |
24 | 28 | ||
25 | .dropdown-menu { | 29 | .dropdown-menu { |
@@ -48,7 +52,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; | |||
48 | } | 52 | } |
49 | 53 | ||
50 | 54 | ||
51 | @media screen and (min-width: 768px) { | 55 | @media screen and (min-width: #{map-get($grid-breakpoints, md)}) { |
52 | .modal:before { | 56 | .modal:before { |
53 | vertical-align: middle; | 57 | vertical-align: middle; |
54 | content: " "; | 58 | content: " "; |
@@ -176,7 +180,11 @@ ngb-tabset.bootstrap { | |||
176 | } | 180 | } |
177 | 181 | ||
178 | ngb-modal-backdrop { | 182 | ngb-modal-backdrop { |
179 | z-index: 10000 !important; | 183 | z-index: z(modal) - 1 !important; |
184 | } | ||
185 | |||
186 | ngb-modal-window { | ||
187 | z-index: z(modal) !important; | ||
180 | } | 188 | } |
181 | 189 | ||
182 | .btn-outline-tertiary { | 190 | .btn-outline-tertiary { |
diff --git a/client/src/sass/include/_bootstrap-variables.scss b/client/src/sass/include/_bootstrap-variables.scss index 7f413836b..b3ab0eb2b 100644 --- a/client/src/sass/include/_bootstrap-variables.scss +++ b/client/src/sass/include/_bootstrap-variables.scss | |||
@@ -13,8 +13,9 @@ $grid-breakpoints: ( | |||
13 | md: 768px, | 13 | md: 768px, |
14 | // Large screen / desktop | 14 | // Large screen / desktop |
15 | lg: 900px, | 15 | lg: 900px, |
16 | // Extra large screen / wide desktop | 16 | // Extra large screens / wide desktops |
17 | xl: 1200px | 17 | xl: 1200px, |
18 | xxl: 1600px | ||
18 | ); | 19 | ); |
19 | 20 | ||
20 | $container-max-widths: ( | 21 | $container-max-widths: ( |
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index b0e07d61a..c1d1b3c59 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss | |||
@@ -240,7 +240,7 @@ $play-overlay-width: 18px; | |||
240 | width: $video-miniature-width * 2; | 240 | width: $video-miniature-width * 2; |
241 | } | 241 | } |
242 | 242 | ||
243 | @media screen and (max-width: 500px) { | 243 | @media screen and (max-width: $mobile-view) { |
244 | width: auto; | 244 | width: auto; |
245 | margin: 0 !important; | 245 | margin: 0 !important; |
246 | 246 | ||
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 317781e0e..4766e4490 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -11,11 +11,6 @@ | |||
11 | &:focus:not(.focus-visible) { | 11 | &:focus:not(.focus-visible) { |
12 | outline: none; | 12 | outline: none; |
13 | } | 13 | } |
14 | |||
15 | &::-moz-focus-inner { | ||
16 | border: 0; | ||
17 | padding: 0 | ||
18 | } | ||
19 | } | 14 | } |
20 | 15 | ||
21 | 16 | ||
@@ -450,7 +445,6 @@ | |||
450 | @mixin actor-owner { | 445 | @mixin actor-owner { |
451 | @include disable-default-a-behaviour; | 446 | @include disable-default-a-behaviour; |
452 | 447 | ||
453 | display: inline-table; | ||
454 | font-size: 13px; | 448 | font-size: 13px; |
455 | margin-top: 4px; | 449 | margin-top: 4px; |
456 | color: var(--mainForegroundColor); | 450 | color: var(--mainForegroundColor); |
@@ -493,14 +487,15 @@ | |||
493 | .actor-names { | 487 | .actor-names { |
494 | display: flex; | 488 | display: flex; |
495 | align-items: center; | 489 | align-items: center; |
490 | flex-wrap: wrap; | ||
496 | 491 | ||
497 | .actor-display-name { | 492 | .actor-display-name { |
498 | font-size: 23px; | 493 | font-size: 23px; |
499 | font-weight: $font-bold; | 494 | font-weight: $font-bold; |
495 | margin-right: 7px; | ||
500 | } | 496 | } |
501 | 497 | ||
502 | .actor-name { | 498 | .actor-name { |
503 | margin-left: 7px; | ||
504 | position: relative; | 499 | position: relative; |
505 | top: 3px; | 500 | top: 3px; |
506 | font-size: 14px; | 501 | font-size: 14px; |
@@ -508,6 +503,10 @@ | |||
508 | } | 503 | } |
509 | } | 504 | } |
510 | 505 | ||
506 | .actor-lower { | ||
507 | grid-area: lower; | ||
508 | } | ||
509 | |||
511 | .actor-followers { | 510 | .actor-followers { |
512 | font-size: 15px; | 511 | font-size: 15px; |
513 | } | 512 | } |
@@ -527,6 +526,11 @@ | |||
527 | margin-bottom: 0; | 526 | margin-bottom: 0; |
528 | text-transform: uppercase; | 527 | text-transform: uppercase; |
529 | font-weight: 600; | 528 | font-weight: 600; |
529 | font-size: 110%; | ||
530 | |||
531 | @media screen and (max-width: $mobile-view) { | ||
532 | font-size: 130%; | ||
533 | } | ||
530 | } | 534 | } |
531 | } | 535 | } |
532 | } | 536 | } |
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index e087a2548..d8db3f3f8 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -1,3 +1,5 @@ | |||
1 | @import '_bootstrap-variables'; | ||
2 | |||
1 | $small-view: 800px; | 3 | $small-view: 800px; |
2 | $mobile-view: 500px; | 4 | $mobile-view: 500px; |
3 | 5 | ||
@@ -93,8 +95,24 @@ $variables: ( | |||
93 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor) | 95 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor) |
94 | ); | 96 | ); |
95 | 97 | ||
96 | /*** theme helper ***/ | ||
97 | |||
98 | @function var($variable) { | 98 | @function var($variable) { |
99 | @return map-get($variables, $variable); | 99 | @return map-get($variables, $variable); |
100 | } | 100 | } |
101 | |||
102 | /*** z-index groups ***/ | ||
103 | |||
104 | $zindex: ( | ||
105 | header : 1000, | ||
106 | /* header context */ | ||
107 | headerLeft : 10, | ||
108 | menu : 11000, | ||
109 | dropdown : 12000, | ||
110 | loadbar : 13000, | ||
111 | modal : 14000, | ||
112 | notification : 15000, | ||
113 | hotkeys : 16000 | ||
114 | ); | ||
115 | |||
116 | @function z($label) { | ||
117 | @return map-get($zindex, $label); | ||
118 | } | ||
diff --git a/client/src/sass/loading-bar.scss b/client/src/sass/loading-bar.scss index 7d687d479..d584b7c67 100644 --- a/client/src/sass/loading-bar.scss +++ b/client/src/sass/loading-bar.scss | |||
@@ -1,3 +1,4 @@ | |||
1 | @import '_mixins'; | ||
1 | // Thanks: https://github.com/aitboudad/ngx-loading-bar/blob/master/loading-bar.css | 2 | // Thanks: https://github.com/aitboudad/ngx-loading-bar/blob/master/loading-bar.css |
2 | 3 | ||
3 | /* Make clicks pass-through */ | 4 | /* Make clicks pass-through */ |
@@ -20,7 +21,7 @@ | |||
20 | 21 | ||
21 | background: var(--mainColor); | 22 | background: var(--mainColor); |
22 | position: fixed; | 23 | position: fixed; |
23 | z-index: 10002; | 24 | z-index: z(loadbar); |
24 | top: 0; | 25 | top: 0; |
25 | left: 0; | 26 | left: 0; |
26 | width: 100%; | 27 | width: 100%; |
@@ -50,7 +51,7 @@ | |||
50 | #loading-bar-spinner { | 51 | #loading-bar-spinner { |
51 | display: block; | 52 | display: block; |
52 | position: fixed; | 53 | position: fixed; |
53 | z-index: 10002; | 54 | z-index: z(loadbar); |
54 | top: 10px; | 55 | top: 10px; |
55 | left: 10px; | 56 | left: 10px; |
56 | } | 57 | } |
diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index 753fdf5c9..4d2d6cb67 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss | |||
@@ -383,8 +383,7 @@ p-inputswitch { | |||
383 | 383 | ||
384 | p-toast { | 384 | p-toast { |
385 | .ui-toast { | 385 | .ui-toast { |
386 | // Modal is 10005 | 386 | z-index: z(notification) !important; |
387 | z-index: 10010 !important; | ||
388 | } | 387 | } |
389 | 388 | ||
390 | .ui-toast-message { | 389 | .ui-toast-message { |