Sha256: cf849dd9cb70e69028fbd866f08dc15950e6cd70aecaa7e3841f2848f353bd87

Contents?: true

Size: 866 Bytes

Versions: 16

Compression:

Stored size: 866 Bytes

Contents

.flash {
  align-items: center;
  animation: appear-then-fade 4s 300ms both;
  background-color: var(--color-text);
  border-radius: var(--rounded-full);
  color: var(--color-text-reversed);
  display: flex;
  gap: var(--size-2);
  justify-content: center;
  line-height: var(--leading-none);
  margin-block-start: var(--flash-position, 0);
  margin-inline: auto;
  min-block-size: var(--size-11);
  padding: var(--size-1) var(--size-4);
  text-align: center;

  @media (width >= 40rem) {
    font-size: var(--text-lg);
  }

  @media (width >= 64rem) {
    font-size: var(--text-xl);
  }
}

.flash--extended {
  animation-name: appear-then-fade-extended;
  animation-duration: 12s;
}

@keyframes appear-then-fade {
  0%, 100% { opacity: 0; }
  5%, 60%  { opacity: 1; }
}

@keyframes appear-then-fade-extended {
  0%, 100% { opacity: 0; }
  2%, 90% { opacity: 1; }
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
css-zero-0.0.59 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.58 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.57 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.56 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.55 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.54 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.53 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.52 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.51 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.50 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.49 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.48 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.47 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.46 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.45 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css
css-zero-0.0.44 lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css