2020-05-22 05:13:58 +00:00
/ * Source file https : / / github . com / MrOtherGuy / firefox-csshacks / tree / master / content / compact_addons_manager . 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 08:59:50 +00:00
/* Make the installed addons list more compact, title + only */
/* Installed extensions list will be 3-6 columns wide, themes will be 2 columns wide. No effect on recommendations but those can be styled by adding two_column_html_addons.css */
/* Compatible with addon_manage_buttons_without_popup.css */
2021-02-22 03:24:52 +00:00
@ -moz-document url-prefix ( "chrome://mozapps/content/extensions/aboutaddons.html" ) , url ( "about:addons" ) {
2019-09-04 08:59:50 +00:00
2022-04-16 05:42:13 +00:00
: root { overflow-x : hidden } /* Remove this if it causes horizontal scrolling problems */
2019-09-04 08:59:50 +00:00
@ media ( min-width : 420px ) {
# main { max-width : unset !important ; padding-right : 28 px ; }
addon-list > section {
padding : 1em ;
display : grid ;
grid-template-areas : "hd hd" "cd cd" ;
grid-auto-columns : 1fr ;
column-gap : 1em ;
}
2022-04-16 05:42:13 +00:00
2019-09-04 08:59:50 +00:00
addon-card . card-contents { width : unset !important ; white-space : initial !important ; }
2022-04-16 05:42:13 +00:00
addon-list [ type = "extension" ] . addon-name-container {
display : grid ! important ;
grid-template-areas : "name opt" "name toggle" "name badge" ;
grid-row-gap : 6px ;
grid-auto-columns : 1fr 24px ;
}
. addon-icon { align-self : center }
. addon-name-container > . addon-name { grid-area : name }
. addon-name-container > . toggle-button { grid-area : toggle }
. addon-name-container > . more-options-button { grid-area : opt }
. addon-name-container > . addon-badge { grid-area : badge }
addon-list [ type = "extension" ] . more-options-button {
margin-inline : 0 ! important ;
}
. card-heading-image {
max-width : calc ( 100 % + 32px ) ;
object-position : left ;
}
2019-09-04 08:59:50 +00:00
section > h2 { grid-area : hd }
addon-card {
padding-bottom : 0px ! important ;
padding-top : 0px ! important ;
grid-area : auto ;
}
2022-04-16 05:42:13 +00:00
addon-card . addon-description {
max-height : 3em ;
scrollbar-width : thin ;
}
addon-list [ type = "theme" ] addon-card {
margin-right : auto ;
}
2019-09-04 08:59:50 +00:00
}
@ media ( min-width : 640px ) {
addon-list [ type = "extension" ] > section { grid-template-areas : "hd hd hd" "cd cd cd" ; }
}
@ media ( min-width : 960px ) {
addon-list [ type = "extension" ] > section { grid-template-areas : "hd hd hd hd" "cd cd cd cd" ; }
}
@ media ( min-width : 1180px ) {
addon-list [ type = "extension" ] > section { grid-template-areas : "hd hd hd hd hd" "cd cd cd cd cd" ; }
}
@ media ( min-width : 1420px ) {
addon-list [ type = "extension" ] > section { grid-template-areas : "hd hd hd hd hd hd" "cd cd cd cd cd cd" ; }
}
2022-04-16 05:42:13 +00:00
/* Note: addon-card verified and recommended badges are hidden here. They should remain visible in the "manage" addon page though. */
addon-card : not ( [ expanded ] ) . addon-badge-verified ,
addon-card : not ( [ expanded ] ) . addon-badge-recommended ,
2019-09-04 08:59:50 +00:00
addon-card : not ( [ expanded ] ) . addon-description ,
addon-card : not ( [ expanded ] ) . addon-card-message button [ action ] { display : none !important ; }
addon-list [ type = "extension" ] { --card-padding : 8 px }
}
@ -moz-document url-prefix ( "about:addons" ) {
2022-04-16 05:42:13 +00:00
: root { --sidebar-width : 60 px !important ; }
# categories { width : var ( - - sidebar - width ) !important ; }
# categories > . category {
margin-left : 10px ! important ;
-moz-box-pack : center ;
}
. sidebar-footer-list { margin-left : 18 px !important ; }
2019-09-04 08:59:50 +00:00
. sidebar-footer-label ,
2022-04-16 05:42:13 +00:00
. category > . category-name { display : none }
2019-09-04 08:59:50 +00:00
}