Skip to content

Commit 19d4e8a

Browse files
committed
refactor: update deprecated scss nesting
1 parent f121eff commit 19d4e8a

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
@use "typography/custom-typography";
55

66
.cards-wrapper {
7-
@include grid-layout.adaptive($min-block-width: 250px);
87
margin-top: sizes.$large;
8+
@include grid-layout.adaptive($min-block-width: 250px);
99
}
1010

1111
.mat-mdc-card[disabled] {

src/app/core/common-components/entities-table/list-paginator/list-paginator.component.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ $slider-padding-all: 16px;
88
display: flex;
99
flex-direction: row;
1010
align-items: center;
11+
12+
justify-content: flex-start;
13+
background-color: white;
14+
1115
@media all and (max-width: $approx-width-paginator) {
1216
flex-direction: column-reverse;
1317
align-items: flex-start;
1418
}
15-
justify-content: flex-start;
16-
background-color: white;
1719
}
1820

1921
.slider {
2022
padding-left: sizes.$regular;
23+
font-size: small;
24+
2125
@media all and (max-width: $approx-width-paginator) {
2226
padding-bottom: sizes.$regular;
2327
}
24-
font-size: small;
2528
}

src/app/core/dashboard/dashboard/dashboard.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ $max-screen-width: $min-widget-width + sizes.$margin-main-view-right +
1010
$widget-height: 430px;
1111

1212
:host {
13-
@include grid-layout.adaptive($min-widget-width, $max-screen-width);
1413
/* Make all rows be equal in height */
1514
grid-auto-rows: $widget-height;
15+
16+
@include grid-layout.adaptive($min-widget-width, $max-screen-width);
1617
}
1718

1819
.grid-item {

src/app/core/ui/ui/ui.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ mat-sidenav-container {
105105
place-items: center;
106106
min-width: fit-content;
107107

108+
box-sizing: border-box;
109+
108110
&:not(:last-child) {
109111
border-right: solid 1px rgba(0, 0, 0, 0.12);
110112
}
111-
112-
box-sizing: border-box;
113113
}
114114

115115
.info-icon {

src/app/features/dashboard-widgets/progress-dashboard-widget/edit-progress-dashboard/edit-progress-dashboard.component.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
}
2121

2222
.title-field {
23+
width: 90%;
24+
min-width: 0;
25+
2326
input {
2427
font-size: 32px;
2528
}
26-
width: 90%;
27-
min-width: 0;
2829
}
2930

3031
.header-field {

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<link rel="manifest" href="manifest.webmanifest" />
3232
<meta name="theme-color" content="#1976d2" />
3333

34+
<meta name="mobile-web-app-capable" content="yes" />
3435
<meta name="apple-mobile-web-app-capable" content="yes" />
3536
<meta name="apple-touch-fullscreen" content="yes" />
3637
<meta name="apple-mobile-web-app-title" content="Aam Digital" />

src/styles/mixins/_grid-layout.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
@mixin adaptive($min-block-width, $max-screen-width: $min-block-width) {
1212
display: grid;
1313
grid-template-columns: repeat(auto-fit, minmax($min-block-width, 1fr));
14+
grid-gap: sizes.$large;
15+
1416
@media screen and (max-width: $max-screen-width) {
1517
grid-template-columns: 1fr;
1618
}
17-
grid-gap: sizes.$large;
1819
}

0 commit comments

Comments
 (0)