refactor(styles): complete styles refactoring

This commit is contained in:
Dmitry Nehaychik 2017-06-16 19:21:22 +03:00
parent 6e7051aed8
commit 78aef482aa
12 changed files with 46 additions and 15 deletions

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../styles/variables';
// TODO move colors to theme // TODO move colors to theme
@include nga-install-component() { @include nga-install-component() {

View file

@ -0,0 +1,3 @@
@mixin ngx-global-theme() {
// any global, non-component styles go here
}

View file

@ -0,0 +1,16 @@
// themes - our custom or/and out of the box themes
@import 'variables';
// framework component themes (styles tied to theme variables)
@import '~@nga/theme/styles/globals';
@import '~@nga/auth/styles/all';
// custom global styles
@import 'global';
// install the framework and custom global styles
@include nga-install() {
@include nga-theme-global();
@include nga-auth-global();
@include ngx-global-theme();
};

View file

@ -1,7 +0,0 @@
@import '~@nga/theme/styles/all';
@include nga-themes-install() {
// write global styles here
}
@import '~@nga/auth/styles/all';
@include nga-auth-install();

View file

@ -0,0 +1,19 @@
// nga theming framework
@import '~@nga/theme/styles/theming';
// nga our of the box themes
@import '~@nga/theme/styles/themes';
// which themes you what to enable (empty to enable all - not recommended)
$nga-enabled-themes: (default, light, cosmic);
$nga-themes: nga-register-theme((
// app wise variables for each theme
), default, default);
$nga-themes: nga-register-theme((
// app wise variables for each theme
), cosmic, cosmic);
$nga-themes: nga-register-theme((
// app wise variables for each theme
), light, light);

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../../@theme/styles/variables';
@include nga-install-component() { @include nga-install-component() {
display: block; display: block;

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../@theme/styles/variables';
@import '~@nga/theme/styles/global/bootstrap/hero-buttons'; @import '~@nga/theme/styles/global/bootstrap/hero-buttons';
@include nga-install-component() { @include nga-install-component() {

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../../@theme/styles/variables';
@import '~@nga/theme/styles/global/bootstrap/hero-buttons'; @import '~@nga/theme/styles/global/bootstrap/hero-buttons';
@include nga-install-component() { @include nga-install-component() {

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../../@theme/styles/variables';
@include nga-install-component() { @include nga-install-component() {
/deep/ agm-map .agm-map-container-inner { /deep/ agm-map .agm-map-container-inner {

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../../@theme/styles/variables';
@include nga-install-component() { @include nga-install-component() {
display: block; display: block;

View file

@ -1,6 +1,6 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import 'style-loader!../@theme/styles/themes.scss'; import 'style-loader!../@theme/styles/styles.scss';
@Component({ @Component({
selector: 'ngx-pages', selector: 'ngx-pages',

View file

@ -1,4 +1,4 @@
@import '~@nga/theme/styles/component'; @import '../../../@theme/styles/variables';
@import '~@nga/theme/styles/global/bootstrap/buttons'; @import '~@nga/theme/styles/global/bootstrap/buttons';
@mixin btn-bg($background) { @mixin btn-bg($background) {