-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile-index.css
More file actions
32 lines (28 loc) · 990 Bytes
/
Copy pathmobile-index.css
File metadata and controls
32 lines (28 loc) · 990 Bytes
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
/*-------------------------------------------------------------
MOBILE / TABLET ONLY STYLES — HOME PAGE
This file is loaded ONLY when the viewport is <= 768px wide
(see the <link media="(max-width: 768px)"> tag in index.html).
It never touches or overrides desktop behavior.
---------------------------------------------------------------*/
/* Stack image -> photoBlockText -> photoDescription vertically
instead of side-by-side. The HTML order already gives us
this exact order once it's a column, since #imageColumn
(which contains the image + photoBlockText) comes before
#photoDescription in the markup. */
#photoBlock {
flex-direction: column;
align-items: center;
}
#imageColumn {
align-items: center; /* center the image + "Thats me!" text */
}
#photoBlockText {
text-align: center;
width: auto;
max-width: 300px;
}
#photoDescription {
max-width: 90%;
text-align: center;
padding: 0 20px;
}