diff options
Diffstat (limited to 'viewer/src/assets/scss/global.scss')
-rw-r--r-- | viewer/src/assets/scss/global.scss | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/viewer/src/assets/scss/global.scss b/viewer/src/assets/scss/global.scss index 9444548..c82e1bc 100644 --- a/viewer/src/assets/scss/global.scss +++ b/viewer/src/assets/scss/global.scss | |||
@@ -36,6 +36,9 @@ button svg + span { | |||
36 | .nowrap { | 36 | .nowrap { |
37 | white-space: nowrap; | 37 | white-space: nowrap; |
38 | } | 38 | } |
39 | .no-scroll { | ||
40 | overflow: hidden; | ||
41 | } | ||
39 | .no-scroll-x { | 42 | .no-scroll-x { |
40 | overflow-x: hidden; | 43 | overflow-x: hidden; |
41 | } | 44 | } |
@@ -51,6 +54,26 @@ button svg + span { | |||
51 | align-items: center; | 54 | align-items: center; |
52 | } | 55 | } |
53 | 56 | ||
57 | .fill { | ||
58 | width: 100%; | ||
59 | height: 100%; | ||
60 | } | ||
61 | |||
62 | .flex-grow-1 { | ||
63 | flex-grow: 1; | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * Class for containers that centers its content vertically and horizontally, | ||
68 | * preferably sticking to the container start if the container is smaller than the content. | ||
69 | */ | ||
70 | .container-vh-centering { | ||
71 | min-height: 100%; | ||
72 | display: flex; | ||
73 | align-items: center; | ||
74 | justify-content: center; | ||
75 | } | ||
76 | |||
54 | // === Links | 77 | // === Links |
55 | 78 | ||
56 | .link { | 79 | .link { |
@@ -79,23 +102,6 @@ button svg + span { | |||
79 | } | 102 | } |
80 | } | 103 | } |
81 | 104 | ||
82 | // === Scrollbar styling | ||
83 | |||
84 | .scrollbar { | ||
85 | overflow: auto; | ||
86 | } | ||
87 | .scrollbar::-webkit-scrollbar { | ||
88 | width: $scrollbar-width; | ||
89 | height: $scrollbar-width; | ||
90 | } | ||
91 | .scrollbar::-webkit-scrollbar-corner { | ||
92 | background-color: transparent; | ||
93 | } | ||
94 | .scrollbar::-webkit-scrollbar-thumb { | ||
95 | box-shadow: inset 0 0 1px black; | ||
96 | background-color: $scrollbar-color; | ||
97 | } | ||
98 | |||
99 | // === Effect to apply on lazy-image loading | 105 | // === Effect to apply on lazy-image loading |
100 | 106 | ||
101 | img { | 107 | img { |