diff --git a/web/angular/.angular-cli.json b/web/angular/.angular-cli.json index 6c3d22a..40746a9 100644 --- a/web/angular/.angular-cli.json +++ b/web/angular/.angular-cli.json @@ -19,7 +19,7 @@ "testTsconfig": "tsconfig.spec.json", "prefix": "app", "styles": [ - "styles.css" + "styles.scss" ], "scripts": [], "environmentSource": "environments/environment.ts", @@ -54,7 +54,7 @@ } }, "defaults": { - "styleExt": "css", + "styleExt": "scss", "component": {} } } diff --git a/web/angular/package.json b/web/angular/package.json index e139484..f904d4c 100644 --- a/web/angular/package.json +++ b/web/angular/package.json @@ -25,6 +25,7 @@ "@angular/platform-browser-dynamic": "^5.0.0", "@angular/router": "^5.0.0", "@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5", + "bootstrap": "^4.0.0-beta.2", "core-js": "^2.4.1", "redux": "^3.7.2", "rxjs": "^5.5.2", diff --git a/web/angular/src/_variables.scss b/web/angular/src/_variables.scss new file mode 100644 index 0000000..acb8e93 --- /dev/null +++ b/web/angular/src/_variables.scss @@ -0,0 +1,15 @@ +/* + Here we can configure bootstrap sass variables + more variables can be found in the _variables.scss + in the bootstrap node module (see + ../node_modules/bootstrap/scss/_variables.scss) + + When defining variables here, leave out the + !default to make this definiton the default. +*/ + +// change some colors to UDE schema at +// https://www.uni-due.de/offen-im-denken/farben.php +$primary: #004c93; // UDE Primär (buttons will be darker now) +$secondary: #efe4bf; // UDE Sekundär (probably not a good idea) +$body-color: #1a171b; // UDE Schwarz diff --git a/web/angular/src/app/app.component.css b/web/angular/src/app/app.component.scss similarity index 100% rename from web/angular/src/app/app.component.css rename to web/angular/src/app/app.component.scss diff --git a/web/angular/src/app/app.component.ts b/web/angular/src/app/app.component.ts index 7d37ef1..6b44997 100644 --- a/web/angular/src/app/app.component.ts +++ b/web/angular/src/app/app.component.ts @@ -5,7 +5,7 @@ import { ConsoleService } from './console.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', - styleUrls: ['./app.component.css'] + styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { title = 'Maptology'; diff --git a/web/angular/src/app/console/console.component.css b/web/angular/src/app/console/console.component.scss similarity index 100% rename from web/angular/src/app/console/console.component.css rename to web/angular/src/app/console/console.component.scss diff --git a/web/angular/src/app/console/console.component.ts b/web/angular/src/app/console/console.component.ts index b58df18..9cd2929 100644 --- a/web/angular/src/app/console/console.component.ts +++ b/web/angular/src/app/console/console.component.ts @@ -5,7 +5,7 @@ import { Observable } from 'rxjs/Observable'; @Component({ selector: 'app-console', templateUrl: './console.component.html', - styleUrls: ['./console.component.css'], + styleUrls: ['./console.component.scss'], encapsulation: ViewEncapsulation.None }) export class ConsoleComponent implements OnInit { diff --git a/web/angular/src/app/login/login.component.css b/web/angular/src/app/login/login.component.scss similarity index 100% rename from web/angular/src/app/login/login.component.css rename to web/angular/src/app/login/login.component.scss diff --git a/web/angular/src/app/login/login.component.ts b/web/angular/src/app/login/login.component.ts index eb72378..863f55f 100644 --- a/web/angular/src/app/login/login.component.ts +++ b/web/angular/src/app/login/login.component.ts @@ -7,7 +7,7 @@ import { User } from '../../api/models/user.model'; @Component({ selector: 'app-login', templateUrl: './login.component.html', - styleUrls: ['./login.component.css'], + styleUrls: ['./login.component.scss'], encapsulation: ViewEncapsulation.None }) export class LoginComponent implements OnInit { diff --git a/web/angular/src/app/notices/notices.component.css b/web/angular/src/app/notices/notices.component.scss similarity index 100% rename from web/angular/src/app/notices/notices.component.css rename to web/angular/src/app/notices/notices.component.scss diff --git a/web/angular/src/app/notices/notices.component.ts b/web/angular/src/app/notices/notices.component.ts index 388406a..ca98093 100644 --- a/web/angular/src/app/notices/notices.component.ts +++ b/web/angular/src/app/notices/notices.component.ts @@ -10,7 +10,7 @@ import { HttpErrorResponse } from '@angular/common/http'; @Component({ selector: 'app-notices', templateUrl: './notices.component.html', - styleUrls: ['./notices.component.css'], + styleUrls: ['./notices.component.scss'], encapsulation: ViewEncapsulation.None }) export class NoticesComponent implements OnInit { diff --git a/web/angular/src/index.html b/web/angular/src/index.html index f8bc864..9a40509 100644 --- a/web/angular/src/index.html +++ b/web/angular/src/index.html @@ -8,7 +8,6 @@ - diff --git a/web/angular/src/styles.css b/web/angular/src/styles.css deleted file mode 100644 index 90d4ee0..0000000 --- a/web/angular/src/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ diff --git a/web/angular/src/styles.scss b/web/angular/src/styles.scss new file mode 100644 index 0000000..257c5f9 --- /dev/null +++ b/web/angular/src/styles.scss @@ -0,0 +1,7 @@ +/* You can add global styles to this file, and also import other style files */ + +/* import the bootstrap variable overwrites from _variables.scss */ +@import 'variables'; +/* import the scss version of bootstrap 4 from the corresponding module */ +@import '../node_modules/bootstrap/scss/bootstrap'; +