Skip to content

Commit bff1968

Browse files
committed
Tweak CSS
1 parent 2423afe commit bff1968

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.storybook/_storybook.scss

+4
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@
3535
padding-top: 100px;
3636
padding-bottom: 100px;
3737
}
38+
39+
.ribbonlink-demo {
40+
padding: 20px;
41+
}

src/components/ribbon-link/_RibbonLink.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
width: 100%;
1818
border-radius: 4px;
1919
outline: none !important;
20-
margin-top: 15px;
2120

2221
&:hover,
2322
&:active,
@@ -34,7 +33,7 @@
3433
}
3534

3635
&:active {
37-
margin-top: 19px;
36+
margin-top: 4px;
3837
border-bottom: 0px solid;
3938
}
4039

stories/RibbonLink.stories.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ const stories = storiesOf('RibbonLink', module);
77

88
stories
99
.add('Cool Ribbon', () => (
10-
<div style={{ padding: 20 }}>
10+
<div className="ribbonlink-demo">
1111
<RibbonLink flavour="cool">Cool Ribbon</RibbonLink>
1212
</div>
1313
))
1414
.add('Mild Ribbon', () => (
15-
<div style={{ padding: 20 }}>
15+
<div className="ribbonlink-demo">
1616
<RibbonLink flavour="mild">Mild Ribbon</RibbonLink>
1717
</div>
1818
))
1919
.add('Hot Ribbon', () => (
20-
<div style={{ padding: 20 }}>
20+
<div className="ribbonlink-demo">
2121
<RibbonLink flavour="hot">Hot Ribbon</RibbonLink>
2222
</div>
2323
))

0 commit comments

Comments
 (0)