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 {
}
}
}

View file

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

View file

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

View file

@ -2,8 +2,10 @@
@import '../components/search-input/search-input.component.theme';
@import '../components/base-footer/base-footer.component.theme';
@mixin custom-components-theme() {
@include base-header-theme();
@include base-footer-theme();
@include search-input-theme();
// TODO: probably move this file into the components folder?
@mixin custom-components-theme($theme-name) {
@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 'gorgeous.variables';
@import 'variables';
@import '~@nga/theme/styles/themes/nga.theme.default';
@import 'nga-redefines/redefines';
@import 'overrides/all';
@include nga-theme('gorgeous') {
@include nga-theme-redefines();
@include custom-components-theme();
}
$theme-name: 'gorgeous';
@include nga-theme($theme-name) {
@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);
/deep/ .layout {
@ -69,4 +69,4 @@
}
}
}
}
}

View file

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

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);
/deep/ .layout {
@ -24,4 +24,4 @@
padding: 1.25rem;
}
}
}
}

View file

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

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 'nga-redefines/redefines';
@import 'overrides/all';
@import '~@nga/theme/styles/themes/nga.theme.default';
@include nga-theme('pure') {
@include nga-theme-redefines();
@include custom-components-theme();
$theme-name: 'pure';
@include nga-theme($theme-name) {
@include nga-theme-overrides($theme-name);
@include custom-components-theme($theme-name);
}