aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-user-subscription/subscribe-button.component.scss
blob: 9727311167e2a043d32a6b98f3a07c4dafa0de0e (plain) (tree)
1
2
3
4
5
6
7
8

                       
 
                      
                           
 

             


                                 
   
 



                        


                 
                          

                         

     



                         
 





                              
             
                                       
                                


           
          
                                
 
                          
                                 





                           
   
 




                             
 
                          
                                 
     
   
 


                           
 

                       
   
 





                      








                                  

   
                  
                          

   

                                       
   
 










                          
                      

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

.btn-group-subscribe {
  @include peertube-button;

  padding: 0;

  button.dropdown-toggle {
    font-size: $button-font-size;
    line-height: 1.2;
  }

  &:not(.big) {
    white-space: nowrap;
  }

  &.big {
    height: 35px;

    > button:first-child {
      width: max-content;
      min-width: 175px;
    }

    button .extra-text {
      span:first-child {
        line-height: 80%;
      }

      span:not(:first-child) {
        font-size: 75%;
      }
    }
  }

  // Unlogged
  > .dropdown > .dropdown-toggle span {
    @include padding-right(5px);
  }

  // Logged
  > .btn {
    @include padding-right(4px);

    + .dropdown > button {
      @include padding-left(2px);

      &::after {
        position: relative;
        top: 1px;
      }
    }
  }

  &.subscribe-button {
    .btn {
      @include orange-button;
      font-weight: 600;
    }

    span.followers-count {
      @include padding-left(5px);
    }
  }

  &.unsubscribe-button {
    .btn {
      @include grey-button;

      font-weight: 600;
    }
  }

  .dropdown-menu {
    cursor: default;

    button {
      cursor: pointer;
    }

    .dropdown-item-neutral {
      cursor: default;

      &:hover,
      &:focus {
        background-color: inherit;
      }
    }
  }

  ::ng-deep form {
    padding: 0.25rem 1rem;
  }

  input {
    @include peertube-input-text(100%);
  }
}

.extra-text {
  display: flex;
  flex-direction: column;

  span:first-child {
    line-height: 75%;
  }

  span:not(:first-child) {
    font-size: 60%;
    text-align: start;
  }
}