Module:Message box/tmbox.css

From Zoophilia Wiki
Revision as of 02:38, 22 November 2024 by SockyPaws (talk | contribs) (Import missing TemplateStyles page from English Wikipedia)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
.tmbox {
  background-color: #f8eaba;
  border: 1px solid #c0c090;  /* Default "notice" gray-brown */
  border-collapse: collapse;
  box-sizing: border-box;
  margin: 4px 0;
}

/* For the "small=yes" option. */
.tmbox.mbox-small {
  font-size: 0.88em;
  line-height: 1.25;
}

.tmbox-speedy {
  background-color: #fee7e6;  /* Pink */
  border: 2px solid #b32424;  /* Red */
}

.tmbox-delete {
  border: 2px solid #b32424;  /* Red */
}

.tmbox-content {
  border: 2px solid #f28500;  /* Orange */
}

.tmbox-style {
  border: 2px solid #fc3;  /* Yellow */
}

.tmbox-move {
  border: 2px solid #9932cc;  /* Purple */
}

.tmbox .mbox-text {
  border: none;
  /* @noflip */
  padding: 0.25em 0.9em;
  width: 100%;
}

.tmbox .mbox-image {
  border: none;
  /* @noflip */
  padding: 2px 0 2px 0.9em;
  text-align: center;
}

.tmbox .mbox-imageright {
  border: none;
  /* @noflip */
  padding: 2px 0.9em 2px 0;
  text-align: center;
}

/* An empty narrow cell */
.tmbox .mbox-empty-cell {           
  border: none;
  padding: 0;
  width: 1px;
}

.tmbox .mbox-invalid-type {
  text-align: center;
}

@media (min-width: 720px) {
  .tmbox {
    margin: 4px 10%;
  }

  .tmbox.mbox-small {
    /* @noflip */
    clear: right;
    /* @noflip */
    float: right;
    /* @noflip */
    margin: 4px 0 4px 1em;
    width: 238px;
  }
}

@media screen {
  html.skin-theme-clientpref-night .tmbox {
    background-color: #2e2505;  /* Dark brown, same hue/saturation as light */
  }

  html.skin-theme-clientpref-night .tmbox-speedy {
    background-color: #310402;  /* Dark red, same hue/saturation as light */
  }
}

@media screen and ( prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .tmbox {
    background-color: #2e2505;  /* Dark brown, same hue/saturation as light */
  }

  html.skin-theme-clientpref-os .tmbox-speedy {
    background-color: #310402;  /* Dark red, same hue/saturation as light */
  }
}

/** T367463 */
body.skin--responsive table.tmbox img {
  max-width: none !important;
}