Mailspring/static/components/disclosure-triangle.less
Ben Gotow d7d5ed2832 feat(prefs): Allow tabs with an accounts submenu
Summary:
This diff:
- Improves the styling of the tabs in the preferences sidebar.
- Adds an optional param to section cofnig that puts an "account" submenu beneath the tab item.
- Renames preferences "sections" => "tabs", and renames the PreferencesSectionStore to PreferencesUIStore. I think we should include "UI" in more of our stores, and I think "tabs" is a good idea because it's unambigious—there's no way you could confuse it for a "section" of the NylasEnv.config tree or think it deals with actually saving prefs.

Test Plan: Inspect visually

Reviewers: evan, juan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2296
2015-11-30 11:43:49 -08:00

27 lines
484 B
Text

@import "ui-variables";
@import "ui-mixins";
.disclosure-triangle {
flex-shrink: 0;
padding:7px;
padding-top:12px;
width:20px;
visibility: hidden;
div {
transform:rotate(90deg);
transition: transform 90ms linear;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-left: 7px solid @text-color-very-subtle;
}
&.visible {
visibility: visible;
}
&.collapsed {
div {
transform:rotate(0deg);
}
}
}