Skip to content

Commit 6058fa5

Browse files
chore: make theme toggle icon visible on mobile
1 parent 8d6df62 commit 6058fa5

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

src/app/common/social-wrapper/social-wrapper.component.scss

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
@import '../../../scss/utils.scss';
22

3+
:host {
4+
@include media(small) {
5+
position: absolute;
6+
top: 50%;
7+
right: 20px;
8+
transform: translateY(-50%);
9+
}
10+
}
11+
312
.social-wrapper {
413
@extend .center-top;
514
float: right;
@@ -9,7 +18,7 @@
918

1019
a {
1120
@extend .transition-fast;
12-
display: inline-block;
21+
display: inline-flex;
1322
vertical-align: middle;
1423
color: #fff;
1524
font-size: 18px;
@@ -36,7 +45,13 @@
3645
padding-right: 20px;
3746
}
3847
@include media(small) {
39-
display: none;
48+
top: 0;
49+
transform: none;
50+
padding-right: 0;
51+
52+
a {
53+
display: none;
54+
}
4055
}
4156
@media print {
4257
display: none;

src/app/shared/components/theme-mode-toggle/theme-mode-toggle.component.scss

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../../../../scss//utils.scss';
2+
13
:host {
24
display: block;
35
display: flex;
@@ -27,6 +29,11 @@
2729
padding-left: 15px;
2830
position: relative;
2931

32+
@include media(small) {
33+
padding: 0;
34+
margin: 0;
35+
}
36+
3037
.material-icons {
3138
font-size: 20px;
3239
cursor: pointer;
@@ -36,14 +43,22 @@
3643
position: absolute;
3744
background: #fff;
3845
opacity: 0.2;
39-
left: 0;
46+
left: 2px;
4047
top: 0;
41-
bottom: 0;
48+
bottom: 2px;
4249
width: 2px;
4350
}
4451

4552
&:hover {
4653
color: var(--primary);
4754
}
55+
56+
@include media(small) {
57+
font-size: 24px;
58+
59+
&::before {
60+
display: none;
61+
}
62+
}
4863
}
4964
}

0 commit comments

Comments
 (0)