Skip to content

Commit c610ff5

Browse files
committed
Update css for list-group-item
1 parent 948a350 commit c610ff5

File tree

4 files changed

+66
-5
lines changed

4 files changed

+66
-5
lines changed

src/Pages/Grants/Index.cshtml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@
5353

5454
<dt>Created</dt>
5555
<dd>@grant.Created.ToString("yyyy-MM-dd")</dd>
56-
57-
<dt>Expires</dt>
58-
<dd>@grant.Expires.Value.ToString("yyyy-MM-dd")</dd>
59-
56+
@if (grant.Expires.HasValue)
57+
{
58+
<dt>Expires</dt>
59+
<dd>@grant.Expires.Value.ToString("yyyy-MM-dd")</dd>
60+
}
6061
@if (grant.IdentityGrantNames.Any())
6162
{
6263
<dt>Identity Grants</dt>

src/wwwroot/css/site.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@
66
width: 64px;
77
}
88

9+
/* List group */
10+
.list-group-item {
11+
color: #444;
12+
background-color: #fff;
13+
}
14+
15+
.list-group-item.disabled, .list-group-item:disabled {
16+
color: #5c507c;
17+
background-color: #fff;
18+
}
19+
20+
.list-group-item.active, .list-group-item:hover, .list-group-item:focus {
21+
z-index: 2;
22+
color: #444;
23+
background-color: #eee;
24+
border-color: #eee;
25+
}
26+
27+
.list-group-item.active {
28+
font-weight: 700;
29+
}
30+
31+
.list-group-item.active:hover {
32+
background-color: #fff;
33+
}
34+
35+
.list-group-item.disabled:hover {
36+
color: #5c507c;
37+
}
38+
939
/* Accordion styles */
1040
.collapsible-link::before {
1141
content: "";

src/wwwroot/css/site.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wwwroot/css/site.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@
88
}
99
}
1010

11+
/* List group */
12+
.list-group-item {
13+
color: #444;
14+
background-color: #fff;
15+
}
16+
17+
.list-group-item.disabled, .list-group-item:disabled {
18+
color: #5c507c;
19+
background-color: #fff;
20+
}
21+
22+
.list-group-item.active, .list-group-item:hover, .list-group-item:focus {
23+
z-index: 2;
24+
color: #444;
25+
background-color: #eee;
26+
border-color: #eee;
27+
}
28+
29+
.list-group-item.active {
30+
font-weight: 700;
31+
}
32+
33+
.list-group-item.active:hover {
34+
background-color: #fff;
35+
}
36+
37+
.list-group-item.disabled:hover {
38+
color: #5c507c;
39+
}
40+
1141
/* Accordion styles */
1242
.collapsible-link::before {
1343
content: '';

0 commit comments

Comments
 (0)