From 781ed13b83edc7af208b75815cfffb657a766cc5 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 5 Apr 2016 15:34:38 +0800 Subject: update code examples and add more icons --- demo/index.html | 38 ++++++++++++++++++++++++++++++-------- dist/spectre.css | 16 +++++++++------- src/base.less | 14 ++++++++++++++ src/buttons.less | 7 ------- 4 files changed, 53 insertions(+), 22 deletions(-) diff --git a/demo/index.html b/demo/index.html index 878c951..8e501af 100644 --- a/demo/index.html +++ b/demo/index.html @@ -200,18 +200,17 @@
+ + +
-
- -
+
- - - +
@@ -436,6 +435,7 @@
+ Crime
@@ -553,13 +553,13 @@
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Lorem ipsum dolor sit amet, consectetur adipiscing elit.
@@ -636,6 +636,28 @@
+
+ +
diff --git a/dist/spectre.css b/dist/spectre.css index 3e5d022..da78888 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -398,6 +398,15 @@ a:hover, a:focus { color: #283176; } +.btn .icon, +button .icon, +.toast .icon, +.menu .icon { + margin-right: .2rem; + font-size: 1.3333em; + line-height: 0.8em; + vertical-align: -20%; +} h1, h2, h3, @@ -739,13 +748,6 @@ button.btn-link:active, button.btn-link.active { color: #283176; } -.btn .icon, -button .icon { - margin-right: .2rem; - font-size: 1.3333em; - line-height: 0.8em; - vertical-align: -20%; -} .btn.btn-sm, button.btn-sm { height: 2.4rem; diff --git a/src/base.less b/src/base.less index 3eda371..8090c55 100644 --- a/src/base.less +++ b/src/base.less @@ -25,3 +25,17 @@ a { color: darken(@core-link-color, 25%); } } + + +// Icons +.btn, +button, +.toast, +.menu { + .icon { + margin-right: .2rem; + font-size: 1.3333em; + line-height: 0.8em; + vertical-align: -20%; + } +} \ No newline at end of file diff --git a/src/buttons.less b/src/buttons.less index be6f1ce..ef95627 100644 --- a/src/buttons.less +++ b/src/buttons.less @@ -101,13 +101,6 @@ button { color: darken(@core-color, 25%); } } - // Buttons with icons - .icon { - margin-right: .2rem; - font-size: 1.3333em; - line-height: 0.8em; - vertical-align: -20%; - } // Button Small &.btn-sm { -- cgit v1.3.1-26-gb76a