From 2adad9ee9af85ba262f97ba5736dade4c4fc175a Mon Sep 17 00:00:00 2001 From: candifloss Date: Fri, 1 Nov 2024 22:16:10 +0530 Subject: [PATCH] search result structure --- test/css/search.css | 22 +++++++++++----------- test/html/search.html | 20 ++++++++------------ test/scss/search.scss | 40 ++++++++++++++++++++-------------------- 3 files changed, 39 insertions(+), 43 deletions(-) diff --git a/test/css/search.css b/test/css/search.css index f87b615..e570e09 100644 --- a/test/css/search.css +++ b/test/css/search.css @@ -115,20 +115,10 @@ body .search-page .search-results .search-result .details .info-row { display: flex; gap: 10px; } -body .search-page .search-results .search-result .details .info-row * { +body .search-page .search-results .search-result .details .info-row .info-attrib { font-size: 16px; color: #666666; } -body .search-page .search-results .search-result:hover { - background-color: #b0b0b0; - cursor: pointer; -} -body .search-page .search-results .search-result:hover .details .primary-key { - font-weight: bold; -} -body .search-page .search-results .search-result:hover .details .info-row * { - color: #424242; -} body .search-page .search-results .search-result .actions { display: flex; gap: 8px; @@ -159,6 +149,16 @@ body .search-page .search-results .search-result .actions button.delete:hover { body .search-page .search-results .search-result .actions button:hover { color: #ffffff; } +body .search-page .search-results .search-result:hover { + background-color: #b0b0b0; + cursor: pointer; +} +body .search-page .search-results .search-result:hover .details .primary-key { + font-weight: bold; +} +body .search-page .search-results .search-result:hover .details .info-row .info-attrib { + color: #424242; +} body .search-page .search-results .search-result:hover .actions { visibility: visible; } diff --git a/test/html/search.html b/test/html/search.html index efe2519..e72f584 100644 --- a/test/html/search.html +++ b/test/html/search.html @@ -20,13 +20,12 @@
-
realobamna
- 12345 - John Doe Obama + 12345 + John Doe Obama
@@ -34,13 +33,12 @@
-
obama
- 19845 - Fake Obama + 19845 + Fake Obama
diff --git a/test/scss/search.scss b/test/scss/search.scss index b52cf0f..dcde308 100644 --- a/test/scss/search.scss +++ b/test/scss/search.scss @@ -115,29 +115,13 @@ body { display: flex; gap: 10px; - * { + .info-attrib { font-size: 16px; color: $search-res-item-detail-info-row-color; } } } - - &:hover { - background-color: $search-res-item-hover-color; - cursor: pointer; - - .details { - .primary-key { - font-weight: bold; - } - .info-row { - * { - color: #424242; - } - } - } - } - + .actions { display: flex; gap: 8px; @@ -175,8 +159,24 @@ body { } } - &:hover .actions { - visibility: visible; + &:hover { + background-color: $search-res-item-hover-color; + cursor: pointer; + + .details { + .primary-key { + font-weight: bold; + } + .info-row { + .info-attrib { + color: #424242; + } + } + } + + .actions { + visibility: visible; + } } } }