Feed settings: Make disclosure triangle focusable, extract SCSS (#4513)
- <hbox> -> <button>, <toolbarbutton> -> <dropmarker> - Extract styles to SCSS and use focus-ring mixin Fixes #4512
This commit is contained in:
parent
14ab0cd529
commit
531f55120c
4 changed files with 33 additions and 25 deletions
|
@ -36,12 +36,12 @@
|
|||
<html:input id="feed-title" style="max-width: 30em;" />
|
||||
</html:div>
|
||||
<vbox id="advanced-options" class="zotero-advanced-options">
|
||||
<hbox onclick="Zotero_Feed_Settings.toggleAdvancedOptions()" class="zotero-advanced-options-label">
|
||||
<toolbarbutton class="toolbarbutton-menu-dropmarker"/>
|
||||
<button oncommand="Zotero_Feed_Settings.toggleAdvancedOptions()" class="zotero-advanced-options-label">
|
||||
<dropmarker type="menu" class="toolbarbutton-menu-dropmarker"/>
|
||||
<hbox align="center">
|
||||
<label value="&zotero.general.advancedOptions.label;"/>
|
||||
</hbox>
|
||||
</hbox>
|
||||
</button>
|
||||
<vbox id="advanced-options-togglable">
|
||||
<hbox align="center">
|
||||
<label value="&zotero.feedSettings.refresh.label1;" control="feed-ttl"/>
|
||||
|
|
|
@ -97,28 +97,6 @@ zoterosearch .menulist-icon {
|
|||
max-width: 29.5em;
|
||||
}
|
||||
|
||||
.zotero-advanced-options > .zotero-advanced-options-label > .toolbarbutton-menu-dropmarker {
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
|
||||
.zotero-advanced-options[state=open] > .zotero-advanced-options-label > .toolbarbutton-menu-dropmarker {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#zotero-feed-settings grid hbox:first-child {
|
||||
-moz-box-pack: end;
|
||||
}
|
||||
|
||||
#zotero-feed-settings .html-input {
|
||||
width: 50px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#zotero-feed-settings #advanced-options-togglable hbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#zotero-edit-bibliography-dialog #item-list .listcell-icon {
|
||||
max-width: 16px;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
@import "components/editable";
|
||||
@import "components/editBibliographyDialog";
|
||||
@import "components/exportOptions";
|
||||
@import "components/feedSettings";
|
||||
@import "components/icons";
|
||||
@import "components/import-wizard";
|
||||
@import "components/item-tree";
|
||||
|
|
29
scss/components/_feedSettings.scss
Normal file
29
scss/components/_feedSettings.scss
Normal file
|
@ -0,0 +1,29 @@
|
|||
#zotero-feed-settings {
|
||||
.zotero-advanced-options > .zotero-advanced-options-label {
|
||||
@include focus-ring;
|
||||
|
||||
appearance: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.zotero-advanced-options > .zotero-advanced-options-label > .toolbarbutton-menu-dropmarker {
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
|
||||
.zotero-advanced-options[state=open] > .zotero-advanced-options-label > .toolbarbutton-menu-dropmarker {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.html-input {
|
||||
width: 50px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#advanced-options-togglable hbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue