Sha256: ad3a2d3999562ed69aee94a538f7d347131a07f343b9aca9178ea9e273e2cad1

Contents?: true

Size: 922 Bytes

Versions: 8

Compression:

Stored size: 922 Bytes

Contents

.custom-switch.cvss {
  align-items: center;
  display: inline-flex;
  white-space: nowrap;

  .custom-control-input {
    &:checked ~ .custom-control-label {
      &::after { 
        background-color: $primaryColor;
      }

      &::before {
        background-color: $white;
        border-color: $primaryColor !important;
      }
    }

    &:focus ~ .custom-control-label::before {
      box-shadow: 0 0 0 0.2rem unquote(#{$primaryColor}80);
    }
  }

  .custom-control-label {
    font-size: 1rem;
    text-transform: lowercase;

    &::after {
      background-color: $primaryColor;
      left: calc(-0.25rem + 2px);
    }

    &::before {
      background-color: $white !important;
      border-color: $primaryColor !important;
      left: -0.25rem;
    }

    span {
      line-height: normal;

      &:first-of-type {
        display: inline-block;
        transform: translateX(-2.25rem);
      }
    }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dradis-calculator_cvss-4.8.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.7.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.6.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.5.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.4.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.3.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.2.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
dradis-calculator_cvss-4.1.0 app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss