wix-style-react
Version:
wix-style-react
138 lines (113 loc) • 2.4 kB
CSS
:import {
-st-from: '../Foundation/stylable/colors.st.css';
-st-named: B10, D80, D80-20, D80-30, D80-70;
}
:import {
-st-from: "../IconButton/IconButton.st.css";
-st-default: IconButton;
}
.root {
display: flex;
justify-content: flex-start;
flex-direction: row;
min-height: 30px;
}
.header {
/* Allow flex-child to shrink when there is a truncated descendant
See: https://css-tricks.com/flexbox-truncated-text/#article-header-id-3 */
min-width: 0;
flex: 1;
}
.breadcrumbsContainer {
-st-states: withoutBreadcrumbs;
margin-left: -10px;
}
.breadcrumbsContainer:withoutBreadcrumbs {
position: absolute;
}
.titleContainer {
-st-states: minimized;
display: flex;
}
.titleContainer:minimized {
position: absolute;
}
.titleBackButton {
-st-extends: IconButton;
-st-states: darkTheme, newColorsBranding;
position: relative;
top: 6px;
left: -12px;
z-index: 1;
width: 36px;
height: 36px;
color: value(B10);
border: none;
background-color: transparent;
}
.titleBackButton:newColorsBranding {
top: 0px;
margin-top: 6px;
}
.titleBackButton:hover {
color: value(B10);
background-color: value(D80);
}
.titleBackButton:active {
color: value(B10);
background-color: value(D80-70)
}
.titleBackButton:darkTheme {
color: value(D80);
}
.titleBackButton:darkTheme:hover {
background-color: value(D80-30);
}
.titleBackButton:darkTheme:active {
background-color: value(D80-20);
}
.titleBackButtonIcon {
display: block;
width: 36px;
height: 36px;
position: relative;
left: -1px;
}
.titleColumn {
/* Allow flex-child to shrink when there is a truncated descendant
See: https://css-tricks.com/flexbox-truncated-text/#article-header-id-3 */
min-width: 0;
flex: 1;
}
.title {
-st-states: newColorsBranding;
height: 48px;
}
.title:newColorsBranding {
height: unset;
margin-top: 6px;
}
.actionsBar {
-st-states: withBreadcrumbs, minimized;
height: 30px;
margin-top: 6px;
margin-left: auto;
}
.actionsBar:withBreadcrumbs {
margin-top: 36px;
}
.actionsBar:minimized {
margin-top: -3px;
}
:global([dir='rtl']) .breadcrumbsContainer {
margin-left: 0;
margin-right: -10px;
}
:global([dir='rtl']) .titleBackButton {
right: -12px;
}
:global([dir='rtl']) .titleBackButtonIcon {
transform: scaleX(-1);
right: -1px;
}
/* st-namespace-reference="../../../src/PageHeader/PageHeader.st.css" */