To create a page. Send a message

MediaWiki:Common.css: Difference between revisions

From EverybodyWiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS for Infoboxes */
/* Make inputbox responsive */
.infobox {
.responsive-inputbox input[type="text"] {
    border: 1px solid #aaa;
  width: 100% !important;
    background-color: #f9f9f9;
  max-width: 100%;
    color: black;
  box-sizing: border-box;
    margin: 0.5em 0 0.5em 1em;
  padding: 12px;
    padding: 0.2em;
  font-size: 16px;
    float: right;
    clear: right;
    width: 22em;
    font-size: 90%;
    line-height: 1.5em;
}
}


/* Make the button responsive too */
.infobox-title {
.responsive-inputbox input[type="submit"] {
    font-size: 125%;
  font-size: 16px;
    font-weight: bold;
  padding: 10px 15px;
    text-align: center;
  margin-top: 10px;
    background-color: #8F731F;
    padding: 10px 0.2em;
    color: white;
}
}


/* Optional: Stack input and button on small screens */
.infobox-image {
@media (max-width: 600px) {
    text-align: center;
  .responsive-inputbox form {
    padding: 0.3em;
     display: flex;
}
     flex-direction: column;
 
     gap: 10px;
.infobox-heading {
  }
    background-color: #ddf;
    text-align: center;
    font-weight: bold;
}
 
.infobox-label {
     width: 30%;
     padding: 0.2em;
    vertical-align: top;
     text-align: left;
    font-weight: bold;
}
 
.infobox-data {
    width: 70%;
    padding: 0.2em;
    vertical-align: top;
}
}

Latest revision as of 08:23, 30 August 2025

/* CSS for Infoboxes */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    width: 22em;
    font-size: 90%;
    line-height: 1.5em;
}

.infobox-title {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
    background-color: #8F731F;
    padding: 10px 0.2em;
    color: white;
}

.infobox-image {
    text-align: center;
    padding: 0.3em;
}

.infobox-heading {
    background-color: #ddf;
    text-align: center;
    font-weight: bold;
}

.infobox-label {
    width: 30%;
    padding: 0.2em;
    vertical-align: top;
    text-align: left;
    font-weight: bold;
}

.infobox-data {
    width: 70%;
    padding: 0.2em;
    vertical-align: top;
}