Reconfigured project to use scss (sass, see http://sass-lang.com/guide)) instead of regular css files to support inheritance, variables, etc. in style files. Replaced reference to pre-built bootstrap with a custom build via the sass compiler to enable customization of colors, fonts, etc. (see https://github.com/angular/angular-cli/wiki/stories-include-bootstrap for more details on how to do this). Added custom variable file to play around with this setup.
This commit is contained in:
@@ -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
|
||||
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/* You can add global styles to this file, and also import other style files */
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user