Skip to content

Commit d935c30

Browse files
authored
Merge pull request #4197 from crazyserver/MOBILE-4660
MOBILE-4660 course: Improve module card styles
2 parents 8f6c1fd + d63c06e commit d935c30

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed
-161 Bytes
Loading

src/core/features/course/components/module/module.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--card-border-width: 0px;
88
--card-radius: 0px;
99
--card-background: transparent;
10-
--activity-border: 2px solid var(--stroke);
10+
--activity-border: 1px solid var(--stroke);
1111
--card-padding-bottom: var(--vertical-spacing);
1212

1313
ion-card {
@@ -132,15 +132,16 @@
132132
margin-bottom: var(--vertical-spacing);
133133
}
134134

135-
.activity-extrabadges,
136135
.core-module-description {
137-
border-top: 1px solid var(--stroke);
138136
display: block;
139137
}
140138

141139
.activity-extrabadges {
142140
font: var(--mdl-typography-body-font-md);
143141
color: var(--medium);
142+
border: 1px solid var(--stroke);
143+
border-radius: var(--mdl-shape-borderRadius-sm);
144+
padding: var(--mdl-spacing-2) var(--mdl-spacing-3) var(--mdl-spacing-2) var(--mdl-spacing-3);
144145
}
145146

146147
.activity-description-availabilityinfo .core-module-availabilityinfo {
-66 Bytes
Loading
36 Bytes
Loading

src/theme/components/ion-accordion.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
ion-accordion {
2-
.ion-accordion-toggle-icon[slot="start"] {
2+
> [slot="header"] .ion-accordion-toggle-icon[slot="start"] {
33
@include margin-horizontal(null, var(--mdl-spacing-2));
44
background-color: var(--gray-100);
55
border-radius: 50%;
66
padding: var(--mdl-spacing-1);
77
}
8+
9+
/**
10+
* Change arrow direction to match LMS: expanded is down, collapsed is right.
11+
*/
12+
&.accordion-expanding > [slot="header"] .ion-accordion-toggle-icon,
13+
&.accordion-expanded > [slot="header"] .ion-accordion-toggle-icon {
14+
transform: none;
15+
}
16+
17+
&.accordion-collapsing > [slot="header"] .ion-accordion-toggle-icon,
18+
&.accordion-collapsed > [slot="header"] .ion-accordion-toggle-icon {
19+
transform: rotate(-90deg);
20+
}
821
}
922

1023
:root.dark {
1124
ion-accordion {
12-
.ion-accordion-toggle-icon[slot="start"] {
25+
> [slot="header"] .ion-accordion-toggle-icon[slot="start"] {
1326
background-color: var(--gray-800);
1427
}
1528
}

0 commit comments

Comments
 (0)