search result structure

This commit is contained in:
Candifloss 2024-11-01 22:16:10 +05:30
parent d5cc27ed03
commit 2adad9ee9a
3 changed files with 39 additions and 43 deletions

View File

@ -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;
}

View File

@ -20,13 +20,12 @@
</form>
<div class="search-results">
<a class="search-result" href="/user/realobamna">
<div class="details">
<span class="primary-key username">realobamna</span>
<div class="info-row">
<span class="employee-id">12345</span>
<span class="full-name">John Doe Obama</span>
<span class="info-attrib employee-id">12345</span>
<span class="info-attrib full-name">John Doe Obama</span>
</div>
</div>
<div class="actions">
@ -34,13 +33,12 @@
<button class="delete">Delete</button>
</div>
</a>
<a class="search-result" href="/user/obama">
<div class="details">
<span class="primary-key username">obama</span>
<div class="info-row">
<span class="employee-id">19845</span>
<span class="full-name">Fake Obama</span>
<span class="info-attrib employee-id">19845</span>
<span class="info-attrib full-name">Fake Obama</span>
</div>
</div>
<div class="actions">
@ -52,8 +50,8 @@
<div class="details">
<span class="primary-key username">realobamna</span>
<div class="info-row">
<span class="employee-id">12345</span>
<span class="full-name">John Doe Obama</span>
<span class="info-attrib employee-id">12345</span>
<span class="info-attrib full-name">John Doe Obama</span>
</div>
</div>
<div class="actions">
@ -61,13 +59,12 @@
<button class="delete">Delete</button>
</div>
</a>
<a class="search-result" href="/user/obama">
<div class="details">
<span class="primary-key username">obama</span>
<div class="info-row">
<span class="employee-id">19845</span>
<span class="full-name">Fake Obama</span>
<span class="info-attrib employee-id">19845</span>
<span class="info-attrib full-name">Fake Obama</span>
</div>
</div>
<div class="actions">
@ -76,7 +73,6 @@
</div>
</a>
<!-- Additional search results go here -->
</div>
</div>

View File

@ -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;
}
}
}
}