Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commiteb876b4992795c0b32c38c042d00dc72e8dec0c9 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-03-12 14:38:36 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-03-12 14:38:36 +0800
Files528ffe608e7bc20d1aa34cc48fcb6ae9da64b472
Spectre-Dark-Gruvbox-eb876b4992795c0b32c38c042d00dc72e8dec0c9.tar
Spectre-Dark-Gruvbox-eb876b4992795c0b32c38c042d00dc72e8dec0c9.tar.gz
Spectre-Dark-Gruvbox-eb876b4992795c0b32c38c042d00dc72e8dec0c9.zip
Parent15bb4c8ac8f5ed775108f20f4a6054acc3e3a71c (diff)
update class naming and add select small size
3 files changed, 19 insertions, 3 deletions
-rw-r--r--demo/index.html6
-rw-r--r--dist/spectre.css7
-rw-r--r--src/forms.less9
diff --git a/demo/index.html b/demo/index.html
index fe38092..ceb4e99 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -141,17 +141,17 @@
<textarea class="form-input" id="input-example-3" placeholder="Textarea" rows="3"></textarea>
</div>
<div class="form-group">
- <label class="checkbox">
+ <label class="form-checkbox">
<input type="checkbox">
Remember me
</label>
</div>
<div class="form-group">
- <label class="radio">
+ <label class="form-radio">
<input type="radio" name="question">
Yes
</label>
- <label class="radio">
+ <label class="form-radio">
<input type="radio" name="question">
No
</label>
diff --git a/dist/spectre.css b/dist/spectre.css
index eb59dd9..3d08967 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -819,6 +819,13 @@ textarea.form-input {
.form-select:focus {
border-color: #5764C6;
}
+.form-select.select-sm {
+ height: 2.4rem;
+ border-radius: 2px;
+ font-size: 1.2rem;
+ line-height: 1.4rem;
+ padding: .4rem .6rem;
+}
.clearfix::after,
.container::after,
.columns::after {
diff --git a/src/forms.less b/src/forms.less
index 2b69341..301b45a 100644
--- a/src/forms.less
+++ b/src/forms.less
@@ -87,6 +87,15 @@
&:focus {
border-color: @core-color;
}
+
+ // Select Small
+ &.select-sm {
+ height: 2.4rem;
+ border-radius: 2px;
+ font-size: 1.2rem;
+ line-height: 1.4rem;
+ padding: .4rem .6rem;
+ }
}