preferences.css: various tweaks (MR 8)

* center icons in sidebar
* make it adaptive
This commit is contained in:
HenriDellal 2021-05-19 23:07:59 +02:00 committed by Oliver Smith
parent 0765d1a25f
commit e940cac4e1
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1,17 +1,32 @@
@-moz-document url("about:preferences"), url-prefix("about:preferences") { @-moz-document url("about:preferences"), url-prefix("about:preferences") {
@media (max-width: 700px) {
/* avoid that sidebar is too wide */ /* avoid that sidebar is too wide */
.navigation { :root {
max-width: 50px; --in-content-sidebar-width: 50px !important;
} }
/* reduce space around category icons */
#categories > .category { #categories > .category {
margin-inline-start: 2px !important; margin-inline-start: auto !important;
padding-inline: 2px !important; padding-inline: auto !important;
}
.category-name {
display: none !important;
} }
/* reduce space around footer icons (addons, help) */
.sidebar-footer-list { .sidebar-footer-list {
margin-inline: 2px !important; margin-inline: auto !important;
padding-inline: auto !important;
}
.sidebar-footer-label {
display:none !important;
}
}
@media (max-height: 400px) {
#categories {
margin-top: 8px !important;
}
} }
} }