aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/application.scss
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/sass/application.scss')
-rw-r--r--client/src/sass/application.scss178
1 files changed, 28 insertions, 150 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index 84b575eb3..add01fb71 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -1,28 +1,20 @@
1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
2
3@use 'sass:math'; 1@use 'sass:math';
4 2
5@use '_variables' as *; 3@use '_variables' as *;
6@use '_mixins' as *; 4@use '_mixins' as *;
5@use '_icons' as *;
7 6
8@use '_fonts'; 7@use '_fonts';
9 8
10@use './classes'; 9@use './class-helpers';
11
12@use './custom-markup'; 10@use './custom-markup';
13
14@use './ng-select'; 11@use './ng-select';
15 12
16// Needs an import because we extends glyphicon icons in primeng
17@import './bootstrap'; 13@import './bootstrap';
18@import './primeng-custom'; 14@import './primeng-custom';
19 15
20@import './z-index'; 16@import './z-index';
21 17
22[hidden] {
23 display: none !important;
24}
25
26body { 18body {
27 /*** theme ***/ 19 /*** theme ***/
28 // now beware sass requires interpolation 20 // now beware sass requires interpolation
@@ -30,6 +22,7 @@ body {
30 --mainColor: #{$main-color}; 22 --mainColor: #{$main-color};
31 --mainColorLighter: #{$main-color-lighter}; 23 --mainColorLighter: #{$main-color-lighter};
32 --mainColorLightest: #{$main-color-lightest}; 24 --mainColorLightest: #{$main-color-lightest};
25 --mainColorVeryLight: #{$main-color-very-light};
33 26
34 --mainHoverColor: #{$main-hover-color}; 27 --mainHoverColor: #{$main-hover-color};
35 --mainBackgroundHoverColor: #{$main-background-hover-color}; 28 --mainBackgroundHoverColor: #{$main-background-hover-color};
@@ -37,8 +30,6 @@ body {
37 --mainBackgroundColor: #{$bg-color}; 30 --mainBackgroundColor: #{$bg-color};
38 --mainForegroundColor: #{$fg-color}; 31 --mainForegroundColor: #{$fg-color};
39 32
40 --secondaryColor: #{$secondary-color};
41
42 --greyForegroundColor: #{$grey-foreground-color}; 33 --greyForegroundColor: #{$grey-foreground-color};
43 --greyBackgroundColor: #{$grey-background-color}; 34 --greyBackgroundColor: #{$grey-background-color};
44 --greySecondaryBackgroundColor: #{$grey-background-hover-color}; 35 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
@@ -73,7 +64,7 @@ body {
73 font-weight: $font-regular; 64 font-weight: $font-regular;
74 color: pvar(--mainForegroundColor); 65 color: pvar(--mainForegroundColor);
75 background-color: pvar(--mainBackgroundColor); 66 background-color: pvar(--mainBackgroundColor);
76 font-size: 14px; 67 font-size: 1rem;
77 // On desktop browsers, make sure vertical scroll bar is always visible 68 // On desktop browsers, make sure vertical scroll bar is always visible
78 // Allow to disable the scrollbar instead of hide it when the content fit the body 69 // Allow to disable the scrollbar instead of hide it when the content fit the body
79 // And not move the content and header horizontally sticked to right when the content is updating 70 // And not move the content and header horizontally sticked to right when the content is updating
@@ -96,6 +87,10 @@ noscript,
96 margin: 1rem auto; 87 margin: 1rem auto;
97} 88}
98 89
90a {
91 text-decoration: none;
92}
93
99strong { 94strong {
100 font-weight: $font-semibold; 95 font-weight: $font-semibold;
101} 96}
@@ -119,7 +114,7 @@ button {
119 114
120label { 115label {
121 font-weight: $font-bold; 116 font-weight: $font-bold;
122 font-size: 15px; 117 margin-bottom: 0.5rem;
123} 118}
124 119
125code { 120code {
@@ -133,35 +128,6 @@ code {
133 vertical-align: middle; 128 vertical-align: middle;
134} 129}
135 130
136.form-error,
137.form-warning {
138 display: block;
139 margin-top: 5px;
140}
141
142.form-error {
143 color: $red;
144}
145
146.input-error,
147my-input-toggle-hidden ::ng-deep input {
148 border-color: $red !important;
149}
150
151.full-width {
152 width: 100%;
153 margin: 0 auto;
154 max-width: initial;
155}
156
157.glyphicon-black {
158 color: #000;
159}
160
161.row {
162 margin: 0 !important;
163}
164
165.main-col { 131.main-col {
166 @include margin-left($menu-width); 132 @include margin-left($menu-width);
167 133
@@ -215,115 +181,31 @@ my-input-toggle-hidden ::ng-deep input {
215 } 181 }
216} 182}
217 183
218.title-page {
219 @include disable-default-a-behaviour;
220 @include margin-right(55px);
221
222 opacity: 0.6;
223 color: pvar(--mainForegroundColor);
224 font-size: 16px;
225 display: inline-block;
226 font-weight: $font-semibold;
227 border-bottom: 2px solid transparent;
228
229 &.title-page-single {
230 margin-top: 30px;
231 margin-bottom: 25px;
232 }
233
234 &.active {
235 border-bottom-color: pvar(--mainColor);
236 }
237
238 &.title-page-single {
239 font-size: 125%;
240 }
241
242 &:hover,
243 &:active,
244 &:focus {
245 color: pvar(--mainForegroundColor);
246 }
247
248 &.active,
249 &:hover,
250 &:active,
251 &:focus,
252 &.title-page-single {
253 opacity: 1;
254 outline: 0 hidden !important;
255 }
256
257 @media screen and (max-width: $mobile-view) {
258 @include margin-left(15px);
259 }
260}
261
262.title-page-about,
263.title-page-settings {
264 white-space: nowrap;
265 font-size: 115%;
266}
267
268.admin-sub-header {
269 display: flex;
270 align-items: center;
271 margin-bottom: 30px;
272}
273
274// In tables, don't have a hover different background 184// In tables, don't have a hover different background
275table { 185table {
276 .action-button-edit, 186 my-edit-button,
277 .action-button-delete { 187 my-delete-button {
278 &:hover, 188 .action-button {
279 &:active, 189 &:hover,
280 &:focus, 190 &:active,
281 &[disabled], 191 &:focus,
282 &.disabled { 192 &[disabled],
283 background-color: $grey-background-color !important; 193 &.disabled {
194 background-color: pvar(--greyBackgroundColor) !important;
195 opacity: 0.8;
196 }
284 } 197 }
285 } 198 }
286} 199}
287 200
288.no-results { 201my-global-icon[iconName=external-link] {
289 height: 40vh; 202 margin: 0 0.3em;
290 max-height: 500px; 203 width: 0.9em;
291 204 height: 0.9em;
292 display: flex; 205 display: inline-block;
293 flex-direction: column; 206 color: pvar(--inputPlaceholderColor);
294 align-items: center;
295 justify-content: center;
296 font-size: 16px;
297 font-weight: $font-semibold;
298}
299
300.dropdown-item {
301 @include dropdown-with-icon-item;
302
303 my-global-icon {
304 width: 22px;
305 height: 22px;
306 }
307}
308
309/* offsetTop for scrollToAnchor */
310
311.anchor {
312 position: relative; 207 position: relative;
313 top: #{-($header-height + 20px)}; 208 top: -0.1em;
314}
315
316.offset-content { // if sub-menu fixed
317 .anchor {
318 top: #{-($header-height + $sub-menu-height + 20px)};
319 }
320}
321
322.form-group-description {
323 @extend .muted !optional;
324
325 font-size: 90%;
326 margin-top: 10px;
327} 209}
328 210
329@media screen and (max-width: #{breakpoint(xxl)}) { 211@media screen and (max-width: #{breakpoint(xxl)}) {
@@ -342,7 +224,7 @@ table {
342 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)}; 224 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
343 } 225 }
344 226
345 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ 227 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
346 .main-col, 228 .main-col,
347 .main-col.expanded { 229 .main-col.expanded {
348 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)}; 230 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
@@ -382,10 +264,6 @@ table {
382 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view; 264 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
383 } 265 }
384 266
385 .admin-sub-header {
386 flex-direction: column;
387 }
388
389 my-markdown-textarea { 267 my-markdown-textarea {
390 .root { 268 .root {
391 max-width: 100% !important; 269 max-width: 100% !important;