From cdc5fc20df89ba29e0c4d988ab5f3a14eec6d21b Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 8 Aug 2019 12:04:14 +1000 Subject: [PATCH] style updates --- .../discourse/components/qa-topic-tip.js.es6 | 2 +- .../stylesheets/common/question-answer.scss | 38 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/assets/javascripts/discourse/components/qa-topic-tip.js.es6 b/assets/javascripts/discourse/components/qa-topic-tip.js.es6 index 7d2e6ac..28e8554 100644 --- a/assets/javascripts/discourse/components/qa-topic-tip.js.es6 +++ b/assets/javascripts/discourse/components/qa-topic-tip.js.es6 @@ -1,7 +1,7 @@ import { cookAsync } from "discourse/lib/text"; export default Ember.Component.extend({ - classNames: 'topic-tip', + classNames: 'qa-topic-tip', didInsertElement() { Ember.$(document).on('click', Ember.run.bind(this, this.documentClick)); diff --git a/assets/stylesheets/common/question-answer.scss b/assets/stylesheets/common/question-answer.scss index 0ebe141..0f6e7bb 100644 --- a/assets/stylesheets/common/question-answer.scss +++ b/assets/stylesheets/common/question-answer.scss @@ -58,27 +58,29 @@ nav.post-controls button.comment { padding-left: 105px; } -// identical to classes in other plugins - -.topic-tip { +.qa-topic-tip { position: relative; margin-top: 5px; -} + + .tip-details { + background-color: dark-light-diff($primary, $secondary, 95%, -85%); + box-shadow: shadow('dropdown'); + padding: 10px 15px; + position: absolute; + top: 32px; + z-index: 9999; + width: 300px; + + p { + margin: 0; + } -.tip-details { - background-color: dark-light-diff($primary, $secondary, 95%, -85%); - box-shadow: shadow('dropdown'); - padding: 10px 15px; - position: absolute; - top: 32px; - z-index: 9999; - width: 300px; - - ul { - margin-bottom: 0; - } + ul { + margin-bottom: 0; + } - li { - margin: 2px 0; + li { + margin: 2px 0; + } } }