Skip to content

Commit 1d1aacc

Browse files
committed
fix(toolbar): centered the toolbar icons
1 parent a47245b commit 1d1aacc

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

client/styles/components/_toolbar.scss

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.toolbar__play-button {
22
@include themify() {
33
@extend %toolbar-button;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
47
&--selected {
58
@extend %toolbar-button--selected;
69
}
@@ -18,8 +21,13 @@
1821
}
1922
}
2023
margin-right: #{15 / $base-font-size}rem;
21-
& span {
22-
padding-left: #{3 / $base-font-size}rem;
24+
span {
25+
padding-left: #{4 / $base-font-size}rem;
26+
display: flex;
27+
align-items: center;
28+
justify-content: center;
29+
width: 20px;
30+
height: 20px;
2331
}
2432
}
2533

@@ -30,16 +38,29 @@
3038
.toolbar__stop-button {
3139
@include themify() {
3240
@extend %toolbar-button;
41+
display: flex;
42+
justify-content: center;
43+
align-items: center;
3344
margin-right: #{15 / $base-font-size}rem;
3445
&--selected {
3546
@extend %toolbar-button--selected;
3647
}
3748
}
49+
span {
50+
display: flex;
51+
align-items: center;
52+
justify-content: center;
53+
width: 20px;
54+
height: 20px;
55+
}
3856
}
3957

4058
.toolbar__preferences-button {
4159
@include themify() {
4260
@extend %toolbar-button;
61+
display: flex;
62+
justify-content: center;
63+
align-items: center;
4364
line-height: #{52 / $base-font-size}rem;
4465
&--selected {
4566
@extend %toolbar-button--selected;
@@ -50,6 +71,11 @@
5071
margin-left: auto;
5172
& span {
5273
padding-left: #{1 / $base-font-size}rem;
74+
display: flex;
75+
align-items: center;
76+
justify-content: center;
77+
width: 20px;
78+
height: 20px;
5379
}
5480
}
5581

0 commit comments

Comments
 (0)