Skip to content
Snippets Groups Projects
Select Git revision
  • 85e7c5092a77edd1899ab3d1f9038dc6dba373b1
  • main default protected
  • renovate/django-5.x
  • koma/feature/preference-polling-form
4 results

_close.scss

Blame
  • Benjamin Hättasch's avatar
    Benjamin Hättasch authored
    Remove static version of bootstrap css
    Add bootstrap sources
    Add bootswatch sources and variable file
    Improve the way admin css is handled
    This finishes #162
    00606192
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    _close.scss 1.10 KiB
    // Transparent background and border properties included for button version.
    // iOS requires the button element instead of an anchor tag.
    // If you want the anchor version, it requires `href="#"`.
    // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
    
    .btn-close {
      box-sizing: content-box;
      width: $btn-close-width;
      height: $btn-close-height;
      padding: $btn-close-padding-y $btn-close-padding-x;
      color: $btn-close-color;
      background: transparent escape-svg($btn-close-bg) center / $btn-close-width auto no-repeat; // include transparent for button elements
      border: 0; // for button elements
      @include border-radius();
      opacity: $btn-close-opacity;
    
      // Override <a>'s hover style
      &:hover {
        color: $btn-close-color;
        text-decoration: none;
        opacity: $btn-close-hover-opacity;
      }
    
      &:focus {
        outline: 0;
        box-shadow: $btn-close-focus-shadow;
        opacity: $btn-close-focus-opacity;
      }
    
      &:disabled,
      &.disabled {
        pointer-events: none;
        user-select: none;
        opacity: $btn-close-disabled-opacity;
      }
    }
    
    .btn-close-white {
      filter: $btn-close-white-filter;
    }