Skip to content

A platform for community discussion. Free, open, simple.

FIX: remove mixed declarations from header.scs (#32357)

Kris2dac94d99fe0
diff --git a/app/assets/stylesheets/common/base/header.scss b/app/assets/stylesheets/common/base/header.scss
index 1ce6dc6e5c0..90239b6daf7 100644
--- a/app/assets/stylesheets/common/base/header.scss
+++ b/app/assets/stylesheets/common/base/header.scss
@@ -53,18 +53,18 @@
.title {
--d-logo-height: 2.4em;
- @include viewport.from(sm) {
- --d-logo-height: 2.667em;
- }
+ // min-width acts as a placeholder if the small logo takes a while to load
+ // it prevents topic title from shifting after the small logo loads
+ // it's set to match the #site-logo height so square small logos don't resize when titles dock
+ min-width: var(--d-logo-height);
display: flex;
align-items: center;
height: 100%;
animation: fadein 0.5s;
- // min-width acts as a placeholder if the small logo takes a while to load
- // it prevents topic title from shifting after the small logo loads
- // it's set to match the #site-logo height so square small logos don't resize when titles dock
- min-width: var(--d-logo-height);
+ @include viewport.from(sm) {
+ --d-logo-height: 2.667em;
+ }
@media (prefers-reduced-motion) {
animation-duration: 0s;
@@ -98,11 +98,11 @@
margin: 0;
font-size: var(--font-up-1);
+ @include ellipsis;
+
@include viewport.from(sm) {
font-size: var(--font-up-3);
}
-
- @include ellipsis;
}
.d-icon-house {