Skip to content

Commit

Permalink
Split searchresult to separate file; change color of source span
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 28, 2022
1 parent b4b50ca commit 1de1e12
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 193 deletions.
198 changes: 198 additions & 0 deletions src/SearchBlock/less/searchresult.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
div#page-document {
div.searchapp {
div.cards {
div.search-result {
overflow: auto;
width: 100%;
padding-bottom: 0.5em;
border-bottom: 1px solid @sf-light-gray2;
margin-top: 0.5em;
margin-bottom: 0.5em;
clear: both;

div.menu.mlt {
top: -100%;
left: -5px;

div.item {
padding: 5px !important;
background: @sf-azure;
color: white;
font-size: 10px;
font-weight: 400;
}
}

&:hover {
div.controls {
button {
opacity: 1 !important;
}
}

button.mlt {
opacity: 1 !important;
}
}

span.breadcrumb span {
color: @sf-blue !important;
}

button.mlt {
position: relative;
top: -1px;
margin-left: 0.5em;
font-size: 10px;
opacity: 0;
}

div.col-full {
width: 100%;

div.meta {
margin-bottom: 0px;
font-size: 12px !important;

span.score {
padding: 0px 5px 0px 5px;
border: 1px solid @sf-light-gray2;
margin-right: 20px;
background: @sf-light-gray;
border-radius: 2px;
}

i.angle.right.icon {
margin: 0px !important;
background: white !important;
}

span.cluster-icon {
i.icon {
margin-left: 0px;
background: white;
line-height: 1em;
}
}

span.date {
margin-right: 20px;
}

span.tags {
margin-right: 10px;
}

i.icon {
margin-left: 3px;
background: @sf-light-gray;
line-height: 1em;
}
}
}

div.col-right {
max-width: 180px;
float: right;
text-align: center;

a,
img {
width: 180px;
height: 100px;
object-fit: cover;
}

img {
padding: 0px 10px 10px 10px;
}

div.controls {
display: flex;
justify-content: center;

button {
margin: 3px;
font-size: 10px;
opacity: 0;
}
}
}

div.col-left {
width: calc(100% - 180px);
padding-top: 0px;
padding-right: 20px;
padding-left: 0px;
margin-top: 0px;
float: left;

&.no-image {
width: 100% !important;
}

span.tags-list {
display: block;
color: @sf-dark-gray;
font-size: 16px !important;
font-weight: 200;

span {
// padding: 1px 5px;
margin-right: 0.5em;
// background: @sf-light-gray;
// border-radius: 0.5em;
}
}

h3 {
margin-bottom: 0px !important;
font-weight: 400;
}

div.ui.breadcrumb {
flex-wrap: wrap;
padding: 0;
margin-bottom: 0.3em;
color: @sf-medium-gray2;
font-size: 10px !important;
font-weight: 400;

.divider {
position: relative;
top: -2px;
margin: 0 0.3em;
}

.section {
min-height: 1.1em;
}
}

p {
font-size: 14px !important;
}

div.source {
margin-bottom: 10px;
font-size: 10px !important;

span {
// color: @sf-blue;
}
}

h3,
p {
margin: 0px 0px 10px 0px;
}

p {
color: @s-dark-gray;
font-size: 12.8px;
}
}
}
}
}
}
Loading

0 comments on commit 1de1e12

Please sign in to comment.