Template:Explorer Note/styles.css

From ARK Wiki
Jump to navigation Jump to search
.dossier-stack {
  position: relative;
  display: block;
}
.dossier-stack__book {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.explorer-note.dossier-background {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0.4rem 1.5rem;
    box-sizing: border-box;
    width: auto;
    /*max-height: 43em;
    overflow-y: auto;*/
}
.explorer-note__content {
	flex-grow: 1;
}
.explorer-note.dossier-background:last-child {
  width: auto;
}
.explorer-note__image {
	margin: 0 auto;
}
.explorer-note .tabber__panel {
  padding-top: 0.5rem;
}
.explorer-note .tabber__tab {
  font-size: 90%;
}
.explorer-notes {
	--explorer-note-column-setup: repeat( auto-fit, minmax( calc( 380px + 4vw ), 1fr ) );
  display: grid;
  grid-template-columns: var(--explorer-note-column-setup);
  gap: 0.4rem 0.6rem;
}

@media screen and (max-width: 1200px) {
	.explorer-notes {
	--explorer-note-column-setup: repeat( auto-fit, minmax( calc( 340px + 1vw ), 1fr ) );
	}
}

@media screen and (max-width: 1500px) {
	.explorer-notes {
	--explorer-note-column-setup: repeat( auto-fit, minmax( calc( 340px + 2vw ), 1fr ) );
	}
}

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

.explorer-note__spoiler {
  overflow: clip;
  box-shadow: 0 0 .4rem #000;
  position: relative;
  border-radius: 0.8rem;
}
.explorer-note div[data-spoiler-enhancement="true"] > :not( [ data-ignore-spoiler="true" ] ) {
	transition: filter .2s ease-out, box-shadow .1s ease-out;
}
.explorer-note__spoiler > :not( [ data-ignore-spoiler="true" ] ) {
  filter: saturate(0.8) brightness(0.4) blur(24px);
}

.explorer-note__unspoiler {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.8em;
  color: var(--content-header-color);
  appearance: none;
  background: none;
  border: none;
  line-height: 1.4;
  cursor: pointer;
  z-index: 5;
  bottom: 0;
  right: 0;
  padding: 2rem;
}

.explorer-note__footer {
   display: flex;
   justify-content: space-between;
   margin-top: 0.5rem;
   align-items: flex-start;
   gap: 0.7rem;
}

.explorer-note__author {
  white-space: nowrap;
  text-align: right;
  flex-grow: 1;
  margin-top: -0.3rem;
}