aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select/select-shared.component.scss
blob: 4de43077c83e4ecc5b590d066be440713c5d8d13 (plain) (tree)
1
2
3
4
5
6
7
8
9

                       


                             
        


                 


























                                                         

       
                
                      





                       
                           
                                                       
 
                            

                 

               
                            
 
@use '_variables' as *;
@use '_mixins' as *;

$form-base-input-width: auto;

.muted {
  font-size: 90%;
}

ng-select {
  width: $form-base-input-width;

  @media screen and (max-width: $form-base-input-width) {
    width: 100%;
  }
}

ng-select ::ng-deep {
  .ng-value-container {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  // make sure the image is vertically adjusted
  .ng-value-label img {
    position: relative;
    top: -1px;
  }

  img {
    border-radius: 50%;
    height: 20px;
    width: 20px;
  }
}

.root {
  display: flex;
  align-items: center;

  > my-select-options {
    flex-grow: 1;
  }
}

my-select-options + input {
  @include peertube-input-text($form-base-input-width);

  @include margin-left(5px);
  display: block;
}

.input-suffix {
  @include margin-left(5px);
}