refactor(card): extract card with select padding into theme

This commit is contained in:
Sergey Andrievskiy 2019-06-21 18:37:17 +03:00
parent 9946dbb6b6
commit 360846c6fb
6 changed files with 18 additions and 12 deletions

View file

@ -28,9 +28,8 @@
.chart-card nb-card-header {
display: flex;
align-items: center;
padding-top: 0.45rem;
padding-bottom: 0.45rem;
border-bottom-color: transparent;
padding-top: nb-theme(card-header-with-select-padding-top);
padding-bottom: nb-theme(card-header-with-select-padding-bottom);
}
.type-select {

View file

@ -11,8 +11,8 @@
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 0.45rem;
padding-bottom: 0.45rem;
padding-top: nb-theme(card-header-with-select-padding-top);
padding-bottom: nb-theme(card-header-with-select-padding-bottom);
}
ngx-traffic-chart {

View file

@ -8,8 +8,8 @@
nb-card-header {
flex-direction: row;
padding-top: 0.45rem;
padding-bottom: 0.45rem;
padding-top: nb-theme(card-header-with-select-padding-top);
padding-bottom: nb-theme(card-header-with-select-padding-bottom);
}
nb-card-body {

View file

@ -5,9 +5,8 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: nb-theme(card-padding);
padding-top: 0.45rem;
padding-bottom: 0.45rem;
padding-top: nb-theme(card-header-with-select-padding-top);
padding-bottom: nb-theme(card-header-with-select-padding-bottom);
@include nb-ltr(padding-right, 4rem);
@include nb-rtl(padding-left, 4rem);

View file

@ -6,8 +6,8 @@
align-items: center;
justify-content: space-between;
border: none;
padding-top: 0.45rem;
padding-bottom: 0.45rem;
padding-top: nb-theme(card-header-with-select-padding-top);
padding-bottom: nb-theme(card-header-with-select-padding-bottom);
}
nb-list {