MediaWiki:Gadget-eventslist.css

From [N8]
Revision as of 15:06, 9 June 2020 by Banri (talk | contribs) (Created page with "========= SCROLL =========: experimental: .events-popup::-webkit-scrollbar { width: 1em; } .events-popup::-webkit-scrollbar-track { background: #222e45; } .ev...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ========= SCROLL ========= */
/* experimental */

.events-popup::-webkit-scrollbar {
  width: 1em;
}

.events-popup::-webkit-scrollbar-track {
  background: #222e45;
}

.events-popup::-webkit-scrollbar-thumb {
  background: #43557a;
  border-radius: 4px;
  border: 2px solid #222e45;
}

.events-popup::-webkit-scrollbar-thumb:hover {
  background: #596e96;
}

/* ========== Top bar link ========== */
#pt-events .oo-ui-icon-calendar {
  width: 15px;
  min-width: 15px;
  height: 15px;
  background-size: 14px;
  display: block;
  background-repeat: no-repeat;
  background-image: url(/load.php?format=rasterized&image=calendar&lang=en-gb&modules=oojs-ui.styles.icons-editing-advanced&skin=vector&version=10racrr);
  background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Ecalendar%3C/title%3E%3Cpath d=%22M18 3h-3V1h-2v2H7V1H5v2H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 14H2V8h16zm-2-6h-4v4h4z%22 fill='%23787776' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 1;
}
body.wgl-darkmode #pt-events .oo-ui-icon-calendar {
  background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Ecalendar%3C/title%3E%3Cpath d=%22M18 3h-3V1h-2v2H7V1H5v2H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 14H2V8h16zm-2-6h-4v4h4z%22 fill='%23cbd9f4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ========== General ========== */

.rsw-events-popup.oo-ui-labelElement-invisible.oo-ui-widget.oo-ui-widget-enabled.oo-ui-labelElement.oo-ui-floatableElement-floatable.oo-ui-popupWidget-anchored.oo-ui-popupWidget.oo-ui-popupWidget-anchored-top {
	margin-top: 15px; /* aligning with other top popups */
}

/* border for whole modal */
.rsw-events-popup .oo-ui-popupWidget-popup {
  border-color: #e4eaee;
  box-shadow: 0 0.5em 2em rgba(0,0,0,0.25);
}

body.wgl-darkmode .rsw-events-popup .oo-ui-popupWidget-popup {
  border-color: #596e96;
}

/* OOUI Invisible Labels */
.oo-ui-labelElement-invisible > span.oo-ui-labelElement-label,
.oo-ui-labelElement-invisible > a.oo-ui-buttonElement-button > .oo-ui-labelElement-label,
.oo-ui-labelElement-invisible > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header > .oo-ui-labelElement-label {
  display: block;
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
}
.oo-ui-labelElement-invisible.oo-ui-buttonElement-framed.oo-ui-iconElement.oo-ui-labelElement > .oo-ui-buttonElement-button {
  padding: 2.14286em 0.857143em 0 2.14286em;
}

.rsw-events-popup {
  font-size: 0.875em;
}

/* arrow */
.rsw-events-popup.oo-ui-popupWidget-anchored-top .oo-ui-popupWidget-anchor::after {
  border-bottom-color: #e4eaee;
}

.rsw-events-popup.oo-ui-popupWidget-anchored-top .oo-ui-popupWidget-anchor {
	z-index: 999;
}

body.wgl-darkmode .rsw-events-popup.oo-ui-popupWidget-anchored-top .oo-ui-popupWidget-anchor::after {
  border-bottom-color: #596e96;
}

.events-popup,
.events-settings .settings-container,
.events-settings .notifs-container {
  /* border: 1px solid #E4EAEE; Needs to be done to ooui popup not this container*/
  background-color: white;
  color: #444e5a;
  padding: 1.75em 2em;
}
/* Dark mode base colors */
body.wgl-darkmode .events-popup,
body.wgl-darkmode .events-settings .settings-container,
body.wgl-darkmode .events-settings .notifs-container {
  background-color: #222e45;
  color: #cbd9f4;
}

/* ========== Events popup ========== */
.events-popup h3,
.events-settings h3 {
  padding-top: 0;
  padding-bottom: 0;
}
.events-popup h3 a,
.events-settings h3 a {
  color: #444e5a;
}
body.wgl-darkmode .events-popup h3 a,
body.wgl-darkmode .events-settings h3 a {
  color: #cbd9f4;
}

