From ae218090f4a1eed6f851d61855d4da416b9b730b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 9 Oct 2022 22:46:07 +0200 Subject: [PATCH 1/8] Remove obsolete CSS for questions geozones This code isn't used since commit ab63c18d0. --- app/assets/stylesheets/admin.scss | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 51dfe510c..b74d10f1b 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -654,24 +654,6 @@ code { } } -.admin { - - .geozone { - background: #ececec; - border-radius: rem-calc(6); - color: $text; - display: inline-block; - font-size: $small-font-size; - margin-bottom: $line-height / 3; - padding: $line-height / 4 $line-height / 3; - text-decoration: none; - - &:hover { - background: #e0e0e0; - } - } -} - .management-list { max-width: rem-calc(1200); } From e66aab7d04bc3c5a91292ecc0c32d4ee6b717b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 10 Oct 2022 00:09:57 +0200 Subject: [PATCH 2/8] Remove obsolete CSS for the help page This code isn't used since commit d679c1eb7. --- app/assets/stylesheets/layout.scss | 46 ------------------------------ 1 file changed, 46 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 9ca78ef7f..6e57f0de5 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -11,7 +11,6 @@ // 10. Official levels // 11. Tables // 12. Social -// 13. Pages // 14. Verification // 15. Comments // 16. Flags @@ -1628,51 +1627,6 @@ table { } } -// 13. Pages -// --------- - -.help { - - li { - border-bottom: 1px solid $border; - font-weight: bold; - margin-left: rem-calc(-12); - position: relative; - - span { - color: $text; - display: inline-block; - font-weight: normal; - } - - &::after { - content: none; - color: $text-medium; - font-family: "icons" !important; - position: absolute; - right: 0; - top: 24px; - - @include breakpoint(medium) { - content: "c"; - } - } - } - - a { - display: block; - padding: $line-height / 2; - } - - a:hover { - background: $highlight; - - span { - text-decoration: none; - } - } -} - // 14. Verification // ---------------- From 9b642a0a881fbe3f1db724ff7e08e62a38ebe988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 11 Oct 2022 00:50:58 +0200 Subject: [PATCH 3/8] Remove obsolete CSS for the annotator editor We don't use this editor but our own custom editor, meaning this code isn't used since commits 54e59a8a5 and bf20c93e9. --- .../stylesheets/annotator_overrides.scss | 94 ------------------- 1 file changed, 94 deletions(-) diff --git a/app/assets/stylesheets/annotator_overrides.scss b/app/assets/stylesheets/annotator_overrides.scss index 0bdb28ade..c4af1c311 100644 --- a/app/assets/stylesheets/annotator_overrides.scss +++ b/app/assets/stylesheets/annotator_overrides.scss @@ -1,105 +1,11 @@ // Overrides styles of annotator.min // -.annotator-editor .annotator-controls, -.annotator-filter, -.annotator-filter .annotator-filter-navigation button { - background: #f3f3f3; - background-image: none; - border: 0; - border-radius: 0; - border-top: 1px solid $border; - box-shadow: none; - padding: $line-height / 2 $line-height / 4; -} - .annotator-adder { background-image: image-url("annotator_adder.png"); margin-top: -52px; } -.annotator-widget { - background: #fff; - border: 1px solid $border; - border-radius: 0; - bottom: $line-height; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); - font-family: $body-font-family; - font-size: $base-font-size; - line-height: $line-height; - min-width: $line-height * 13; - - p { - color: $text; - padding: $line-height / 2; - } -} - -.annotator-item, -.annotator-editor .annotator-item input:focus, -.annotator-editor .annotator-item textarea:focus { - background: #fff; -} - -.annotator-widget::after, -.annotator-editor.annotator-invert-y .annotator-widget::after { - background-image: image-url("annotator_items.png"); -} - -.annotator-editor a, -.annotator-filter .annotator-filter-property label { - padding: 0 $line-height / 4; -} - -.annotator-editor a { - background: none; - background-image: none; - border: 0; - box-shadow: none; - color: $link; - font-family: $body-font-family; - font-size: $base-font-size; - font-weight: normal; - text-shadow: none; - padding: 0; - - &:hover, - &:active, - &:focus { - background: none; - background-image: none; - color: $link-hover; - text-decoration: underline; - text-shadow: none; - } - - &::after { - content: none; - } - - &.annotator-cancel { - background: #f04124; - color: #fff; - padding: $line-height / 4 $line-height / 2; - - &:hover { - background: darken(#f04124, 20); - text-decoration: none; - } - } - - &.annotator-save { - background: #43ac6a; - color: #fff; - padding: $line-height / 4 $line-height / 2; - - &:hover { - background: darken(#43ac6a, 20); - text-decoration: none; - } - } -} - .annotator-hl { cursor: pointer; background: rgba(255, 249, 218, 0.75); From 72f9aeb313b5765910d87a73580680f76e948f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 11 Oct 2022 02:23:11 +0200 Subject: [PATCH 4/8] Remove obsolete CSS for the verification letter This code has never been used; it was introduced in commit da86c5d6e, maybe by accident. --- app/assets/stylesheets/layout.scss | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 6e57f0de5..69373ae03 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1696,15 +1696,6 @@ table { } } - .send-letter { - background: none; - color: $link; - - &:hover { - color: $link-hover; - } - } - .button + form { display: inline-block; margin-left: $line-height / 2; From 5a654d29845d3e6e874c7b33070ac186263e8a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 11 Oct 2022 18:30:27 +0200 Subject: [PATCH 5/8] Remove obsolete CSS for the dashboard clipboard This code isn't used since we removed the copy link feature in commit 5bbf325c1. --- app/assets/stylesheets/dashboard.scss | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss index 56d2268bc..8bd4e7cbd 100644 --- a/app/assets/stylesheets/dashboard.scss +++ b/app/assets/stylesheets/dashboard.scss @@ -441,26 +441,6 @@ position: relative; text-align: center; - .clipboard { - border: 1px solid $brand; - border-radius: rem-calc(20); - cursor: pointer; - display: inline-block; - margin-bottom: $line-height; - padding: $line-height / 4 $line-height / 2; - padding-left: rem-calc(30); - position: relative; - text-decoration: none; - - &::before { - color: $brand; - content: "\6d"; - font-family: "icons"; - left: 6px; - position: absolute; - } - } - .button { font-weight: bold; } From c30b528f5aadf17c886013206296e7f49679b0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 11 Oct 2022 18:42:02 +0200 Subject: [PATCH 6/8] Remove obsolete spending proposals CSS selector This selector isn't used since commit 24dde9c35. --- app/assets/stylesheets/admin.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index b74d10f1b..1619efbec 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -632,7 +632,6 @@ code { } } -.admin-content .select-geozone, .admin-content .select-heading { a { From ef87abd8b72458062e880fddb92b2c3f4333210e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 13 Oct 2022 12:56:22 +0200 Subject: [PATCH 7/8] Remove duplicate selector in partipation CSS Thi line `.budget-investment-show,` was included twice, probably due to issues while solving conflicts in git. --- app/assets/stylesheets/participation.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 7efc0f1e8..950e8af58 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -163,7 +163,6 @@ .budget-investment-show, .polls-show, .debate-quiz, -.budget-investment-show, .draft-panels, .debate-questions, .communities-show, From 05cb72a3982cbe9a79960bdf0e8d71299ead3473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 13 Oct 2022 16:12:34 +0200 Subject: [PATCH 8/8] Remove duplicate mixin in budget-investment-show This mixin was being called twice for the `.budget-investment-show` selector; once in the CSS including this code for all the "Show participation" pages, and once in the CSS for budget investments. --- app/assets/stylesheets/participation.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 950e8af58..74ab2e1e9 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -636,7 +636,8 @@ padding: $line-height / 2 0; } -.proposal { +.proposal, +.budget-investment { .supports { @include supports; @@ -647,7 +648,6 @@ .budget-investment-show { .supports { - @include supports; .investment-project-amount, .budget-investment-amount {