User:Erin Umbreon/citizen.css

From Final Fantasy XIV Online Wiki
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.
:root {
  --mainpage--box-bg: #eeeeee;
  --mainpage--box-shadow: 0 1px 1px rgb(0 0 0 / 0.2);
  --mainpage--header-bg: #293c66;
  --mainpage--button-bg: #4769b3;
  --mainpage--welcome-height: 190px;
}

.mainpage__box {
  background: var(--mainpage--box-bg);
  border-radius: 0.5rem;
  box-shadow: var(--mainpage--box-shadow);
  overflow: hidden;
}

.mainpage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mainpage__welcome {
  position: relative;
  top: calc(-1rem - var(--mainpage--welcome-height));
  height: var(--mainpage--welcome-height);
  margin-top: -1rem;
  margin-bottom: calc(-1 * var(--mainpage--welcome-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mainpage__welcome div {
  font-family: serif;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.mainpage__welcome div::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.mainpage__welcome button {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--mainpage--box-shadow);
  border: none;
  max-width: 75rem;
  height: 50px;
  padding: 0 2rem;
  border-radius: 9999px;
  font-size: inherit;
}

.mainpage__welcome button kbd {
  border: 1px solid #7C99CC;
  background: #DAF6FE;
  border-radius: 3px;
  padding: 0 0.5rem;
  font-size: 1rem;
}

.mainpage__cols {
  display: flex;
  flex-direction: row;
  gap: inherit;
}

.mainpage__cols > div {
  display: flex;
  flex-direction: column;
  align-items: justify;
  gap: inherit;
}

.mainpage__currentevents {
  flex: 2;
}

.mainpage__etc {
  flex: 1;
}

.mainpage__events {
  text-align: center;
  /* hack */
}

.mainpage__carousel {
  box-shadow: var(--mainpage--box-shadow);
  border-radius: 0.5rem;
  overflow: hidden;
}

.mainpage__events img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mainpage__events .img-button {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
}

.mainpage__header {
  background: var(--mainpage--header-bg);
  margin: 0;
  padding: 0.75rem;
  color: white;
  font-size: inherit;
  text-align: center;
  font-weight: bold;
}

.mainpage__button {display: contents;}
.mainpage__button a {
  display: block;
  background: #4769b3;
  border-radius: 1px;
  padding: 0.5em 0;
  text-align: center;
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  /* full radius */
  font-weight: bold;
}

.mainpage__patch {
  padding: 0;
}

.mainpage__patch img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mainpage__patch-list {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #c5c5c5;
}

.mainpage__patch-list li {
  flex: 1;
  padding: 0.25rem 0;
  text-align: center;
  background: linear-gradient(to bottom, #d9d9d9, #d9d9d9);
}

.mainpage__patch-list li + li {
  border-left: 1px solid #c5c5c5;
}

.mainpage__patch .mainpage__button a {
  margin: 0 1rem;
}

.mainpage__patch-content {
  list-style: none;
  margin: 1em;
  padding: 0;
}

.mainpage__patch-content > li {
  background: white;
  padding: 0.25rem;
}

.mainpage__patch-content > li:nth-child(even) {
  background: #f6f6f6;
}

.mainpage__patch-content ul {
  list-style: initial;
}

.mainpage__news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mainpage__news li + li {
  border-top: 1px solid #c7c7c7;
}

.mainpage__news li > * {
  padding: 0.25rem 0.5rem;
}

.mainpage__news h3,
.mainpage__news .mw-heading3 {
  font-size: inherit;
  margin: 0 !important;
  background: #d9d9d9;
}

.mainpage__news p {
  margin: 0;
}

.mainpage__concepts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mainpage__concepts li {
  background: var(--mainpage--box-bg);
  box-shadow: var(--mainpage--box-shadow);
  border-radius: var(--mainpage--box-border-radius, 0.5rem);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-weight: bold;
}

@media screen and (max-width: 1024px) {
  .mainpage__cols,
.mainpage__cols > * {
    display: contents;
  }

  .mainpage__news {
    order: 9;
  }
}