@activecollab/components
Version:
ActiveCollab Components
76 lines • 3.27 kB
JavaScript
import styled, { css } from "styled-components";
export const StyledNav = styled.nav.withConfig({
displayName: "Styles__StyledNav",
componentId: "sc-1khiypw-0"
})(["", " height:100%;width:100%;overflow:clip visible;", " ", " ", " ", ""], {
"display": "flex"
}, props => props.$align === "left" && css(["", ""], {
"justifyContent": "flex-start"
}), props => props.$align === "center" && css(["", ""], {
"justifyContent": "center"
}), props => props.$align === "right" && css(["", ""], {
"justifyContent": "flex-end"
}), props => props.$role === "light" && css(["height:auto;"]));
StyledNav.displayName = "StyledNav";
export const StyledNavList = styled.ul.withConfig({
displayName: "Styles__StyledNavList",
componentId: "sc-1khiypw-1"
})(["", " overflow:clip visible;"], {
"margin": "0px",
"display": "flex",
"listStyleType": "none",
"padding": "0px"
});
StyledNavList.displayName = "StyledNavList";
export const StyledNavListItem = styled.li.withConfig({
displayName: "Styles__StyledNavListItem",
componentId: "sc-1khiypw-2"
})(["", " color:var(--color-theme-700);font-size:15px;display:flex;align-items:center;font-weight:500;padding:0 10px;flex-shrink:0;&:hover,&:hover *{", "}", " &::after{content:\"\";", " bottom:0;left:50%;transform:translateX(-50%);height:3px;transition:width 0.3s ease,background-color 0.3s ease;}", " ", " ", " ", ""], {
"position": "relative",
"cursor": "default",
"userSelect": "none",
"fontSize": "0.875rem",
"lineHeight": "1.25rem"
}, props => !props.$disabled && css(["", ""], {
"color": "var(--color-primary)"
}), props => !props.$active && !props.$disabled && css(["", ""], {
"cursor": "pointer"
}), {
"position": "absolute",
"margin": "auto",
"display": "block",
"width": "0px",
"backgroundColor": "transparent"
}, props => props.$active && css(["", " &::after{", "}"], {
"pointerEvents": "none"
}, {
"width": "100%",
"backgroundColor": "var(--color-primary)"
}), props => props.$disabled && css(["", ""], {
"cursor": "not-allowed",
"userSelect": "none",
"opacity": "0.5"
}), props => props.$role === "light" && css(["", " color:var(--color-theme-800);font-weight:400;padding:0 8px;&::after{bottom:-4px;height:2px;}"], {
"fontSize": "0.875rem",
"lineHeight": "1.25rem"
}), props => props.$active && css(["", " & *{", "}"], {
"color": "var(--color-primary)"
}, {
"color": "var(--color-primary)"
}));
StyledNavListItem.displayName = "StyledNavListItem";
export const StyledNavAsSelect = styled.div.withConfig({
displayName: "Styles__StyledNavAsSelect",
componentId: "sc-1khiypw-3"
})(["padding:0 10px;height:100%;display:flex;align-items:center;gap:4px;svg{color:var(--color-primary);top:1px;position:relative;}", ""], props => props.$active && css(["", " & *{", "}"], {
"color": "var(--color-primary)"
}, {
"color": "var(--color-primary)"
}));
StyledNavAsSelect.displayName = "StyledNavAsSelect";
export const StyledNavAsMoreTarget = styled.div.withConfig({
displayName: "Styles__StyledNavAsMoreTarget",
componentId: "sc-1khiypw-4"
})(["padding:0 10px;height:100%;display:flex;align-items:center;", ""], props => props.$role === "light" && css(["padding:0;"]));
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
//# sourceMappingURL=Styles.js.map