Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.14 KB | None | 0 0
  1. <mat-select class="language-selector" [(ngModel)]="marketCountry" (selectionChange)="setMarketCountry($event)"
  2.    [class.cy-flag-icon]="appLanguage==CYPRUS"
  3.    [class.bg-flag-icon]="appLanguage==BULGARY"
  4.    >
  5.         <mat-option value="CYPRUS">
  6.             <div class="cy-flag-icon flag-icon"></div>
  7.         </mat-option>
  8.         <mat-option value="BULGARY">
  9.             <div class="bg-flag-icon flag-icon"></div>
  10.         </mat-option>
  11.     </mat-select>
  12.  
  13. mat-select {
  14.     position: absolute;
  15.     bottom: 1vh;
  16.     right: 1vh;
  17.     height: 6vh;
  18.     width: 11.5vh;
  19.     display:inline-block;
  20.     vertical-align: middle;
  21.     background-size: contain;
  22.     background-repeat:no-repeat;
  23.     background-position: center;
  24. }
  25.  
  26. mat-option {
  27.     min-width: 10px !important;
  28. }
  29.  
  30. .cy-flag-icon {
  31.     background-image: url("/assets/images/login/flags/en.png");
  32. }
  33.  
  34. .bg-flag-icon {
  35.     background-image: url("/assets/images/login/flags/es.png");
  36. }
  37.  
  38. .flag-icon {
  39.     display:inline-block;
  40.     vertical-align: middle;
  41.     height:7vh;
  42.     width:8vh;
  43.     background-repeat:no-repeat;
  44.     background-size: contain;
  45.     background-position: center;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement