From 36573701dc656ea6e70743e50d51e71da7e489a8 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 16 Feb 2021 16:57:13 +0100 Subject: [PATCH] Use svg icon instead of CSS `before` CSS can be sometimes a little bit inconsistent to create such an icon. Using SVG is better solution to create beautiful icon. --- app/assets/images/question-mark-icon.svg | 1 + .../darkswarm/question-mark-icon.scss | 18 ++---------------- 2 files changed, 3 insertions(+), 16 deletions(-) create mode 100644 app/assets/images/question-mark-icon.svg diff --git a/app/assets/images/question-mark-icon.svg b/app/assets/images/question-mark-icon.svg new file mode 100644 index 0000000000..cbef96910d --- /dev/null +++ b/app/assets/images/question-mark-icon.svg @@ -0,0 +1 @@ + diff --git a/app/assets/stylesheets/darkswarm/question-mark-icon.scss b/app/assets/stylesheets/darkswarm/question-mark-icon.scss index 47696191ee..c8b33a727e 100644 --- a/app/assets/stylesheets/darkswarm/question-mark-icon.scss +++ b/app/assets/stylesheets/darkswarm/question-mark-icon.scss @@ -1,6 +1,7 @@ .question-mark-icon { position: relative; - top: 1px; + top: 6px; + background-image: image-url("question-mark-icon.svg"); // Reset button element css attributes padding: 0; @@ -13,21 +14,6 @@ &:focus { background-color: transparent; } - - &::before { - content: "?"; - padding-left: 1px; - display: inline-block; - color: $tiny-blue; - border: 1px solid $grey-250; - border-radius: 50%; - text-align: center; - background-color: $grey-075; - width: 20px; - height: 20px; - font-weight: bold; - font-size: 1rem; - } } .joyride-tip-guide.question-mark-tooltip {