Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ESWording/styles.css: Difference between revisions

Template page
Content deleted Content added
// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 84: Line 84:
.es-wording-container .ability-bar-title p,
.es-wording-container .ability-bar-title p,
.es-wording-container .tag-text,
.es-wording-container .tag-text,
.es-wording-container .ability-bar-content:not(.tag-container):not(.tag-symbol):last-child {
.es-wording-container .ability-bar-content:not(.tag-container):not(.tag-symbol):not(a):not(.tag-pill):last-child {
filter: brightness(0.5);
filter: brightness(0.5);
}
}

Revision as of 08:25, 23 April 2025

@keyframes spinMask {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.es-container {
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius--large);
  background-color: #0000001A;
  padding: 1em;
  overflow: hidden;
  position: relative;
}

.es-container::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.25;
  background-image: url("https://raw.githubusercontent.com/foundryvtt/dnd5e/refs/heads/4.4.x/ui/texture-gray1.webp");
  background-repeat: no-repeat;
  background-size: cover;
}

.es-mask-rotator {
  --spell-circle-after: url("https://548916280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpaqFHtSBIvRvOg8Wfmx5%2Fuploads%2FWEViu7j32vfudpdSmvEG%2FSpell%20Circle.svg?alt=media&token=e1e66eeb-da0d-47fa-b71b-d823fbfe3cd7");

  position: absolute;
  top: calc(100% - 2em);
  left: calc(100% - 2em);
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  opacity: 0.2;

  mask-image: var(--spell-circle-after);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation-play-state: running;

  pointer-events: none;
  z-index: 0;

  animation: spinMask 300s linear infinite;
}

.es-wording-container {
  padding-left: 1em;
  padding-right: 1em;
  position: relative;
  z-index: 1;
}

.es-wording-container a {
  color: unset;
}

.es-intro {
  font-family: "Mea Culpa", cursive;
  font-weight: 400;
  font-style: normal;
  display: block;
  font-size: 2em;
  user-select: none;
}

.es-wording {
  font-family: "Quintessential", serif;
  font-weight: 400;
  font-style: normal;
}

@media (prefers-color-scheme: light) {
  .es-wording-container .ability-bar-title a,
  .es-wording-container .ability-bar-title p,
  .es-wording-container .tag-text,
  .es-wording-container .ability-bar-content:not(.tag-container):not(.tag-symbol):not(a):not(.tag-pill):last-child {
    filter: brightness(0.5);
  }

  /* .es-wording-container :not(.tag) a {
    filter: brightness(0.25);
  } */

  .es-intro {
    filter: brightness(0.3);
  }

  .es-mask-rotator {
    filter: brightness(0.8);
  }
}


@media (prefers-color-scheme: dark) {
  .es-wording-container {
    filter: brightness(1);
  }

  .es-intro {
    filter: brightness(1);
  }

  .es-mask-rotator {
    filter: brightness(0.6);
  }
}