.events-popup .now {
  font-weight: bold;
  background-color: #dbf2c7;
  color: #3d6917;
}
body.wgl-darkmode .events-popup .now {
  background-color: #3c780a;
  color: #c3e8a3;
}
body.wgl-darkmode .events-popup .now a,
body.wgl-darkmode .events-popup .events-list .now a {
  color: #c3e8a3;
}
.events-popup .now a,
.events-popup .events-list .now a {
  color: #3d6917;
}
.events-popup .event-box.now {
  font-weight: normal;
  background-color: #dbf2c7;
  color: #3d6917;
}
.events-popup .event-box.now a {
  color: #3d6917;
}
body.wgl-darkmode .events-popup .event-box.now {
  background-color: #3c780a;
  color: #c3e8a3;
}
body.wgl-darkmode .events-popup .event-box.now a {
  color: #c3e8a3;
}
.events-popup .now .daily-next,
.events-popup .now .event-next,
.events-popup .now .by-line,
.events-popup .now.by-line {
  color: #699741;
}
body.wgl-darkmode .events-popup .now .daily-next,
body.wgl-darkmode .events-popup .now .event-next,
body.wgl-darkmode .events-popup .now .by-line,
body.wgl-darkmode .events-popup .now.by-line {
  color: #a0c581;
}
.events-popup .events-list li.now:hover {
  background-color: #d1ecb9;
}
body.wgl-darkmode .events-popup .events-list li.now:hover {
  background-color: #2e5e05;
}

.events-popup .middle:not(:empty) {
  border-top: 1px solid #e4eaee;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
}
body.wgl-darkmode .events-popup .middle {
  border-color: #596e96;
}

.events-popup .col {
  flex: 1 1 50%;
}
.events-popup .col-l {
  padding-right: 1rem;
}
.events-popup .col-r {
  padding-left: 1rem;
}
.events-popup .col .section + .section:not(:empty) {
  margin-top: 1.25em;
}

.events-popup .by-line {
  color: #949eaa;
  font-size: 0.9em;
  margin-bottom: 0.75em;
}

body.wgl-darkmode .events-popup .by-line {
  color: #97a9c8;
}

.events-popup .event-boxes {
  display: flex;
  justify-content: center;
  margin: 0 -0.4em;
}
.events-popup .event-boxes > .event-box {
  text-align: center;
  margin: 0 0.4em;
  flex: 1 1 100rem;
}
/* only used  for ROTS current/next/west/east labels */
.events-popup .event-boxes > .box-title {
  text-align: center;
  font-weight: bold;
  margin: -0.2em 0.4em -0.4em;
  flex: 1 1 100rem;
}
.events-popup .event-box {
  background-color: #f9fafa;
  border-radius: 0.25em;
  padding: 0.95em 0.75em;
  transition: 0.2s ease;
  text-align: center;
}
body.wgl-darkmode .events-popup .event-box {
  background-color: #313e59;
}
.events-popup .event-box .by-line {
  margin-bottom: -0.25em;
  display: block;
}
.events-popup .event-box .event-name {
  line-height: 1;
  display: block;
  margin-top: 5px;
  font-weight: normal;
}

.events-popup time {
  font-weight: bold;
  cursor: help;
}

/* == Header == */
.events-popup .header {
  background-color: #f9fafa;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 0.75em 1em;
  border-bottom: 1px solid #e4eaee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.wgl-darkmode .events-popup .header {
  background-color: #313e59;
  border-color: #596e96;
}

/* Close button */
#rsw-events-close {
  z-index: 1;
}

.events-popup .header .cur-utc-time {
  font-size: 120%;
  cursor: help;
}

/* == Top section == */
.events-popup .top {
  display: flex;
  margin-top: 2.75em;
}

/* Dailies list */
.events-popup .events-list {
  list-style: none;
  margin: 0;
}
.events-popup .events-list li {
  display: flex;
  margin-bottom: 0.5rem;
  line-height: 1.5em;
  border-radius: 0.25em;
  transition: 0.2s ease;
  padding: 0.05em 0.5em;
  margin: 0 -0.5em;
}
.events-popup .events-list li + li {
  margin-top: 0.3em;
}
.events-popup .events-list li:hover {
  background-color: #f9fafa;
}
body.wgl-darkmode .events-popup .events-list li:hover {
  background-color: #313e59;
}
.events-popup .events-list li label {
  flex: 1;
  font-weight: normal;
}
.events-popup .events-list a {
  color: #444e5a;
}
body.wgl-darkmode .events-popup .events-list a {
  color: #cbd9f4;
}
.events-popup .daily-title,
.events-popup .event-title {
  flex: 1;
}
.events-popup .daily-timer,
.events-popup .event-timer {
  margin-left: 1em;
  font-weight: bold;
  text-align: right;
  min-width: 2em;
}
.events-popup .daily-next,
.events-popup .event-next {
  margin-left: 1em;
  text-align: right;
  min-width: 2em;
  color: #949eaa;
}

