Jump to content

Template:Callout/styles.css

From Swarthmore Knowledge Base
.callout {
  display: inline-block;
  width: auto;
  max-width: 48em;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
  text-align: left;
}

.callout-wrapper {
  margin: 1.5em 0;
  text-align: center;
}

.callout__title {
  margin: 0 0 0.75em;
  font-size: 1.1em;
  font-weight: 700;
}

.callout__content {
  line-height: 1.5;
}

.callout--tip {
  color: #1d4f91;
  background: #f8fbff;
  border-color: #c7d8f5;
}

.callout--note {
  color: #374151;
  background: #f9fafb;
  border-color: #6b7280;
}

.callout--important {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #b45309;
}

.callout--warning {
  color: #7c3f00;
  background: #fff8e6;
  border-color: #d97706;
}

.callout--success {
  color: #14532d;
  background: #f0fdf4;
  border-color: #15803d;
}

html.skin-theme-clientpref-night .callout--tip {
  color: #cfe3ff;
  background: #162230;
  border-color: #56789f;
}

html.skin-theme-clientpref-night .callout--note {
  color: #f1f3f5;
  background: #252a30;
  border-color: #8a949e;
}

html.skin-theme-clientpref-night .callout--important {
  color: #ffd7c2;
  background: #352117;
  border-color: #d48346;
}

html.skin-theme-clientpref-night .callout--warning {
  color: #ffe1a6;
  background: #332812;
  border-color: #d69b35;
}

html.skin-theme-clientpref-night .callout--success {
  color: #c9f3d5;
  background: #172a1e;
  border-color: #4b9b63;
}

@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .callout--tip {
    color: #cfe3ff;
    background: #162230;
    border-color: #56789f;
  }

  html.skin-theme-clientpref-os .callout--note {
    color: #f1f3f5;
    background: #252a30;
    border-color: #8a949e;
  }

  html.skin-theme-clientpref-os .callout--important {
    color: #ffd7c2;
    background: #352117;
    border-color: #d48346;
  }

  html.skin-theme-clientpref-os .callout--warning {
    color: #ffe1a6;
    background: #332812;
    border-color: #d69b35;
  }

  html.skin-theme-clientpref-os .callout--success {
    color: #c9f3d5;
    background: #172a1e;
    border-color: #4b9b63;
  }
}