@@ -7,7 +7,7 @@ export const MEDIA_QUERY_IS_TABLET = '@media only screen and (max-width: 991px)
77
88// Need to implement a div version of Paragraph since PrettyPrintJson contains an <pre> element
99// ...which cannot be a child of a <p> element
10- const _paragraphCSS = css `
10+ const PARAGRAPH_BASE_STYLE = css `
1111 margin-top: 0;
1212 display: block;
1313 margin-bottom: 1rem;
@@ -18,11 +18,11 @@ const _paragraphCSS = css`
1818` ;
1919
2020export const Content = styled . p `
21- ${ _paragraphCSS }
21+ ${ PARAGRAPH_BASE_STYLE }
2222` ;
2323
2424export const Paragraph = styled . p `
25- ${ _paragraphCSS }
25+ ${ PARAGRAPH_BASE_STYLE }
2626
2727 ${ MEDIA_QUERY_IS_TABLET_OR_DESKTOP } {
2828 max-width: 85%;
@@ -92,7 +92,7 @@ export const Column = styled.div<{ widthPercent?: number }>`
9292` ;
9393
9494export const ListWrapper = styled . div `
95- ${ _paragraphCSS }
95+ ${ PARAGRAPH_BASE_STYLE }
9696
9797 ${ MEDIA_QUERY_IS_TABLET_OR_DESKTOP } {
9898 max-width: 85%;
@@ -138,16 +138,16 @@ export const TextHeader = styled.span`
138138 line-height: 1.65;
139139 font-size: 1.025em;
140140 border-radius: 3px;
141+ padding: .15em .3em;
141142 word-break: break-word;
142143 background-color: #eef0f3;
143- padding: .15em .45em .15em;
144144 -webkit-font-smoothing: auto;
145145 -moz-osx-font-smoothing: auto;
146146 font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;
147147
148148 ${ MEDIA_QUERY_IS_MOBILE_XS } {
149149 line-height: 1.6;
150- padding: .1em .4em .1em ;
150+ padding: .1em .25em ;
151151 }
152152` ;
153153
@@ -350,23 +350,23 @@ export const MenuPortalElement = styled.div<{ menuOpen: boolean; }>`
350350// Advanced story specific
351351// =======================================
352352
353- const _spinKeyframes = keyframes `
353+ const SPIN_KEYFRAMES = keyframes `
354354 from {
355355 transform: rotate(0deg);
356356 } to {
357357 transform: rotate(360deg);
358358 }
359359` ;
360360
361- const _spinAnimationCss = css `animation: ${ _spinKeyframes } infinite 8s linear;` ;
361+ const SPIN_ANIMATION_CSS = css `animation: ${ SPIN_KEYFRAMES } infinite 8s linear;` ;
362362
363363export const ReactSvg = styled . svg < { isDisabled ?: boolean } > `
364364 width: 34px;
365365 height: 34px;
366366 color: #1ea7fd;
367367 fill: currentColor;
368368 display: inline-block;
369- ${ ( { isDisabled } ) => ! isDisabled && _spinAnimationCss }
369+ ${ ( { isDisabled } ) => ! isDisabled && SPIN_ANIMATION_CSS }
370370` ;
371371
372372export const ChevronDownSvg = styled . svg < { menuOpen : boolean } > `
0 commit comments