refactor(app): styles refactor

This commit is contained in:
Dmitry Nehaychik 2017-04-28 15:11:22 +03:00
parent 44f2f562a9
commit afc24fe88f
16 changed files with 47 additions and 43 deletions

View file

@ -1,4 +1,4 @@
@mixin base-footer-theme() { @mixin base-footer-theme($theme-name) {
/deep/ base-footer { /deep/ base-footer {
} }
} }

View file

@ -1,4 +1,4 @@
@mixin base-header-theme() { @mixin base-header-theme($theme-name) {
/deep/ base-header { /deep/ base-header {
.logo > a { .logo > a {
color: $nga-color-secondary !important; color: $nga-color-secondary !important;

View file

@ -1,4 +1,4 @@
@mixin search-input-theme() { @mixin search-input-theme($theme-name) {
/deep/ search-input { /deep/ search-input {
input { input {
background: transparent; background: transparent;

View file

@ -2,8 +2,10 @@
@import '../components/search-input/search-input.component.theme'; @import '../components/search-input/search-input.component.theme';
@import '../components/base-footer/base-footer.component.theme'; @import '../components/base-footer/base-footer.component.theme';
@mixin custom-components-theme() { // TODO: probably move this file into the components folder?
@include base-header-theme();
@include base-footer-theme(); @mixin custom-components-theme($theme-name) {
@include search-input-theme(); @include base-header-theme($theme-name);
@include base-footer-theme($theme-name);
@include search-input-theme($theme-name);
} }

View file

@ -1,10 +1,11 @@
@import '../components'; @import '../components';
@import 'gorgeous.variables'; @import 'variables';
@import '~@nga/theme/styles/themes/nga.theme.default'; @import '~@nga/theme/styles/themes/nga.theme.default';
@import 'nga-redefines/redefines'; @import 'overrides/all';
@include nga-theme('gorgeous') { $theme-name: 'gorgeous';
@include nga-theme-redefines(); @include nga-theme($theme-name) {
@include custom-components-theme(); @include nga-theme-overrides($theme-name);
@include custom-components-theme($theme-name);
} }

View file

@ -1,7 +0,0 @@
@import 'nga-layout';
@import 'nga-menu';
@mixin nga-theme-redefines {
@include nga-layout-redefines();
@include nga-menu-redefines();
}

View file

@ -1,4 +1,4 @@
@mixin nga-layout-redefines { @mixin nga-layout-override($theme-name) {
$layout-shadow: 0 8px 20px 0 rgba(37, 26, 75, 0.68); $layout-shadow: 0 8px 20px 0 rgba(37, 26, 75, 0.68);
/deep/ .layout { /deep/ .layout {

View file

@ -1,4 +1,4 @@
@mixin nga-menu-redefines { @mixin nga-menu-override($theme-name) {
/deep/ nga-menu { /deep/ nga-menu {
ul li { ul li {
&:first-child { &:first-child {

View file

@ -0,0 +1,7 @@
@import 'nga-layout';
@import 'nga-menu';
@mixin nga-theme-overrides($theme-name) {
@include nga-layout-override($theme-name);
@include nga-menu-override($theme-name);
}

View file

@ -1,7 +0,0 @@
@import 'nga-layout';
@import 'nga-menu';
@mixin nga-theme-redefines {
@include nga-layout-redefines();
@include nga-menu-redefines();
}

View file

@ -1,4 +1,4 @@
@mixin nga-layout-redefines { @mixin nga-layout-override($theme-name) {
$layout-border-shadow: 0 4px 12px 0 rgba(33, 57, 161, 0.08); $layout-border-shadow: 0 4px 12px 0 rgba(33, 57, 161, 0.08);
/deep/ .layout { /deep/ .layout {

View file

@ -1,4 +1,4 @@
@mixin nga-menu-redefines { @mixin nga-menu-override($theme-name) {
/deep/ nga-menu { /deep/ nga-menu {
ul li { ul li {
transition: all 0.2s ease; transition: all 0.2s ease;

View file

@ -0,0 +1,7 @@
@import 'nga-layout';
@import 'nga-menu';
@mixin nga-theme-overrides($theme-name) {
@include nga-layout-override($theme-name);
@include nga-menu-override($theme-name);
}

View file

@ -1,10 +1,11 @@
@import 'pure.variables'; @import 'variables';
@import '../components'; @import '../components';
@import 'nga-redefines/redefines'; @import 'overrides/all';
@import '~@nga/theme/styles/themes/nga.theme.default'; @import '~@nga/theme/styles/themes/nga.theme.default';
@include nga-theme('pure') { $theme-name: 'pure';
@include nga-theme-redefines(); @include nga-theme($theme-name) {
@include custom-components-theme(); @include nga-theme-overrides($theme-name);
@include custom-components-theme($theme-name);
} }