aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style
diff options
context:
space:
mode:
Diffstat (limited to 'docs/style')
-rw-r--r--docs/style/badge.scss18
-rw-r--r--docs/style/style.scss1
2 files changed, 19 insertions, 0 deletions
diff --git a/docs/style/badge.scss b/docs/style/badge.scss
new file mode 100644
index 00000000..8082f6c7
--- /dev/null
+++ b/docs/style/badge.scss
@@ -0,0 +1,18 @@
+.badge {
+ color: #fff;
+ background-color: #6c757d;
+ display: inline-block;
+ padding: .25em .4em;
+ font-size: 75%;
+ font-weight: 1;
+ line-height: 1;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: baseline;
+ border-radius: 0.25rem;
+
+ // Empty badges collapse automatically
+ &:empty {
+ display: none;
+ }
+}
diff --git a/docs/style/style.scss b/docs/style/style.scss
index 2b0d2993..b404dc42 100644
--- a/docs/style/style.scss
+++ b/docs/style/style.scss
@@ -1,4 +1,5 @@
@import "./syntax";
+@import "./badge";
$primary: #C93312;
$warning-invert: #FFFFFF;