WesternFriend/WF-website

View on GitHub
core/static/css/wf_website.css

Summary

Maintainability
Test Coverage
:root {
  font-size: 16px;
}

a:not(.nav-link):not(.wagtail-userbar-link):not(.wagtail-userbar__item > a):not(
    .card-link
  ):not(.page-link):not(.btn) {
  color: #aa3f2e;
  transition: background-color 0.5s;
}

a:visited:not(.nav-link):not(.wagtail-userbar-link):not(
    .wagtail-userbar__item > a
  ):not(.card-link):not(.page-link):not(.btn) {
  color: #aa3f2e;
}

body {
  background-color: #f0f4f7;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

blockquote {
  border-left: 0.25em solid #d9d9d9;
  color: #4d4d4d;
  margin: 1em 0;
  padding: 1em 2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bs-font-sans-serif);
}

h1 {
  font-weight: bold;
  font-size: 2.7rem;
}

h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1.1rem;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin-left: 0.1em;
}

#div_id_password {
  margin-top: 0.8em;
}

#donate-button-container {
  margin-bottom: 0.3em;
}

#logout-form {
  display: inline;
}

#logout-form button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  color: #fff;
}

#navbarCollapse {
  /* separate the navbar collapse and donate button */
  margin-right: 1em;
}

#navbar-search-input {
  background-color: #ffefed;
  border-color: #ffefed;
  font-size: 1rem;
}

.btn-outline-primary {
  border-color: #06669a !important;
  color: #06669a !important;
}

.btn-outline-primary:hover {
  background-color: #06669a !important;
  color: #fff !important;
}

.btn-outline-primary:hover {
  background-color: #06669a !important;
  color: #fff !important;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.btn-primary:hover {
  background-color: #1283bf !important;
  border-color: #1283bf !important;
}

.btn-primary {
  background-color: #06669a !important;
  color: #fff !important;
  border-color: #06669a !important;
}

.card-title {
  font-family: var(--bs-font-sans-serif);
  line-height: 1em;
}

.dropdown-menu.show .nav-item a {
  color: #333;
}

.dropdown-menu.show .nav-item a:hover {
  color: #000;
  font-weight: medium;
}

.home-page-featured-issue {
  font-family: var(--bs-font-sans-serif);
}

.richtext-image.left {
  float: left;
  margin-right: 1em;
}

.richtext-image.right {
  float: right;
  margin-left: 1em;
}

.text-bg-wf-primary {
  background-color: #06669a;
  color: #fff;
}

.title-link-no-underline:link {
  text-decoration: none;
}

.title-link-no-underline:visited {
  text-decoration: none;
}

.title-link-no-underline:hover {
  text-decoration: none;
}

.title-link-no-underline:active {
  text-decoration: none;
}

.pdfobject-container {
  height: 42rem;
  border: 0.3rem solid rgba(0, 0, 0, 0.1);
}

.pullquote {
  margin: 0 0 0.5em 1em;
  background: #ffefed;
  padding: 1em;
  font-size: 2em;
  float: right;
  width: 50%;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffe9e5;
}

/* Make sure embedded videos take up full with
while preserving the typical aspect ratio */
iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
}