-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
286 lines (280 loc) · 10 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Scripted Pixels' Playground. This is where the fun happens!</title>
<link rel="stylesheet" href="css/reset.css">
<style>
/* setup the very basis for the document */
body {
text-align:center;
font-family:'Helvetica Neue';
font-weight: lighter;
font-size: 16px;
line-height: 1.1;
padding: 0 0.5rem;
color: #fff;
min-width: 320px;
}
body,
ol li .embed-container,
.embed-container iframe,
.embed-container object,
.embed-container embed {
background: #FA4E06 !important;
}
a {
color: #f0f0f0;
text-decoration: none;
}
a:hover p {
text-decoration: underline;
}
a.external {
background: red;
padding: 0 5px;
}
h1, h2 {
display: inline-block;
text-align: center;
line-height: 1.1;
width: 100%;
}
h1 {
font-size: 30px;
font-size: 3rem;
}
h2 {
font-size: 25px;
font-size: 2.5rem;
margin: 0 auto 1rem;
}
p {
margin: 0 auto 1rem;
letter-spacing: 0.1rem;
}
p.title {
text-transform: uppercase;
display: inline-block;
text-align: center;
width: 100%;
}
ol li p,
ol li a p {
font-size: 1.8rem;
}
ol {
text-align: center;
list-style: none;
}
ol li {
border: 1px solid rgba(255,255,255,0.5);
display: inline-block;
word-wrap:break-word;
padding: 0.5rem;
vertical-align: top;
margin: 1rem auto 0;
overflow: hidden;
width: 100%;
height: 100%;
}
ol li a {
display: block;
height: 100%;
width: 100%;
}
ol li .embed-container {
position: relative;
padding-bottom: 120%;
padding-top: 30px;
height: 0; overflow:
hidden;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
ol li a img {
width: 100%;
height: auto;
}
.container {
display: inline-block;
position: relative;
margin: 1rem auto;
display: block;
clear: both;
width: 100%;
max-width: 1024px;
}
/* ANIMATION TRANSITION IF NEEDED */
.animate {
-webkit-transition: all 0.35s ease-in-out;
-moz-transition: all 0.35s ease-in-out;
-ms-transition: all 0.35s ease-in-out;
-o-transition: all 0.35s ease-in-out;
transition: all 0.35s ease-in-out;
}
/* -------------- SIZE 480 to 768 ----------------- */
@media only screen and (min-width: 480px) {
#wrapper {
max-width: 768px;
}
ol li {
width: 48%;
min-height: 30.5rem;
}
ol li:nth-child(2n+1) {
margin-right: 2%;
}
}
/* -------------- SIZE 768 to 1024 ----------------- */
@media only screen and (min-width: 768px) {
#wrapper {
max-width: 1024px;
padding:0 2%;
}
ol li {
width: 31%;
margin-right: 2%;
min-height: 30rem;
}
ol li:nth-child(3n+3) {
margin-right: 0;
}
}
/* -------------- SIZE 1024 AND UP ----------------- */
@media only screen and (min-width: 1024px) {
#wrapper {
padding:0 1%;
}
}
/* -------------- SIZE 1024 AND UP ----------------- */
@media only screen and (min-width: 1200px) {
}
</style>
</head>
<body>
<header class="container">
<h1>Scripted Pixels' Playground</h1>
</header>
<div class="container">
<!-- INTRO -->
<section>
<h2>What's this page about!?</h2>
<p>This is going to be a collection of 'front-end' code that I've used in previous projects. Everything here will be available for download via <a class="external" href="https://github.com/kambanwait" target="_blank">GitHub</a>.</p>
</section>
<!-- WORKS -->
<section>
<ol>
<li>
<a href="sass.html">
<p class="title">Sass snippets</p>
<img src="images/sass.png" alt="" />
</a>
</li>
<li>
<a href="doubleNavSliding.html">
<p class="title">Double Slide-out/in navigaton</p>
<img src="images/doubleslidingnav.png" alt="" />
</a>
</li>
<li>
<a href="twoinonebutton.html">
<p class="title">Two in one button</p>
<img src="images/twoinonebutton.png" alt="" />
</a>
</li>
<li>
<a href="thumbGallery.html">
<p class="title">Mini thumbnail gallery</p>
<img src="images/thumbnailgridgallery.png" alt="" />
</a>
</li>
<li>
<a href="thumbGalleryGrid.html">
<p class="title">Expanding thumbnail grid</p>
</a>
<div class='embed-container'><iframe src='//instagram.com/p/g6ZBNqo6gi/embed/' frameborder='0' scrolling='no' allowtransparency='true'></iframe></div>
</li>
<li>
<a href="circleload.html">
<p class="title">Cirlcle pre-loader</p>
<img src="images/CirlclePreload.png" alt="" />
</a>
</li>
<li>
<a href="borderradiuspreload.html">
<p class="title">Border radius preload</p>
<img src="images/borderradiuspreloader.png" alt="" />
</a>
</li>
<li>
<a href="drawers.html">
<p class="title">CSS Drawers</p>
<img src="images/drawers.png" alt="" />
</a>
</li>
<li>
<a href="checkboxes.html">
<p class="title">Custom Radio/Checkboxes</p>
<img src="images/customcheckbox.png" alt="" />
</a>
</li>
<li>
<a href="hiddensearch.html">
<p class="title">Hidden Search Submit</p>
<img src="images/hiddensearchbox.png" alt="" />
</a>
</li>
<li>
<a href="doublemenu.html">
<p class="title">Double dropdown menu</p>
<img src="images/doublemenu.png" alt="" />
</a>
</li>
<li>
<a href="backgroundColor.html">
<p class="title">Adaptive backrgound color</p>
<img src="images/adaptiveBgColor.jpg" alt="" />
</a>
</li>
<!-- <li>
<p class="title">iOS 7 Blur</p>
</li>
<li>
<p class="title">Form auto-placeholder fill</p>
</li>
<li>
<p class="title">Instagram feed</p>
</li> -->
<li>
<a href="squareRound.html">
<p class="title">On hover CSS transition</p>
<img src="images/SquareRound.png" alt="" />
</a>
</li>
<!-- KEEP AT BOTTOM -->
<!-- <li>
<p class="title">Back to top jQuery ☝</p>
</li> -->
</ol>
</section>
</div>
<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-46021261-1', 'scriptedpixels.co.uk');
ga('send', 'pageview');
</script>
</body>
</html>