Sha256: e778ad3863c22967470f5aca122efad1d4bec2933a22a0744fc8a5c17d1514ac

Contents?: true

Size: 1.28 KB

Versions: 44

Compression:

Stored size: 1.28 KB

Contents

@import "tagsinput";

$tag-padding: .25rem;
$tag-margin: .2rem;

.input__tag{
  background-color: rgba($medium-gray, .5);
  border-radius: $input-radius;
  padding: $tag-padding;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  span{
    color: $secondary;
  }
}

// Override defaults
.bootstrap-tagsinput{
  // Use foundation precalculated methods to get accurate form css properties
  $height: ($input-font-size * unitless-calc($input-line-height)) + (get-side($input-padding, 'top') + get-side($input-padding, 'bottom'));
  $tag-line-height: rem-calc(22);
  $span-height: ($input-font-size * unitless-calc($tag-line-height)) + (get-side($tag-padding, 'top') + get-side($tag-padding, 'bottom')) - rem-calc(1);

  width: 100%;
  border: $border;
  min-height: $height;
  padding-bottom: $tag-margin / 4;

  &.focus{
    outline: none;
    border: $input-border-focus;
    background-color: $input-background-focus;
    box-shadow: $input-shadow-focus;

    @if has-value($input-transition){
      transition: $input-transition;
    }
  }

  input{
    height: $span-height;
    display: inline-block;
  }

  .tag{
    color: inherit;
    margin-right: 0; // fix whitespace
    margin-bottom: $tag-margin;
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-core-0.24.3 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.6 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.24.2 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.5 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.24.1 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.24.0 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.24.0.rc2 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.4 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.24.0.rc1 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.3 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.2 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.1 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.1.rc1 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.23.0 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.22.0 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.21.0 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.20.1 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.20.0 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.19.1 app/assets/stylesheets/decidim/modules/_input-tags.scss
decidim-core-0.18.1 app/assets/stylesheets/decidim/modules/_input-tags.scss