Skip to content

Commit 4782cbd

Browse files
bradfrostbmuenzenmeyer
authored andcommitted
Add rotating atom logo
1 parent b6c28ef commit 4782cbd

File tree

1 file changed

+29
-19
lines changed

1 file changed

+29
-19
lines changed

packages/docs/src/scss/components/_logo.scss

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,61 @@
66
* Branding image or text of the site
77
*/
88
.c-logo {
9-
@media all and (min-width: $bp-med) {
10-
margin-bottom: $spacing-large;
11-
}
9+
@media all and (min-width: $bp-med) {
10+
margin-bottom: $spacing-large;
11+
}
1212
}
1313

1414
/**
1515
* Logo link
1616
*/
1717
.c-logo__link {
18-
display: flex;
19-
align-items: center;
18+
display: flex;
19+
align-items: center;
2020
}
2121

2222
/**
2323
* Logo image
2424
*/
2525
.c-logo__img {
26-
display: block;
27-
max-width: 3rem;
28-
margin-right: 0.5rem;
26+
display: block;
27+
max-width: 3rem;
28+
margin-right: 0.5rem;
29+
animation: rotate 10s linear infinite;
2930
}
3031

3132
/**
3233
* Logo body
3334
* 1) contains the logo text and meta info
3435
*/
3536
.c-logo__body {
36-
position: relative;
37+
position: relative;
3738
}
3839

3940
/**
4041
* Logo text
4142
*/
4243
.c-logo__text {
43-
text-transform: lowercase;
44-
font-weight: bold;
45-
color: $color-white;
44+
text-transform: lowercase;
45+
font-weight: bold;
46+
color: $color-white;
4647
}
4748

4849
.c-logo__meta {
49-
display: block;
50-
padding-top: 0.2rem;
51-
font-size: $font-size-sm;
52-
color: $color-gray-27;
53-
font-weight: 500;
54-
position: absolute;
55-
top: 100%;
50+
display: block;
51+
padding-top: 0.2rem;
52+
font-size: $font-size-sm;
53+
color: $color-gray-27;
54+
font-weight: 500;
55+
position: absolute;
56+
top: 100%;
57+
}
58+
59+
@keyframes rotate {
60+
from {
61+
transform: rotate(0deg);
62+
}
63+
to {
64+
transform: rotate(360deg);
65+
}
5666
}

0 commit comments

Comments
 (0)