|
5 | 5 | <meta charset="UTF-8">
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 | 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
|
8 |
| - <title>Color Utilities |
9 |
| - </title> |
| 8 | + <title>Color Utilities </title> |
10 | 9 | <!-- style sheet for vectormap.js -->
|
11 | 10 | <link rel="stylesheet" href="https://cdn.thinkgeo.com/vectormap-js/1.0.2/vectormap.css">
|
12 |
| - </link> |
13 |
| - <style> |
14 |
| - #user-input{ |
15 |
| - position: absolute; |
16 |
| - right: 0; |
17 |
| - top:0rem; |
18 |
| - z-index: 1000; |
19 |
| - background: #fff; |
20 |
| - padding: 1rem |
21 |
| - } |
| 11 | + <style rel="stylesheet" type="text/css"> |
| 12 | + #user-input { |
| 13 | + position: absolute; |
| 14 | + right: 0; |
| 15 | + top: 0; |
| 16 | + z-index: 1000; |
| 17 | + background: #fff; |
| 18 | + padding: 0.6rem; |
| 19 | + box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 -1px 0 rgba(0, 0, 0, .02); |
| 20 | + border-bottom-left-radius: 5px; |
| 21 | + } |
| 22 | + |
| 23 | + #user-input label { |
| 24 | + display: inline-block; |
| 25 | + color: #5f6b78; |
| 26 | + margin: 3px 0; |
| 27 | + } |
| 28 | + |
| 29 | + |
| 30 | + #user-input input, |
| 31 | + #user-input select { |
| 32 | + padding: 3px 12px; |
| 33 | + line-height: 1.42857; |
| 34 | + color: #555; |
| 35 | + background-color: #fff; |
| 36 | + background-image: none; |
| 37 | + border: 1px solid #ccc; |
| 38 | + border-radius: 4px; |
| 39 | + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); |
| 40 | + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); |
| 41 | + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; |
| 42 | + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; |
| 43 | + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; |
| 44 | + } |
| 45 | + |
| 46 | + #user-input input:focus, |
| 47 | + #user-input select:focus { |
| 48 | + border-color: #66afe9; |
| 49 | + outline: 0; |
| 50 | + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); |
| 51 | + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); |
| 52 | + } |
| 53 | + |
| 54 | + #user-input button { |
| 55 | + display: inline-block; |
| 56 | + padding: 3px 10px; |
| 57 | + margin-bottom: 0; |
| 58 | + font-weight: normal; |
| 59 | + line-height: 1.428571429; |
| 60 | + text-align: center; |
| 61 | + white-space: nowrap; |
| 62 | + vertical-align: middle; |
| 63 | + cursor: pointer; |
| 64 | + border: 1px solid #357ebd; |
| 65 | + border-radius: 4px; |
| 66 | + color: #fff; |
| 67 | + background-color: #428bca; |
| 68 | + } |
| 69 | + |
| 70 | + #user-input button:focus { |
| 71 | + outline: 0; |
| 72 | + } |
| 73 | + |
| 74 | + #user-input button:active { |
| 75 | + -webkit-box-shadow: inset 0 5px 4px rgba(0, 0, 0, .075); |
| 76 | + box-shadow: inset 0 5px 4px rgba(0, 0, 0, .075); |
| 77 | + } |
| 78 | + |
| 79 | + #user-input div { |
| 80 | + width: 100%; |
| 81 | + text-align: center; |
| 82 | + } |
22 | 83 | </style>
|
23 | 84 | </head>
|
24 | 85 |
|
25 | 86 | <body>
|
26 | 87 | <div id="user-input">
|
27 |
| - <label title="category">category:</label> |
| 88 | + <label title="category">Category:</label> |
28 | 89 | <select name="" id="category">
|
29 | 90 | <option value="analogous" selected="selected">Analogous</option>
|
30 | 91 | <option value="complementary">Complementary</option>
|
31 | 92 | <option value="qualitative">Qualitative</option>
|
32 | 93 | <option value="tetrad">Tetrad</option>
|
33 | 94 | <option value="triad">Triad</option>
|
34 | 95 | </select>
|
35 |
| - <input type="radio" name="radio" value="random" />Random |
36 |
| - <input type="radio" name="radio" checked value="specific" />Specific</label><input class="jscolor" id="color" |
| 96 | + <input type="radio" name="radio" value="random" /> <label>Random</label> |
| 97 | + <input type="radio" name="radio" checked value="specific" /> <label> Specific Color: </label> <input class="jscolor" id="color" |
37 | 98 | value="ab2567">
|
38 | 99 |
|
39 | 100 | <button id="generate">Generate</button>
|
|
0 commit comments