diff --git a/index.css b/index.css index 0364af2..d097807 100644 --- a/index.css +++ b/index.css @@ -59,6 +59,8 @@ html, body { .slab { font-family: "IosevkaSlabWEB", monospace; } +.bold { font-weight: bold } +.italic { font-style: italic } pre, code { font-family: inherit; } @@ -162,23 +164,47 @@ section#preview pre { text-align: left; } section#preview #preview-toolbar { + display: flex; color: black; + font-family: "IosevkaWEB", monospace; font-size: 1rem; + font-style: normal; + font-weight: normal; background: white; margin: -4rem -1rem 4rem; padding: 0.75rem; + justify-content: center; } section#preview #preview-toolbar h2 { + display: inline; font-size: 1em; color: black; - display: inline; - margin: 0 2rem 0 0; + margin: 0 1rem 0 0; } -span.options a { +section#preview #preview-toolbar h3 { + display: none; +} +section#preview #preview-toolbar span.options { + display: block; + position: relative; +} +section#preview #preview-toolbar span.options + span.options { + padding-left: 1.5rem; +} +section#preview #preview-toolbar span.options + span.options:before { + content: ' '; + display: block; + border-left: 1px solid #ddd; + position: absolute; + top: -0.75rem; + bottom: -0.75rem; + left: 0.5rem; +} +section#preview #preview-toolbar span.options a { margin-right: 0.5em; background-position: 0px 11.075em; } -span.options a.active, span.options a:hover { +section#preview #preview-toolbar span.options a.active, section#preview #preview-toolbar span.options a:hover { background-position: 0px 1.075em; } diff --git a/index.html b/index.html index 9a65c85..a532081 100644 --- a/index.html +++ b/index.html @@ -38,8 +38,13 @@ -
-

Preview Control

| |
+
+
+

Preview

+

Styles

slab-serif bold italic
+

Color

+

Language

+
var languages = [ {lang: 'English', sample: 'Shaw, those twelve beige hooks are joined if I patch a young, gooey mouth.'}, {lang: 'IPA', sample: '[ɢʷɯʔ.nas.doːŋ.kʰlja] [ŋan.ȵʑi̯wo.ɕi̯uĕn.ɣwa]'}, @@ -224,7 +229,7 @@ b = [[11,9,