2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2018-12-06 19:38:55 +00:00
|
|
|
/* Show sidebar only when the cursor is over it */
|
|
|
|
/* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
|
|
|
|
|
|
|
|
#sidebar-box{
|
|
|
|
--uc-sidebar-width: 40px;
|
|
|
|
--uc-sidebar-hover-width: 210px;
|
|
|
|
position: relative;
|
|
|
|
min-width: var(--uc-sidebar-width) !important;
|
|
|
|
width: var(--uc-sidebar-width) !important;
|
2018-12-06 21:17:27 +00:00
|
|
|
max-width: var(--uc-sidebar-width) !important;
|
2019-11-14 15:48:20 +00:00
|
|
|
z-index:1;
|
2018-12-06 19:38:55 +00:00
|
|
|
}
|
|
|
|
|
2020-01-07 10:17:01 +00:00
|
|
|
#sidebar-box[positionend]{ direction: rtl }
|
|
|
|
#sidebar-box[positionend] > *{ direction: ltr }
|
|
|
|
|
|
|
|
#sidebar-box[positionend]:-moz-locale-dir(rtl){ direction: ltr }
|
|
|
|
#sidebar-box[positionend]:-moz-locale-dir(rtl) > *{ direction: rtl }
|
|
|
|
|
2019-06-10 09:17:01 +00:00
|
|
|
#main-window[sizemode="fullscreen"] #sidebar-box{ --uc-sidebar-width: 1px; }
|
|
|
|
|
2018-12-06 19:38:55 +00:00
|
|
|
#sidebar-splitter{ display: none }
|
|
|
|
|
2018-12-09 17:17:05 +00:00
|
|
|
#sidebar-header{ overflow: hidden; color: var(--chrome-color, inherit) !important}
|
2018-12-06 19:38:55 +00:00
|
|
|
|
|
|
|
#sidebar{
|
|
|
|
transition: min-width 115ms linear !important;
|
|
|
|
min-width: var(--uc-sidebar-width) !important;
|
|
|
|
will-change: min-width;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar-box:hover > #sidebar{ min-width: var(--uc-sidebar-hover-width) !important; }
|
|
|
|
|
2018-12-09 17:17:05 +00:00
|
|
|
.sidebar-panel{
|
|
|
|
background-color: transparent !important;
|
|
|
|
color: var(--newtab-text-primary-color) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-panel #search-box{
|
|
|
|
-moz-appearance: none !important;
|
|
|
|
background-color: rgba(249,249,250,0.1) !important;
|
|
|
|
color: inherit !important;
|
|
|
|
}
|
2018-12-06 21:47:43 +00:00
|
|
|
|
2018-12-06 21:17:27 +00:00
|
|
|
/* Add sidebar divider and give it background */
|
2018-12-06 19:38:55 +00:00
|
|
|
|
|
|
|
#sidebar,
|
|
|
|
#sidebar-header{
|
2019-06-10 09:17:01 +00:00
|
|
|
background-color: var(--toolbar-bgcolor) !important;
|
2020-01-07 10:17:01 +00:00
|
|
|
border-inline: 1px solid rgb(80,80,80);
|
|
|
|
border-inline-width: 0px 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar-box:not([positionend]) > :-moz-locale-dir(rtl),
|
|
|
|
#sidebar-box[positionend] > *{
|
|
|
|
border-inline-width: 1px 0px;
|
2018-12-06 19:38:55 +00:00
|
|
|
}
|