gecko-dev/browser/components/sidebar/sidebar-main.css
Jonathan Sudiaman c758f0801b Bug 1892429 - Create an expanded sidebar state r=sidebar-reviewers,fluent-reviewers,kcochrane,sclements,extension-reviewers,robwu
Adds an `expanded` property, which, if enabled, shows labels along with their respective icons within the sidebar menu. Currently, this property is not controllable from the UI. As I understand it, the follow-up bugs are responsible for addressing that.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=f269729808eed19051bea5fe4eb41550ff94ce03

Differential Revision: https://phabricator.services.mozilla.com/D210187
2024-05-28 15:55:49 +00:00

35 lines
921 B
CSS

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
.wrapper {
display: grid;
grid-template-rows: auto 1fr;
box-sizing: border-box;
height: 100%;
padding: var(--space-medium);
border-inline-end: 1px solid var(--chrome-content-separator-color);
background-color: var(--sidebar-background-color);
color: var(--sidebar-text-color);
:host([positionend]) & {
border-inline-start: 1px solid var(--chrome-content-separator-color);
border-inline-end: none;
}
}
.actions-list {
display: flex;
flex-direction: column;
justify-content: end;
gap: var(--space-xsmall);
}
.expanded-button {
width: 100%;
&::part(button) {
font-size: var(--font-size-large);
font-weight: var(--font-weight);
justify-content: flex-start;
}
}