aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-main/buttons/button.component.scss
blob: 776f6622e6beb63abdf5b2aefa16cab9543f37d2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                       
 







                         



                         

 

                
                        

 
                                 




                        
                  

                      
                              


   
                
                                                                                    
 





                                    
   
 
 

               
                           

 

                    
                                

 


                         

 
             
                   
                       
 
 



                    


                                                             


                              
 


                                            

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

@mixin responsive-label {
  .action-button {
    padding: 0 13px;
  }

  .button-label {
    display: none;
  }

  my-global-icon {
    margin: 0 !important;
  }
}

:host {
  outline: none;
  display: inline-block;
}

my-small-loader ::ng-deep .root {
  display: inline-block;
  margin: 0 3px 0 0;
  width: 20px;
}

a[class$=-button],
span[class$=-button] {
  > span {
    @include margin-left(5px);
  }
}

.action-button {
  width: 100%; // useful for ellipsis, allow to define a max-width on host component

  &.has-icon {
    @include button-with-icon(21px);
  }

  &.icon-only my-global-icon {
    margin: 0 !important;
  }
}

.orange-button,
.grey-button {
  @include peertube-button;
}

.orange-button-link,
.grey-button-link {
  @include peertube-button-link;
}

.orange-button,
.orange-button-link {
  @include orange-button;
}

.grey-button,
.grey-button-link {
  @include grey-button;
}

.button-label {
  @include ellipsis;
}

// In a table, try to minimize the space taken by this button
@media screen and (max-width: 1400px) {
  :host-context(td) {
    @include responsive-label;
  }
}

@media screen and (max-width: $small-view) {
  .responsive-label {
    @include responsive-label;
  }
}