overleaf/services/web/frontend/stylesheets/bootstrap-5/pages/templates-v2.scss

359 lines
6 KiB
SCSS
Raw Normal View History

.gallery.gallery-tagged {
.gallery-title {
display: block;
text-align: left;
}
.gallery-summary {
text-align: left;
max-width: 828px;
}
}
.gallery {
margin-top: var(--spacing-10);
Gallery redesign - Making the changes on tagged page to match figma design (#21256) * Adding max width for gallery-summary * changin card background color * removing row from within the card * matching the padding of gray card with figma design * removing row and spaced row to avoid extra padding and adding doc-rows-container * adding grid for templates and removing some old styling * adding .recent-templates-container to add the padding and margins * deleting a comment and adding img border radius for the thumbnail * adding margin-bottom on recent-templates-container * adding .gallery-tagged-title-container to match the figma padding and then a fix was needed for the width of the filters * renaming gallery-tagged-title-container to gallery-tagged-container-spacing and re-using it for Related tags container * making recent heading as heading-xl to match figma * adding badge styling and its container styling via .gallery-tagged-template-tags-container * making two classes out of this class .gallery-tagged-container-spacing to add the styling for the h2 heading * adding margin-bottom to match figma style * making class generic and using it at multiple places * removing some extra code * removing grid styling because after rebase the layout was fixed with col classes * adding rows back * adding h2 instead of h3 and making them heading-xl * adapting some changes after merge conflicts * removing duplicate classname after rebase GitOrigin-RevId: d02a0b1e2784fd96d2af2326700829879dacc464
2024-10-23 06:34:37 -04:00
.gallery-tagged-container-spacing {
padding: 0 var(--spacing-09);
}
.gallery-tagged-tags-container-spacing {
padding: 0 var(--spacing-09);
margin-bottom: var(--spacing-16);
h2 {
margin-bottom: var(--spacing-09);
}
}
.filters {
float: right;
margin-bottom: var(--spacing-11);
display: flex;
gap: var(--spacing-04);
@include media-breakpoint-down(lg) {
float: none;
}
a {
text-decoration: none;
&:visited {
color: var(--green-50);
}
&:hover {
color: var(--green-60);
}
&.active {
font-weight: 600;
text-decoration: underline;
}
}
}
.gallery-header {
@include media-breakpoint-up(lg) {
max-width: $templates-search-max-width;
display: flex;
flex-direction: column;
align-items: center;
margin-left: auto;
margin-right: auto;
}
}
.gallery-title {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: var(--spacing-06);
text-align: center;
}
.gallery-summary {
@include body-lg;
text-align: center;
margin-bottom: var(--spacing-09);
}
.top-picks-banner {
padding: 0;
margin: var(--spacing-16) auto;
Gallery redesign - Making the changes on tagged page to match figma design (#21256) * Adding max width for gallery-summary * changin card background color * removing row from within the card * matching the padding of gray card with figma design * removing row and spaced row to avoid extra padding and adding doc-rows-container * adding grid for templates and removing some old styling * adding .recent-templates-container to add the padding and margins * deleting a comment and adding img border radius for the thumbnail * adding margin-bottom on recent-templates-container * adding .gallery-tagged-title-container to match the figma padding and then a fix was needed for the width of the filters * renaming gallery-tagged-title-container to gallery-tagged-container-spacing and re-using it for Related tags container * making recent heading as heading-xl to match figma * adding badge styling and its container styling via .gallery-tagged-template-tags-container * making two classes out of this class .gallery-tagged-container-spacing to add the styling for the h2 heading * adding margin-bottom to match figma style * making class generic and using it at multiple places * removing some extra code * removing grid styling because after rebase the layout was fixed with col classes * adding rows back * adding h2 instead of h3 and making them heading-xl * adapting some changes after merge conflicts * removing duplicate classname after rebase GitOrigin-RevId: d02a0b1e2784fd96d2af2326700829879dacc464
2024-10-23 06:34:37 -04:00
h2 {
@include heading-xl;
}
.doc-rows-container {
margin-top: var(--spacing-09);
}
}
.recent-templates-container {
padding: 0 var(--spacing-09);
margin-bottom: var(--spacing-16);
h2 {
margin-bottom: var(--spacing-09);
@include heading-xl;
}
}
.no-articles-matching {
color: var(--neutral-90);
font-weight: 600;
@include heading-lg;
}
.template-summary {
margin-top: var(--spacing-02);
margin-bottom: var(--spacing-09);
@include body-lg;
}
@mixin line-clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
}
.gallery-container {
--bs-gutter-y: var(--spacing-09);
}
.gallery-thumbnail {
a {
@extend .link-black-text;
display: inline-block;
width: 100%;
}
.thumbnail,
.thumbnail-tag {
width: 100%;
margin: 0 0 var(--spacing-08) 0;
display: inline-block;
}
.thumbnail {
background-color: var(--bg-light-secondary);
aspect-ratio: 1 / 1.414; // A4 Paper
object-fit: contain;
border-radius: var(--border-radius-base);
box-shadow: 0 var(--spacing-01) var(--spacing-02) rgb(0 0 0 / 10%);
}
.caption {
// Override Server Pro template styles
background: none;
border: none;
margin-top: var(--spacing-04);
}
.caption-description {
color: var(--neutral-70);
@include line-clamp;
}
.author-name {
margin-top: var(--spacing-04);
color: var(--neutral-70);
font-weight: 600;
}
.gallery-list-item-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--spacing-04);
.badge-container {
display: flex;
gap: var(--spacing-04);
}
* {
flex-basis: content;
cursor: inherit;
}
}
.caption-title {
color: var(--neutral-90);
font-weight: 600;
@include heading-md;
@include line-clamp;
}
}
Gallery redesign - Making the changes on tagged page to match figma design (#21256) * Adding max width for gallery-summary * changin card background color * removing row from within the card * matching the padding of gray card with figma design * removing row and spaced row to avoid extra padding and adding doc-rows-container * adding grid for templates and removing some old styling * adding .recent-templates-container to add the padding and margins * deleting a comment and adding img border radius for the thumbnail * adding margin-bottom on recent-templates-container * adding .gallery-tagged-title-container to match the figma padding and then a fix was needed for the width of the filters * renaming gallery-tagged-title-container to gallery-tagged-container-spacing and re-using it for Related tags container * making recent heading as heading-xl to match figma * adding badge styling and its container styling via .gallery-tagged-template-tags-container * making two classes out of this class .gallery-tagged-container-spacing to add the styling for the h2 heading * adding margin-bottom to match figma style * making class generic and using it at multiple places * removing some extra code * removing grid styling because after rebase the layout was fixed with col classes * adding rows back * adding h2 instead of h3 and making them heading-xl * adapting some changes after merge conflicts * removing duplicate classname after rebase GitOrigin-RevId: d02a0b1e2784fd96d2af2326700829879dacc464
2024-10-23 06:34:37 -04:00
.related-tags-top-spacing {
margin-top: var(--spacing-16);
}
.gallery-tagged-template-tags-container {
display: flex;
flex-wrap: wrap;
gap: var(--spacing-05);
.badge-content {
padding-left: var(--spacing-02);
padding-right: var(--spacing-02);
}
}
.pagination {
margin-top: var(--spacing-13);
}
.popular-tags {
margin-top: var(--spacing-16);
margin-bottom: var(--spacing-16);
a {
width: 100%;
}
h2 {
margin-bottom: var(--spacing-09);
}
.popular-tags-list {
row-gap: var(--spacing-11);
}
}
.gallery-item-title {
display: inline-flex;
gap: var(--spacing-06);
h1 {
margin: unset;
}
.gallery-item-title-badge-container {
display: flex;
justify-content: center;
align-items: center;
gap: var(--spacing-04);
.badge-content {
font-size: var(--font-size-02);
line-height: var(--line-height-02);
}
}
}
.template-details-container {
display: flex;
flex-direction: column;
gap: var(--spacing-04);
}
.gallery-abstract {
word-break: break-word;
hyphens: auto;
a {
hyphens: none;
}
}
.field-title {
color: var(--neutral-70);
font-weight: 600;
@include heading-xs;
}
.field-description {
@include heading-xs;
}
.section-tags {
display: flex;
gap: var(--spacing-04);
}
.cta-links {
margin: var(--spacing-09) 0;
.col-md-12 {
display: inline-flex;
gap: var(--spacing-04);
padding: unset;
}
}
.gallery-large-pdf-preview {
img {
width: 100%;
}
@include shadow-md;
}
.related-tags-header {
margin-top: var(--spacing-16);
}
.related-tags {
margin-top: var(--spacing-09);
padding: 0 var(--spacing-05);
gap: var(--spacing-05);
max-height: 60px;
overflow: hidden;
&.all-tags {
max-height: none;
}
}
.tag-badge {
max-width: 200px;
}
.tag-link {
text-decoration: none;
color: inherit;
@include body-sm;
}
.show-more-tags {
margin-top: var(--spacing-06);
}
@include media-breakpoint-up(lg) {
.template-item-left-section {
padding-right: var(--spacing-10);
}
.template-item-right-section {
padding-left: var(--spacing-10);
}
}
@include media-breakpoint-down(md) {
.template-item-right-section {
margin-top: var(--spacing-11);
}
.section-tags {
margin-top: var(--spacing-04);
}
}
}