Sha256: 88a814f491a376d264f840f22f1070b0bafbc14bc1a2c05834710e4e1af5d63c

Contents?: true

Size: 1.8 KB

Versions: 30

Compression:

Stored size: 1.8 KB

Contents

/* ==========================================================================
   NOTICE TEXT BLOCKS
   ========================================================================== */

/**
 *  Default Kramdown usage (no indents!):
 *  <div class="notice" markdown="1">
 *  #### Headline for the Notice
 *  Text for the notice
 *  </div>
 */

@mixin notice($notice-color) {
  margin: 2em 0 !important;  /* override*/
  padding: 1em;
  color: $dark-gray;
  font-family: $global-font-family;
  font-size: $type-size-6 !important;
  text-indent: initial; /* override*/
  background-color: mix(#fff, $notice-color, 90%);
  border-radius: $border-radius;
  box-shadow: 0 1px 1px rgba($notice-color, 0.25);

  h4 {
    margin-top: 0 !important; /* override*/
    margin-bottom: 0.75em;
  }

  @at-root .page__content #{&} h4 {
    /* using at-root to override .page-content h4 font size*/
    margin-bottom: 0;
    font-size: 1em;
  }

  p {
    &:last-child {
      margin-bottom: 0 !important; /* override*/
    }
  }

  h4 + p {
    /* remove space above paragraphs that appear directly after notice headline*/
    margin-top: 0;
    padding-top: 0;
  }

  a {
    color: $notice-color;

    &:hover {
      color: mix(#000, $notice-color, 40%);
    }
  }

  code {
    background-color: mix(#fff, $notice-color, 95%)
  }

  ul {
    &:last-child {
      margin-bottom: 0; /* override*/
    }
  }
}

/* Default notice */

.notice {
  @include notice($light-gray);
}

/* Primary notice */

.notice--primary {
  @include notice($primary-color);
}

/* Info notice */

.notice--info {
  @include notice($info-color);
}

/* Warning notice */

.notice--warning {
  @include notice($warning-color);
}

/* Success notice */

.notice--success {
  @include notice($success-color);
}

/* Danger notice */

.notice--danger {
  @include notice($danger-color);
}

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
minimal-mistakes-jekyll-4.17.2 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.17.1 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.17.0 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.6 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.5 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.4 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.3 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.2 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.1 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.16.0 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.15.2 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.15.1 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.15.0 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.14.2 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.14.1 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.14.0 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.13.0 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.12.2 _sass/minimal-mistakes/_notices.scss
minimal-mistakes-jekyll-4.12.1 _sass/minimal-mistakes/_notices.scss
benimal-mistakes-jekyll-0.3.0 _sass/minimal-mistakes/_notices.scss