mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix(dashboard): improve solar card responsiveness
This commit is contained in:
parent
7beefeccaa
commit
83fffafe45
2 changed files with 17 additions and 9 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
@import '../../../@theme/styles/themes';
|
@import '../../../@theme/styles/themes';
|
||||||
|
@import '~@nebular/theme/styles/global/bootstrap/breakpoints';
|
||||||
|
@import '~bootstrap/scss/mixins/breakpoints';
|
||||||
|
|
||||||
@include nb-install-component() {
|
@include nb-install-component() {
|
||||||
|
|
||||||
|
|
@ -12,6 +14,13 @@
|
||||||
width: 40%;
|
width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
.date {
|
.date {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
font-weight: nb-theme(font-weight-bolder);
|
font-weight: nb-theme(font-weight-bolder);
|
||||||
|
|
@ -39,13 +48,6 @@
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
flex: 1;
|
|
||||||
align-self: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include nb-for-theme(cosmic) {
|
@include nb-for-theme(cosmic) {
|
||||||
color: nb-theme(color-fg-heading);
|
color: nb-theme(color-fg-heading);
|
||||||
|
|
||||||
|
|
@ -57,4 +59,10 @@
|
||||||
color: nb-theme(color-fg);
|
color: nb-theme(color-fg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(xs) {
|
||||||
|
.value {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ export class SolarComponent implements AfterViewInit {
|
||||||
clockWise: true,
|
clockWise: true,
|
||||||
hoverAnimation: false,
|
hoverAnimation: false,
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
center: ['35%', '50%'],
|
center: ['45%', '50%'],
|
||||||
radius: solarTheme.radius,
|
radius: solarTheme.radius,
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
|
|
@ -116,7 +116,7 @@ export class SolarComponent implements AfterViewInit {
|
||||||
clockWise: true,
|
clockWise: true,
|
||||||
hoverAnimation: false,
|
hoverAnimation: false,
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
center: ['35%', '50%'],
|
center: ['45%', '50%'],
|
||||||
radius: solarTheme.radius,
|
radius: solarTheme.radius,
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue