From 7ec592ce3d03ffcd60de95d16f69d4b5e82e4ab3 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 16 May 2021 15:59:21 +0200 Subject: [PATCH] replace up and down arrows with svgs --- htdocs/css/openwebrx-header.css | 42 +++++----- htdocs/gfx/svg-defs.svg | 2 + htdocs/include/header.include.html | 5 +- .../openwebrx-rx-details-arrow-down.svg | 84 +++++++++++++++++++ .../openwebrx-rx-details-arrow-up.svg | 82 ++++++++++++++++++ 5 files changed, 195 insertions(+), 20 deletions(-) create mode 100644 inkscape files/openwebrx-rx-details-arrow-down.svg create mode 100644 inkscape files/openwebrx-rx-details-arrow-up.svg diff --git a/htdocs/css/openwebrx-header.css b/htdocs/css/openwebrx-header.css index 40856ea..5857342 100644 --- a/htdocs/css/openwebrx-header.css +++ b/htdocs/css/openwebrx-header.css @@ -102,18 +102,6 @@ font-size: 10pt; } -.openwebrx-rx-details-arrow { - position: absolute; - bottom: 0; - left: 50%; - transform: translate(-50%, 0); - - margin: 0; - padding: 0; - line-height: 0; - display: block; -} - .openwebrx-main-buttons .button { display: block; width: 55px; @@ -240,14 +228,30 @@ height: 38px; } -.openwebrx-rx-details-arrow--down .sprite-rx-details-arrow { - background-position: 0 -65px; - width: 43px; +.openwebrx-rx-details-arrow { + position: absolute; + bottom: 0; + left: 50%; + transform: translate(-50%, 0); + + margin: 0; + padding: 0; + line-height: 0; + display: block; +} + +.openwebrx-rx-details-arrow svg { height: 12px; } -.openwebrx-rx-details-arrow--up .sprite-rx-details-arrow { - background-position: -43px -65px; - width: 43px; - height: 12px; +.openwebrx-rx-details-arrow .up { + display: none; +} + +.openwebrx-rx-details-arrow--up .down { + display: none; +} + +.openwebrx-rx-details-arrow--up .up { + display: initial; } \ No newline at end of file diff --git a/htdocs/gfx/svg-defs.svg b/htdocs/gfx/svg-defs.svg index 8c9c7b8..9a6b083 100644 --- a/htdocs/gfx/svg-defs.svg +++ b/htdocs/gfx/svg-defs.svg @@ -18,5 +18,7 @@ + + \ No newline at end of file diff --git a/htdocs/include/header.include.html b/htdocs/include/header.include.html index 0f0062f..8ae0811 100644 --- a/htdocs/include/header.include.html +++ b/htdocs/include/header.include.html @@ -18,5 +18,8 @@
${photo_title}
${photo_desc}
- + + + + diff --git a/inkscape files/openwebrx-rx-details-arrow-down.svg b/inkscape files/openwebrx-rx-details-arrow-down.svg new file mode 100644 index 0000000..4b0755d --- /dev/null +++ b/inkscape files/openwebrx-rx-details-arrow-down.svg @@ -0,0 +1,84 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/inkscape files/openwebrx-rx-details-arrow-up.svg b/inkscape files/openwebrx-rx-details-arrow-up.svg new file mode 100644 index 0000000..56a6a9c --- /dev/null +++ b/inkscape files/openwebrx-rx-details-arrow-up.svg @@ -0,0 +1,82 @@ + + + + + + + + image/svg+xml + + + + + + + + + + +