From 21a803cc21450d89423a35cda515d4808d3f3cf1 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sat, 6 Mar 2021 11:53:26 +0100 Subject: [PATCH] Slim header according to topio (now fully responsive). --- assets/css/style.css | 42 ++++++++++++++++----- assets/images/slim_header_top_triangles.svg | 14 +++++++ 2 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 assets/images/slim_header_top_triangles.svg diff --git a/assets/css/style.css b/assets/css/style.css index 317c1db..17a2cac 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -872,14 +872,26 @@ footer { display: none; } - .slim_box__top_bar_left { - margin-top: 1rem; - height: 1.125rem; + /* slim header - start */ + .header__slim_box { + background-image: none; + padding-bottom: 0; } - .slim_box__top_bar_middle, .slim_box__top_bar_right { + .slim_box__top_bar_left { + margin: 1rem 0.5rem 0 0; + height: 1.125rem; + background-image: url("../images/slim_header_top_triangles.svg"); + background-position: right; + background-repeat: no-repeat; + } + + .slim_box__top_bar_middle, + .slim_box__unicorns, + .slim_box__top_bar_right { display: none; } + /* slim header - end */ .header__claim { margin: 1.2rem 1.5rem 0 1.5rem; @@ -1006,15 +1018,27 @@ footer { display: none; } - .slim_box__top_bar_left { - grid-column: 1 / span 5; - margin-top: 3rem; - height: 1.125rem; + /* slim header - start */ + .header__slim_box { + background-image: none; + margin: 0; + padding: 0; } - .slim_box__top_bar_middle, .slim_box__top_bar_right { + .slim_box__top_bar_left { + margin: 0 0.5rem 0 0; + height: 1.125rem; + background-image: url("../images/slim_header_top_triangles.svg"); + background-position: right; + background-repeat: no-repeat; + } + + .slim_box__top_bar_middle, + .slim_box__top_bar_right, + .slim_box__unicorns { display: none; } + /* slim header - end */ .sub_claim__box { padding-bottom: 2.5rem; diff --git a/assets/images/slim_header_top_triangles.svg b/assets/images/slim_header_top_triangles.svg new file mode 100644 index 0000000..1e008b7 --- /dev/null +++ b/assets/images/slim_header_top_triangles.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +