-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
138 lines (126 loc) · 2.53 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
body {
font-family: Avenir, Helvetica, sans-serif;
font-weight: 300;
}
h1 {
text-align: center;
}
.wrapper {
height: auto;
width: 100vw;
margin: auto;
}
.heading {
height: auto;
width: auto;
margin: auto;
position: relative;
text-align: center;
}
.getRecent {
text-align: center;
}
.getLocation {
text-align: center;
}
.populate {
height: 100vh;
width: 90vw;
margin: auto;
}
.postRecent {
margin: 25px 100px;
text-align: center;
}
.postLocation {
margin: 25px 100px;
text-align: center;
}
.search {
border: 0;
height: 40px;
width: 400px;
margin-left: 10px;
font-size: 20px;
font-weight: 300;
text-align: center;
border-bottom: 1px solid lightgray;
}
button {
height: 35px;
font-size: 15px;
background-color: rgb(226, 113, 113);
padding: 0px 16px;
display: inline-block;
position: relative;
cursor: pointer;
color: white;
}
input[type="checkbox"].toggle {
opacity: 0;
position: absolute;
left: -99999px;
}
input[type="checkbox"].toggle + label {
height: 40px;
line-height: 40px;
background-color: rgb(131, 126, 212);
padding: 0px 16px;
display: inline-block;
position: relative;
cursor: pointer;
transition: all 0.25s ease-in;
box-shadow: inset 0px 0px 2px rgba(0, 0, 0, .5);
}
input[type="checkbox"].toggle + label:before, input[type="checkbox"].toggle + label:hover:before {
content: ' ';
position: absolute;
top: 2px;
left: 2px;
width: 46px;
height: 36px;
background: #fff;
z-index: 2;
transition: all 0.25s ease-in;
}
input[type="checkbox"].toggle + label .off, input[type="checkbox"].toggle + label .on {
color: #fff;
}
input[type="checkbox"].toggle + label .off {
margin-left: 46px;
display: inline-block;
}
input[type="checkbox"].toggle + label .on {
display: none;
}
input[type="checkbox"].toggle:checked + label .off {
display: none;
}
input[type="checkbox"].toggle:checked + label .on {
margin-right: 46px;
display: inline-block;
}
input[type="checkbox"].toggle:checked + label, input[type="checkbox"].toggle:focus:checked + label {
background-color: #67a5ec;
}
input[type="checkbox"].toggle:checked + label:before, input[type="checkbox"].toggle:focus:checked + label:before, input[type="checkbox"].toggle:checked + label:hover:before, input[type="checkbox"].toggle:focus:checked + label:hover:before {
background-position: 0 0;
top: 2px;
left: 100%;
margin-left: -48px;
}
@media (max-width: 475px) {
body {
margin: 0;
}
.search {
border: 0;
height: 40px;
width: 290px;
font-size: 20px;
font-weight: 300;
margin: auto;
text-align: center;
border-bottom: 1px solid lightgray;
}
}