@include export-module('co-icon-layout') {
  .co-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    svg {
      max-height: 100%;
      max-width: 100%;
      width: 100%;
      height: 100%;
    }
    &.big {
      width: 50px;
      height: 50px;
    }

    &.light {
      svg { // for fontawesome icons
        fill: $cc-color-light;
      }
      & [fill] { // for own icons
        fill: $cc-color-light;
      }
    }

    &.dark [fill] {
      svg { // for fontawesome icons
        fill: $cc-color-dark;
      }
      & [fill] { // for own icons
        fill: $cc-color-dark;
      }
    }
  }
}

