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

Template:Home/FeaturedAlert/styles.css: Difference between revisions

Template page
No edit summary
mNo edit summary
Line 3: Line 3:
}
}


.home-event .home-card__background:after {
/*
* Theme gradient color
* FIXME: Find a way to make customize it through wikitext
*/
background: linear-gradient(to right,#101e3c,transparent);
}
.home-card__foreground {
.home-card__foreground {
   position: absolute;
   position: absolute;
Line 31: Line 24:
   line-height: var(--line-height-xs);
   line-height: var(--line-height-xs);
}
}
.home-card__background::after {
.home-event .home-card__background::after {
   position: absolute;
   position: absolute;
   pointer-events: none;
   pointer-events: none;

Revision as of 05:32, 26 October 2023

.home-event .home-card {
	height: 5rem;
}

.home-card__foreground {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xxs);
  color: #fff;
  line-height: var(--line-height-xs);
  pointer-events: none;
}
.home-card__header {
  color: var(--color-base--emphasized);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-xs);
}
.home-event .home-card__background::after {
  position: absolute;
  pointer-events: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  background: linear-gradient(to right,#000,transparent);
  content: "";
}