2018-07-26 16:40:34 +02:00
|
|
|
@import '~@angular/material/theming';
|
|
|
|
|
|
|
|
/** Custom component theme. Only lives in a specific scope */
|
2018-09-03 17:57:20 +02:00
|
|
|
@mixin os-site-theme($theme) {
|
2018-07-26 16:40:34 +02:00
|
|
|
$primary: map-get($theme, primary);
|
|
|
|
$accent: map-get($theme, accent);
|
|
|
|
$warn: map-get($theme, accent);
|
|
|
|
$foreground: map-get($theme, foreground);
|
|
|
|
$background: map-get($theme, background);
|
|
|
|
|
2018-09-03 17:57:20 +02:00
|
|
|
os-site {
|
2019-01-09 08:31:13 +01:00
|
|
|
/* main background color */
|
2018-07-31 15:46:55 +02:00
|
|
|
.main-container {
|
2019-01-29 15:20:00 +01:00
|
|
|
background-color: mat-color($background, background);
|
2018-07-31 15:46:55 +02:00
|
|
|
}
|
2018-07-26 16:40:34 +02:00
|
|
|
.nav-toolbar {
|
2019-01-09 08:31:13 +01:00
|
|
|
background-color: mat-color($background, card); //TODO
|
2018-07-26 16:40:34 +02:00
|
|
|
}
|
|
|
|
|
2019-07-11 18:03:13 +02:00
|
|
|
.nav-toggle-button {
|
|
|
|
background: mat-color($background, background);
|
|
|
|
color: mat-color($foreground, icon);
|
|
|
|
}
|
|
|
|
|
2019-01-09 08:31:13 +01:00
|
|
|
/* seperator */
|
|
|
|
mat-nav-list.main-nav,
|
|
|
|
mat-divider {
|
|
|
|
border-top-color: $os-outline;
|
2018-07-26 16:40:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-31 15:46:55 +02:00
|
|
|
/** style and align the nav icons the icons*/
|
2019-01-09 08:31:13 +01:00
|
|
|
.main-nav,
|
|
|
|
.user-menu {
|
2018-10-11 14:03:44 +02:00
|
|
|
mat-icon {
|
2018-07-31 15:46:55 +02:00
|
|
|
color: mat-color($foreground, icon);
|
2018-07-26 16:40:34 +02:00
|
|
|
}
|
|
|
|
span {
|
2018-07-31 15:46:55 +02:00
|
|
|
color: mat-color($foreground, text);
|
2018-07-26 16:40:34 +02:00
|
|
|
}
|
|
|
|
}
|
2018-08-02 16:39:08 +02:00
|
|
|
|
|
|
|
/** style the active link */
|
|
|
|
.active {
|
2018-10-11 14:03:44 +02:00
|
|
|
mat-icon {
|
2019-01-29 15:20:00 +01:00
|
|
|
color: mat-color($primary);
|
2018-08-02 16:39:08 +02:00
|
|
|
}
|
|
|
|
span {
|
2019-01-29 15:20:00 +01:00
|
|
|
color: mat-color($primary);
|
2018-08-02 16:39:08 +02:00
|
|
|
}
|
|
|
|
}
|
2019-08-20 14:57:20 +02:00
|
|
|
|
|
|
|
/** style for the offline-banner */
|
|
|
|
.offline-banner {
|
|
|
|
display: flex;
|
|
|
|
top: 0;
|
|
|
|
z-index: 2;
|
|
|
|
width: 100%;
|
|
|
|
height: 20px;
|
|
|
|
background: mat-color($primary, 900);
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
mat-icon {
|
|
|
|
$font-size: 16px;
|
|
|
|
width: $font-size;
|
|
|
|
height: $font-size;
|
|
|
|
font-size: $font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: 90%;
|
|
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
}
|
2018-07-26 16:40:34 +02:00
|
|
|
}
|
|
|
|
}
|