From 3561946cbe34a7f10bf8fa2c7934ea3ec30f52f4 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Fri, 27 Dec 2019 18:48:21 +0100 Subject: [PATCH] added data to non-empty #measure, _in_brackets now a macro --- res/main.less | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/res/main.less b/res/main.less index 2b53c2e..a737f0a 100644 --- a/res/main.less +++ b/res/main.less @@ -19,6 +19,15 @@ } } +._in_brackets { + &:after { + content: ")"; + } + &:before { + content: "("; + } +} + // do I need this @ lexonomy? // .elm-div { // clear: both; @@ -43,6 +52,13 @@ font-style: italic; margin-left: 1em; } + + #measure:not(:empty) { + color: @gray; + margin-left: 0.5em; + + ._in_brackets(); + } } #entry-buttons { @@ -70,12 +86,7 @@ margin-left: 0.4em; ._hoverable(); - &:after { - content: ")"; - } - &:before { - content: "("; - } + ._in_brackets(); } .sense-label-list { @@ -86,6 +97,10 @@ .sense-label + .sense-label:before { content: ", "; } + + &:empty:before { + content: "🍵"; + } } .translation-div-cluster + .translation-div-cluster:before {