-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile-socials.css
More file actions
36 lines (32 loc) · 1.21 KB
/
Copy pathmobile-socials.css
File metadata and controls
36 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*-------------------------------------------------------------
MOBILE / TABLET ONLY STYLES — SOCIALS PAGE
This file is loaded ONLY when the viewport is <= 768px wide
(see the <link media="(max-width: 768px)"> tag in socials.html).
---------------------------------------------------------------*/
/* Center the cube galleries instead of the alternating
left/right layout used on desktop (styles.css already
stacks the containers into a column below 768px, this
just finishes the job for the gallery itself) */
.cube-gallery,
.social-container:nth-child(even) .cube-gallery {
justify-content: center;
align-items: center;
}
.social-container:nth-child(even) .social-info {
text-align: center;
}
/* Kill the desktop hover-zoom entirely on touch devices.
Hover states can get "stuck" after a tap on mobile,
so we explicitly zero it out. */
.cube:hover {
transform: none;
box-shadow: none;
z-index: auto;
}
/* This class is toggled on/off via JS when a cube is tapped.
Feel free to tweak the scale value once you settle on a ratio. */
.cube.cube-active {
transform: scale(1.8);
z-index: 10;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}