Bootstrap 3 & Boostrap 4 - input-xs (smaller than sm)

前端 未结 2 1546
忘掉有多难
忘掉有多难 2020-12-12 15:02

I wasted a lot of time searching a way to make my own xs size (smaller than the small) for input and input group, so here\'s the code!


2条回答
  •  既然无缘
    2020-12-12 15:32

    If you are using bootstrap-sass, then you can leverage input-size mixin:

    $input-height-xs: 27px; // adjust it according to your theme.
    
    @include input-size('.input-xs', $input-height-xs, $padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
    

提交回复
热议问题