mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
fix(dashboard): refactor styles for the new theming
This commit is contained in:
parent
2783671f17
commit
83ed53d477
1 changed files with 59 additions and 60 deletions
|
|
@ -1,74 +1,73 @@
|
||||||
@import '~@nga/theme/styles/themes/cosmic/theme';
|
@import '~@nga/theme/styles_new/all';
|
||||||
|
|
||||||
:host {
|
@include nga-install-component() {
|
||||||
}
|
.status-cards {
|
||||||
|
nga-card {
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
height: 6rem;
|
||||||
|
box-shadow: 0 3px 0 0 #322f70, 4px 0 18px 0 rgba(19, 19, 94, 0.4);
|
||||||
|
overflow: visible;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
.status-cards {
|
position: relative;
|
||||||
nga-card {
|
&::before {
|
||||||
flex-direction: row;
|
position: absolute;
|
||||||
align-items: center;
|
content: '';
|
||||||
height: 6rem;
|
height: calc(100% + 3px);
|
||||||
box-shadow: 0 3px 0 0 #322f70, 4px 0 18px 0 rgba(19, 19, 94, 0.4);
|
width: 100%;
|
||||||
overflow: visible;
|
left: 0;
|
||||||
cursor: pointer;
|
top: 0;
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
border-radius: nga-theme(card-border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
position: relative;
|
&.on {
|
||||||
&::before {
|
box-shadow: inset 0 3px 9px 0 #322f70, 4px 0 18px 0 rgba(19, 19, 94, 0.4);
|
||||||
position: absolute;
|
|
||||||
content: '';
|
|
||||||
height: calc(100% + 3px);
|
|
||||||
width: 100%;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
background: rgba(0, 0, 0, 0.1);
|
|
||||||
border-radius: $nga-card-border-radius;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.on {
|
.icon-container {
|
||||||
box-shadow: inset 0 3px 9px 0 #322f70, 4px 0 18px 0 rgba(19, 19, 94, 0.4);
|
box-shadow: none;
|
||||||
|
&.success {
|
||||||
.icon-container {
|
box-shadow: inset 0 5px 9px 0 #00967d, 0 4px 10px 0 rgba(33, 7, 77, 0.5), 0 2px 12px 0 rgba(35, 255, 181, 0.6);
|
||||||
box-shadow: none;
|
}
|
||||||
&.success {
|
}
|
||||||
box-shadow: inset 0 5px 9px 0 #00967d, 0 4px 10px 0 rgba(33, 7, 77, 0.5), 0 2px 12px 0 rgba(35, 255, 181, 0.6);
|
&::before {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&::before {
|
}
|
||||||
display: none;
|
|
||||||
|
.icon-container {
|
||||||
|
font-size: 4em;
|
||||||
|
padding: 0.5rem 1.75rem;
|
||||||
|
color: nga-theme(card-foreground);
|
||||||
|
border-radius: nga-theme(card-border-radius) 0 0 nga-theme(card-border-radius);
|
||||||
|
|
||||||
|
&.primary {
|
||||||
|
@include btn-hero-primary();
|
||||||
|
}
|
||||||
|
&.success {
|
||||||
|
@include btn-hero-success();
|
||||||
|
}
|
||||||
|
&.info {
|
||||||
|
@include btn-hero-info();
|
||||||
|
}
|
||||||
|
&.warning {
|
||||||
|
@include btn-hero-warning();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.icon-container {
|
.details {
|
||||||
font-size: 4em;
|
margin-left: 1.5rem;
|
||||||
padding: 0.5rem 1.75rem;
|
|
||||||
color: $nga-card-foreground;
|
|
||||||
border-radius: $nga-card-border-radius 0 0 $nga-card-border-radius;
|
|
||||||
|
|
||||||
&.primary {
|
|
||||||
@include btn-hero-primary();
|
|
||||||
}
|
}
|
||||||
&.success {
|
.title {
|
||||||
@include btn-hero-success();
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
&.info {
|
.status {
|
||||||
@include btn-hero-info();
|
font-size: 1.125rem;
|
||||||
|
font-weight: nga-theme(font-weight-light);
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: nga-theme(card-foreground-secondary);
|
||||||
}
|
}
|
||||||
&.warning {
|
|
||||||
@include btn-hero-warning();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.details {
|
|
||||||
margin-left: 1.5rem;
|
|
||||||
}
|
|
||||||
.title {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
.status {
|
|
||||||
font-size: 1.125rem;
|
|
||||||
font-weight: $nga-font-weight-light;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: $nga-card-foreground-secondary;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue