From b341a67fe5673e4b27f80aed59fd1439b64bdfda Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 14 Mar 2016 10:31:27 +0800 Subject: add text highlight --- demo/index.html | 2 +- dist/spectre.css | 6 ++++++ src/typography.less | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/demo/index.html b/demo/index.html index 7a4bf3e..c7ef27c 100644 --- a/demo/index.html +++ b/demo/index.html @@ -22,7 +22,7 @@
H6 Title

paragraphs

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

blockquote

diff --git a/dist/spectre.css b/dist/spectre.css index 3c1994f..0298be3 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -459,6 +459,12 @@ ol { ol ol { list-style-type: lower-alpha; } +.highlight { + padding: .2rem; + line-height: 1.6rem; + border-radius: .2rem; + background-color: #fff5b7; +} .text-left { text-align: left; } diff --git a/src/typography.less b/src/typography.less index dc7da3d..d9d4b39 100644 --- a/src/typography.less +++ b/src/typography.less @@ -72,6 +72,13 @@ ol { } } +.highlight { + padding: .2rem; + line-height: 1.6rem; + border-radius: .2rem; + background-color: #fff5b7; +} + .text-left { text-align: left; } -- cgit v1.3.1-23-gd82d