Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix styling around features and layouts #1393

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions vuu-ui/packages/vuu-layout/src/palette/Palette.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.vuuPalette {
--vuu-svg-draggable: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17"><path d="M12.6666 6.5H3.33329C2.96663 6.5 2.66663 6.8 2.66663 7.16667C2.66663 7.53333 2.96663 7.83333 3.33329 7.83333H12.6666C13.0333 7.83333 13.3333 7.53333 13.3333 7.16667C13.3333 6.8 13.0333 6.5 12.6666 6.5ZM3.33329 10.5H12.6666C13.0333 10.5 13.3333 10.2 13.3333 9.83333C13.3333 9.46667 13.0333 9.16667 12.6666 9.16667H3.33329C2.96663 9.16667 2.66663 9.46667 2.66663 9.83333C2.66663 10.2 2.96663 10.5 3.33329 10.5Z" /></svg>');
--vuuList-borderStyle: none;
}

Expand All @@ -11,10 +10,10 @@
.vuuPaletteItem {
--vuu-icon-color: var(--salt-content-secondary-foreground);
--list-item-text-padding: 0 0 0 calc(var(--salt-size-unit) * 3);
padding-left: 12px;
font-size: 12px;
font-weight: 600;
gap: var(--salt-spacing-200);
padding-left: 12px;
}

.vuuSimpleDraggableWrapper > .vuuPaletteItem {
Expand Down
5 changes: 4 additions & 1 deletion vuu-ui/packages/vuu-shell/src/feature-list/FeatureList.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
align-items: center;
display: flex;
flex: 0 0 48px;
font-size: 16px;
font-weight: 700;
line-height: 2;
}
Expand All @@ -28,6 +27,10 @@
overflow: auto;
}

.vuuFeatureList-standalone {
margin-top: 24px;
}

.vuuFeatureList-group {
--vuuMeasuredContainer-flex: 0 0 auto;

Expand Down
42 changes: 24 additions & 18 deletions vuu-ui/packages/vuu-shell/src/feature-list/FeatureList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,30 @@ export const FeatureList = ({
const content = useMemo<JSX.Element[]>(() => {
if (Array.isArray(features)) {
return [
<Palette key="0" orientation="vertical" ListProps={listPropsFullHeight}>
{features.map((featureProps, i) => (
<PaletteItem
closeable
component={<Feature {...featureProps} />}
key={i}
label={featureProps.title}
resizeable
resize="defer"
header
>
<Icon name="draggable" size={18} />
<span className={`${classBase}-itemName`}>
{featureProps.title}
</span>
</PaletteItem>
))}
</Palette>,
<div className={`${classBase}-standalone`} key={0}>
<Palette
key="0"
orientation="vertical"
ListProps={listPropsFullHeight}
>
{features.map((featureProps, i) => (
<PaletteItem
closeable
component={<Feature {...featureProps} />}
key={i}
label={featureProps.title}
resizeable
resize="defer"
header
>
<Icon name="draggable" size={18} />
<span className={`${classBase}-itemName`}>
{featureProps.title}
</span>
</PaletteItem>
))}
</Palette>
</div>,
];
} else {
return Object.entries(features).map(([heading, featureList], index) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vuuLayoutList {
--vuuMeasuredContainer-flex: 1 1 1px;
--vuuList-borderStyle: none;
--vuuListItem-separator-color: transparent;

background: var(
Expand All @@ -21,7 +22,6 @@
align-items: center;
display: flex;
flex: 0 0 48px;
font-size: 16px;
font-weight: 700;
line-height: 2;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@
}

.vuuLayoutTile-layoutName {
color: var(--light-text-primary, #15171B);
font-weight: 600;
line-height: 133.333%;
text-transform: capitalize;
text-transform: uppercase;
}

.vuuLayoutTile-screenshot {
width: 60px;
height: 45.6px;
border: 1px solid #D6D7DA;
border: 1px solid #d6d7da;
}

.vuuLayoutTile-layoutDetails {
color: var(--light-text-secondary, #606477);
color: var(--salt-content-secondary-foreground);
font-size: 10px;
font-weight: 600;
line-height: 150%;
Expand Down
3 changes: 1 addition & 2 deletions vuu-ui/packages/vuu-shell/src/left-nav/LeftNav.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
.vuuTabs-tabPanel {
background: var(--salt-container-primary-background);
height: 100%;
padding: var(--salt-spacing-200) var(--salt-spacing-100)
var(--salt-spacing-200) var(--salt-spacing-400);
padding: 34px 32px 8px 24px;
}
}

Expand Down
4 changes: 1 addition & 3 deletions vuu-ui/packages/vuu-shell/src/left-nav/LeftNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,7 @@ export const LeftNav = (props: LeftNavProps) => {
>
<FeatureList features={features} title="VUU FEATURES" />
<FeatureList features={tableFeaturesByGroup} title="VUU TABLES" />
<div className="vuuLeftNav-drawer">
<LayoutList title="My Layouts" />
</div>
<LayoutList title="MY LAYOUTS" />
</Stack>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions vuu-ui/packages/vuu-theme/css/components/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import url(input.css);
@import url(left-nav.css);
@import url(options-list.css);
@import url(palette.css);
@import url(scrollable.css);
@import url(split-button.css);
@import url(splitter.css);
Expand Down
15 changes: 15 additions & 0 deletions vuu-ui/packages/vuu-theme/css/components/palette.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.salt-theme.vuu-theme {
.vuuPaletteItem {
--vuuListItem-padding: 0;
border-bottom: solid 1px var(--salt-separable-secondary-borderColor);

&:first-child {
border-top: solid 1px var(--salt-separable-secondary-borderColor);
}

.vuuFeatureList-itemName {
position: relative;
top: 1px;
}
}
}
Loading