Skip to content

Commit

Permalink
cryptic icon -> "Style injection order" text
Browse files Browse the repository at this point in the history
+ add utility classes for flex/wrap/gap
  • Loading branch information
tophf committed Aug 3, 2024
1 parent 8280640 commit 2ec0b03
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
9 changes: 9 additions & 0 deletions css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ summary {
.abs {
position: absolute;
}
.flex {
display: flex;
}
.wrap {
flex-wrap: wrap;
}
.gap1 > :nth-last-child(n + 2) {
margin-right: .25rem;
}
.no-stretch {
/* reuse the current width of the parent flexbox */
width: 0;
Expand Down
11 changes: 6 additions & 5 deletions manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,11 @@ <h2 i18n="manageFilters">:
</a>
</label>
</div>
<button id="manage-options-button" i18n="openOptions"></button>
<button id="injection-order-button" i18n="title:styleInjectionOrder" class="icon">
<i class=i-reorder></i>
</button>

<div class="gap1">
<button id="injection-order-button" i18n="styleInjectionOrder"></button>
<button id="manage-options-button" i18n="openOptions"></button>
</div>
</details>
</div>

Expand All @@ -275,7 +276,7 @@ <h2 id="backup-title" i18n="backupButtons"><!-- removing space
</a>
</h2>
</summary>
<div id="backup-buttons">
<div id="backup-buttons" class="flex wrap gap1">
<div class="split-btn">
<button id="file-all-styles" i18n="exportLabel"></button
><button class="split-btn-pedal" i18n="menu-compat:exportCompatible"></button>
Expand Down
9 changes: 0 additions & 9 deletions manage/manage.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,6 @@ button.icon {
display: none;
}

/* collapsibles */
#backup-buttons {
display: flex;
flex-wrap: wrap;
> * {
margin: 0 .2rem .5rem 0;
}
}

#header {
& details {
&:not([open]) {
Expand Down

0 comments on commit 2ec0b03

Please sign in to comment.