-
Notifications
You must be signed in to change notification settings - Fork 0
Automated Test: header-layout-optimization-post #329
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,3 +92,40 @@ | |||||||||||||||||||||||||||
| -moz-user-select: none; | ||||||||||||||||||||||||||||
| -ms-user-select: none; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| // --------------------------------------------------- | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| //Flexbox | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| @mixin flexbox() { | ||||||||||||||||||||||||||||
| display: -webkit-box; | ||||||||||||||||||||||||||||
| display: -moz-box; | ||||||||||||||||||||||||||||
| display: -ms-flexbox; | ||||||||||||||||||||||||||||
| display: -webkit-flex; | ||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| @mixin inline-flex() { | ||||||||||||||||||||||||||||
| display: -webkit-inline-box; | ||||||||||||||||||||||||||||
| display: -webkit-inline-flex; | ||||||||||||||||||||||||||||
| display: -moz-inline-box; | ||||||||||||||||||||||||||||
| display: -ms-inline-flexbox; | ||||||||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| @mixin align-items($alignment) { | ||||||||||||||||||||||||||||
| -webkit-box-align: $alignment; | ||||||||||||||||||||||||||||
| -webkit-align-items: $alignment; | ||||||||||||||||||||||||||||
| -ms-flex-align: $alignment; | ||||||||||||||||||||||||||||
| -ms-align-items: $alignment; | ||||||||||||||||||||||||||||
| align-items:$alignment; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
Comment on lines
+117
to
+123
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The IE10 flexbox property is Also, note that Proposed fix `@mixin` align-items($alignment) {
-webkit-box-align: $alignment;
-webkit-align-items: $alignment;
- -ms-flex-align: $alignment;
- -ms-align-items: $alignment;
+ -ms-flex-align: $alignment;
align-items:$alignment;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| @mixin order($val) { | ||||||||||||||||||||||||||||
| -webkit-box-ordinal-group: $val; | ||||||||||||||||||||||||||||
| -moz-box-ordinal-group: $val; | ||||||||||||||||||||||||||||
| -ms-flex-order: $val; | ||||||||||||||||||||||||||||
| -webkit-order: $val; | ||||||||||||||||||||||||||||
| order: $val; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flexbox on
.small-actionlooks good, butfloaton child elements is now a no-op.With
.small-actionas a flex container,float: lefton.topic-avatar(line 270) andfloat: rightonbutton(line 309) are both ignored per the CSS spec. The avatar still appears on the left naturally (flex items flow left-to-right), but the button will no longer be right-aligned sincefloat: righthas no effect inside a flex container.To restore the right-alignment, add
margin-left: autoto thebuttonrule (or to.small-action-descif you want the button pushed to the far right).Proposed fix
button { background: transparent; border: 0; - float: right; + margin-left: auto; }🤖 Prompt for AI Agents