mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 17:30:14 +01:00
refactor(styles): complete styles refactoring
This commit is contained in:
parent
6e7051aed8
commit
78aef482aa
12 changed files with 46 additions and 15 deletions
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../styles/variables';
|
||||
|
||||
// TODO move colors to theme
|
||||
@include nga-install-component() {
|
||||
|
|
|
|||
3
src/app/@theme/styles/global.scss
Normal file
3
src/app/@theme/styles/global.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@mixin ngx-global-theme() {
|
||||
// any global, non-component styles go here
|
||||
}
|
||||
16
src/app/@theme/styles/styles.scss
Normal file
16
src/app/@theme/styles/styles.scss
Normal 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();
|
||||
};
|
||||
|
|
@ -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();
|
||||
19
src/app/@theme/styles/variables.scss
Normal file
19
src/app/@theme/styles/variables.scss
Normal 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);
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../../@theme/styles/variables';
|
||||
|
||||
@include nga-install-component() {
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../@theme/styles/variables';
|
||||
@import '~@nga/theme/styles/global/bootstrap/hero-buttons';
|
||||
|
||||
@include nga-install-component() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../../@theme/styles/variables';
|
||||
@import '~@nga/theme/styles/global/bootstrap/hero-buttons';
|
||||
|
||||
@include nga-install-component() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../../@theme/styles/variables';
|
||||
|
||||
@include nga-install-component() {
|
||||
/deep/ agm-map .agm-map-container-inner {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../../@theme/styles/variables';
|
||||
|
||||
@include nga-install-component() {
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import 'style-loader!../@theme/styles/themes.scss';
|
||||
import 'style-loader!../@theme/styles/styles.scss';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-pages',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import '~@nga/theme/styles/component';
|
||||
@import '../../../@theme/styles/variables';
|
||||
@import '~@nga/theme/styles/global/bootstrap/buttons';
|
||||
|
||||
@mixin btn-bg($background) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue