0001-scss-use-background-image-for-cell-entry-hover-effec.patch
static/includes/_cells.scss | ||
---|---|---|
184 | 184 |
&:hover { |
185 | 185 |
text-decoration: none; |
186 | 186 |
color: $cell-entry-hover-color; |
187 |
@if $cell-entry-hover-effect != none { |
|
188 |
&:after { |
|
189 |
width: 100%; |
|
190 |
height: 100%; |
|
191 |
} |
|
192 |
} @else { |
|
187 |
@if $cell-entry-hover-effect == none { |
|
193 | 188 |
background-color: $cell-entry-hover-background; |
194 | 189 |
} |
195 | 190 |
} |
196 |
&:after { |
|
197 |
@if $cell-entry-hover-effect != none { |
|
198 |
background-color: $cell-entry-hover-background; |
|
199 |
content: ""; |
|
200 |
position: absolute; |
|
201 |
z-index: -1; |
|
202 |
transition: all 0.3s ease; |
|
203 |
width: 0; |
|
204 |
} |
|
205 |
@if $cell-entry-hover-effect == left-to-right { |
|
206 |
width: 0%; height: 100%; top: 0; left: 0; |
|
207 |
} |
|
191 | ||
192 |
@if $cell-entry-hover-effect != none { |
|
193 |
transition: background-size 0.3s ease; |
|
194 | ||
195 |
$pos: left; |
|
196 |
$size: 0%; |
|
197 |
$hover-size: 100%; |
|
208 | 198 |
@if $cell-entry-hover-effect == right-to-left { |
209 |
width: 0%; height: 100%; top: 0; right: 0; |
|
210 |
} |
|
211 |
@if $cell-entry-hover-effect == top-to-bottom { |
|
212 |
width: 100%; height: 0%; top: 0; left: 0; |
|
213 |
} |
|
214 |
@if $cell-entry-hover-effect == bottom-to-top { |
|
215 |
width: 100%; height: 0%; bottom: 0; left: 0; |
|
199 |
$pos: right; |
|
200 |
} @else if $cell-entry-hover-effect == top-to-bottom { |
|
201 |
$pos: top; |
|
202 |
$size: 100% 0%; |
|
203 |
$hover-size: 100% 100%; |
|
204 |
} @else if $cell-entry-hover-effect == bottom-to-top { |
|
205 |
$pos: bottom; |
|
206 |
$size: 100% 0%; |
|
207 |
$hover-size: 100% 100%; |
|
208 |
} @else if $cell-entry-hover-effect == middle-to-edges { |
|
209 |
$pos: center; |
|
216 | 210 |
} |
217 |
@if $cell-entry-hover-effect == middle-to-edges { |
|
218 |
top: 50%; |
|
219 |
left: 50%; |
|
220 |
transform: translateY(-50%) translateX(-50%); |
|
211 |
background-image: linear-gradient( |
|
212 |
$cell-entry-hover-background 0, |
|
213 |
$cell-entry-hover-background 100% |
|
214 |
); |
|
215 |
background-repeat: no-repeat; |
|
216 |
background-size: $size; |
|
217 |
background-position: $pos; |
|
218 | ||
219 |
&:hover { |
|
220 |
background-size: $hover-size; |
|
221 | 221 |
} |
222 | 222 |
} |
223 | 223 |
} |
224 |
- |