Skip to content

Commit c1ad78f

Browse files
committed
remove TODOs from migrations
1 parent f0f637f commit c1ad78f

File tree

6 files changed

+52
-69
lines changed

6 files changed

+52
-69
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
31
mat-card {
4-
background-color: transparent;
2+
background-color: transparent;
53
}
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
2-
/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
31
mat-card {
4-
background-color: transparent;
2+
background-color: transparent;
53
}
64

75
#subtitle {
8-
max-width: 85%;
9-
overflow: hidden;
10-
white-space: nowrap;
11-
text-overflow: ellipsis;
6+
max-width: 85%;
7+
overflow: hidden;
8+
white-space: nowrap;
9+
text-overflow: ellipsis;
1210
}
Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,70 @@
1-
2-
/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
31
mat-card {
4-
background-color: transparent;
2+
background-color: transparent;
53
}
64

75
#subtitle {
8-
max-width: 85%;
9-
overflow: hidden;
10-
white-space: nowrap;
11-
text-overflow: ellipsis;
6+
max-width: 85%;
7+
overflow: hidden;
8+
white-space: nowrap;
9+
text-overflow: ellipsis;
1210
}
1311

14-
1512
div.card {
16-
padding: 10px;
17-
padding-bottom: 8px;
18-
width: 100%;
13+
padding: 10px;
14+
padding-bottom: 8px;
15+
width: 100%;
1916
}
20-
.fixed-bottom{
21-
align-self: flex-end;
22-
align-content: right;
17+
.fixed-bottom {
18+
align-self: flex-end;
19+
align-content: right;
2320
}
2421

2522
table.card-table {
26-
table-layout: fixed;
27-
width: 100%;
23+
table-layout: fixed;
24+
width: 100%;
2825
}
2926

3027
.avatar {
31-
width: 50px;
28+
width: 50px;
3229
}
3330

34-
.close{
35-
scale: 0.5;
36-
color: red;
31+
.close {
32+
scale: 0.5;
33+
color: red;
3734
}
3835

3936
.avatar img {
40-
height: 50px;
41-
width: 50px;
42-
background: url('/assets/lotus_placeholder.png') no-repeat;
43-
background-size: contain;
37+
height: 50px;
38+
width: 50px;
39+
background: url("/assets/lotus_placeholder.png") no-repeat;
40+
background-size: contain;
4441
}
4542

4643
div.content {
47-
margin: 0;
48-
margin-left: 5px;
49-
font-size: 0.9em;
50-
width: 100%;
44+
margin: 0;
45+
margin-left: 5px;
46+
font-size: 0.9em;
47+
width: 100%;
5148
}
5249

5350
div.content p {
54-
margin: 0.3em 0;
55-
width: calc(100% - 2em);
51+
margin: 0.3em 0;
52+
width: calc(100% - 2em);
5653
}
5754

5855
.card-sub-title {
59-
color: gray;
60-
white-space: nowrap;
61-
overflow: hidden;
62-
text-overflow: ellipsis;
56+
color: gray;
57+
white-space: nowrap;
58+
overflow: hidden;
59+
text-overflow: ellipsis;
6360
}
6461

6562
.badge {
66-
width: 30px;
67-
padding-right: 5px;
63+
width: 30px;
64+
padding-right: 5px;
6865
}
6966

7067
.badge img {
71-
height: 20px; width: 20px;
68+
height: 20px;
69+
width: 20px;
7270
}
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
2-
/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
31
mat-card {
4-
background-color: transparent;
2+
background-color: transparent;
53
}
64

75
#subtitle {
8-
max-width: 85%;
9-
height:fit-content;
10-
white-space: normal;
11-
overflow: hidden;
12-
word-wrap: break-word;
13-
}
6+
max-width: 85%;
7+
height: fit-content;
8+
white-space: normal;
9+
overflow: hidden;
10+
word-wrap: break-word;
11+
}
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
2-
/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
31
mat-card {
4-
background-color: transparent;
2+
background-color: transparent;
53
}
64

75
.disabled {
8-
cursor: default;
9-
pointer-events: none;
6+
cursor: default;
7+
pointer-events: none;
108
}

src/theme.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
@use "sass:map";
22
@use '@angular/material' as mat;
3-
// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.
4-
// The following line adds:
5-
// 1. Default typography styles for all components
6-
// 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)
7-
// If you specify typography styles for the components you use elsewhere, you should delete this line.
8-
// If you don't need the default component typographies but still want the hierarchy styles,
9-
// you can delete this line and instead use:
10-
// `@include mat.legacy-typography-hierarchy(mat.define-typography-config());`
3+
114
@include mat.all-component-typographies();
125
@include mat.elevation-classes();
136
@include mat.app-background();

0 commit comments

Comments
 (0)