From 48252de9f3554bcb13ac622b2de56c0fd702749e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Thu, 20 Jul 2023 10:07:47 +0200 Subject: [PATCH] Search CSS --- static/css/main.css | 21 ++++---- static/images/search.svg | 107 +++++++++++++++++++++++++++++++++++++++ static/less/main.less | 22 ++++---- 3 files changed, 129 insertions(+), 21 deletions(-) create mode 100644 static/images/search.svg diff --git a/static/css/main.css b/static/css/main.css index 63d21b9..d025926 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -55,6 +55,13 @@ button { border: 2px solid #000; box-shadow: 5px 5px 8px 0px rgba(0, 0, 0, 0.5); z-index: 1025; + width: min-content; +} +#menu .section { + padding: 16px 16px 0px 16px; + font-weight: bold; + white-space: nowrap; + color: #c84a37; } #menu .item { padding: 16px; @@ -137,7 +144,7 @@ button { header { display: grid; grid-area: header; - grid-template-columns: min-content 1fr repeat(3, min-content); + grid-template-columns: min-content 1fr repeat(4, min-content); align-items: center; padding: 8px 0px; color: #333c11; @@ -161,17 +168,13 @@ header .name { padding-left: 16px; font-size: 1.25em; } -header .add { - padding-right: 16px; - cursor: pointer; -} -header .add img { - cursor: pointer; - height: 24px; -} +header .search, +header .add, header .keys { padding-right: 16px; } +header .search img, +header .add img, header .keys img { cursor: pointer; height: 24px; diff --git a/static/images/search.svg b/static/images/search.svg new file mode 100644 index 0000000..28b3b5f --- /dev/null +++ b/static/images/search.svg @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/static/less/main.less b/static/less/main.less index 7435f57..0a54562 100644 --- a/static/less/main.less +++ b/static/less/main.less @@ -56,6 +56,14 @@ button { border: 2px solid #000; box-shadow: 5px 5px 8px 0px rgba(0,0,0,0.5); z-index: 1025; + width: min-content; + + .section { + padding: 16px 16px 0px 16px; + font-weight: bold; + white-space: nowrap; + color: @accent_3; + } .item { padding: 16px; @@ -154,7 +162,7 @@ button { header { display: grid; grid-area: header; - grid-template-columns: min-content 1fr repeat(3, min-content); + grid-template-columns: min-content 1fr repeat(4, min-content); align-items: center; padding: 8px 0px; color: darken(@accent_1, 35%); @@ -181,17 +189,7 @@ header { font-size: 1.25em; } - .add { - padding-right: 16px; - cursor: pointer; - - img { - cursor: pointer; - height: 24px; - } - } - - .keys { + .search, .add, .keys { padding-right: 16px; img {