MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 20: Line 20:
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
}
.timeline-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-header hr {
  width: 75%;
  background-color: #000000;
  border: 1px solid #000000;
}
}


Line 28: Line 41:
   flex-direction: column;
   flex-direction: column;
   padding: 1em;
   padding: 1em;
   margin: 1em;
   margin: 0.25em;
   /* todo: lightmode */
   /* todo: lightmode */
   background-color: rgba(55, 55, 55, 0.1);
   background-color: rgba(55, 55, 55, 0.1);
Line 38: Line 51:
   --timeline-entry-title-order: 2;
   --timeline-entry-title-order: 2;
   --timeline-entry-time-order: 1;
   --timeline-entry-time-order: 1;
  align-self: end;
}
}


Line 44: Line 58:
   display: flex;
   display: flex;
   justify-content: space-between;
   justify-content: space-between;
  padding: 0.25em;
}
}


Line 52: Line 67:
.timeline-entry--title {
.timeline-entry--title {
   order: var(--timeline-entry-title-order);
   order: var(--timeline-entry-title-order);
  flex-grow: 1;
  text-align: center;
}
}


.timeline-entry--quotebox {
.timeline-entry--quotebox {
   width: 100%;
   width: 100%;
  padding: 0.25em;
}
}


Line 72: Line 90:
.timeline-story--body {
.timeline-story--body {
   width: 100%;
   width: 100%;
  padding: 0.25em;
}
}



Latest revision as of 02:17, 18 December 2023

/*
<div class='timeline-entry--box'>
<div class='timeline-entry--header'>
<div class='timeline-entry--time'>Almost 50,000 Years Ago</div>
<div class='timeline-entry--title'>The Event In Question</div>
</div>
<div class='timeline-entry--quotebox'>
<div class='timeline-entry--quote'>Something Terrible Happened Today (and I'm making it your problem)</div>
<div class='timeline-entry--author'>The Last Remaining Gyaru Auril</div>
<div class='timeline-entry--source'>SoleAdmirers</div>
</div>
<div class='timeline-entry--body'>
<div class='timeline-entry--event'>(insert 50 pages of tragic OC species backstory here)</div>
</div>
</div>
*/

.timeline-container {
  counter-reset: timeline-number;
  display: flex;
  flex-direction: column;
}

.timeline-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-header hr {
  width: 75%;
  background-color: #000000;
  border: 1px solid #000000;
}

.timeline-entry--box {
  counter-increment: timeline-number;
  width: 45%;
  display: flex;
  flex-direction: column;
  padding: 1em;
  margin: 0.25em;
  /* todo: lightmode */
  background-color: rgba(55, 55, 55, 0.1);
  --timeline-entry-title-order: 1;
  --timeline-entry-time-order: 2;
}

.timeline-entry--box:nth-of-type(even) {
  --timeline-entry-title-order: 2;
  --timeline-entry-time-order: 1;
  align-self: end;
}

.timeline-entry--header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0.25em;
}

.timeline-entry--time {
  order: var(--timeline-entry-time-order);
}

.timeline-entry--title {
  order: var(--timeline-entry-title-order);
  flex-grow: 1;
  text-align: center;
}

.timeline-entry--quotebox {
  width: 100%;
  padding: 0.25em;
}

.timeline-entry--quote {

}

.timeline-entry--author {

}

.timeline-entry--source {

}

.timeline-story--body {
  width: 100%;
  padding: 0.25em;
}

.timeline-entry--event {

}