From 111516f66007de67864ac5d5c99967e07c8330fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 24 Mar 2024 17:56:14 +0100 Subject: [PATCH] Move stats styles to the stats stylesheet These styles aren't only used in the admin section but also in the public stats page. --- app/assets/stylesheets/admin.scss | 25 ------------------------- app/assets/stylesheets/stats.scss | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 63451fa3b..2a1a2035a 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -5,7 +5,6 @@ // 01. Global styles // 02. Sidebar // 03. List elements -// 04. Stats // 05. Management // 06. Polls // 07. Legislation @@ -364,30 +363,6 @@ code { } } -// 04. Stats -// --------- - -.stats-numbers { - p { - color: $text-medium; - font-size: rem-calc(13); - padding: rem-calc(6); - text-transform: uppercase; - - &.featured { - background: $info-bg; - border: 1px solid $info-border; - font-weight: bold; - } - - .number { - color: $body-font-color; - font-size: rem-calc(30); - font-weight: bold; - } - } -} - // 05. Management // -------------- diff --git a/app/assets/stylesheets/stats.scss b/app/assets/stylesheets/stats.scss index 9dff64225..55a848fcf 100644 --- a/app/assets/stylesheets/stats.scss +++ b/app/assets/stylesheets/stats.scss @@ -173,6 +173,27 @@ } } +.stats-numbers { + p { + color: $text-medium; + font-size: rem-calc(13); + padding: rem-calc(6); + text-transform: uppercase; + + &.featured { + background: $info-bg; + border: 1px solid $info-border; + font-weight: bold; + } + + .number { + color: $body-font-color; + font-size: rem-calc(30); + font-weight: bold; + } + } +} + table { &.survey-districts {