mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
3f11776ecd
* Remove components, core and modules LESS stylesheets * Remove variables LESS stylesheets * Remove app LESS stylesheets * Remove github-sync, onboarding LESS stylesheets * Remove main-light and IEEE LESS stylesheets * Remove Less loader configuration * Remove bootstrap-3 entrypoint * Rename bootstrap-5 entrypoint to bootstrap * Remove bootstrap-5 CSS folder and move stylesheets * Update CSS variables * Restore and update github-sync.scss path * Fix try-premium.scss path and fix undefined mixin error * Restore entrypoints * Simplify buildCssPath to always use main-style.css * Remove less from prettier formatting scripts * Remove less from addHook extension * Source format * Remove nvd3 file reference from prettierignore (equivalent of nvd3.scss) * Remove less and less-loader * Add SCSS files to pirates require hook GitOrigin-RevId: bd83c79f4d6ef7305d75993959a4dc5e7714ef9c
137 lines
2.8 KiB
SCSS
137 lines
2.8 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%;
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: '';
|
|
background: var(--neutral-90);
|
|
opacity: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-base);
|
|
transition: opacity 0.15s ease-in-out;
|
|
}
|
|
|
|
img {
|
|
@include shadow-md;
|
|
|
|
width: 185px;
|
|
border-radius: var(--border-radius-base);
|
|
|
|
@include media-breakpoint-down(sm) {
|
|
width: 35vw;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
&::before {
|
|
opacity: 0.08;
|
|
transition: opacity 0.15s ease-in-out;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
@include media-breakpoint-down(lg) {
|
|
@include heading-sm;
|
|
}
|
|
|
|
@include media-breakpoint-down(md) {
|
|
@include heading-xs;
|
|
|
|
line-clamp: 3;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-highlight {
|
|
max-width: $templates-search-max-width;
|
|
}
|
|
|
|
.search-author {
|
|
display: block;
|
|
|
|
& + .badge-link-list {
|
|
margin-top: var(--spacing-06);
|
|
}
|
|
}
|
|
|
|
.gallery-official {
|
|
margin-left: var(--spacing-06);
|
|
vertical-align: text-top;
|
|
}
|
|
}
|
|
}
|
|
}
|