-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
204 lines (204 loc) · 15.4 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
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Alberto Silva">
<meta name="keywords" content="CSS, Colors, CSS Colors">
<meta name="description" content="A personal reference for all the CSS Colornames">
<title>CSS Colornames - A Quick Reference</title>
<link rel="stylesheet" href="stylesheets/screen.css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
</head>
<body id="body">
<main>
<header class="site__header">
<h5>CSS Colornames - A Quick Reference</h5>
<nav>
<ul class="nav__list--layout">
<li class="nav__item">
<button class="btn--setGrid" onclick="setGrid(this);" data-layout="color__grid">Grid</button>
</li>
<li class="nav__item">
<button class="btn--setGrid" onclick="setGrid(this);" data-layout="color__list">List</button>
</li>
</ul>
<ul class="nav__list--colors">
<li class="nav__item">
<a href="#" class="btn--setColor" style="background-color:#FFFFFF;" onclick="setColor(this);" data-color="#FFFFFF"></a>
</li>
<li class="nav__item">
<a href="#" class="btn--setColor" style="background-color:#808080;" onclick="setColor(this);" data-color="#808080"></a>
</li>
<li class="nav__item">
<a href="#" class="btn--setColor" style="background-color:#000000;" onclick="setColor(this);" data-color="#000000"></a>
</li>
<li class="nav__item">
<a href="#" class="btn--setColor" style="background-color:#2A2C2B;" onclick="setColor(this);" data-color="#2A2C2B"></a>
</li>
</ul>
</nav>
</header>
<section id="color__section" class="color__grid">
<nav class="colors">
<a class="color__link--aliceblue"><p class="color__name">Aliceblue</p></a>
<a class="color__link--antiquewhite"><p class="color__name">Antiquewhite</p></a>
<a class="color__link--aqua"><p class="color__name">Aqua</p></a>
<a class="color__link--aquamarine"><p class="color__name">Aquamarine</p></a>
<a class="color__link--azure"><p class="color__name">Azure</p></a>
<a class="color__link--beige"><p class="color__name">Beige</p></a>
<a class="color__link--bisque"><p class="color__name">Bisque</p></a>
<a class="color__link--black"><p class="color__name">Black</p></a>
<a class="color__link--blanchedalmond"><p class="color__name">Blanchedalmond</p></a>
<a class="color__link--blue"><p class="color__name">Blue</p></a>
<a class="color__link--blueviolet"><p class="color__name">Blueviolet</p></a>
<a class="color__link--brown"><p class="color__name">Brown</p></a>
<a class="color__link--burlywood"><p class="color__name">Burlywood</p></a>
<a class="color__link--cadetblue"><p class="color__name">Cadetblue</p></a>
<a class="color__link--chartreuse"><p class="color__name">Chartreuse</p></a>
<a class="color__link--chocolate"><p class="color__name">Chocolate</p></a>
<a class="color__link--coral"><p class="color__name">Coral</p></a>
<a class="color__link--cornflowerblue"><p class="color__name">Cornflowerblue</p></a>
<a class="color__link--cornsilk"><p class="color__name">Cornsilk</p></a>
<a class="color__link--crimson"><p class="color__name">Crimson</p></a>
<a class="color__link--darkblue"><p class="color__name">Darkblue</p></a>
<a class="color__link--darkcyan"><p class="color__name">Darkcyan</p></a>
<a class="color__link--darkgoldenrod"><p class="color__name">Darkgoldenrod</p></a>
<a class="color__link--darkgray"><p class="color__name">Darkgray</p></a>
<a class="color__link--darkgreen"><p class="color__name">Darkgreen</p></a>
<a class="color__link--darkkhaki"><p class="color__name">Darkkhaki</p></a>
<a class="color__link--darkmagenta"><p class="color__name">Darkmagenta</p></a>
<a class="color__link--darkolivegreen"><p class="color__name">Darkolivegreen</p></a>
<a class="color__link--darkorange"><p class="color__name">Darkorange</p></a>
<a class="color__link--darkorchid"><p class="color__name">Darkorchid</p></a>
<a class="color__link--darkred"><p class="color__name">Darkred</p></a>
<a class="color__link--darksalmon"><p class="color__name">Darksalmon</p></a>
<a class="color__link--darkseagreen"><p class="color__name">Darkseagreen</p></a>
<a class="color__link--darkslateblue"><p class="color__name">Darkslateblue</p></a>
<a class="color__link--darkslategray"><p class="color__name">Darkslategray</p></a>
<a class="color__link--darkturquoise"><p class="color__name">Darkturquoise</p></a>
<a class="color__link--darkviolet"><p class="color__name">Darkviolet</p></a>
<a class="color__link--deeppink"><p class="color__name">Deeppink</p></a>
<a class="color__link--deepskyblue"><p class="color__name">Deepskyblue</p></a>
<a class="color__link--dimgrey"><p class="color__name">Dimgrey</p></a>
<a class="color__link--dodgerblue"><p class="color__name">Dodgerblue</p></a>
<a class="color__link--firebrick"><p class="color__name">Firebrick</p></a>
<a class="color__link--floralwhite"><p class="color__name">Floralwhite</p></a>
<a class="color__link--forestgreen"><p class="color__name">Forestgreen</p></a>
<a class="color__link--fuchsia"><p class="color__name">Fuchsia</p></a>
<a class="color__link--gainsboro"><p class="color__name">Gainsboro</p></a>
<a class="color__link--ghostwhite"><p class="color__name">Ghostwhite</p></a>
<a class="color__link--gold"><p class="color__name">Gold</p></a>
<a class="color__link--goldenrod"><p class="color__name">Goldenrod</p></a>
<a class="color__link--gray"><p class="color__name">Gray</p></a>
<a class="color__link--green"><p class="color__name">Green</p></a>
<a class="color__link--greenyellow"><p class="color__name">Greenyellow</p></a>
<a class="color__link--grey"><p class="color__name">Grey</p></a>
<a class="color__link--honeydew"><p class="color__name">Honeydew</p></a>
<a class="color__link--hotpink"><p class="color__name">Hotpink</p></a>
<a class="color__link--indianred"><p class="color__name">Indianred</p></a>
<a class="color__link--indigo"><p class="color__name">Indigo</p></a>
<a class="color__link--ivory"><p class="color__name">Ivory</p></a>
<a class="color__link--khaki"><p class="color__name">Khaki</p></a>
<a class="color__link--lavender"><p class="color__name">Lavender</p></a>
<a class="color__link--lavenderblush"><p class="color__name">Lavenderblush</p></a>
<a class="color__link--lawngreen"><p class="color__name">Lawngreen</p></a>
<a class="color__link--lemonchiffon"><p class="color__name">Lemonchiffon</p></a>
<a class="color__link--lightblue"><p class="color__name">Lightblue</p></a>
<a class="color__link--lightcoral"><p class="color__name">Lightcoral</p></a>
<a class="color__link--lightcyan"><p class="color__name">Lightcyan</p></a>
<a class="color__link--lightgoldenrodyellow"><p class="color__name">Lightgoldenrodyellow</p></a>
<a class="color__link--lightgray"><p class="color__name">Lightgray</p></a>
<a class="color__link--lightgreen"><p class="color__name">Lightgreen</p></a>
<a class="color__link--lightpink"><p class="color__name">Lightpink</p></a>
<a class="color__link--lightsalmon"><p class="color__name">Lightsalmon</p></a>
<a class="color__link--lightseagreen"><p class="color__name">Lightseagreen</p></a>
<a class="color__link--lightskyblue"><p class="color__name">Lightskyblue</p></a>
<a class="color__link--lightslategrey"><p class="color__name">Lightslategrey</p></a>
<a class="color__link--lightsteelblue"><p class="color__name">Lightsteelblue</p></a>
<a class="color__link--lightyellow"><p class="color__name">Lightyellow</p></a>
<a class="color__link--lime"><p class="color__name">Lime</p></a>
<a class="color__link--limegreen"><p class="color__name">Limegreen</p></a>
<a class="color__link--linen"><p class="color__name">Linen</p></a>
<a class="color__link--maroon"><p class="color__name">Maroon</p></a>
<a class="color__link--mediumaquamarine"><p class="color__name">Mediumaquamarine</p></a>
<a class="color__link--mediumblue"><p class="color__name">Mediumblue</p></a>
<a class="color__link--mediumorchid"><p class="color__name">Mediumorchid</p></a>
<a class="color__link--mediumpurple"><p class="color__name">Mediumpurple</p></a>
<a class="color__link--mediumseagreen"><p class="color__name">Mediumseagreen</p></a>
<a class="color__link--mediumslateblue"><p class="color__name">Mediumslateblue</p></a>
<a class="color__link--mediumspringgreen"><p class="color__name">Mediumspringgreen</p></a>
<a class="color__link--mediumturquoise"><p class="color__name">Mediumturquoise</p></a>
<a class="color__link--mediumvioletred"><p class="color__name">Mediumvioletred</p></a>
<a class="color__link--midnightblue"><p class="color__name">Midnightblue</p></a>
<a class="color__link--mintcream"><p class="color__name">Mintcream</p></a>
<a class="color__link--mistyrose"><p class="color__name">Mistyrose</p></a>
<a class="color__link--moccasin"><p class="color__name">Moccasin</p></a>
<a class="color__link--navajowhite"><p class="color__name">Navajowhite</p></a>
<a class="color__link--navy"><p class="color__name">Navy</p></a>
<a class="color__link--oldlace"><p class="color__name">Oldlace</p></a>
<a class="color__link--olive"><p class="color__name">Olive</p></a>
<a class="color__link--olivedrab"><p class="color__name">Olivedrab</p></a>
<a class="color__link--orange"><p class="color__name">Orange</p></a>
<a class="color__link--orangered"><p class="color__name">Orangered</p></a>
<a class="color__link--orchid"><p class="color__name">Orchid</p></a>
<a class="color__link--palegoldenrod"><p class="color__name">Palegoldenrod</p></a>
<a class="color__link--palegreen"><p class="color__name">Palegreen</p></a>
<a class="color__link--paleturquoise"><p class="color__name">Paleturquoise</p></a>
<a class="color__link--palevioletred"><p class="color__name">Palevioletred</p></a>
<a class="color__link--papayawhip"><p class="color__name">Papayawhip</p></a>
<a class="color__link--peachpuff"><p class="color__name">Peachpuff</p></a>
<a class="color__link--peru"><p class="color__name">Peru</p></a>
<a class="color__link--pink"><p class="color__name">Pink</p></a>
<a class="color__link--plum"><p class="color__name">Plum</p></a>
<a class="color__link--powderblue"><p class="color__name">Powderblue</p></a>
<a class="color__link--purple"><p class="color__name">Purple</p></a>
<a class="color__link--rebeccapurple"><p class="color__name">Rebeccapurple</p></a>
<a class="color__link--red"><p class="color__name">Red</p></a>
<a class="color__link--rosybrown"><p class="color__name">Rosybrown</p></a>
<a class="color__link--royalblue"><p class="color__name">Royalblue</p></a>
<a class="color__link--saddlebrown"><p class="color__name">Saddlebrown</p></a>
<a class="color__link--salmon"><p class="color__name">Salmon</p></a>
<a class="color__link--sandybrown"><p class="color__name">Sandybrown</p></a>
<a class="color__link--seagreen"><p class="color__name">Seagreen</p></a>
<a class="color__link--seashell"><p class="color__name">Seashell</p></a>
<a class="color__link--sienna"><p class="color__name">Sienna</p></a>
<a class="color__link--silver"><p class="color__name">Silver</p></a>
<a class="color__link--skyblue"><p class="color__name">Skyblue</p></a>
<a class="color__link--slateblue"><p class="color__name">Slateblue</p></a>
<a class="color__link--slategray"><p class="color__name">Slategray</p></a>
<a class="color__link--snow"><p class="color__name">Snow</p></a>
<a class="color__link--springgreen"><p class="color__name">Springgreen</p></a>
<a class="color__link--steelblue"><p class="color__name">Steelblue</p></a>
<a class="color__link--tan"><p class="color__name">Tan</p></a>
<a class="color__link--teal"><p class="color__name">Teal</p></a>
<a class="color__link--thistle"><p class="color__name">Thistle</p></a>
<a class="color__link--tomato"><p class="color__name">Tomato</p></a>
<a class="color__link--turquoise"><p class="color__name">Turquoise</p></a>
<a class="color__link--violet"><p class="color__name">Violet</p></a>
<a class="color__link--wheat"><p class="color__name">Wheat</p></a>
<a class="color__link--white"><p class="color__name">White</p></a>
<a class="color__link--whitesmoke"><p class="color__name">Whitesmoke</p></a>
<a class="color__link--yellow"><p class="color__name">Yellow</p></a>
<a class="color__link--yellowgreen"><p class="color__name">Yellowgreen</p></a>
</nav>
</section>
<footer class="site__footer">
<h5>Colophon</h5>
<p>Designed & developed by <a href="http://www.albertosilva.me" target="_blank">yours truly.</a> CSS is written in SASS with Compass, typeset in Open Sans. View code <a href="https://github.com/asilvadesigns/tools__colors" target="_blank">here</a></p>
</footer>
</main>
<script>
function setGrid(el) {
var el__layout = el.getAttribute("data-layout");
var section = document.getElementById("color__section");
section.setAttribute("class", el__layout);
}
function setColor(el) {
var el__color = el.getAttribute("data-color");
var body = document.getElementById("body");
body.style.backgroundColor = el__color;
}
</script>
</body>
</html>