From 6af0ebe400756a5bb8acdf42c1743930e76bfe64 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sat, 9 Feb 2019 21:03:33 +0100 Subject: [PATCH] remove modal trigger icon --- src/Handler/Utils/Templates.hs | 14 +++++--------- static/img/modal.svg | 7 ------- templates/standalone/modal.lucius | 9 --------- 3 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 static/img/modal.svg diff --git a/src/Handler/Utils/Templates.hs b/src/Handler/Utils/Templates.hs index ef584c19b..221c72b76 100644 --- a/src/Handler/Utils/Templates.hs +++ b/src/Handler/Utils/Templates.hs @@ -2,7 +2,7 @@ module Handler.Utils.Templates where import Data.Either (isLeft) -import Import +import Import.NoFoundation modal :: WidgetT site IO () -> Either (SomeRoute site) (WidgetT site IO ()) -> WidgetT site IO () modal modalTrigger modalContent = do @@ -15,16 +15,12 @@ modal modalTrigger modalContent = do route' <- toTextUrl route [whamlet| $newline never -
- - - ^{modalTrigger} + + ^{modalTrigger} |] Right _ -> do [whamlet| $newline never -
-
- - ^{modalTrigger} +
+ ^{modalTrigger} |] diff --git a/static/img/modal.svg b/static/img/modal.svg deleted file mode 100644 index a4a08bb48..000000000 --- a/static/img/modal.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/templates/standalone/modal.lucius b/templates/standalone/modal.lucius index 390a60a1e..8811f3bae 100644 --- a/templates/standalone/modal.lucius +++ b/templates/standalone/modal.lucius @@ -66,19 +66,10 @@ .modal__trigger { cursor: pointer; - display: inline-flex; - flex-direction: row; - align-items: baseline; - margin-top: 5px; -} - -.modal__trigger-icon { - height: 20px; } .modal__trigger-label { font-size: 14px; - padding-left: 5px; } .modal__closer {