Преглед на файлове

💄 improve styles, use cs lang

jmacura преди 4 години
родител
ревизия
406160d662
променени са 3 файла, в които са добавени 55 реда и са изтрити 10 реда
  1. 0 10
      src/adjuster/adjuster.directive.html
  2. 3 0
      src/app.service.ts
  3. 52 0
      src/custom.scss

+ 0 - 10
src/adjuster/adjuster.directive.html

@@ -1,15 +1,5 @@
 <div [hidden]="!isVisible()" class="card mainpanel">
     <hs-panel-header name="adjuster" [title]="'Vyladit faktory'"></hs-panel-header>
-    <style>
-        .weather-table>tbody>tr>td,
-        .table-condensed>tbody>tr>th,
-        .table-condensed>tfoot>tr>td,
-        .table-condensed>tfoot>tr>th,
-        .table-condensed>thead>tr>td,
-        .table-condensed>thead>tr>th {
-            padding: 2px;
-        }
-    </style>
     <div class="card-body">
         <div class="card-body">
                 <div *ngFor="let factor of adjusterService.factors">

+ 3 - 0
src/app.service.ts

@@ -1,5 +1,6 @@
 import {Injectable} from '@angular/core';
 
+import {HsLanguageService} from 'hslayers-ng/components/language/language.service';
 import {HsLayoutService} from 'hslayers-ng/components/layout/layout.service';
 import {HsPanelContainerService} from 'hslayers-ng/components/layout/panels/panel-container.service';
 import {HsSidebarService} from 'hslayers-ng/components/sidebar/sidebar.service';
@@ -9,10 +10,12 @@ import {AdjusterComponent} from './adjuster/adjuster.component';
 @Injectable({providedIn: 'root'})
 export class AppService {
   constructor(
+    public hsLanguageService: HsLanguageService,
     public hsLayoutService: HsLayoutService,
     public hsPanelContainerService: HsPanelContainerService,
     public hsSidebarService: HsSidebarService
   ) {
+    this.hsLanguageService.setLanguage('cs');
     this.init();
   }
 

+ 52 - 0
src/custom.scss

@@ -0,0 +1,52 @@
+@import "~bootstrap/scss/_functions";
+@import "~bootstrap/scss/_variables";
+@import "~bootstrap/scss/_mixins";
+@import "~bootstrap/scss/spinners";
+@import "~bootstrap/scss/custom-forms";
+
+
+html, body {
+  margin: 0;
+  padding: 0;
+}
+
+#hs-app {
+  position: relative;
+  margin: 0;
+  padding: 0;
+}
+
+.cursor-pointer {
+  cursor: pointer;
+}
+
+.loader-splash {
+  font-family: Arial, Helvetica, sans-serif; /* temporary workaround for HSL 2.x */
+  height: 100vh;
+  width: 100vw;
+  position: absolute;
+  z-index: 1010;
+  top: 0;
+  left: 0;
+  background-color: rgba(65,65,65,.66);
+}
+
+.loader-splash > div {
+  position: relative;
+  margin-top: 20%;
+}
+
+.loader-splash h1 {
+  color: #77bbff;
+}
+
+.loader-splash .spinner {
+  width: 10vh;
+  height: 10vh;
+  color: #77bbff;
+}
+
+.center-block {
+  text-align: center;
+  margin-bottom: 1em;
+}