Skip to content

Commit 8289145

Browse files
bors[bot]mdubus
andauthored
Merge #383
383: Replace float positioning with flex boxes r=bidoubiwa a=mdubus Replacement of the `floats` inside the CSS, with something less eye-breaking 🙈 Please make sure to test both in default and `simple` layout that it doesn't break anything ❤️ Co-authored-by: Morgane Dubus <[email protected]>
2 parents 1038b9c + bac05ee commit 8289145

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/styles/_dropdown.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@
260260

261261
&--content {
262262
display: block;
263-
float: right;
264263
width: 70%;
265264
position: relative;
266265
padding: $padding/3 0 $padding/3 $padding/1.5;
@@ -293,12 +292,12 @@
293292

294293
&--wrapper {
295294
width: 100%;
296-
float: left;
295+
display: flex;
296+
align-items: flex-start;
297297
padding: $padding/2 0 0 0;
298298
}
299299

300300
&--subcategory-column {
301-
float: left;
302301
width: 30%;
303302
padding-left: 0;
304303
text-align: right;
@@ -382,7 +381,6 @@
382381
display: inline-block;
383382
width: auto;
384383
text-align: left;
385-
float: left;
386384
padding: 0;
387385
font-size: 0.9em;
388386
font-weight: bold;
@@ -404,7 +402,6 @@
404402
display: inline-block;
405403
width: auto;
406404
text-align: left;
407-
float: left;
408405
padding: 0;
409406

410407
&:before {
@@ -468,7 +465,6 @@
468465

469466
&--wrapper {
470467
width: 100%;
471-
float: left;
472468
margin: 0;
473469
padding: 0;
474470
}
@@ -525,8 +521,8 @@
525521
height: 20px;
526522
z-index: 2000;
527523
margin-top: $padding/1.5;
528-
float: right;
529524
color: $text-color;
525+
margin-left: auto;
530526
}
531527

532528
.docs-searchbar-footer-logo {

0 commit comments

Comments
 (0)