mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #36037 from overleaf/dp-library-trash-navigation-2
Add trash navigation with Projects/References tabs- #36001 GitOrigin-RevId: 675ad078f117c5acd8744024c751209c615a7c2e
This commit is contained in:
@@ -147,7 +147,7 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
&.library-page {
|
||||
&.ds-nav-hides-top-navbar {
|
||||
// The sidebar shows the logo and account/help menus from md upwards, so
|
||||
// the top navbar is only needed on mobile.
|
||||
.navbar-default {
|
||||
@@ -164,6 +164,19 @@ body {
|
||||
border-top: none;
|
||||
}
|
||||
}
|
||||
|
||||
.project-list-header-row {
|
||||
@include media-breakpoint-up(md) {
|
||||
margin-top: var(--spacing-08);
|
||||
}
|
||||
|
||||
// On mobile the trash page has no heading or plan widget in this row
|
||||
// (both are desktop-only), so collapse it to avoid an empty gap above
|
||||
// the navigation dropdown.
|
||||
@include media-breakpoint-down(md) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav > li > .dropdown-toggle::after {
|
||||
@@ -559,3 +572,36 @@ body {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.trash-page-tabs {
|
||||
display: flex;
|
||||
gap: var(--spacing-06);
|
||||
margin-bottom: var(--spacing-06);
|
||||
border-bottom: 1px solid var(--border-divider-themed);
|
||||
|
||||
// On mobile the Projects/References switch lives in the navigation dropdown
|
||||
// submenu instead of these tabs.
|
||||
@include media-breakpoint-down(md) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.trash-page-tab {
|
||||
padding: var(--spacing-03) var(--spacing-02);
|
||||
margin-bottom: -1px;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: var(--content-secondary-themed);
|
||||
font-size: var(--font-size-03);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--content-primary-themed);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.active {
|
||||
border-bottom-color: var(--green-50);
|
||||
color: var(--content-primary-themed);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
min-height: 36px;
|
||||
|
||||
.project-list-title {
|
||||
@include heading-sm;
|
||||
@include heading-md;
|
||||
|
||||
color: var(--content-secondary-themed);
|
||||
font-weight: bold;
|
||||
|
||||
Reference in New Issue
Block a user