@@ -138,9 +138,14 @@ export default {
138138 " store.lang" (newValue) {
139139 // jika store.lang berupa "AR" maka ubah font tersebut ke "Droid Arabic Naskh"
140140 const app = document .getElementById (" app" );
141- newValue == " AR"
142- ? app .classList .add (" AR-lang" )
143- : app .classList .remove (" AR-lang" );
141+ const root = document .querySelector (" html" );
142+ if (newValue == " AR" ) {
143+ app .classList .add (" AR-lang" );
144+ root .setAttribute (" dir" , " rtl" );
145+ } else {
146+ app .classList .remove (" AR-lang" );
147+ root .removeAttribute (" dir" );
148+ }
144149 },
145150 },
146151};
@@ -162,6 +167,7 @@ header {
162167 z-index : 999 ;
163168
164169 .main-logo {
170+ flex-grow : 2 ;
165171 .img-logo {
166172 width : 96px ;
167173 }
@@ -246,40 +252,37 @@ header {
246252 }
247253 }
248254 }
249- .select {
250- flex-grow : 2 ;
251- select {
252- // remove arrow select
253- -webkit-appearance : none ;
254- -moz-appearance : none ;
255- //
255+ .select select {
256+ // remove arrow select
257+ -webkit-appearance : none ;
258+ -moz-appearance : none ;
259+ //
256260
257- padding : 0.4rem 0.8rem ;
258- font-size : inherit ;
259- font-family : inherit ;
260- border : transparent ;
261- color : $white ;
262- background-color : $secondary ;
261+ padding : 0.4rem 0.8rem ;
262+ font-size : inherit ;
263+ font-family : inherit ;
264+ border : transparent ;
265+ color : $white ;
266+ background-color : $secondary ;
263267
264- & :focus {
265- color : $primary ;
266-
267- option {
268- color : $white ;
269- }
270- }
268+ & :focus {
269+ color : $primary ;
271270
272271 option {
273- background- color : $secondary ;
272+ color : $white ;
274273 }
275274 }
275+
276+ option {
277+ background-color : $secondary ;
278+ }
276279 }
277280 }
278281
279282 @media (min-width : 768px ) {
280283 .navbar {
281284 .main-logo {
282- // flex-grow: 0;
285+ flex-grow : 0 ;
283286 }
284287
285288 .button-bars {
@@ -288,9 +291,6 @@ header {
288291 nav .navbar-header {
289292 display : block ;
290293 }
291- .select {
292- flex-grow : 0 ;
293- }
294294 }
295295 }
296296}
0 commit comments