DEV: Remove header floats and clearfixes (#22523)

This commit is contained in:
Kris 2023-07-10 17:57:20 -04:00 committed by GitHub
parent 657c1023fd
commit 7d5db385d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,7 @@ import { createWidget } from "discourse/widgets/widget";
import hbs from "discourse/widgets/hbs-compiler";
createWidget("header-contents", {
tagName: "div.contents.clearfix",
tagName: "div.contents",
transform() {
return {
showBootstrapMode: this.currentUser?.staff && this.site.desktopView,
@ -27,6 +27,6 @@ createWidget("header-contents", {
{{before-header-panel-outlet attrs=attrs}}
<div class="panel clearfix" role="navigation">{{yield}}</div>
<div class="panel" role="navigation">{{yield}}</div>
`,
});

View File

@ -464,7 +464,7 @@ createWidget("glimmer-search-menu-wrapper", {
});
export default createWidget("header", {
tagName: "header.d-header.clearfix",
tagName: "header.d-header",
buildKey: () => `header`,
services: ["router", "search"],

View File

@ -124,13 +124,10 @@
}
.d-header-icons {
text-align: center;
display: flex;
margin: 0 0 0 0.5em;
list-style: none;
> li {
float: left;
}
.icon {
box-sizing: content-box;
appearance: none;