Skip to content

Commit e570ea7

Browse files
authored
Add color input (#20)
* adds color input and related css
1 parent 12a191b commit e570ea7

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

bolt.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Bolt.css
3-
* Version 0.6.0
3+
* Version 0.7.0
44
* https://github.com/tbolt/boltcss
55
*
66
* Sections
@@ -430,6 +430,16 @@ input[type="range"] {
430430
padding: 0;
431431
}
432432

433+
input[type="color"] {
434+
appearance: none;
435+
inline-size: 44px;
436+
outline-style: none;
437+
padding: initial;
438+
max-width: initial;
439+
height: 2rem;
440+
border-radius: 3px;
441+
}
442+
433443
textarea {
434444
font-family: inherit;
435445
font-size: 1em;

bolt.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+7
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ <h3 class="demo-header" id="rangedemo-label">range/output</h3>
408408
<output name="result" for="b">0</output>
409409
</form>
410410
</div>
411+
412+
<!-- color -->
413+
<div>
414+
<h3 class="demo-header">color picker</h3>
415+
<label for="color-picker">Pick a color</label>
416+
<input type="color" id="color-picker" value="#843AB2" />
417+
</div>
411418
</div>
412419

413420
<!-- Footer -->

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "boltcss",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "Boltcss classless CSS stylesheet",
55
"main": "bolt.css",
66
"scripts": {},

0 commit comments

Comments
 (0)