Skip to content

Commit 5d11aaf

Browse files
committed
feat: updating the styles and image zoom files
1 parent 3fed47f commit 5d11aaf

File tree

4 files changed

+42
-31
lines changed

4 files changed

+42
-31
lines changed
File renamed without changes.

lib/Image/ImageZoom.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use client';
22

33
import { type ImgHTMLAttributes } from 'react';
4-
import './image-zoom.css';
54
import Zoom, { type UncontrolledProps } from 'react-medium-image-zoom';
65

6+
import './ImageZoom.scss';
7+
78
type ImageProps = ImgHTMLAttributes<HTMLImageElement>;
89

910
type ImageZoomProps = {

lib/Steps/Steps.scss

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
1-
.steps {
2-
@apply flex flex-col pl-2 mt-8 mb-4;
1+
[data-stubby-ui] {
2+
&.steps {
3+
@apply flex flex-col pl-2 mt-8 mb-4;
34

4-
> :last-child {
5-
@apply pb-3;
5+
> :last-child {
6+
@apply pb-3;
7+
}
68
}
7-
}
89

9-
.step {
10-
@apply relative flex pb-8;
11-
}
10+
.step {
11+
@apply relative flex pb-8;
12+
}
1213

13-
.stepLine {
14-
@apply absolute left-[14px] top-[2.3rem] h-[calc(100%-2.75rem)] w-px bg-gray-200/70 dark:bg-white/10;
15-
}
14+
.stepLine {
15+
@apply absolute left-[14px] top-[2.3rem] h-[calc(100%-2.75rem)] w-px bg-gray-200/70 dark:bg-white/10;
16+
}
1617

17-
.stepContainer {
18-
@apply -mt-0.5 ml-8 flex-1;
18+
.stepContainer {
19+
@apply -mt-0.5 ml-8 flex-1;
1920

20-
> :first-child {
21-
@apply mt-0;
21+
> :first-child {
22+
@apply mt-0;
23+
}
2224
}
23-
}
2425

25-
.stepNumber {
26-
@apply flex h-7 w-7 items-center justify-center rounded-full bg-slate-100 dark:bg-slate-50/20 font-mono text-sm font-bold dark:text-slate-100;
27-
}
26+
.stepNumber {
27+
@apply flex h-7 w-7 items-center justify-center rounded-full bg-slate-100 dark:bg-slate-50/20 font-mono text-sm font-bold dark:text-slate-100;
28+
}
2829

29-
.stepTitle {
30-
@apply mt-0 text-lg font-medium leading-6 text-slate-800 dark:text-slate-200;
31-
}
30+
.stepTitle {
31+
@apply mt-0 text-lg font-medium leading-6 text-slate-800 dark:text-slate-200;
32+
}
3233

33-
.stepContent {
34-
@apply mt-1 dark:text-slate-400;
34+
.stepContent {
35+
@apply mt-1 dark:text-slate-400;
3536

36-
> :first-child {
37-
@apply mt-0;
38-
}
37+
> :first-child {
38+
@apply mt-0;
39+
}
3940

40-
> :last-child {
41-
@apply mb-0;
41+
> :last-child {
42+
@apply mb-0;
43+
}
4244
}
4345
}

lib/Steps/Steps.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const Step = ({ children, number, title }: StepProps) => {
1212
<div
1313
className={'step'}
1414
role="listitem"
15+
data-stubby-ui
1516
>
1617
<div className={'stepLine'}></div>
1718
<div className={'stepNumber'}>{number}</div>
@@ -24,5 +25,12 @@ export const Step = ({ children, number, title }: StepProps) => {
2425
};
2526

2627
export const Steps = ({ children }: { children: React.ReactNode }) => {
27-
return <div className={'steps'}>{children}</div>;
28+
return (
29+
<div
30+
className={'steps'}
31+
data-stubby-ui
32+
>
33+
{children}
34+
</div>
35+
);
2836
};

0 commit comments

Comments
 (0)