From 8157e543e5c06c0db2679702775c25e0e3172c92 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 20 Aug 2019 16:36:07 -0400 Subject: [PATCH] Updated promo panel styles Added background, borders similar to other panels. --- .../features/ui/components/promo_panel.js | 14 +++--- .../styles/gabsocial/components.scss | 44 +++++++++++-------- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/app/javascript/gabsocial/features/ui/components/promo_panel.js b/app/javascript/gabsocial/features/ui/components/promo_panel.js index 3ceba5db..659f52fa 100644 --- a/app/javascript/gabsocial/features/ui/components/promo_panel.js +++ b/app/javascript/gabsocial/features/ui/components/promo_panel.js @@ -5,31 +5,31 @@ import Icon from 'gabsocial/components/icon'; export default class PromoPanel extends React.PureComponent { render() { return ( -
+
- +
- - + +
- - + +
- + diff --git a/app/javascript/styles/gabsocial/components.scss b/app/javascript/styles/gabsocial/components.scss index a7037c9a..e0ab2299 100644 --- a/app/javascript/styles/gabsocial/components.scss +++ b/app/javascript/styles/gabsocial/components.scss @@ -1649,32 +1649,38 @@ a.account__display-name { .promo-panel { margin-top: 10px; - padding: 10px 10px 20px 10px; - border-bottom: 1px solid lighten($ui-base-color, 4%); +} - .promo-panel-item { +.promo-panel-item { display: block; + height: 42px; + line-height: 42px; + border-bottom: 1px solid lighten($ui-base-color, 8%); - &:not(:first-of-type) { - margin-top: 20px; + &:last-of-type { + border-bottom: none; + } + + &__btn { + display: block; + text-align: left; + color: $primary-text-color; + text-decoration: none; + font-size: 15px; + padding: 0 20px; + + &:hover { + color: darken($primary-text-color, 14%); + + span { + text-decoration: underline; + } + } } &__icon { - margin-right: 12px; + margin-right: 12px; } - - &__message { - display: block; - font-size: 14px; - line-height: 16px; - margin-top: 6px; - color: $primary-text-color; - - &--dark { - color: $ui-secondary-color; - } - } - } } .drawer__pager {