2013-09-06 03:37:07 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Discourse header
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.d-header {
|
2018-11-22 10:21:49 +08:00
|
|
|
height: 3.66em;
|
2014-05-27 23:58:53 +08:00
|
|
|
|
2015-01-01 16:54:53 +08:00
|
|
|
.title {
|
2023-03-09 01:50:36 +08:00
|
|
|
--d-logo-height: 2.4em;
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
2018-12-19 11:20:02 +08:00
|
|
|
|
2018-11-22 10:21:49 +08:00
|
|
|
#site-text-logo {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-1);
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
.extra-info-wrapper {
|
|
|
|
.extra-info {
|
|
|
|
// header title should not be centered if there's no tags / categories
|
|
|
|
&:not(.two-rows) {
|
|
|
|
min-height: 2.25em;
|
|
|
|
}
|
2019-08-28 16:18:27 +08:00
|
|
|
.header-title {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-0);
|
2020-05-06 05:31:35 +08:00
|
|
|
// the margin-bottom here is fragile, changing it can cause tag alignment issues
|
|
|
|
margin: 0 0 0.35em 0;
|
2019-08-28 16:18:27 +08:00
|
|
|
.archetype-private_message & {
|
|
|
|
// PMs might have participant avatars in the header
|
|
|
|
margin: 0 0 0.15em 0;
|
|
|
|
}
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
.private-message-glyph-wrapper {
|
|
|
|
float: left;
|
|
|
|
}
|
2016-03-22 09:44:55 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
button.sign-up-button {
|
2018-06-08 17:49:31 +08:00
|
|
|
display: none;
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
2019-03-19 18:39:38 +08:00
|
|
|
|
|
|
|
// Hide header avatar + icons while topic title is visible in mobile header
|
2023-06-29 16:36:27 +08:00
|
|
|
.extra-info-wrapper ~ .panel {
|
|
|
|
.before-header-panel-outlet,
|
2019-03-20 01:43:23 +08:00
|
|
|
.header-buttons,
|
2019-03-26 23:54:37 +08:00
|
|
|
.d-header-icons {
|
2019-03-19 22:31:45 +08:00
|
|
|
display: none;
|
|
|
|
}
|
2019-03-19 18:39:38 +08:00
|
|
|
}
|
|
|
|
// Fade in header avatar + icons if topic title is not visible in mobile header
|
2024-02-24 02:08:15 +08:00
|
|
|
.panel .icons {
|
2018-11-22 10:21:49 +08:00
|
|
|
animation: fadein 0.5s;
|
2023-09-15 05:31:43 +08:00
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
animation-duration: 0s;
|
|
|
|
}
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
2019-03-19 18:39:38 +08:00
|
|
|
// A rendering bug in safari causes header SVGs to jitter after animations.
|
|
|
|
// translateZ() forces gpu rendering which fixes the issue.
|
|
|
|
.d-header-icons {
|
2022-09-15 22:54:08 +08:00
|
|
|
transform: translateZ(0);
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
|
2017-09-06 23:29:43 +08:00
|
|
|
.d-header-icons {
|
2018-01-13 06:27:38 +08:00
|
|
|
.d-icon {
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-medium);
|
2014-08-14 18:04:09 +08:00
|
|
|
}
|
2017-09-06 23:29:43 +08:00
|
|
|
.active .icon {
|
2018-06-08 17:49:31 +08:00
|
|
|
&:after {
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2015-01-01 16:54:53 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
#main-outlet {
|
2020-09-18 23:56:49 +08:00
|
|
|
@media only screen and (orientation: landscape) {
|
|
|
|
padding-right: env(safe-area-inset-right);
|
|
|
|
padding-left: env(safe-area-inset-left);
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|