Skip to content

Commit 0266013

Browse files
committed
style(banner): improve banner styling when switching languages
1 parent 0ccfd0e commit 0266013

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
@use "sass:math";
22

33
.toast {
4-
background-color: $toast-background-color;
5-
color: $toast-text-color;
6-
padding: #{math.div(10, $base-font-size)}rem;
4+
background-color: #D9D9D9;
5+
color: black;
6+
padding: #{math.div(10, $base-font-size)}rem #{math.div(20, $base-font-size)}rem;
77
position: fixed;
8-
top: 0;
8+
top: #{math.div(20, $base-font-size)}rem;
99
left: 50%;
10-
transform: translate(-50%, 0);
11-
min-width: #{math.div(375, $base-font-size)}rem; //500px
12-
font-size: #{math.div(20, $base-font-size)}rem;
10+
transform: translateX(-50%);
11+
min-width: #{math.div(360, $base-font-size)}rem;
12+
font-size: #{math.div(16, $base-font-size)}rem;
13+
border-radius: #{math.div(8, $base-font-size)}rem;
1314
display: flex;
14-
z-index: 9999;
1515
align-items: center;
1616
justify-content: space-between;
17+
z-index: 9999;
18+
transition: all 0.3s ease-in-out;
1719
box-shadow: 0 6px 6px 0 rgba(0,0,0,0.10);
1820
}
1921

2022
.toast__close {
2123
@include themify() {
2224
@extend %icon-toast;
2325
}
24-
padding-top: #{math.div(10, $base-font-size)}rem;
25-
margin-left: #{math.div(40, $base-font-size)}rem;
26-
}
26+
padding-top: #{math.div(6, $base-font-size)}rem;
27+
margin-left: #{math.div(24, $base-font-size)}rem;
28+
cursor: pointer;
29+
opacity: 0.7;
30+
31+
&:hover {
32+
opacity: 1;
33+
}
34+
}

0 commit comments

Comments
 (0)