Skip to content

Commit

Permalink
Add img padding. Show controls only on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
GhitaB committed Sep 21, 2021
1 parent 2a94ecf commit f79a91f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/SearchBlock/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ div#page-document {
}

div.search-result {
&:hover {
div.controls {
button {
display: initial !important;
}
}
}

width: 100%;
padding-bottom: 10px;
border-bottom: 1px solid @s-light-gray;
Expand All @@ -109,11 +117,16 @@ div#page-document {
img {
width: 220px;
}

img {
padding: 10px;
}
}

div.col-right {
width: calc(100% - 220px);
padding-top: 10px;
padding-left: 10px;
float: right;

h4,
Expand All @@ -126,8 +139,11 @@ div#page-document {
font-size: 12.8px;
}

button {
margin-top: 5px;
div.controls {
button {
display: none;
margin-top: 5px;
}
}
}
}
Expand Down

0 comments on commit f79a91f

Please sign in to comment.