File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 124124 text-decoration : underline ;
125125 }
126126
127- .light-theme & {
128- & :hover {
129- filter : brightness (80% );
130- }
131- }
132-
133- .dark-theme & {
134- & :hover {
135- filter : brightness (120% );
136- }
137- }
127+ @include variables .brightness-on-hover ;
138128}
139129
140130main {
Original file line number Diff line number Diff line change 236236 min-width : 102px ;
237237 margin-top : 10px ;
238238 cursor : pointer ;
239- }
240-
241- .packages-screenshot-thumbnail {
242- transition : 200ms filter ;
243- }
244239
245- .packages-screenshot-thumbnail :hover {
246- filter : brightness (50% );
240+ @include variables .brightness-on-hover ;
247241 }
248242
249243 .packages-title {
Original file line number Diff line number Diff line change 281281 }
282282}
283283
284+ @mixin brightness-on-hover {
285+ transition : 0.3s filter ;
286+
287+ .light-theme & {
288+ & :hover {
289+ filter : brightness (80% );
290+ }
291+ }
292+
293+ .dark-theme & {
294+ & :hover {
295+ filter : brightness (120% );
296+ }
297+ }
298+ }
299+
284300$device-desktop-min-width : 641px ;
285301$device-mobile-max-width : 640px ;
286302$device-tablet-max-width : 979px ;
You can’t perform that action at this time.
0 commit comments