/
index.html
222 lines (196 loc) · 8.56 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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Color Cards</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Reenie+Beanie">
<link rel="stylesheet" href="assets/css/color-cards.css">
<link rel="stylesheet" href="assets/css/main.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="navbar-component">
<div class="navbar area">
<a href="#" class="brand">Color Cards</a>
<nav role="navigation" id="navigation" class="list">
<a href="#" class="item -link">CSS</a>
<a href="#" class="item -link">SCSS</a>
<a href="#" class="item -link">View on Github</a>
</nav>
<button data-collapse data-target="#navigation" class="toggle">
<span class="icon"></span>
</button>
</div>
</div>
<div class="welcome">
<p>Welcome to Color Cards! Color Cards are built using Flexbox and are very lightweight — 4kb</p>
<p>To learn how to use them, visit the <a class="u" href="" title="Github Documentation">GitHub documentation</a>.</p>
</div>
<section>
<div class="flex-grid">
<div class="palette" id="01">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #F9ED69"><span>#F9ED69</span></div>
<div class="color two" style="background: #F08A5D"><span>#F08A5D</span></div>
<div class="color three" style="background: #B83B5E"><span>#B83B5E</span></div>
<div class="color four" style="background: #6A2C70"><span>#6A2C70</span></div>
</div>
<footer>Example #1</footer>
</div>
</div>
<div class="palette" id="02">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #222831"><span>#222831</span></div>
<div class="color two" style="background: #393e46"><span>#393e46</span></div>
<div class="color three" style="background: #00adb5"><span>#00adb5</span></div>
<div class="color four" style="background: #eeeeee"><span>#eeeeee</span></div>
</div>
<footer>Example #2</footer>
</div>
</div>
<div class="palette" id="03">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #08D9D6"><span>#08D9D6</span></div>
<div class="color two" style="background: #252A34"><span>#252A34</span></div>
<div class="color three" style="background: #FF2E63"><span>#FF2E63</span></div>
<div class="color four" style="background: #EAEAEA"><span>#EAEAEA</span></div>
</div>
<footer>Example #3</footer>
</div>
</div>
<div class="palette" id="04">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #2B2E4A"><span>#2B2E4A</span></div>
<div class="color two" style="background: #E84545"><span>#E84545</span></div>
<div class="color three" style="background: #903749"><span>#903749</span></div>
<div class="color four" style="background: #53354A"><span>#53354A</span></div>
</div>
<footer>Example #4</footer>
</div>
</div>
<div class="palette" id="05">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #2D4059"><span>#2D4059</span></div>
<div class="color two" style="background: #EA5455"><span>#EA5455</span></div>
<div class="color three" style="background: #F07B3F"><span>#F07B3F</span></div>
<div class="color four" style="background: #FFD460"><span>#FFD460</span></div>
</div>
<footer>Example #5</footer>
</div>
</div>
<div class="palette" id="06">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #4285F4"><span>#4285F4</span></div>
<div class="color two" style="background: #EA4335"><span>#EA4335</span></div>
<div class="color three" style="background: #FBBC05"><span>#FBBC05</span></div>
<div class="color four" style="background: #34A853"><span>#34A853</span></div>
</div>
<footer>Google</footer>
</div>
</div>
<div class="palette" id="07">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #FF0000"><span>#FF0000</span></div>
<div class="color two" style="background: #FBB034"><span>#FBB034</span></div>
<div class="color three" style="background: #FFDD00"><span>#FFDD00</span></div>
<div class="color four" style="background: #00A4E4"><span>#00A4E4</span></div>
</div>
<footer>Adobe</footer>
</div>
</div>
<div class="palette" id="08">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #000000"><span>#000000</span></div>
<div class="color two" style="background: #FF9900"><span>#FF9900</span></div>
<div class="color three" style="background: #232F3E"><span>#232F3E</span></div>
</div>
<footer>Amazon</footer>
</div>
</div>
<div class="palette" id="09">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #0EBEFF"><span>#0EBEFF</span></div>
<div class="color two" style="background: #47CF73"><span>#47CF73</span></div>
<div class="color three" style="background: #AE63E4"><span>#AE63E4</span></div>
<div class="color four" style="background: #FCD000"><span>#FCD000</span></div>
<div class="color four" style="background: #FF3C41"><span>#FF3C41</span></div>
</div>
<footer>Codepen</footer>
</div>
</div>
<div class="palette" id="09">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #0B648F"><span>#0B648F</span></div>
<div class="color two" style="background: #E21737"><span>#E21737</span></div>
</div>
<footer>Domino's</footer>
</div>
</div>
<div class="palette" id="08">
<div class="wrapper">
<div class="colors">
<div class="color one" style="background: #252637"><span>#252637</span></div>
<div class="color two" style="background: #777777"><span>#777777</span></div>
<div class="color three" style="background: #DCDCDC"><span>#DCDCDC</span></div>
</div>
<footer>Color Cards</footer>
</div>
</div>
</div>
</section>
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
<script>
(function() {
// Definition of caller element
var getTriggerElement = function(el) {
var isCollapse = el.getAttribute('data-collapse');
if (isCollapse !== null) {
return el;
} else {
var isParentCollapse = el.parentNode.getAttribute('data-collapse');
return (isParentCollapse !== null) ? el.parentNode : undefined;
}
};
// A handler for click on toggle button
var collapseClickHandler = function(event) {
var triggerEl = getTriggerElement(event.target);
// If trigger element does not exist
if (triggerEl === undefined) {
event.preventDefault();
return false;
}
// If the target element exists
var targetEl = document.querySelector(triggerEl.getAttribute('data-target'));
if (targetEl) {
triggerEl.classList.toggle('-active');
targetEl.classList.toggle('-on');
}
};
// Delegated event
document.addEventListener('click', collapseClickHandler, false);
})(document, window);
</script>
</body>
</html>