This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
77 lines (74 loc) · 1.83 KB
/
style.css
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
body {
font-family: Helvetica, sans-serif;
background-color: white;
transition: background-color 2.5s;
}
/* remove the pesty little select blue outline */
button:active, .button:active, button:focus,
.button:focus, button:hover, .button:hover {
outline:none !important;
}
/* how does this works?
http://stackoverflow.com/a/22196760/2448540 */
.vertical-center {
min-height: 100%;
min-height: 100vh;
display: flex;
align-items: center;
}
/* iPhone 5 and 5S Portrait */
.MainBox {
min-width: 285px;
}
/* how does responsive good?
https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ */
/* iPhone 5 and 5S Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {
.MainBox {
width: 515px;
}
}
/* iPhone 6 Portrait */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {
.MainBox {
width: 340px;
}
}
/* iPhone 6 Landscape */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {
.MainBox {
width: 600px;
}
}
/* iPhone 6+ Portrait */
@media only screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: portrait) {
.MainBox {
width: 375px;
}
}
/* Phone 6+ Landscape */
@media only screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape) {
.MainBox {
width: 650px;
}
}