From 6517a2a0af99c839cdad52d6bd8afac1a60a3599 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 23 Sep 2018 22:04:18 +0200 Subject: [PATCH] story, story-content: Made tag editor in add story and edit story tags form more compact. --- .../components/story-tag-options/index.marko | 30 +++++++++------ marko/components/story-tag-options/style.less | 37 +++++++++++++++++-- 2 files changed, 52 insertions(+), 15 deletions(-) diff --git a/marko/components/story-tag-options/index.marko b/marko/components/story-tag-options/index.marko index c36bc33..cda171f 100644 --- a/marko/components/story-tag-options/index.marko +++ b/marko/components/story-tag-options/index.marko @@ -1,21 +1,27 @@
- - - - +
+ + +
+
+ + +
+
+ +
+
0)>
Suggestions:
${tag.name}
- -
${tag.name}
diff --git a/marko/components/story-tag-options/style.less b/marko/components/story-tag-options/style.less index db84384..9dd0a5c 100644 --- a/marko/components/story-tag-options/style.less +++ b/marko/components/story-tag-options/style.less @@ -1,4 +1,6 @@ div.tag-options { + margin-top: 0em; + div.tag { padding: 0.25em; border-bottom: 1px solid rgba(0, 220, 255, 0.125); @@ -15,8 +17,36 @@ div.tag-options { } } + div.field { + box-sizing: border-box; + display: inline-block; + width: 35%; + margin: 0; + margin-top: 0ch; + + input { + height: 1.55em; + } + } + div.button-field { + position: relative; + top: -0.75ch; + + box-sizing: border-box; + display: inline-block; + width: 30%; + margin: 0; + text-align: right; + + button { + display: inline-block; + width: 14ch; + margin-right: 1ch; + } + } + div.suggestion-list { - margin: 2em 0; + margin: -2em 0 1em 0; a.tag { display: inline-block; @@ -35,8 +65,9 @@ div.tag-options { div.header { display: block; - margin: 0.5em 0.5ch; - padding: 0.0625em 0.5ch; + padding: 0em 0.5ch; + padding-top: 0.75em; + font-size: 0.75em; opacity: 0.5;