zotero/scss/components/_mainWindow.scss

175 lines
4.6 KiB
SCSS
Raw Normal View History

2021-02-11 10:57:35 +00:00
// Styling for displaying tabs in the title bar
:root:not([legacytoolbar="true"]) {
& {
2023-11-15 09:07:54 +00:00
@media (-moz-platform: windows) {
--tab-min-height: 36px;
}
@media not (-moz-platform: windows) {
--tab-min-height: 30px;
}
2021-02-11 10:57:35 +00:00
--tabs-border-color: rgba(0,0,0,.3);
--tabline-color: #0a84ff;
--toolbar-non-lwt-bgcolor: #f9f9fa;
--toolbar-non-lwt-textcolor: #0c0c0d;
--toolbar-non-lwt-bgimage: none;
--toolbar-bgcolor: var(--toolbar-non-lwt-bgcolor);
--toolbar-bgimage: var(--toolbar-non-lwt-bgimage);
--chrome-content-separator-color: hsl(0, 0%, 60%);
--toolbarbutton-border-radius: 3px;
--toolbarbutton-icon-fill-opacity: .85;
--toolbarbutton-hover-background: hsla(0, 0%, 100%, .1)
linear-gradient(hsla(0, 0%, 100%, .3),
hsla(0, 0%, 100%, .1)) no-repeat;
--toolbarbutton-hover-bordercolor: hsla(0, 0%, 0%, .2);
--toolbarbutton-header-bordercolor: hsla(0, 0%, 0%, .2);
--toolbarbutton-hover-boxshadow: 0 1px 0 hsla(0, 0%, 100%, .5),
0 1px 0 hsla(0, 0%, 100%, .5) inset;
--toolbarbutton-active-background: hsla(0, 0%, 0%, .02)
linear-gradient(hsla(0, 0%, 0%, .12),
transparent) border-box;
--toolbarbutton-active-bordercolor: hsla(0, 0%, 0%, .3);
--toolbarbutton-active-boxshadow: 0 1px 0 hsla(0, 0%, 100%, .5),
0 1px 0 hsla(0, 0%, 0%, .05) inset,
0 1px 1px hsla(0, 0%, 0%, .2) inset;
--toolbarbutton-inactive-bordercolor: rgba(0, 0, 0, 0.1);
--toolbarbutton-inactive-boxshadow: 0 1px 0 hsla(0, 0%, 0%, .05) inset;
--toolbarbutton-checkedhover-backgroundcolor: hsla(0, 0%, 0%, .09);
--toolbarbutton-icon-fill-attention: var(--lwt-toolbarbutton-icon-fill-attention, #0a84ff);
--lwt-header-image: none;
--row-grouped-header-bg-color: #d5d5d5;
--row-grouped-header-bg-color-selected: #3874d1;
--panel-separator-color: hsla(210, 4%, 10%, .14);
--arrowpanel-dimmed: hsla(0, 0%, 80%, .3);
--arrowpanel-dimmed-further: hsla(0, 0%, 80%, .45);
--splitter-color: #bdbdbd;
--urlbar-popup-url-color: hsl(210, 77%, 47%);
--urlbar-popup-action-color: hsl(178, 100%, 28%);
--autocomplete-popup-background: -moz-field;
--autocomplete-popup-color: -moz-fieldtext;
--autocomplete-popup-border-color: ThreeDShadow;
--autocomplete-popup-highlight-background: Highlight;
--autocomplete-popup-highlight-color: HighlightText;
/* Note: Setting this to 0 (without px) breaks CSS calculations for OSX. */
--space-above-tabbar: 0px;
}
&:-moz-window-inactive {
--toolbar-bgcolor: -moz-mac-chrome-inactive;
}
#titlebar {
2023-11-15 09:07:54 +00:00
margin-bottom: calc(0px - var(--tab-min-height));
2021-02-11 10:57:35 +00:00
-moz-box-pack: center;
}
.titlebar-buttonbox-container {
-moz-box-ordinal-group: 1000;
}
/* ::::: Tabs in Titlebar :::::: */
&:not([chromemargin]) > #titlebar {
display: none;
}
/**
* For tabs in titlebar on OS X, we stretch the titlebar down so that the
* tabstrip can overlap it.
*/
&[tabsintitlebar] > #titlebar {
min-height: calc(var(--tab-min-height) + var(--space-above-tabbar));
}
&[tabsintitlebar="true"]:not(:-moz-lwtheme) > #titlebar {
-moz-appearance: -moz-window-titlebar;
}
&:not([tabsintitlebar]) .titlebar-placeholder {
visibility: collapse;
}
2023-11-15 09:07:54 +00:00
@media (-moz-platform: macos) {
/* NB: these would be margin-inline-start/end if it wasn't for the fact that OS X
* doesn't reverse the order of the items in the titlebar in RTL mode. */
.titlebar-placeholder[type="caption-buttons"],
.titlebar-buttonbox {
margin-right: 12px;
margin-left: 12px;
}
.titlebar-buttonbox {
-moz-appearance: -moz-window-button-box;
}
/* Fullscreen and caption buttons don't move with RTL on OS X so override the automatic ordering. */
.titlebar-buttonbox-container:-moz-locale-dir(rtl) {
-moz-box-ordinal-group: 1000;
}
.titlebar-buttonbox-container:-moz-locale-dir(ltr) {
-moz-box-ordinal-group: 0;
}
.titlebar-icon {
display: none;
}
2021-02-11 10:57:35 +00:00
}
#tab-bar-container {
2023-11-15 09:07:54 +00:00
background: var(--material-tabbar);
2021-02-11 10:57:35 +00:00
-moz-window-dragging: drag;
}
#tab-bar-container .tab {
background: transparent;
2021-02-11 10:57:35 +00:00
}
#tab-bar-container .tab.selected {
background: var(--material-tabbar)
2021-02-11 10:57:35 +00:00
}
toolbar and keyboard navigation updates 1. Toolbarbuttons changes: 1. “New Library” moved from toolbar to File menu 2. “New note” on click makes a standalone note 3. “New attachment” on click adds stored copy of a file 4. Menuitems from old note or attachment menus moved to the File menu 5. “Advanced search” removed. Sync and Locate buttons moved to the top-right corner (Locate - temporarily) 6. Added “Opened tabs” toolbarbutton 7. Updated tooltips 2. Added a toolbarbutton that reveals collection search field on click. Search field is hidden on blur if empty. Keyboard accessibility via tab/shift-tab. 3. Tab based navigation restructuring. For each component, create a mapping of target ids with desired focus destination for each relevant keyboard event and use that to determine where to move focus next. Fixed bugs with focus wraparound not working when a note or attachment is opened in contextMenu. 4. Make quick-search dropmarker a sibling of the textfield. QuickSearchTextbox does not extend search-textfield anymore. It serves as a container to house dropmarker and textfield as siblings. This is needed to remove focus ring from quick search textbook when focus moves onto the dropmarker. 5. Separate toolbars for item and collection trees. Removed unused code manually setting the width of toolbar section 6. Focusable tabs + keyboard navigation: 1. Shift-tab from opened tabs menu moves focus to the currently opened tab 2. When a tab has focus, use left/right arrows to select tabs, or CMD/Ctrl + arrows to move focus between tabs 3. Enter or Space on a focused tab will select it if needed and move focus to the contentPane of the reader of this tab 4. Shift-tab from tabs wraps focus around to itemTree or itemPane 7. “New collection” creates collection contextually within currently selected library or collection. 8. Items pane minimum width increase to avoid quicksearch from being squashed 9. Do not move focus to title field of itemBox after itemTypeMenu is closed with ESC. 10. Display all itemTypes without "Show more" submenu in "New Item" meunu. Removed "Store Copy of File" and "Link to File" from "New Item" menu.
2023-10-31 08:04:13 +00:00
.zotero-toolbar {
2021-02-11 10:57:35 +00:00
-moz-appearance: none;
}
#zotero-layout-switcher .zotero-toolbar {
background: var(--material-tabbar);
border-bottom: var(--material-panedivider);
2023-11-15 09:07:54 +00:00
-moz-window-dragging: no-drag;
}
#zotero-tabs-toolbar {
background: var(--material-tabbar);
}
}
:root:not([sizemode=maximized], [sizemode=fullscreen]) .titlebar-restore,
:root:is([sizemode=maximized], [sizemode=fullscreen]) .titlebar-max {
display: none;
}
#navigator-toolbox {
menu {
font-size: var(--zotero-font-size);
}
}