Skip to content

Commit a813e0e

Browse files
committed
dashboard: Replace white-rows CSS class usage
1 parent 14301fc commit a813e0e

File tree

2 files changed

+39
-11
lines changed

2 files changed

+39
-11
lines changed

app/styles/dashboard.module.scss

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414

1515
.label {
16-
color: #858585;
16+
color: $main-color-light;
1717
font-size: 80%;
1818
}
1919
}
@@ -69,10 +69,37 @@
6969
}
7070
}
7171

72+
.feed {
73+
background: white;
74+
padding: 0 20px;
75+
}
76+
77+
.feed-list {
78+
margin: 0;
79+
padding: 0;
80+
}
81+
7282
.feed-row {
73-
composes: row from global;
7483
display: flex;
75-
flex-direction: column;
84+
align-items: baseline;
85+
padding: 20px 0;
86+
border-bottom: 2px solid $gray-border;
87+
88+
&:last-of-type {
89+
border: none;
90+
}
91+
92+
.version {
93+
color: $main-color-light;
94+
font-size: 80%;
95+
}
96+
97+
.date {
98+
flex-grow: 1;
99+
text-align: right;
100+
color: $main-color-light;
101+
font-size: 80%;
102+
}
76103
}
77104

78105
.info {
@@ -88,6 +115,7 @@
88115
.load-more {
89116
$bg: rgb(219, 217, 207);
90117
text-align: center;
118+
width: 100%;
91119
padding: 10px;
92120
outline: 0;
93121
border: 0;

app/templates/dashboard.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@
4545
Latest Updates
4646
</h2>
4747

48-
<div class='white-rows'>
49-
{{#each this.myFeed as |version|}}
50-
<div local-class="feed-row">
51-
<div local-class="info">
48+
<div local-class="feed">
49+
<ul local-class="feed-list">
50+
{{#each this.myFeed as |version|}}
51+
<div local-class="feed-row">
5252
<LinkTo @route="crate.version" @models={{array version.crateName version.num}}>
5353
{{ version.crateName }}
54-
<span class='small'>{{ version.num }}</span>
54+
<span local-class="version">{{ version.num }}</span>
5555
</LinkTo>
56-
<span local-class="date" class='small'>
56+
<span local-class="date">
5757
{{moment-from-now version.created_at}}
5858
</span>
5959
</div>
60-
</div>
61-
{{/each}}
60+
{{/each}}
61+
</ul>
6262

6363
{{#if this.loadingMore}}
6464
<span local-class='load-more'>

0 commit comments

Comments
 (0)