Skip to content

Commit 396f483

Browse files
Merge pull request #358 from infinum/feature/uic-2-migrations
Fixing a couple of visual glitches
2 parents 2be211e + a151a0d commit 396f483

File tree

2 files changed

+52
-8
lines changed

2 files changed

+52
-8
lines changed

website/src/theme/styles.css

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,28 @@
77
inset: 0;
88
}
99

10-
.esd-hide-bg-on-hover.es:bg-violet-50:hover,
11-
.esd-hide-bg-on-hover:hover .es:bg-violet-50,
12-
.esd-hide-bg-on-hover.es:bg-gray-50:hover,
13-
.esd-hide-bg-on-hover:hover .es:bg-gray-50 {
14-
--tw-bg-opacity: 0 !important;
10+
:root {
11+
--color-violet-50: oklch(.969 .016 293.756);
12+
--color-gray-50: oklch(.985 .002 247.839);
13+
--es-spacing: 0.25rem;
14+
}
15+
16+
.es\:bg-violet-50 {
17+
background-color: var(--color-violet-50);
18+
}
19+
20+
.es\:bg-gray-50 {
21+
background-color: var(--color-gray-50);
22+
}
23+
24+
.esd-hide-bg-on-hover.es\:bg-violet-50:hover,
25+
.esd-hide-bg-on-hover:hover .es\:bg-violet-50 {
26+
background-color: color-mix(in oklab,var(--color-violet-50) 20%,transparent) !important;
27+
}
28+
29+
.esd-hide-bg-on-hover.es\:bg-gray-50:hover,
30+
.esd-hide-bg-on-hover:hover .es\:bg-gray-50 {
31+
background-color: color-mix(in oklab,var(--color-gray-50) 20%,transparent) !important;
1532
}
1633

1734
.esd-white-space-pre {
@@ -35,3 +52,30 @@
3552
border: 1px solid #D1D5DB !important;
3653
border-radius: 0.5rem !important;
3754
}
55+
56+
.markdown .esd-showcase {
57+
--ifm-list-left-padding: 0;
58+
--ifm-list-margin: 0;
59+
--ifm-list-paragraph-margin: 0;
60+
61+
ul, li {
62+
margin: 0;
63+
padding: 0;
64+
}
65+
}
66+
67+
.es:\w-full {
68+
width: 100%;
69+
}
70+
71+
.es:\w-fit {
72+
width: fit-content;
73+
}
74+
75+
.esd-showcase-w {
76+
width: 26rem;
77+
}
78+
79+
.esd-space-v > :not(:last-child) {
80+
margin-bottom: 0.625rem !important;
81+
}

website/ui-components/components/component-showcase.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ export const ComponentShowcase = ({
2020
<div className='es:flex es:font-sans'>
2121
<div
2222
className={clsx(
23-
'es:border es:border-dashed es:border-gray-200 es:p-4 es:rounded-lg es:space-y-2.5 es:shrink-0',
23+
'es:border es:border-dashed es:border-gray-200 es:p-4 es:rounded-lg esd-space-v es:shrink-0 esd-showcase',
24+
fitWidth ? 'es:w-fit' : 'esd-showcase-w',
2425
className
2526
)}
26-
style={{ width: fitWidth ? 'fit-content' : '24rem'}}
2727
>
2828
{typeof children === 'function' && children(data, setData)}
2929
{typeof children !== 'function' && children}
3030
</div>
3131

32-
<div className='es:space-y-2.5 es:ml-3 es:grow'>
32+
<div className='esd-space-v es:ml-3 es:grow'>
3333
{preContent && preContent(data, setData, ref)}
3434
{resettable && (
3535
<Button

0 commit comments

Comments
 (0)