File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 73
73
74
74
.language-switch-button {
75
75
background-color : rgba (0 , 0 , 0 , 0.5 );
76
+ border-width : 2px ;
77
+ border-style : solid;
78
+ border-color : white;
79
+ border-radius : 5px ;
76
80
color : white;
77
- border : none;
78
81
padding : 5px 10px ;
79
- border-radius : 5px ;
80
82
cursor : pointer;
81
83
transition : opacity 0.3s , background-color 0.3s ;
82
84
opacity : 0.7 ;
83
85
}
84
86
87
+ body .page-language-js .language-switch-button .lang-js ,
88
+ body .page-language-ts .language-switch-button .lang-ts {
89
+ background-color : black;
90
+ color : white;
91
+ }
92
+
85
93
.language-switch-button : hover {
86
94
opacity : 1 ;
87
95
background-color : rgba (0 , 0 , 0 , 0.8 );
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ function createLanguageButton(text, lang) {
221
221
const button = document . createElement ( "button" ) ;
222
222
button . textContent = text ;
223
223
button . classList . add ( "language-switch-button" ) ;
224
+ button . classList . add ( "lang-" + lang ) ;
224
225
button . addEventListener ( "click" , ( ) => switchLanguage ( lang ) ) ;
225
226
return button ;
226
227
}
You can’t perform that action at this time.
0 commit comments