forked from jorgechavz/pure-css-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
195 lines (180 loc) · 8.77 KB
/
index.html
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pure CSS modal</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/modal.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-71771176-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="wrap">
<h1>Pure <span>CSS</span> Modal</h1>
<!-- Normal modal -->
<div class="modal">
<input id="modal-trigger" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger" class="o-close"></label>
<div class="modal-wrap">
<label for="modal-trigger" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Top modal -->
<div class="modal">
<input id="modal-trigger-top" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-top" class="o-close"></label>
<div class="modal-wrap from-top">
<label for="modal-trigger-top" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Bottom modal -->
<div class="modal">
<input id="modal-trigger-bottom" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-bottom" class="o-close"></label>
<div class="modal-wrap from-bottom">
<label for="modal-trigger-bottom" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Left modal -->
<div class="modal">
<input id="modal-trigger-left" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-left" class="o-close"></label>
<div class="modal-wrap from-left">
<label for="modal-trigger-left" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Right modal -->
<div class="modal">
<input id="modal-trigger-right" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-right" class="o-close"></label>
<div class="modal-wrap from-right">
<label for="modal-trigger-right" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Center modal -->
<div class="modal">
<input id="modal-trigger-center" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-center" class="o-close"></label>
<div class="modal-wrap a-center">
<label for="modal-trigger-center" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Center modal -->
<div class="modal">
<input id="modal-trigger-mix" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-mix" class="o-close"></label>
<div class="modal-wrap a-center from-bottom">
<label for="modal-trigger-mix" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Small modal -->
<div class="modal">
<input id="modal-trigger-full" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-full" class="o-close"></label>
<div class="modal-wrap a-center full from-bottom">
<label for="modal-trigger-full" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- Small modal -->
<div class="modal">
<input id="modal-trigger-small" class="checkbox" type="checkbox">
<div class="modal-overlay">
<label for="modal-trigger-small" class="o-close"></label>
<div class="modal-wrap a-center small from-bottom">
<label for="modal-trigger-small" class="close">✖</label>
<h2>This is the modal content</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique cum sequi maxime officia provident voluptatibus aut! Non autem asperiores repellat architecto laboriosam officiis ab libero enim illo animi, error alias.
</p>
</div>
</div>
</div>
<!-- End Modal -->
<!-- This label launch the modal -->
<label for="modal-trigger" class="open-modal">Normal</label>
<label for="modal-trigger-top" class="open-modal">Top</label>
<label for="modal-trigger-bottom" class="open-modal">Bottom</label>
<label for="modal-trigger-left" class="open-modal">Left</label>
<label for="modal-trigger-right" class="open-modal">Right</label>
<label for="modal-trigger-center" class="open-modal">Center</label>
<label for="modal-trigger-mix" class="open-modal">Mix</label>
<label for="modal-trigger-full" class="open-modal">Full</label>
<label for="modal-trigger-small" class="open-modal">Small</label>
<p>
Click the button to open the modal
</p>
<div class="contribute">
<p>
<a href="https://github.com/jorgechavz/pure-css-modal">Contribute</a>
</p>
</div>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/jorgechavz/pure-css-modal" data-icon="octicon-star" data-style="mega" data-count-href="/jorgechavz/pure-css-modal/stargazers" data-count-api="/repos/jorgechavz/pure-css-modal#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star jorgechavz/pure-css-modal on GitHub">Star</a>
</div>
<!-- Place this tag right after the last button or just before your close body tag. -->
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>