This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobile_first
82 lines (63 loc) · 1.53 KB
/
mobile_first
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
list of attributes to be removed from `peachcloud.css` for mobile
[ tested on Galaxy S5, iPhone 5 ]
@media only screen and (min-width: 350px)
main {
align-items: center;
}
main {
width
}
card {
background-color
border-radius
/* needed on network_list: maybe set on list-container instead */
width: var(--max-width-5);
box-shadow
margin-top
margin-bottom
}
/* for network_add: may or may not be necessary */
card-container {
padding
}
list-container {
padding
}
/* network_add: inputs and buttons look nice with this */
card-container {
width: var(--max-width-5);
}
/* network_add: inputs and buttons look nice with this */
button {
width: 70%;
min-width
max-width
padding
}
/* needed for desktop (to place bottom nav at bottom of window) */
html {
height: 100%; /* wrecks bottom nav placement on my phone */
}
/* ADD THIS */
input {
width: 80%;
}
-----
testing with peach-web on laptop:
network_card | looks good
network_list | looks good
network_add | too small & buttons (best without card-container class)
network_detail | buttons different sizes
look at the .input attributes
- we need to have consistency between button & input (esp. widths)
network_detail
- sometimes the background colour is white on my phone
-----
breakpoints:
600px, 900px, 1200px, 1800px
"if you are designing your layout with a mobile-first approach, then use min-width breakpoints and work your way up"
```
@media only screen (min-width: 600px) {
...
}
```