Spaces:
Build error
Build error
Disable hover on mobile
Browse files
app.py
CHANGED
@@ -29,6 +29,9 @@ css = """
|
|
29 |
#gallery { z-index: 999999; }
|
30 |
#gallery img:hover {transform: scale(2.3); z-index: 999999; position: relative; padding-right: 30%; padding-bottom: 30%;}
|
31 |
#gallery button img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; padding-bottom: 0;}
|
|
|
|
|
|
|
32 |
"""
|
33 |
|
34 |
examples = [
|
|
|
29 |
#gallery { z-index: 999999; }
|
30 |
#gallery img:hover {transform: scale(2.3); z-index: 999999; position: relative; padding-right: 30%; padding-bottom: 30%;}
|
31 |
#gallery button img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; padding-bottom: 0;}
|
32 |
+
@media (hover: none) {
|
33 |
+
#gallery img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; 0;}
|
34 |
+
}
|
35 |
"""
|
36 |
|
37 |
examples = [
|