body.wgl-darkmode .events-popup .daily-next,
body.wgl-darkmode .events-popup .event-next {
  color: #97a9c8;
}

/* Raven */
.events-popup .raven-status {
  line-height: 1.5em;
  border-radius: 0.25em;
  transition: 0.2s ease;
  padding: 0.05em 0.5em;
  margin: 0 -0.5em;
}

/* Resets  */

/* Voice of Seren */
.events-popup .VoS-container .VoS-district {
  display: flex;
  align-items: center;
  padding: .95em;
}
.events-popup .VoS-container .VoS-image {
  height: 52px;
  margin: 0 .3em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.events-popup .VoS-container .VoS-text {
  margin-left: 0.5em;
  text-align: left;
  flex: 1;
}
.events-popup .VoS-container .VoS-text span {
  cursor: help;
}
.events-popup .VoS-district a {
  color: inherit;
}

.events-popup .VoS-container .VoS-Amlodd {
    background-image: url('filepath://Amlodd_Clan_icon%402x.png');
    width: 23px;
}
.events-popup .VoS-container .VoS-Crwys {
    background-image: url('filepath://Crwys_Clan_icon%402x.png');
    width: 33px;
}
.events-popup .VoS-container .VoS-Cadarn {
    background-image: url('filepath://Cadarn_Clan_icon%402x.png');
    width: 39px;
}
.events-popup .VoS-container .VoS-Hefin {
    background-image: url('filepath://Hefin_Clan_icon%402x.png');
  width: 31px;
}
.events-popup .VoS-container .VoS-Iorwerth {
    background-image: url('filepath://Iorwerth_Clan_icon%402x.png');
    width: 56px;
}
.events-popup .VoS-container .VoS-Ithell {
    background-image: url('filepath://Ithell_Clan_icon%402x.png');
    width: 50px;
}
.events-popup .VoS-container .VoS-Meilyr {
    background-image: url('filepath://Meilyr_Clan_icon%402x.png');
    width: 26px;
}
.events-popup .VoS-container .VoS-Trahaearn {
    background-image: url('filepath://Trahaearn_Clan_icon%402x.png');
    width: 31px;
}


/* == Events Team == */
.events-popup .events-team {}


/* == TMS / POF section == */
.events-popup .tms-pof.usecols {
  display: flex;
}
.events-popup .tms-pof-cols.usecols {
  display: flex;
}
.events-popup .tms-pof-cols.usecols > div {
  flex: 1 1 50%;
}
.events-popup .tms-pof-cols.usecols > div:first-child {
  padding-right: 1rem;
}
.events-popup .tms-pof-cols.usecols > div:last-child {
  padding-left: 1rem;
}
.events-popup .tms-today,
.events-popup .buyers {
  margin-bottom: .6em;
}
/* vertically and horizontally center inv icons in square */
.events-popup .tms-today .event-box,
.events-popup .tms-tomorrow .event-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* == PvM section == */
.events-popup .pvm {
  display: flex;
}

.events-popup .pvm li span {
  text-align: right;
  font-weight: bold;
  margin-left: 1em;
}

.events-popup .pvm .event-boxes {
  margin: 0.8em -0.4em;
}
.events-popup .pvm .event-boxes + .event-boxes {
  margin-top: 0;
}
.events-popup .pvm .event-boxes:last-child {
  margin-bottom: 0;
}

.events-popup .vorago-value .event-box {
  display: flex;
  align-items: center;
}
.events-popup .vorago-value .event-box > div {
  flex: 1;
}

.events-popup .rots-value .event-title {
  display: block;
}
.events-popup .rots-value .event-title + .event-title {
  border-top: 1px solid #edf0f0;
  margin-top: 0.5em;
  padding-top: 0.5em;
}
body.wgl-darkmode .events-popup .rots-value .event-title + .event-title {
  border-color: #596e96;
}


/* == Spotlights section == */
.events-popup .spotlights {
  background-color: #f9fafa;
  display:  flex;
  flex-flow: row nowrap;
  justify-content: center;
  margin: 1.5em -2em -1.75rem;
  padding: 1.25em 0;
  border-top: 1px solid #e4eaee;
}
body.wgl-darkmode .events-popup .spotlights {
  background-color: #313e59;
  border-color: #596e96;
}
.events-popup.spotlights-empty .spotlights {
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
}


.events-popup .spotlight-spacer {
  flex: 1 0 1em;
}
.events-popup .spotlight-spacer:first-child,
.events-popup .spotlight-spacer.first,
.events-popup .spotlight-spacer:last-child {
  flex: 0.5 0 2em;
}
.events-popup .spotlight-spacer.empty {
  flex: 0;
}
.events-popup .spotlight {
  padding: 0;
  flex: 0 1 auto;
}
.events-popup .spotlight a {
  color: inherit;
}
.events-popup .spotlight:empty {
  width: 0;
  padding: 0;
  flex: 0;
}

.events-popup .spotlight label {
  display: block;
  color: #949eaa;
  font-size: 90%;
}

body.wgl-darkmode .events-popup .spotlight label {
  color: #97a9c8;
}

.events-popup .spotlight label.sl-next {
  margin: 0.7em 0 -0.2em;
}
.events-popup .spotlight label.sl-next,
.events-popup .spotlight span.sl-next {
  font-size: 85%;
}
.events-popup .spotlight  time.sl-next {
  font-size: 80%;
}


/* == Footer == */
/* TODO: Remove this */
.events-popup .footer {
  background-color: #f9fafa;
  text-align: center;
  margin: 0 -2em -1.75em;
  padding: 0 2em 1.25em;
}
body.wgl-darkmode .events-popup .footer {
  background-color: #313e59;
  border-color: #cbd9f4;
}
.events-popup.spotlights-empty .footer {
  margin-top: 1.5em;
  padding-top: 1.25em;
  border-top: 1px solid #444e5a;
}

/* ========== Settings ========== */  
#rsw-events-backbut {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
}

