Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 471b630

Browse files
author
Nick Litwin
committed
Add hover state for my-challenges page too
1 parent 7ad9ad6 commit 471b630

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

assets/css/my-challenges/my-challenges.scss

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@
4040
display: flex;
4141
flex-direction: column;
4242
align-items: center;
43-
border-top: none;// prevent css from my dashboard to
43+
border-top: none;// prevent css from my dashboard to
4444
border-bottom: none;// prevent css from my dashboard to override
45-
4645
padding: 15px 15px 30px 15px;
4746
background-color: $gray-lightest;
4847
}
4948

5049
.content {
51-
5250
section.participated {
5351
background: white;
5452
align-self: center;
@@ -73,7 +71,7 @@
7371
margin-left: 55px;
7472
align-self: flex-start;
7573
text-transform: uppercase;
76-
color: #A3A3AE;
74+
color: $accent-gray;
7775
a {
7876
text-decoration: none;
7977

@@ -90,6 +88,7 @@
9088
right: 55px;*/
9189
margin-right: 55px;
9290
align-self: flex-end;
91+
9392
button {
9493
margin-right: 17px;
9594
padding: 0;
@@ -100,8 +99,14 @@
10099
font-size: 11px;
101100
line-height: 16px;
102101
text-transform: uppercase;
103-
color: #A3A3AE;
102+
color: $accent-gray;
104103
cursor: pointer;
104+
transition: none;
105+
106+
&:hover {
107+
color: $black;
108+
transition: none;
109+
}
105110

106111
&.disabled {
107112
color: $black;
@@ -124,13 +129,25 @@
124129
@include background-image-size(12px, 12px);
125130
}
126131

127-
&.tile:before {
128-
background: url(/images/grid-off.svg);
129-
}
130-
&.list:before {
131-
background: url(/images/list-off.svg);
132+
&.tile {
133+
&:before {
134+
background: url(/images/grid-off.svg);
135+
}
136+
137+
&:hover:before {
138+
background: url(/images/grid-on.svg);
139+
}
132140
}
133141

142+
&.list {
143+
&:before {
144+
background: url(/images/list-off.svg);
145+
}
146+
147+
&:hover:before {
148+
background: url(/images/list-on.svg);
149+
}
150+
}
134151
}
135152
}
136153
}

0 commit comments

Comments
 (0)