-
Notifications
You must be signed in to change notification settings - Fork 0
Optimize header layout performance with flexbox mixins #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: header-layout-optimization-pre
Are you sure you want to change the base?
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; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+109
to
+112
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| display: -webkit-inline-box; | |
| display: -webkit-inline-flex; | |
| display: -moz-inline-box; | |
| display: -ms-inline-flexbox; |
Copilot
AI
Jan 30, 2026
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.
Trailing whitespace detected at the end of line 120. This should be removed for code cleanliness.
| -ms-flex-align: $alignment; | |
| -ms-flex-align: $alignment; |
Copilot
AI
Jan 30, 2026
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.
The vendor-prefixed properties for align-items are outdated. The '-ms-align-items' property doesn't exist in the CSS specification. Modern browsers support 'align-items' natively without prefixes.
| -ms-align-items: $alignment; |
Copilot
AI
Jan 30, 2026
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.
Missing space after colon. Should be 'align-items: $alignment;' for consistency with other CSS property formatting in the file.
| align-items:$alignment; | |
| align-items: $alignment; |
Copilot
AI
Jan 30, 2026
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.
The vendor-prefixed flexbox properties (-webkit-box, -moz-box, -ms-flexbox) are outdated and unnecessary for modern browsers. These prefixes were needed for browsers from 2012-2014. Consider removing the legacy prefixes and keeping only 'display: flex' unless there's a specific requirement to support very old browsers.
| 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; | |
| } | |
| @mixin order($val) { | |
| -webkit-box-ordinal-group: $val; | |
| -moz-box-ordinal-group: $val; | |
| -ms-flex-order: $val; | |
| -webkit-order: $val; | |
| display: flex; | |
| } | |
| @mixin inline-flex() { | |
| display: inline-flex; | |
| } | |
| @mixin align-items($alignment) { | |
| align-items: $alignment; | |
| } | |
| @mixin order($val) { |
Copilot
AI
Jan 30, 2026
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.
The vendor prefixes for the order property are outdated and unnecessary. Modern browsers have supported the unprefixed 'order' property since 2014. These legacy prefixes can be safely removed.
| -webkit-box-ordinal-group: $val; | |
| -moz-box-ordinal-group: $val; | |
| -ms-flex-order: $val; | |
| -webkit-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.
Missing space after '//' in comment. Should be '// Flexbox' for consistency with the comment style on line 96.