open-consul/ui-v2/app/styles/base/components/tabs/skin.scss
John Cowen d1cbc3f032 ui: Tab Improvements (animations/branding) (#7772)
* ui: Adds a tab selection animation to our app tabs

1. Replace all mentions of `magenta` with a themeable CSS property.
2. Add an easy way to inline style DOM nodes
3. Use CSS properties to add tab animation

* Fix up rendering test

* Avoid DOM noodling as much as possible
2020-05-12 17:14:43 +00:00

37 lines
718 B
SCSS

%tab-nav ul {
list-style-type: none;
}
%tab-nav label {
cursor: pointer;
}
%tab-button {
white-space: nowrap;
text-decoration: none;
}
%tab-nav {
/* %frame-transparent-something */
border-bottom: $decor-border-100;
}
%tab-nav {
/* %frame-transparent-something */
border-color: $gray-200;
}
%with-animated-tab-selection ul::after,
%tab-button {
border-bottom: $decor-border-300;
}
%tab-button {
@extend %with-transition-500;
transition-property: background-color;
border-color: $transparent;
color: $gray-500;
}
%tab-button-intent,
%tab-button-active {
/* %frame-gray-something */
background-color: $gray-100;
}
%tab-nav.animatable .selected a {
border-color: $transparent !important;
}