mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
94d14e3900
[web] Fix spacing between sections, columns, and rows on gallery redesign GitOrigin-RevId: 3c787baa7300c0f39705f71f8821f8da69a837a5
111 lines
2.2 KiB
SCSS
111 lines
2.2 KiB
SCSS
.gallery-search {
|
|
margin-bottom: var(--spacing-16);
|
|
|
|
form {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: var(--spacing-04);
|
|
|
|
@include media-breakpoint-down(md) {
|
|
.form-control-wrapper {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
input {
|
|
padding-top: var(--spacing-06);
|
|
padding-right: var(--spacing-06);
|
|
padding-bottom: var(--spacing-06);
|
|
height: 48px;
|
|
|
|
@include media-breakpoint-up(md) {
|
|
width: 544px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-hits {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-08);
|
|
|
|
.search-hits-loading,
|
|
.search-hits-empty,
|
|
.search-hit:first-of-type {
|
|
margin-top: var(--spacing-16);
|
|
}
|
|
|
|
.search-hit {
|
|
display: flex;
|
|
gap: var(--spacing-08);
|
|
|
|
.search-image {
|
|
a {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
img {
|
|
width: 185px;
|
|
box-shadow: 0 2px 4px 0 rgba(30 37 48 / 16%);
|
|
|
|
@include media-breakpoint-down(sm) {
|
|
width: 35vw;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-title {
|
|
margin-bottom: var(--spacing-04);
|
|
max-width: $templates-search-max-width;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
a {
|
|
@include heading-md;
|
|
|
|
line-clamp: 2;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow-y: hidden;
|
|
color: var(--content-primary);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-highlight {
|
|
max-width: $templates-search-max-width;
|
|
}
|
|
|
|
.search-author {
|
|
display: block;
|
|
|
|
& + .search-hit-tags {
|
|
margin-top: var(--spacing-06);
|
|
}
|
|
}
|
|
|
|
.gallery-official {
|
|
margin-left: var(--spacing-06);
|
|
vertical-align: text-top;
|
|
}
|
|
|
|
.search-hit-tags {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding-left: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--spacing-04);
|
|
}
|
|
}
|
|
}
|
|
}
|