<span class="icon-cross">
    <span class="icon-cross__inner"></span>
</span>
<span class="icon-cross">
  <span class="icon-cross__inner"></span>
</span>
/* No context defined. */
  • Content:
    .icon-cross:not(.ico) { // legacy css fix
      position: relative;
      display: block;
      flex: 1 1 auto;
      cursor: pointer;
      width: 100%;
      height: 0;
      padding-top: 100%;
      overflow: hidden;
    }
    
    .icon-cross:not(.ico):before { // legacy css fix
      content: initial;
    }
    
    .icon-cross__inner {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 100%;
    }
    
    .icon-cross__inner:before,
    .icon-cross__inner:after {
      position: absolute;
      top: 50%;
      left: 0;
      display: block;
      width: 140%;
      height: 2px;
      border-radius: 2px;
      margin-top: -1px;
      margin-left: -20%;
      background-color: currentcolor;
      content: '';
    }
    
    .icon-cross__inner:before {
      transform: rotate(-45deg);
    }
    
    .icon-cross__inner:after {
      transform: rotate(45deg);
    }
    
  • URL: /components/raw/icon-cross/icon-cross.scss
  • Filesystem Path: ../src/02_atoms/icon/icon-cross/icon-cross.scss
  • Size: 758 Bytes

No notes defined.