From eb25cde241d1cea46b9a1e839ea0f24bc8fb2bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 18 Aug 2021 16:36:09 +0300 Subject: [PATCH] Simplify jumbotron CSS --- static/css/bootstrap-colors.css | 4 ---- static/css/bootstrap.css | 5 +---- stuff/bootstrap/jumbotron.less | 4 ---- stuff/bootstrap/variables.less | 2 +- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/static/css/bootstrap-colors.css b/static/css/bootstrap-colors.css index 71050e33..aea24a2c 100644 --- a/static/css/bootstrap-colors.css +++ b/static/css/bootstrap-colors.css @@ -1,7 +1,3 @@ -.jumbotron { - background-color: var(--jumbotron-bg); -} - .btn-default { color: var(--btn-default-color); background-color: var(--btn-default-bg); diff --git a/static/css/bootstrap.css b/static/css/bootstrap.css index 420771db..2feab6f5 100644 --- a/static/css/bootstrap.css +++ b/static/css/bootstrap.css @@ -4089,7 +4089,7 @@ a.badge:focus { padding-bottom: 30px; margin-bottom: 30px; color: inherit; - background-color: #eeeeee; + background-color: var(--jumbotron-bg); } .jumbotron h1, .jumbotron .h1 { @@ -4100,9 +4100,6 @@ a.badge:focus { font-size: 21px; font-weight: 200; } -.jumbotron > hr { - border-top-color: #d5d5d5; -} .container .jumbotron, .container-fluid .jumbotron { border-radius: 3px; diff --git a/stuff/bootstrap/jumbotron.less b/stuff/bootstrap/jumbotron.less index 1d9b515b..4be25e45 100644 --- a/stuff/bootstrap/jumbotron.less +++ b/stuff/bootstrap/jumbotron.less @@ -21,10 +21,6 @@ font-weight: 200; } - > hr { - border-top-color: darken(@jumbotron-bg, 10%); - } - .container &, .container-fluid & { border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container diff --git a/stuff/bootstrap/variables.less b/stuff/bootstrap/variables.less index 813022ac..1bec286b 100755 --- a/stuff/bootstrap/variables.less +++ b/stuff/bootstrap/variables.less @@ -487,7 +487,7 @@ @jumbotron-padding: 30px; @jumbotron-color: inherit; -@jumbotron-bg: @gray-lighter; +@jumbotron-bg: var(--jumbotron-bg); @jumbotron-heading-color: inherit; @jumbotron-font-size: ceil((@font-size-base * 1.5)); @jumbotron-heading-font-size: ceil((@font-size-base * 4.5));