Skip to content

Commit

Permalink
Merge pull request #49 from web83info:feature-adminbar-item
Browse files Browse the repository at this point in the history
Fix: Adjust CSS for adminbar.
  • Loading branch information
web83info authored Oct 26, 2023
2 parents 1cff29f + f60697c commit 51adca6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
11 changes: 11 additions & 0 deletions assets/show-current-width.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,33 @@
margin-left: 0.25rem;
}
#wpadminbar .ab-top-menu #wp-admin-bar-show-current-width-breakpoint > .ab-item .label {
line-height: inherit;
display: inline-block;
margin-right: 0.25rem;
font-weight: bold;
}
#wpadminbar .ab-top-menu #wp-admin-bar-show-current-width-breakpoint > .ab-item .breakpoint-wrap {
line-height: inherit;
display: inline-block;
margin-left: 0.25rem;
font-weight: bold;
}
#wpadminbar .ab-top-menu #wp-admin-bar-show-current-width-breakpoint > .ab-item .breakpoint-wrap .breakpoint {
line-height: inherit;
display: inline-block;
}
#wpadminbar .ab-top-menu [id^=wp-admin-bar-show-current-width-breakpoint-] .icon {
line-height: inherit;
display: inline-block;
width: 1rem;
}
#wpadminbar .ab-top-menu [id^=wp-admin-bar-show-current-width-breakpoint-] .name {
line-height: inherit;
display: inline-block;
width: 9rem;
}
#wpadminbar .ab-top-menu [id^=wp-admin-bar-show-current-width-breakpoint-] .range {
line-height: inherit;
display: inline-block;
width: 9rem;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/show-current-width.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/show-current-width.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/show-current-width.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion assets/show-current-width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,36 @@
#wp-admin-bar-show-current-width-breakpoint {
> .ab-item {
.label {
line-height: inherit;
display: inline-block;
margin-right: .25rem;
font-weight: bold;
}
.breakpoint-wrap {
line-height: inherit;
display: inline-block;
margin-left: .25rem;
font-weight: bold;
// .breakpoint {}
.breakpoint {
line-height: inherit;
display: inline-block;
}
}
}
}
[id ^= "wp-admin-bar-show-current-width-breakpoint-"] {
.icon {
line-height: inherit;
display: inline-block;
width: 1rem;
}
.name {
line-height: inherit;
display: inline-block;
width: 9rem;
}
.range {
line-height: inherit;
display: inline-block;
width: 9rem;
}
Expand Down

0 comments on commit 51adca6

Please sign in to comment.