mobile-config-firefox/chrome/toolbarbuttons_icon+label.css

35 lines
1.3 KiB
CSS
Raw Normal View History

2020-05-22 05:13:58 +00:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/toolbarbuttons_icon+label.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2019-06-05 13:26:32 +00:00
/* Shows both icon and label for toolbarbuttons */
toolbar .toolbarbutton-1[label]{
-moz-box-orient: vertical;
-moz-box-align: center !important;
}
2019-06-05 13:26:32 +00:00
toolbar .toolbarbutton-1[label]:not([disabled]):hover{ background-color: var(--toolbarbutton-hover-background) !important; }
toolbar .toolbarbutton-1[label] > .toolbarbutton-icon,
toolbar .toolbarbutton-1[label] > .toolbarbutton-badge-stack{
padding: var(--toolbarbutton-inner-padding) !important;
padding-bottom: 0px !important;
height: calc(var(--toolbarbutton-inner-padding) + 16px) !important;
border: none !important;
background-color: transparent !important;
box-shadow: none !important;
}
toolbar .toolbarbutton-1[label] > .toolbarbutton-text {
display: -moz-box !important;
min-height: 16px !important;
padding-top: 0px !important;
background-color: transparent !important;
overflow: hidden;
width: 12ch;
2019-06-05 13:26:32 +00:00
}
2023-01-22 05:49:57 +00:00
toolbar .toolbarbutton-1[label] > .toolbarbutton-text::before{
margin-inline: auto;
}
2019-06-05 13:26:32 +00:00
:root:not([uidensity="compact"]) toolbar .toolbarbutton-1[label] > .toolbarbutton-text{ padding: 2px !important; }