DEV: Remove header floats and clearfixes (#22523)
This commit is contained in:
parent
657c1023fd
commit
7d5db385d6
|
@ -2,7 +2,7 @@ import { createWidget } from "discourse/widgets/widget";
|
||||||
import hbs from "discourse/widgets/hbs-compiler";
|
import hbs from "discourse/widgets/hbs-compiler";
|
||||||
|
|
||||||
createWidget("header-contents", {
|
createWidget("header-contents", {
|
||||||
tagName: "div.contents.clearfix",
|
tagName: "div.contents",
|
||||||
transform() {
|
transform() {
|
||||||
return {
|
return {
|
||||||
showBootstrapMode: this.currentUser?.staff && this.site.desktopView,
|
showBootstrapMode: this.currentUser?.staff && this.site.desktopView,
|
||||||
|
@ -27,6 +27,6 @@ createWidget("header-contents", {
|
||||||
|
|
||||||
{{before-header-panel-outlet attrs=attrs}}
|
{{before-header-panel-outlet attrs=attrs}}
|
||||||
|
|
||||||
<div class="panel clearfix" role="navigation">{{yield}}</div>
|
<div class="panel" role="navigation">{{yield}}</div>
|
||||||
`,
|
`,
|
||||||
});
|
});
|
||||||
|
|
|
@ -464,7 +464,7 @@ createWidget("glimmer-search-menu-wrapper", {
|
||||||
});
|
});
|
||||||
|
|
||||||
export default createWidget("header", {
|
export default createWidget("header", {
|
||||||
tagName: "header.d-header.clearfix",
|
tagName: "header.d-header",
|
||||||
buildKey: () => `header`,
|
buildKey: () => `header`,
|
||||||
services: ["router", "search"],
|
services: ["router", "search"],
|
||||||
|
|
||||||
|
|
|
@ -124,13 +124,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.d-header-icons {
|
.d-header-icons {
|
||||||
text-align: center;
|
display: flex;
|
||||||
margin: 0 0 0 0.5em;
|
margin: 0 0 0 0.5em;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
> li {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.icon {
|
.icon {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
|
Loading…
Reference in New Issue