|
1 | 1 | @use "theme/globals" as *; |
2 | 2 |
|
3 | 3 | :host { |
4 | | - --horizontal-margin: 12px; |
5 | | - --vertical-margin: 12px; |
6 | | - --card-padding: 16px; |
| 4 | + --horizontal-spacing: var(--mdl-spacing-4); |
| 5 | + --vertical-spacing: var(--mdl-spacing-2); |
| 6 | + --colored-box-padding: var(--mdl-spacing-2); |
7 | 7 | --card-border-width: 0px; |
8 | 8 | --card-radius: 0px; |
9 | 9 | --card-background: transparent; |
| 10 | + --activity-border: 2px solid var(--stroke); |
| 11 | + --card-padding-bottom: var(--vertical-spacing); |
10 | 12 |
|
11 | 13 | ion-card { |
12 | | - margin: var(--vertical-margin) var(--horizontal-margin); |
| 14 | + margin: var(--vertical-spacing) var(--horizontal-spacing); |
| 15 | + padding: 0px; |
13 | 16 | --ion-card-border-width: var(--card-border-width); |
14 | 17 | --ion-card-radius: var(--card-radius); |
15 | 18 | --ion-card-background: var(--card-background); |
| 19 | + padding-bottom: var(--card-padding-bottom); |
| 20 | + border-bottom: var(--activity-border); |
16 | 21 | } |
17 | 22 |
|
18 | 23 | ion-item { |
19 | | - --padding-start: var(--card-padding); |
20 | | - --inner-padding-end: var(--card-padding); |
| 24 | + --padding-start: 0px; |
| 25 | + --inner-padding-end: 0px; |
| 26 | + --background: transparent; |
21 | 27 | ion-label { |
22 | | - margin-top: var(--card-padding); |
23 | | - margin-bottom: var(--card-padding); |
24 | | - &>:last-child { |
25 | | - margin-bottom: 0px; |
26 | | - } |
| 28 | + margin-top: 0px; |
| 29 | + margin-bottom: 0px; |
27 | 30 | } |
28 | 31 | } |
29 | 32 |
|
|
33 | 36 | flex-direction: row; |
34 | 37 |
|
35 | 38 | core-mod-icon { |
36 | | - margin-top: 0px; |
37 | | - margin-bottom: 0px; |
38 | 39 | --module-icon-padding: 0px; |
39 | 40 | --module-legacy-icon-padding: 4px; |
40 | 41 | --module-icon-radius: var(--mdl-shape-borderRadius-xs); |
|
46 | 47 | .activity-title { |
47 | 48 | flex-grow: 1; |
48 | 49 | align-self: center; |
49 | | - @include margin-horizontal(null, var(--card-padding)); |
| 50 | + @include margin-horizontal(null, var(--horizontal-spacing)); |
50 | 51 |
|
51 | 52 | .item-heading ion-icon { |
52 | 53 | @include margin-horizontal(8px, null); |
|
56 | 57 |
|
57 | 58 | .core-module-buttons { |
58 | 59 | align-self: self-start; |
59 | | - margin: 0; |
60 | 60 |
|
61 | 61 | display: flex; |
62 | 62 | flex-flow: row; |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 |
|
| 89 | + core-mod-icon, |
| 90 | + .activity-title, |
| 91 | + .core-module-buttons { |
| 92 | + margin-top: var(--vertical-spacing); |
| 93 | + margin-bottom: var(--vertical-spacing); |
| 94 | + } |
| 95 | + |
89 | 96 | .core-module-additional-info { |
90 | 97 | display: flex; |
91 | 98 | align-items: center; |
|
106 | 113 | } |
107 | 114 |
|
108 | 115 | core-course-module-completion { |
109 | | - --margin: 8px 0px; |
| 116 | + --margin: var(--vertical-spacing) 0px; |
110 | 117 | } |
111 | 118 |
|
112 | 119 | .activity-dates { |
|
121 | 128 |
|
122 | 129 | .activity-description-availabilityinfo, |
123 | 130 | .activity-extrabadges { |
124 | | - margin-top: 8px; |
125 | | - padding-top: 8px; |
| 131 | + margin-top: var(--vertical-spacing); |
| 132 | + margin-bottom: var(--vertical-spacing); |
| 133 | + } |
| 134 | + |
| 135 | + .activity-extrabadges, |
| 136 | + .core-module-description { |
126 | 137 | border-top: 1px solid var(--stroke); |
| 138 | + display: block; |
127 | 139 | } |
128 | 140 |
|
129 | 141 | .activity-extrabadges { |
130 | 142 | font: var(--mdl-typography-body-font-md); |
131 | 143 | color: var(--medium); |
132 | 144 | } |
133 | 145 |
|
134 | | - .activity-description-availabilityinfo { |
135 | | - .core-module-availabilityinfo { |
136 | | - background: var(--gray-300); |
137 | | - border-radius: var(--mdl-shape-borderRadius-sm); |
138 | | - margin-top: 8px; |
139 | | - padding: 8px; |
140 | | - font-size: var(--mdl-typography-body-fontSize-md); |
141 | | - line-height: 120%; |
142 | | - |
143 | | - ::ng-deep ul { |
144 | | - margin-top: 8px; |
145 | | - margin-bottom: 0px; |
| 146 | + .activity-description-availabilityinfo .core-module-availabilityinfo { |
| 147 | + background: var(--gray-300); |
| 148 | + font: var(--mdl-typography-label-font-lg); |
146 | 149 |
|
147 | | - li { |
148 | | - margin-bottom: 4px; |
149 | | - } |
150 | | - } |
| 150 | + ::ng-deep ul { |
| 151 | + margin-top: 8px; |
| 152 | + margin-bottom: 0px; |
151 | 153 |
|
152 | | - ion-icon { |
153 | | - @include margin-horizontal(null, 8px); |
| 154 | + li { |
| 155 | + margin-bottom: 4px; |
154 | 156 | } |
155 | 157 | } |
156 | 158 | } |
|
162 | 164 | clear: both; |
163 | 165 | } |
164 | 166 |
|
165 | | - .core-course-last-module-viewed { |
166 | | - padding: 8px 12px; |
167 | | - color: var(--subdued-text-color); |
168 | | - border-top: 1px solid var(--stroke); |
| 167 | + .colored-box-with-icon { |
| 168 | + margin-top: var(--vertical-spacing); |
| 169 | + margin-bottom: var(--vertical-spacing); |
| 170 | + |
| 171 | + border: 0px; |
| 172 | + padding: var(--colored-box-padding); |
| 173 | + border-radius: var(--mdl-shape-borderRadius-sm); |
169 | 174 |
|
170 | 175 | ion-icon { |
171 | | - margin-right: 4px; |
| 176 | + @include margin-horizontal(null, var(--mdl-spacing-2)); |
| 177 | + margin-top: auto; |
| 178 | + margin-bottom: auto; |
| 179 | + } |
| 180 | + |
| 181 | + &.core-course-last-module-viewed { |
| 182 | + display: flex; |
| 183 | + background-color: var(--info-tint); |
| 184 | + color: var(--info-shade); |
| 185 | + font: var(--mdl-typography-label-font-md); |
172 | 186 | } |
173 | 187 | } |
174 | 188 |
|
|
185 | 199 | } |
186 | 200 |
|
187 | 201 | &.indented ion-card { |
188 | | - @include margin-horizontal(calc(var(--horizontal-margin) + 1rem), null); |
189 | | - } |
190 | | - |
191 | | - & + ::ng-deep core-course-module ion-card { |
192 | | - border-top: 1px solid var(--ion-card-border-color); |
| 202 | + @include margin-horizontal(calc(var(--horizontal-spacing) + 1rem), null); |
193 | 203 | } |
194 | 204 |
|
195 | 205 | // Hide download folder icon meanwhile MOBILE-4147 is not solved |
196 | 206 | core-format-text.core-module-description ::ng-deep .description-inner .navitem { |
197 | 207 | display: none; |
198 | 208 | } |
| 209 | + |
199 | 210 | } |
200 | 211 |
|
201 | 212 |
|
|
0 commit comments