From 725ca116dd7e9fb717cec2549119133029511ee4 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 5 Aug 2020 17:09:36 -0700 Subject: [PATCH] styles: Remove duplicate properties. Signed-off-by: Anders Kaseorg --- static/styles/alerts.scss | 1 - static/styles/app_components.scss | 1 - static/styles/left-sidebar.scss | 1 - static/styles/lightbox.scss | 1 - static/styles/portico/landing-page.scss | 3 --- static/styles/recent_topics.scss | 1 - static/styles/right-sidebar.scss | 1 - static/styles/settings.scss | 3 --- static/styles/subscriptions.scss | 2 -- stylelint.config.js | 1 - 10 files changed, 15 deletions(-) diff --git a/static/styles/alerts.scss b/static/styles/alerts.scss index 91bd97ffd9..8a42f33d16 100644 --- a/static/styles/alerts.scss +++ b/static/styles/alerts.scss @@ -123,7 +123,6 @@ $alert-error-red: hsl(0, 80%, 40%); .code-context { color: hsl(0, 7%, 15%); background-color: hsl(0, 7%, 98%); - background-color: hsl(0, 7%, 98%); box-shadow: inset 0px 11px 10px -10px hsl(0, 7%, 70%), inset 0px -11px 10px -10px hsl(0, 7%, 70%); diff --git a/static/styles/app_components.scss b/static/styles/app_components.scss index 9a00aa2b84..a9c83f7a45 100644 --- a/static/styles/app_components.scss +++ b/static/styles/app_components.scss @@ -281,7 +281,6 @@ left: 0; width: 100%; height: 100%; - overflow: auto; -webkit-overflow-scrolling: touch; background-color: hsla(0, 0%, 13%, 0.8); diff --git a/static/styles/left-sidebar.scss b/static/styles/left-sidebar.scss index 116c53290a..203d76281c 100644 --- a/static/styles/left-sidebar.scss +++ b/static/styles/left-sidebar.scss @@ -428,7 +428,6 @@ ul.topic-list { ul.expanded_private_messages { list-style-type: none; - font-weight: 300; font-size: 13px; font-weight: 400; margin-left: 0px; diff --git a/static/styles/lightbox.scss b/static/styles/lightbox.scss index acc496ec79..202d567113 100644 --- a/static/styles/lightbox.scss +++ b/static/styles/lightbox.scss @@ -43,7 +43,6 @@ color: hsla(0, 0%, 100%, 0.8); font-size: 2rem; - font-weight: 200; margin: 24px 20px 0px 0px; transform: scaleY(0.75); diff --git a/static/styles/portico/landing-page.scss b/static/styles/portico/landing-page.scss index 4336fc43dd..b0113ba85c 100644 --- a/static/styles/portico/landing-page.scss +++ b/static/styles/portico/landing-page.scss @@ -1170,7 +1170,6 @@ nav { margin: -300px auto 0px auto; width: 600px; - background-color: hsl(0, 0%, 98%); height: 350px; padding: 10px 30px 10px 30px; @@ -2467,7 +2466,6 @@ nav { top: auto; bottom: 10px; left: calc(50% - 17.5px); - background-color: hsl(0, 0%, 80%); border-radius: 8px; background-color: hsl(0, 0%, 13%); @@ -2552,7 +2550,6 @@ nav { } .portico-landing.plans .main .padded-content > h2 { - color: hsl(0, 0%, 27%); text-align: center; font-size: 1.5em; diff --git a/static/styles/recent_topics.scss b/static/styles/recent_topics.scss index 4ceca2a892..cc3629d36c 100644 --- a/static/styles/recent_topics.scss +++ b/static/styles/recent_topics.scss @@ -158,7 +158,6 @@ font-weight: 400; letter-spacing: 0.6px; border-radius: 4px; - background-color: hsl(0, 0%, 89%); padding: 0 4px; margin-right: 10px; align-self: center; diff --git a/static/styles/right-sidebar.scss b/static/styles/right-sidebar.scss index 4633aaff70..5ef04e99e6 100644 --- a/static/styles/right-sidebar.scss +++ b/static/styles/right-sidebar.scss @@ -119,7 +119,6 @@ float: right; padding: 0 4px; background-color: hsl(105, 2%, 50%); - border-radius: 0px; color: hsl(0, 0%, 100%); font-size: 12px; line-height: 14px; diff --git a/static/styles/settings.scss b/static/styles/settings.scss index 76b98555b5..56faf92fa6 100644 --- a/static/styles/settings.scss +++ b/static/styles/settings.scss @@ -889,7 +889,6 @@ input[type="checkbox"] { .api_key .api-key-value-and-button { display: block; margin-left: 0px; - white-space: pre-wrap; word-wrap: break-word; word-break: break-all; white-space: normal; @@ -906,7 +905,6 @@ input[type="checkbox"] { } .field { - font-weight: 300; text-transform: uppercase; font-weight: 600; color: hsl(0, 0%, 67%); @@ -1010,7 +1008,6 @@ input[type="checkbox"] { .alert_word_listing .value { display: block; - white-space: pre-wrap; word-wrap: break-word; word-break: break-all; white-space: normal; diff --git a/static/styles/subscriptions.scss b/static/styles/subscriptions.scss index 2c2277aaba..d8f7f00c53 100644 --- a/static/styles/subscriptions.scss +++ b/static/styles/subscriptions.scss @@ -129,7 +129,6 @@ .stream-email .email-address { display: block; margin: auto; - white-space: pre-wrap; word-wrap: break-word; word-break: break-all; white-space: normal; @@ -1152,7 +1151,6 @@ ul.grey-box { left: 101%; top: 45px; - border-top: 1px solid hsl(0, 0%, 87%); background-color: hsl(0, 0%, 100%); border-top: none; diff --git a/stylelint.config.js b/stylelint.config.js index 88a3625e71..2225214846 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -8,7 +8,6 @@ module.exports = { "property-no-unknown": [true, {ignoreProperties: [/^mso-/]}], // Disable recommended rules we don't comply with yet - "declaration-block-no-duplicate-properties": null, "declaration-block-no-shorthand-property-overrides": null, "font-family-no-missing-generic-family-keyword": null, "no-descending-specificity": null,