Removed m2 theme
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit
Added m3 theme -not fully applied Adjusting styles to m3 theme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div #baseContainer class="fx-w100 fx-stretch" [ngClass]="{ 'fx-column': !wide, 'fx-row': wide }">
|
||||
<div style="align-self:stretch; justify-self: stretch;" class="fx-auto gradient-left"></div>
|
||||
<div class="bg-white" [ngClass]="{ 'fx-compact': !wide, 'fx-main': wide }">
|
||||
<div [ngClass]="{ 'fx-compact': !wide, 'fx-main': wide }">
|
||||
<ng-content select="[id='main']"></ng-content>
|
||||
</div>
|
||||
<div class="bg-default" [ngClass]="{ 'fx-compact': !wide, 'fx-side': wide }">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<mat-icon>lock</mat-icon>
|
||||
<span>{{ res.strings('reset_title') }}</span>
|
||||
</mat-toolbar>
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch bg-white mat-typography">
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch mat-typography">
|
||||
<div class="m-lg">
|
||||
<h2>{{ res.strings('reset_title') }}</h2>
|
||||
<h4>{{ res.strings('reset_subtitle') }}</h4>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<span>{{ res.strings('manage_system_title') }}</span>
|
||||
</mat-toolbar>
|
||||
<app-layout-double class="fx-fill fx-row fx-stretch">
|
||||
<div id='main' class="bg-white fx-fill">
|
||||
<div id='main' class="fx-fill">
|
||||
<div class="m-lg mat-typography">
|
||||
<h2>{{ res.strings('manage_system_equipment_title') }}</h2>
|
||||
<h4>{{ res.strings('manage_system_equipment_subtitle') }}</h4>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<mat-icon>perm_identity</mat-icon>
|
||||
<span>{{ res.strings('user_account_title') }}</span>
|
||||
</mat-toolbar>
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch bg-white mat-typography">
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch mat-typography">
|
||||
<mat-tab-group dynamicHeight="true">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div>
|
||||
<mat-toolbar style="padding: 5px;" class="grid-viewbar view-bar">
|
||||
<mat-icon class="icon">place</mat-icon>
|
||||
<div class="title">
|
||||
<div class="title ellipsis">
|
||||
@if (city.state) {
|
||||
<div class="full">
|
||||
{{ city.names | localName }},
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<mat-card-header class="short" style="padding: 0px 0px 0px 10px;margin: 0px;">
|
||||
<mat-card-title> {{ city.names | localName }}</mat-card-title>
|
||||
<mat-card-subtitle style="color: darkgreen;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
|
||||
<mat-card-subtitle class="ellipsis" style="color: darkgreen;">
|
||||
<a [routerLink]="'/' + res.getLanguage() + '/weather/states/' + city.state.id">
|
||||
{{ city.state.names | localName }},
|
||||
</a>
|
||||
|
||||
@@ -79,9 +79,6 @@
|
||||
.title{
|
||||
grid-area: title;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.gmaps{
|
||||
grid-area: gmaps;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
[matAutocompleteConnectedTo]="origin"
|
||||
[placeholder]="res.strings('cond_map_search_field_placeholder')">
|
||||
@if(!autocompIdle){
|
||||
<mat-progress-spinner mode="indeterminate" color="accent" diameter="20"></mat-progress-spinner>
|
||||
<mat-progress-spinner mode="indeterminate" color="teritary" diameter="20"></mat-progress-spinner>
|
||||
}
|
||||
</div>
|
||||
<app-location-autocomplete
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import '../../styles.scss';
|
||||
@import '../../../m3-theme.scss';
|
||||
@include mat.core();
|
||||
|
||||
.search-container { position: absolute; top: 10px; right: 50px; z-index: 10000; }
|
||||
.search {
|
||||
width: 45px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
background: mat.get-theme-color($light-theme, primary, 100);
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||
border-radius: 4px;
|
||||
border-color: mat.get-theme-color($light-theme, tertiary, 98);
|
||||
outline: none;
|
||||
-webkit-transition: width 0.4s ease-in-out;
|
||||
transition: width 0.4s ease-in-out;
|
||||
cursor: pointer;
|
||||
}
|
||||
.search-input { width: 0px; font-size: 16px; border: none; outline: none;background-color: mat.get-theme-color($light-theme, primary, 100)}
|
||||
.search-icon { font-size: 27px; padding-right:40px; color: mat.get-theme-color($light-theme, tertiary, 98);}
|
||||
.search:focus-within { width: 250px; border: solid 1px mat.get-theme-color($light-theme, tertiary, 98); }
|
||||
.search:focus-within .search-input { width: 100%; }
|
||||
.search:focus-within .search-icon { margin-right: 5px; color: mat.get-theme-color($light-theme, tertiary, 98); }
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.search {
|
||||
background: mat.get-theme-color($dark-theme, primary, 0);
|
||||
border-color: mat.get-theme-color($dark-theme, tertiary, 10);
|
||||
}
|
||||
.search-input {
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0)
|
||||
}
|
||||
.search:focus-within { width: 250px; border: solid 1px mat.get-theme-color($dark-theme, tertiary, 10); }
|
||||
.search:focus-within .search-icon{ margin-right: 5px; color: mat.get-theme-color($dark-theme, tertiary, 10); }
|
||||
.search-icon { margin-right: 5px; color: mat.get-theme-color($dark-theme, tertiary, 10); }
|
||||
}
|
||||
@@ -69,29 +69,7 @@ class MapTile {
|
||||
selector: 'app-condition-map',
|
||||
templateUrl: './condition-map.component.html',
|
||||
providers: [TemperaturePipe, WeatherIconPipe, WeatherPipe, LocalNamePipe],
|
||||
styles: [`
|
||||
.search-container { position: absolute; top: 10px; right: 50px; z-index: 10000; }
|
||||
.search {
|
||||
width: 45px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
background: white;
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||
border-radius: 4px;
|
||||
outline: none;
|
||||
-webkit-transition: width 0.4s ease-in-out;
|
||||
transition: width 0.4s ease-in-out;
|
||||
cursor: pointer;
|
||||
}
|
||||
.search-input { width: 0px; font-size: 16px; border: none; outline: none}
|
||||
.search-icon { font-size: 27px; padding-right:40px}
|
||||
.search:focus-within { width: 250px; border: solid 1px #00695c; }
|
||||
.search:focus-within .search-input { width: 100%; }
|
||||
.search:focus-within .search-icon { margin-right: 5px; color: #00695c; }
|
||||
`],
|
||||
styleUrl: 'condition-map.component.scss',
|
||||
standalone: true,
|
||||
imports: [MatAutocompleteOrigin, MatIconModule, MatInputModule, FormsModule, MatAutocompleteTrigger, ReactiveFormsModule, MatProgressSpinner, LocationAutocompleteComponent, MapComponent]
|
||||
})
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<app-favorite-button [id]="country.id" type="COUNTRY"></app-favorite-button>
|
||||
</div>
|
||||
</mat-toolbar>
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch bg-white">
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch">
|
||||
<div class="m-sm">
|
||||
<mat-card appearance="outlined" style="padding: 0px;" class="fx-flex mat-elevation-z2">
|
||||
<mat-card-header class="pl-sm pr-sm pt-sm">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<app-favorite-button [id]="state.id" type="STATE"></app-favorite-button>
|
||||
</div>
|
||||
</mat-toolbar>
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch bg-white">
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch">
|
||||
<div class="m-sm">
|
||||
<mat-card appearance="outlined" style="padding: 0px;" class="fx-flex mat-elevation-z2">
|
||||
<mat-card-header class="pl-sm pr-sm pt-sm">
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
@if(video != null){
|
||||
<div class="mt-sm mb-sm fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="video" width="310"></app-weather-video>
|
||||
<h2>{{ video.source | videoSource }} - {{ video.type | videoType }}</h2>
|
||||
<h6>{{ video.source | videoSource }} - {{ video.type | videoType }}</h6>
|
||||
</div>
|
||||
}@else{
|
||||
<div class="m-sm fx-column fx-center">
|
||||
<div style="width: 310px; height: 174px; background-color: black;" class="mat-elevation-z2" ></div>
|
||||
<h2>{{ res.strings('videos_no_selection')}}</h2>
|
||||
<h6>{{ res.strings('videos_no_selection')}}</h6>
|
||||
</div>
|
||||
}
|
||||
<app-logo-panel></app-logo-panel>
|
||||
|
||||
@@ -5,7 +5,9 @@ import {
|
||||
ElementRef,
|
||||
ViewChild,
|
||||
Input,
|
||||
ChangeDetectorRef
|
||||
} from '@angular/core';
|
||||
import { MediaMatcher } from '@angular/cdk/layout';
|
||||
import { ResourceService } from '../services/resource.service';
|
||||
import { Coordinate, Geometry } from '../api';
|
||||
import * as L from 'leaflet';
|
||||
@@ -28,7 +30,7 @@ export class MapComponent implements OnInit, DoCheck {
|
||||
static readonly DEFAULT_ZOOM = 13;
|
||||
static readonly MAX_ZOOM = 18;
|
||||
private static readonly DEFAULT_LOCATION = new L.LatLng(51.461663, 7.016645);
|
||||
private static readonly DEFAULT_TILE_URL = 'https://www.mowesta.com/carta/tile/{z}/{x}/{y}.png';
|
||||
private static readonly DEFAULT_TILE_URL = 'https://www.mowesta.com/carta/tile/dark/{z}/{x}/{y}.png';
|
||||
|
||||
@ViewChild('map', { read: ElementRef, static: true }) mapElement: ElementRef;
|
||||
|
||||
@@ -49,13 +51,33 @@ export class MapComponent implements OnInit, DoCheck {
|
||||
private geojson: L.GeoJSON;
|
||||
private attribution: L.Control;
|
||||
private markerElements: MapMarker[] = [];
|
||||
private tileDark: L.TileLayer;
|
||||
private tileLight: L.TileLayer;
|
||||
|
||||
private mediaQuery: MediaQueryList;
|
||||
private mediaQueryListener: () => void;
|
||||
private resizeObserver?: ResizeObserver;
|
||||
|
||||
private lastCenter: Coordinate;
|
||||
private lastBounds: Coordinate[];
|
||||
private lastBoundary: Geometry;
|
||||
private lastMarkers: MapComponentMarker[];
|
||||
|
||||
constructor(public res: ResourceService) { }
|
||||
constructor(public res: ResourceService, private media: MediaMatcher, private changeDetector: ChangeDetectorRef) {
|
||||
this.tileLight = this.createTilelayer('https://mobydex.locoslab.com/carta/tile/{z}/{x}/{y}.png');
|
||||
this.tileDark = this.createTilelayer('https://mobydex.locoslab.com/carta/tile/dark/{z}/{x}/{y}.png');
|
||||
this.mediaQuery = media.matchMedia('(prefers-color-scheme: dark)');
|
||||
this.mediaQueryListener = () => {
|
||||
if (this.mediaQuery.matches) {
|
||||
this.map.removeLayer(this.tileLight);
|
||||
this.map.addLayer(this.tileDark);
|
||||
} else {
|
||||
this.map.removeLayer(this.tileDark);
|
||||
this.map.addLayer(this.tileLight);
|
||||
}
|
||||
changeDetector.detectChanges();
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
const object = this;
|
||||
@@ -68,9 +90,7 @@ export class MapComponent implements OnInit, DoCheck {
|
||||
maxZoom: 15,
|
||||
maxBounds: [[-90, -180],[90, 180]]
|
||||
});
|
||||
this.layer = new L.TileLayer(MapComponent.DEFAULT_TILE_URL, {
|
||||
maxZoom: this.maxZoom? this.maxZoom : MapComponent.MAX_ZOOM
|
||||
}).addTo(this.map);
|
||||
this.layer = this.tileLight.addTo(this.map);
|
||||
if (this.mapEventHandlers) { this.map.on(this.mapEventHandlers); }
|
||||
if (this.layerEventHandlers) { this.layer.on(this.layerEventHandlers)}
|
||||
|
||||
@@ -84,6 +104,19 @@ export class MapComponent implements OnInit, DoCheck {
|
||||
this.map.addControl(this.attribution);
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
if (this.mediaQuery.matches) {
|
||||
this.map.addLayer(this.tileDark);
|
||||
} else {
|
||||
this.map.addLayer(this.tileLight);
|
||||
}
|
||||
this.mediaQuery.addEventListener('change', this.mediaQueryListener);
|
||||
this.resizeObserver = new ResizeObserver(() => {
|
||||
this.map.invalidateSize();
|
||||
});
|
||||
this.resizeObserver.observe(this.mapElement.nativeElement);
|
||||
}
|
||||
|
||||
ngDoCheck() {
|
||||
this.map.invalidateSize();
|
||||
this.updateCenter();
|
||||
@@ -150,6 +183,14 @@ export class MapComponent implements OnInit, DoCheck {
|
||||
}
|
||||
}
|
||||
}
|
||||
createTilelayer(url: string): L.TileLayer {
|
||||
return L.tileLayer(url, {
|
||||
minZoom: 1,
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> | © <a href="https://www.locoslab.com">LocosLab GmbH</a>'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** A marker that shall be added to the map. */
|
||||
@@ -159,4 +200,4 @@ export interface MapComponentMarker {
|
||||
tooltipOptions?: L.TooltipOptions;
|
||||
iconOptions?: L.IconOptions;
|
||||
clicked?: () => void;
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
<ng-container>
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="300"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
<h6>{{ v.type | videoType }}</h6>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
@@ -31,7 +31,7 @@
|
||||
<ng-container>
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="300"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
<h6>{{ v.type | videoType }}</h6>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
@@ -50,7 +50,7 @@
|
||||
<ng-container>
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="300"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
<h6>{{ v.type | videoType }}</h6>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
|
||||
+97
-29
@@ -1,9 +1,11 @@
|
||||
// Import theming functions
|
||||
@use '@angular/material' as mat;
|
||||
@import 'theme.scss';
|
||||
@import 'fonts.scss';
|
||||
@import 'weather.scss';
|
||||
@import 'jam.scss';
|
||||
@import 'm3-theme.scss';
|
||||
|
||||
@include mat.core();
|
||||
|
||||
|
||||
// sizes for paddings and margins
|
||||
@@ -24,13 +26,22 @@ $size-side: 500px;
|
||||
}
|
||||
|
||||
// page reset and font configuration
|
||||
html {
|
||||
html {
|
||||
@include mat.all-component-themes($light-theme);
|
||||
@include mat.typography-hierarchy($light-theme);
|
||||
height: 100svh;
|
||||
margin: $size-z;
|
||||
padding: $size-z;
|
||||
font-family: Montserrat
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
// Only include the colors and not the styles for the dark theme
|
||||
html {
|
||||
@include mat.all-component-colors($dark-theme);
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100svh;
|
||||
margin: $size-z;
|
||||
@@ -117,11 +128,10 @@ a {
|
||||
.mb-lg { margin-bottom: $size-lg; }
|
||||
|
||||
/* background colors */
|
||||
.bg-default { background-color: $app-background-default; }
|
||||
.bg-white { background-color: white; }
|
||||
.bg-default { background-color: mat.get-theme-color($light-theme, neutral, 100);}
|
||||
.bg-lighter { background:rgba(255,255,255,0.1); }
|
||||
.bg-accent { background-color: mat.m2-get-color-from-palette($app-accent); }
|
||||
.bg-primary { background-color: mat.m2-get-color-from-palette($app-primary); }
|
||||
.bg-accent { background-color: mat.get-theme-color($light-theme, tertiary, 98); }
|
||||
.bg-primary { background-color: mat.get-theme-color($light-theme, primary, 100); }
|
||||
.bg-world {
|
||||
background-image: url('assets/images/world.svg');
|
||||
background-repeat: no-repeat;
|
||||
@@ -131,12 +141,26 @@ a {
|
||||
background-position-y: 20px;
|
||||
min-height: 350px;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
// Only include the colors and not the styles for the dark theme
|
||||
.bg-default { background-color: mat.get-theme-color($dark-theme, neutral, 0);}
|
||||
.bg-lighter { background:rgba(255,255,255,0.1); } //check
|
||||
.bg-accent { background-color: mat.get-theme-color($dark-theme, tertiary, 10); } //todo change to tertiary
|
||||
.bg-primary { background-color: mat.get-theme-color($light-theme, primary, 0); }
|
||||
}
|
||||
|
||||
/* foreground colors */
|
||||
.fg-white { color: white; }
|
||||
.fg-gray { color: rgba($color: #000000, $alpha: 0.4) }
|
||||
.fg-accent { color: mat.m2-get-color-from-palette($app-accent); }
|
||||
.fg-primary { color: mat.m2-get-color-from-palette($app-primary); }
|
||||
.fg-accent { color: mat.get-theme-color($light-theme, tertiary, 98); }
|
||||
.fg-primary { color: mat.get-theme-color($light-theme, primary, 100); }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.fg-white { color: white; }
|
||||
.fg-gray { color: rgba($color: #000000, $alpha: 0.4) }
|
||||
.fg-accent { color: mat.get-theme-color($dark-theme, tertiary, 10); } //todo change to teriary
|
||||
.fg-primary { color: mat.get-theme-color($light-theme, primary, 0); }
|
||||
}
|
||||
|
||||
|
||||
/* rotation for wind direction icons */
|
||||
.rotate-45 { transform: rotate(45deg); }
|
||||
@@ -151,23 +175,32 @@ a {
|
||||
|
||||
/* gradient in column layouts on the right */
|
||||
.gradient-right {
|
||||
background-color: mat.m2-get-color-from-palette($app-primary);
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
// background-image: radial-gradient(circle at top left, mat-color($app-primary) 10%, mat-color($app-primary-light) 75%, mat-color($app-primary) 100%);
|
||||
align-self: stretch;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.gradient-right { background-color: mat.get-theme-color($dark-theme, primary, 0);}
|
||||
}
|
||||
|
||||
/* gradient in column layouts on the left */
|
||||
.gradient-left {
|
||||
background-color: mat.m2-get-color-from-palette($app-primary);
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
// background-image: radial-gradient(circle at bottom right, mat-color($app-primary) 10%, mat-color($app-primary-light) 75%, mat-color($app-primary) 100%);
|
||||
align-self: stretch;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.gradient-left { background-color: mat.get-theme-color($dark-theme, primary, 0);}
|
||||
}
|
||||
|
||||
/* sets the cursor to indicate something clickable */
|
||||
.clickable { cursor: pointer; }
|
||||
.hov-accent:hover { background-color: mat.m2-get-color-from-palette($app-accent);}
|
||||
.hov-accent:hover { background-color: mat.get-theme-color($light-theme, tertiary, 98);}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.hov-accent:hover { background-color: mat.get-theme-color($dark-theme, tertiary, 10);}
|
||||
}
|
||||
|
||||
/* cuts of the text, for this to work, you need to set the width */
|
||||
/* cuts of the text, for this to work, you need to set the width */
|
||||
.ellipsis {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
@@ -191,10 +224,15 @@ a {
|
||||
@include mat.elevation(1);
|
||||
z-index: 50;
|
||||
position:relative;
|
||||
background-color: orange !important;
|
||||
background-color: mat.get-theme-color($light-theme, secondary, 30) !important;
|
||||
font:500 20px/32px Montserrat !important;
|
||||
min-height: 64px;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.view-bar{
|
||||
background-color: mat.get-theme-color($dark-theme, secondary, 30) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* the icon in the yellow toolbar */
|
||||
.view-bar > mat-icon {
|
||||
@@ -215,38 +253,57 @@ a {
|
||||
}
|
||||
|
||||
.snackbar-accent {
|
||||
background-color: mat.m2-get-color-from-palette($app-accent);
|
||||
background-color: mat.get-theme-color($light-theme, tertiary, 98);;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.snackbar-primary {
|
||||
background-color: mat.m2-get-color-from-palette($app-primary);
|
||||
color: white;
|
||||
}
|
||||
.snackbar-primary > .mat-mdc-simple-snack-bar {
|
||||
justify-content: space-around;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.snackbar-accent {
|
||||
background-color: mat.get-theme-color($dark-theme, tertiary, 10);;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.snackbar-accent > .mat-mdc-simple-snack-bar {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.snackbar-primary {
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
color: white;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.snackbar-primary {
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0);
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
|
||||
.snackbar-primary > .mat-mdc-simple-snack-bar {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.video-overlay {
|
||||
background-color: rgba(mat.m2-get-color-from-palette($app-accent), 0.8);
|
||||
background-color: rgba(mat.get-theme-color($light-theme, tertiary, 98), 0.8);
|
||||
justify-content: center;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
width: 110px;
|
||||
box-sizing: border-box;
|
||||
border-radius: round(5px);
|
||||
border: 3px solid rgba(mat.m2-get-color-from-palette($app-primary), 0.8);
|
||||
border: 3px solid rgba(mat.get-theme-color($light-theme, primary, 100), 0.8);
|
||||
color: black;
|
||||
}
|
||||
@media (prefers-color-scheme: dark){
|
||||
.video-overlay {
|
||||
background-color: rgba(mat.get-theme-color($dark-theme, tertiary, 10), 0.8);
|
||||
border: 3px solid rgba(mat.get-theme-color($dark-theme, primary, 0), 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
.video-overlay-scale {
|
||||
border-radius: round(5px);
|
||||
padding: 5px;
|
||||
background-color: rgba(#ffffff, 0.6);
|
||||
background-color: rgba(#ffffff, 0.6); //check
|
||||
}
|
||||
|
||||
.video-overlay-date {
|
||||
@@ -269,7 +326,7 @@ a {
|
||||
}
|
||||
|
||||
.detail-label {
|
||||
@extend .mat-caption;
|
||||
@extend .mat-label-small; //check right size
|
||||
min-width: 90px;
|
||||
}
|
||||
|
||||
@@ -282,7 +339,7 @@ a {
|
||||
|
||||
// narrow lists, tables and panels (for visits)
|
||||
.narrow-label {
|
||||
@extend .mat-caption;
|
||||
@extend .mat-label-small; //check right size
|
||||
min-width: 40px;
|
||||
}
|
||||
|
||||
@@ -318,10 +375,15 @@ a {
|
||||
|
||||
|
||||
.register-link {
|
||||
color: mat.m2-get-color-from-palette($app-accent-dark);
|
||||
color: mat.get-theme-color($dark-theme, tertiary, 10);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
@media (prefers-color-scheme: dark){ //check
|
||||
.register-link {
|
||||
color: mat.get-theme-color($dark-theme, tertiary, 10);
|
||||
}
|
||||
}
|
||||
|
||||
// table stuff
|
||||
.action-cell {
|
||||
@@ -350,8 +412,14 @@ a {
|
||||
/* Forecast Map Styles */
|
||||
div.forecast-tooltip {
|
||||
font-family: Montserrat;
|
||||
background-color: #FFFFFF;
|
||||
border-color: mat.m2-get-color-from-palette($app-primary);
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
border-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
}
|
||||
@media (prefers-color-scheme: dark){
|
||||
div.forecast-tooltip {
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0);
|
||||
border-color: mat.get-theme-color($dark-theme, primary, 0);
|
||||
}
|
||||
}
|
||||
div.forecast-tooltip:hover {
|
||||
z-index: 10000;
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
// Custom Theming for Angular Material
|
||||
// For more information: https://material.angular.io/guide/theming
|
||||
@use '@angular/material' as mat;
|
||||
// Plus imports for other components in your app.
|
||||
|
||||
// Include the common styles for Angular Material. We include this here so that you only
|
||||
// have to load a single css file for Angular Material in your app.
|
||||
// Be sure that you only ever include this mixin once!
|
||||
@include mat.core();
|
||||
|
||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||
// hue. Available color palettes: https://material.io/design/color/
|
||||
|
||||
$app-primary:mat.m2-define-palette(mat.$m2-teal-palette, 800);
|
||||
$app-accent: mat.m2-define-palette(mat.$m2-yellow-palette, 800);
|
||||
$app-warn: mat.m2-define-palette(mat.$m2-red-palette);
|
||||
|
||||
// Create the theme object. A theme consists of configurations for individual
|
||||
// theming systems such as "color" or "typography".
|
||||
$app-theme: mat.m2-define-light-theme((
|
||||
color: (
|
||||
primary: $app-primary,
|
||||
accent: $app-accent,
|
||||
warn: $app-warn,
|
||||
)
|
||||
));
|
||||
|
||||
// Include theme styles for core and each component used in your app.
|
||||
// Alternatively, you can import and @include the theme mixins for each component
|
||||
// that you are using.
|
||||
@include mat.all-component-themes($app-theme);
|
||||
|
||||
// Change the fonts
|
||||
|
||||
$app-typography: mat.m2-define-typography-config(
|
||||
$font-family: 'Montserrat'
|
||||
);
|
||||
|
||||
@include mat.typography-hierarchy($app-typography);
|
||||
|
||||
$app-accent-dark: mat.m2-define-palette(mat.$m2-red-palette, 800);
|
||||
$app-background-default: #fafafa;
|
||||
|
||||
Reference in New Issue
Block a user