discourse/app/assets/stylesheets/common/components/d-page-header.scss
Martin Brennan 22a00fd872
UX: Add separator for "Learn more..." on admin pages (#31898)
We have this rule in

https://meta.discourse.org/t/formatting-text-in-discourse-documentation-and-uis/324637:

> Do not use a period for the following:
>
> Tooltips, image captions, or other UI elements with only one sentence

However, this looks strange on some admin pages because we also show
a "Learn more..." link after the header description, which kind of
runs on into the link.

This commit adds a separator after the link to address this issue.
2025-03-19 13:34:17 +10:00

98 lines
1.5 KiB
SCSS
Vendored

$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);
}
}
.d-page-header__learn-more {
&::before {
content: "";
}
}