Skip to content

Commit 1c87a64

Browse files
committed
Convert Infobox.module.scss to .css
1 parent 6d84a60 commit 1c87a64

File tree

3 files changed

+45
-46
lines changed

3 files changed

+45
-46
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.infobox {
2+
display: inline-block;
3+
border: 1px solid;
4+
margin: 1rem 0;
5+
}
6+
7+
.size-sm {
8+
padding: 0.5rem 0.75rem;
9+
font-size: 0.875rem;
10+
}
11+
12+
.size-md {
13+
padding: 1rem 1.5rem;
14+
font-size: 1rem;
15+
}
16+
17+
.size-lg {
18+
padding: 1.5rem 2rem;
19+
font-size: 1.25rem;
20+
}
21+
22+
.variant-normal {
23+
border-color: var(--sapNeutralTextColor);
24+
background-color: var(--sapNeutralBackground);
25+
color: var(--sapNeutralTextColor);
26+
}
27+
28+
.variant-success {
29+
border-color: var(--sapPositiveTextColor);
30+
background-color: var(--sapPositiveBackground);
31+
color: var(--sapPositiveTextColor);
32+
}
33+
34+
.variant-warning {
35+
border-color: var(--sapCriticalTextColor);
36+
background-color: var(--sapCriticalBackground);
37+
color: var(--sapCriticalTextColor);
38+
}
39+
40+
.variant-danger {
41+
border-color: var(--sapNegativeTextColor);
42+
background-color: var(--sapErrorBackground);
43+
color: var(--sapNegativeTextColor);
44+
}

src/components/Ui/Infobox/Infobox.module.scss

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/components/Ui/Infobox/Infobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ReactNode } from 'react';
22
import cx from 'clsx';
33

4-
import styles from './Infobox.module.scss';
4+
import styles from './Infobox.module.css';
55

66
interface LabelProps {
77
id?: string;

0 commit comments

Comments
 (0)