Skip to content

Commit f86de01

Browse files
authored
Merge pull request #1957 from codidact/0valt/1465/pagination-styles
Make pagination item disabled state clearer
2 parents 4b6981b + 5f3a90a commit f86de01

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

app/assets/stylesheets/application.scss

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,6 @@ a.header--site-name {
8484
}
8585
}
8686

87-
/* Copied from Co-Design for compatibility purposes */
88-
ul.pagination li.active {
89-
border-color:#293338;
90-
background-color:#3f4e56;
91-
box-shadow:2px 3px 2px -2px #344147;
92-
color:#fff;
93-
font-weight:600
94-
}
95-
96-
ul.pagination li.active a:hover {
97-
background-color:transparent
98-
}
99-
100-
ul.pagination li.disabled {
101-
box-shadow:none
102-
}
103-
/* *** */
104-
10587
.notice__dev-mode {
10688
font-size: 14px;
10789
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@import 'variables';
2+
3+
ul {
4+
&.pagination {
5+
li {
6+
&.active {
7+
border-color: #293338;
8+
background-color: #3f4e56;
9+
box-shadow: 2px 3px 2px -2px #344147;
10+
color: #fff;
11+
font-weight: 600;
12+
13+
a:hover {
14+
background-color: transparent;
15+
}
16+
}
17+
18+
&.disabled {
19+
box-shadow: none;
20+
filter: grayscale(1) opacity(0.7);
21+
cursor: not-allowed;
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)