.events-settings .settings-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  opacity: 0.5;
}
.events-settings .settings-container {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 25em;
  width: 50%;
  max-height: calc(100% - 4em);
  overflow-y: scroll;
}

.events-settings .oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header,
.events-settings .oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
  width: 55%;
  margin-right: 5%;
}
.events-settings .oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field,
.events-settings .oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
  width: 40%;
}

.events-settings .footer {
  background-color: #f9fafa;
  margin: 1.5em -2em -1.75em;
  padding: 1.25em 2em;
  text-align: center;
  color: #949eaa;
}
.events-settings .footer a,
.events-settings .footer a:hover,
.events-settings .footer a:focus {
  color: #949eaa;
}
body.wgl-darkmode .events-settings .footer {
  background-color: #313e59;
}

/* ========== Notification Settings ========== */ 
#rsw-notifs-backbut {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.events-notifs .notifs-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  opacity: 0.3;
}

.events-notifs .notifs-container {
  position: absolute;
  top: 0;
  right: 0;
  left: 2rem;
  bottom: 0;
  overflow-y: scroll;
}

.notifs-group .oo-ui-multiselectWidget-group {
  padding: 0 2em;
}

/* ========== Animations ========== */ 
/* Safari, Chrome and Opera > 12.1 */

.events-settings {
  position: absolute;
  top: 0;
  left: 0;
  right:  0;
  bottom: 0;
}

/* prevent scroll when notifs opens */
.events-settings .settings-container {
  overflow-x: hidden;
}

.events-settings .settings-container,
.events-settings .notifs-container {
  -webkit-transition: transform 0.5s;
  -moz-transition: transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
}
.events-settings.slideout .settings-container,
.events-notifs.slideout .notifs-container {
  transform: translateX(100%);
}

.events-settings .settings-overlay,
.events-settings .notifs-overlay {
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
}
.events-settings.slideout .settings-overlay,
.events-notifs.slideout .notifs-overlay {
  opacity: 0;
}

/* ========== Notifications Popup ========== */ 
#rsw-notifs-anchor {
  position: fixed;
  top: 0.5em;
  right: 0.5em;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
body.wgl-stickyheader #rsw-notifs-anchor {
  top: 3em;
}

.rsw-events-notifs {
  z-index: 600;
  box-shadow: 0px 0px 8px 4px rgba(0, 0, 0, 0.8);
  font-size: 0.875em;
}

.event-notifs-container {
  padding: 1.5em 1.5em;
}

/* Close button */
#rsw-eventsnotifs-close {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  z-index: 1;
}

.event-notifs-container .event-notifications {
  list-style: none;
  margin: 0;
}

.event-notifs-container .event-notifications li:not(:first-child) {
  margin-top: 1em;
}

.event-notifs-container .notif-image {
  display: inline-block;
  float: left;
  margin-right: 1em;
}
.event-notifs-container .notif-image img {
  max-height: 50px;
  max-width: 50px;
}

.event-notifs-container .event-notif label {
  font-weight: bold;
  font-size: 110%;
  display: block;
}

.event-notifs-container .event-notif span {
  margin-left: 1em;
}

.event-notifs-container .event-notif::after {
  content: '';
  clear: both;
  display: block;
}