Skip to content

Commit 43c12c2

Browse files
committed
Change loading dots styling
1 parent b7853ce commit 43c12c2

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

components/Snippets/ThreeDotsLoader.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ const flashing = keyframes({
2424

2525
const Wrapper = styled('div', {
2626
span: {
27-
width: '14px',
28-
height: '14px',
27+
width: '8px',
28+
height: '8px',
2929
borderRadius: '50%',
3030
backgroundColor: '$white',
3131
animation: `${flashing} 1.4s infinite linear`,
3232
margin: '0 4px',
33-
display: 'inline-block'
34-
},
33+
display: 'inline-block',
3534

36-
'span:nth-child(2)': {
37-
'animation-delay': '.2s'
38-
},
35+
'&:nth-child(2)': {
36+
'animation-delay': '.2s'
37+
},
3938

40-
'span:nth-child(3)': {
41-
'animation-delay': '.4s'
39+
'&:nth-child(3)': {
40+
'animation-delay': '.4s'
41+
}
4242
}
4343
});
4444

@@ -57,28 +57,28 @@ const flashing = keyframes({
5757
5858
const exampleWrapper = styled('div', {
5959
span: {
60-
width: '14px',
61-
height: '14px',
60+
width: '8px',
61+
height: '8px',
6262
borderRadius: '50%',
63-
backgroundColor: '$white',
63+
backgroundColor: 'white',
6464
animation: 'flashing 1.4s infinite linear',
6565
margin: '0 4px',
6666
display: 'inline-block'
6767
},
6868
69-
'span:nth-child(2)': {
69+
'&:nth-child(2)': {
7070
'animation-delay': '.2s'
7171
},
7272
73-
'span:nth-child(3)': {
73+
'&:nth-child(3)': {
7474
'animation-delay': '.4s'
7575
}
7676
});`;
7777

7878
const cssStyling = `
7979
.exampleClass span {
80-
width: 14px;
81-
height: 14px;
80+
width: 8px;
81+
height: 8px;
8282
border-radius: 50%;
8383
background-color: white;
8484
animation: flashing 1.4s infinite linear;
@@ -110,8 +110,8 @@ const cssStyling = `
110110
const scssStyling = `
111111
.exampleClass {
112112
span {
113-
width: 14px;
114-
height: 14px;
113+
width: 8px;
114+
height: 8px;
115115
border-radius: 50%;
116116
background-color: white;
117117
animation: flashing 1.4s infinite linear;
@@ -126,8 +126,9 @@ const scssStyling = `
126126
animation-delay: 0.4s;
127127
}
128128
}
129+
}
129130
130-
@keyframes flashing {
131+
@keyframes flashing {
131132
0% {
132133
opacity: 0.2;
133134
}
@@ -138,7 +139,6 @@ const scssStyling = `
138139
opacity: 0.2;
139140
}
140141
}
141-
}
142142
`;
143143

144144
export { stitchesStyling, cssStyling, scssStyling, Component };

components/Snippets/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as HorizontalOverlay from './HorizontalOverlay';
1010
import * as BorderFade from './BorderFade';
1111
import * as TextTransformX from './TextTransformX';
1212
import * as CircleScaleButton from './CircleScaleButton';
13-
// import * as ThreeDotsLoader from './ThreeDotsLoader';
13+
import * as ThreeDotsLoader from './ThreeDotsLoader';
1414

1515
const allSnippets = [
1616
UnderlineLeftRight,
@@ -24,8 +24,8 @@ const allSnippets = [
2424
HorizontalOverlay,
2525
BorderFade,
2626
TextTransformX,
27-
CircleScaleButton
28-
// ThreeDotsLoader
27+
CircleScaleButton,
28+
ThreeDotsLoader
2929
];
3030

3131
export default allSnippets;

0 commit comments

Comments
 (0)