mobile-config-firefox/content/addon_manage_buttons_without_popup.css

59 lines
2.5 KiB
CSS
Raw Normal View History

2020-05-22 07:13:58 +02:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/content/addon_manage_buttons_without_popup.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2019-09-04 10:59:50 +02:00
/* Show addon management buttons without opening popup */
@-moz-document url-prefix("chrome://mozapps/content/extensions/aboutaddons.html"), url("about:addons"){
2019-09-04 10:59:50 +02:00
.addon-card-message{ margin-bottom: 0px !important; margin-top: 0px !important; }
.card.addon{ padding-bottom: 0px !important; }
2019-11-05 09:03:02 +01:00
addon-card .addon-card-collapsed{ display: grid !important; grid-template-areas: "ic con" "op op"; grid-template-columns: 48px auto }
addon-card .card-contents{ width: initial !important; white-space: initial !important; }
2019-09-04 10:59:50 +02:00
.more-options-menu{ position: static !important; grid-area: op; margin: 0 !important; }
.card-contents{ grid-area: con }
.card-heading-icon{ grid-area: ic }
2020-03-06 23:42:46 +01:00
plugin-options > panel-list,
2019-09-04 10:59:50 +02:00
addon-options > panel-list{
position: static !important;
display: flex !important;
2019-09-04 10:59:50 +02:00
padding: 0 !important;
margin: 0px calc(0px - var(--card-padding)) !important;
border-width: 1px 0 0 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
background-color: rgba(127,127,127,0.1) !important;
backdrop-filter: none !important; /* Having a backdrop-filter leads to some unexpected layering issues */
2019-09-04 10:59:50 +02:00
}
2019-11-06 12:55:39 +01:00
button[role="menuitem"]{ padding-inline-start: 30px !important; background-position-x: 8px !important; }
2019-09-04 10:59:50 +02:00
.arrow,
2019-11-23 16:19:37 +01:00
.more-options-menu > .more-options-button,
.addon-name-container > .more-options-button,
2019-11-05 09:03:02 +01:00
panel-item[action="expand"]{ display: none !important }
2019-09-04 10:59:50 +02:00
div.list{ display: inherit !important; flex-direction: row !important; }
2019-09-04 10:59:50 +02:00
panel-item[action="toggle-disabled"]{ --icon: url("chrome://browser/skin/quit.svg") }
panel-item[action="preferences"]{ --icon: url("chrome://global/skin/icons/settings.svg") }
2019-09-04 10:59:50 +02:00
/* Uncomment these if you want to hide button label - such as with compact_addons_manager */
/* This is basically a requirement with compact_addons_manager.css because the button text causes the cards to overflow */
2019-09-04 10:59:50 +02:00
/*
2019-11-06 12:55:39 +01:00
button[role="menuitem"] > slot{ display: none !important; }
link+button[role="menuitem"]{
2019-09-04 10:59:50 +02:00
position: static !important;
height: 30px !important;
min-width: 30px;
padding-inline-end: 4px !important;
2019-09-04 10:59:50 +02:00
}
button[role="menuitem"] > label:not([accesskey]),
2019-09-04 10:59:50 +02:00
link+button::after{ display: none !important; }
*/
2019-11-06 12:55:39 +01:00
}