Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitb341a67fe5673e4b27f80aed59fd1439b64bdfda (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-03-14 10:31:27 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-03-14 10:31:27 +0800
Files9d091bac2d953688b5e2bafc789afbac619438df
Spectre-Dark-Gruvbox-b341a67fe5673e4b27f80aed59fd1439b64bdfda.tar
Spectre-Dark-Gruvbox-b341a67fe5673e4b27f80aed59fd1439b64bdfda.tar.gz
Spectre-Dark-Gruvbox-b341a67fe5673e4b27f80aed59fd1439b64bdfda.zip
Parentd668f6b4e27b63ae401dd3756edbb90ba1de9959 (diff)
add text highlight
3 files changed, 14 insertions, 1 deletions
-rw-r--r--demo/index.html2
-rw-r--r--dist/spectre.css6
-rw-r--r--src/typography.less7
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>H6 Title</h6>
<header class="text-center"><h4>paragraphs</h4></header>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+ <p>Lorem ipsum dolor sit amet, <span class="highlight">consectetur</span> adipiscing elit. Integer posuere erat a ante.</p>
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<header class="text-center"><h4>blockquote</h4></header>
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;
}