2013-09-05 15:37:07 -04:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Discourse header
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.d-header {
|
2018-11-21 21:21:49 -05:00
|
|
|
height: 3.66em;
|
2014-05-27 11:58:53 -04:00
|
|
|
|
2015-01-01 03:54:53 -05:00
|
|
|
// some protection for text-only site titles
|
|
|
|
.title {
|
2018-11-21 21:21:49 -05:00
|
|
|
max-width: 75%;
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2018-11-21 21:21:49 -05:00
|
|
|
animation: fadein 0.5s;
|
2019-03-19 06:39:38 -04:00
|
|
|
// This acts as a placeholder if for some reason the small logo takes a while
|
|
|
|
// to load - prevents topic title from shifting after the small logo loads.
|
|
|
|
// It's hardcoded to 36px because that's the width we use inline for the small
|
|
|
|
// logo in the home-logo widget.
|
|
|
|
min-width: 36px;
|
2016-03-21 21:44:55 -04:00
|
|
|
a {
|
2018-11-21 21:21:49 -05:00
|
|
|
display: block;
|
2018-11-28 13:26:12 -05:00
|
|
|
width: 100%;
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
}
|
2018-12-18 22:20:02 -05:00
|
|
|
|
2018-11-23 09:04:42 -05:00
|
|
|
#site-logo {
|
2018-11-28 13:26:12 -05:00
|
|
|
max-height: 2.4em;
|
|
|
|
max-width: 100%;
|
2018-11-23 09:04:42 -05:00
|
|
|
}
|
2018-11-21 21:21:49 -05:00
|
|
|
#site-text-logo {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-up-1);
|
2018-11-21 21:21:49 -05: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 04:18:27 -04:00
|
|
|
.header-title {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-0);
|
2020-05-05 17:31:35 -04:00
|
|
|
// the margin-bottom here is fragile, changing it can cause tag alignment issues
|
|
|
|
margin: 0 0 0.35em 0;
|
2019-08-28 04:18:27 -04:00
|
|
|
.archetype-private_message & {
|
|
|
|
// PMs might have participant avatars in the header
|
|
|
|
margin: 0 0 0.15em 0;
|
|
|
|
}
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
|
|
|
.private-message-glyph-wrapper {
|
|
|
|
float: left;
|
|
|
|
}
|
2016-03-21 21:44:55 -04:00
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
button.sign-up-button {
|
2018-06-08 05:49:31 -04:00
|
|
|
display: none;
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
2019-03-19 06:39:38 -04:00
|
|
|
|
|
|
|
// Hide header avatar + icons while topic title is visible in mobile header
|
|
|
|
.extra-info-wrapper + .panel {
|
2019-03-19 13:43:23 -04:00
|
|
|
.header-buttons,
|
2019-03-26 11:54:37 -04:00
|
|
|
.d-header-icons {
|
2019-03-19 10:31:45 -04:00
|
|
|
display: none;
|
|
|
|
}
|
2019-03-19 06:39:38 -04:00
|
|
|
}
|
|
|
|
// Fade in header avatar + icons if topic title is not visible in mobile header
|
2018-11-21 21:21:49 -05:00
|
|
|
.panel {
|
|
|
|
animation: fadein 0.5s;
|
|
|
|
}
|
2019-03-19 06:39:38 -04: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 10:54:08 -04:00
|
|
|
transform: translateZ(0);
|
2018-11-21 21:21:49 -05:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
}
|
2014-05-26 11:33:47 -04:00
|
|
|
|
2017-09-06 11:29:43 -04:00
|
|
|
.d-header-icons {
|
2018-01-12 17:27:38 -05:00
|
|
|
.d-icon {
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-medium);
|
2014-08-14 06:04:09 -04:00
|
|
|
}
|
2017-09-06 11:29:43 -04:00
|
|
|
.active .icon {
|
2018-06-08 05:49:31 -04:00
|
|
|
&:after {
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
}
|
2015-01-01 03:54:53 -05:00
|
|
|
|
2013-09-05 15:37:07 -04:00
|
|
|
#main-outlet {
|
2020-09-18 11:56:49 -04:00
|
|
|
@media only screen and (orientation: landscape) {
|
|
|
|
padding-right: env(safe-area-inset-right);
|
|
|
|
padding-left: env(safe-area-inset-left);
|
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|