mirror of
https://github.com/discourse/discourse.git
synced 2025-01-17 07:42:56 +08:00
a879bcdc35
This converts the `<AdminPageHeader />` component and the `<AdminPageSubheader />` components into new components that can be used outside of admin, and updates the CSS classes. Also introduces a `<DPageActionButton />` component and child components for the header action buttons. I have to keep the old admin-only components around for now until plugins are updated, then we can remove it, and remove the re-exports that are done within admin-page-action-button.gjs
93 lines
1.5 KiB
SCSS
93 lines
1.5 KiB
SCSS
$mobile-breakpoint: 700px;
|
|
|
|
.d-page-header,
|
|
.d-page-subheader {
|
|
&__title-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
margin-bottom: var(--space-2);
|
|
|
|
h1,
|
|
h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: var(--font-up-2);
|
|
}
|
|
|
|
.d-page-header__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
flex-direction: column;
|
|
}
|
|
|
|
button {
|
|
margin-left: var(--space-2);
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
width: 100%;
|
|
margin-bottom: var(--space-2);
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.d-nav-submenu {
|
|
background: transparent;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
.horizontal-overflow-nav {
|
|
background: transparent;
|
|
|
|
&:before {
|
|
display: none;
|
|
}
|
|
|
|
&:after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.nav-pills {
|
|
width: auto;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.d-page-header {
|
|
&__title-row {
|
|
@media (max-width: $mobile-breakpoint) {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
|
|
.d-page-header__actions {
|
|
button {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.d-page-subheader {
|
|
&__title-row {
|
|
@media (max-width: $mobile-breakpoint) {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.d-page-action-list-item {
|
|
.btn-primary {
|
|
color: var(--primary);
|
|
}
|
|
}
|