Skip to content

Commit 01df27d

Browse files
authored
fix: lang box radius (#5535)
* fix: lang box radius * style: stylelint
1 parent dd5c98e commit 01df27d

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

components/Article/Codebox/index.module.scss

+2-11
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
padding: var(--space-05) var(--space-08);
1717

1818
.langBox {
19+
border-radius: var(--border-radius-3);
1920
display: flex;
2021
flex-direction: row;
2122
height: 28px;
23+
overflow: hidden;
2224

2325
.lang {
24-
border-radius: var(--border-radius-3);
2526
border-width: 0;
2627
cursor: pointer;
2728
font-family: var(--sans);
@@ -30,16 +31,6 @@
3031
padding: 0 var(--space-16);
3132
text-transform: uppercase;
3233

33-
&:nth-of-type(even) {
34-
border-bottom-left-radius: 0;
35-
border-top-left-radius: 0;
36-
}
37-
38-
&:nth-of-type(odd):not(:last-of-type) {
39-
border-bottom-right-radius: 0;
40-
border-top-right-radius: 0;
41-
}
42-
4334
&.selected {
4435
font-weight: var(--font-weight-bold);
4536
}

0 commit comments

Comments
 (0)