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
|
|
|
// some protection for text-only site titles
|
|
|
|
.title {
|
2018-11-22 10:21:49 +08:00
|
|
|
max-width: 75%;
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2018-11-22 10:21:49 +08:00
|
|
|
-webkit-animation: fadein 0.5s;
|
|
|
|
animation: fadein 0.5s;
|
2019-03-19 18:39:38 +08: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-22 09:44:55 +08:00
|
|
|
a {
|
2018-11-22 10:21:49 +08:00
|
|
|
display: block;
|
2018-11-29 02:26:12 +08:00
|
|
|
width: 100%;
|
2018-11-22 10:21:49 +08:00
|
|
|
}
|
|
|
|
}
|
2018-12-19 11:20:02 +08:00
|
|
|
|
2018-11-23 22:04:42 +08:00
|
|
|
#site-logo {
|
2018-11-29 02:26:12 +08:00
|
|
|
max-height: 2.4em;
|
|
|
|
max-width: 100%;
|
2018-11-23 22:04:42 +08:00
|
|
|
}
|
2018-11-22 10:21:49 +08:00
|
|
|
#site-text-logo {
|
|
|
|
margin: 0;
|
|
|
|
font-size: $font-up-1;
|
|
|
|
}
|
|
|
|
.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 {
|
2018-11-22 10:21:49 +08:00
|
|
|
font-size: $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
|
|
|
|
.extra-info-wrapper + .panel {
|
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
|
2018-11-22 10:21:49 +08:00
|
|
|
.panel {
|
|
|
|
animation: fadein 0.5s;
|
|
|
|
}
|
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 {
|
|
|
|
-webkit-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 {
|
|
|
|
line-height: $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
|
|
|
}
|