MediaWiki:Common.css: Difference between revisions

From Fancade Wiki
m (Align image to the center)
m (Add border defaults)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
   width: 256px;
   width: 256px;
   background-color: #f9f9f9;
   background-color: #f9f9f9;
   border: 1px solid #a2a9b1;
   border: 2px solid #808080;
   padding: 5px;
  border-radius: 10px;
  box-shadow: 0px -6px #0004 inset;
   padding: 0.4em 0.4em 1em;
   font-size: 90%;
   font-size: 90%;
   line-height: 1.5em;
   line-height: 1.5em;
Line 17: Line 19:


.infobox-title {
.infobox-title {
   font-size: 110%;
   font-size: 140%;
   font-weight: bold;
   font-weight: bold;
   text-align: center;
   text-align: center;
  background-color: #b0c4de;
   padding: 5px;
   padding: 5px;
   border-bottom: 1px solid #a2a9b1;
   border-bottom: 2px solid #a2a9b1;
}
}


Line 57: Line 58:
   font-weight: bold;
   font-weight: bold;
   background-color: #f2f2f2;
   background-color: #f2f2f2;
}
.notice {
  width: 80%;
  margin: auto;
  background-color: #f9f9f9;
  border: 2px solid #808080;
  border-radius: 10px;
  box-shadow: 0px -6px #0004 inset;
  padding: 0.4em 0.4em 0.6em;
}
}


Line 105: Line 116:


.main-welcome-box {
.main-welcome-box {
   border: 3px solid #000;
  background-color: #f9f9f9;
   border: 3px solid #202020;
   border-radius: 20px;
   border-radius: 20px;
   box-shadow: 0px -10px #0004 inset;
   box-shadow: 0px -10px #0004 inset;

Latest revision as of 16:52, 1 August 2025

/*
 * Global styles
 * Sync with MediaWiki:Mobile.css
 */

.infobox {
  width: 256px;
  background-color: #f9f9f9;
  border: 2px solid #808080;
  border-radius: 10px;
  box-shadow: 0px -6px #0004 inset;
  padding: 0.4em 0.4em 1em;
  font-size: 90%;
  line-height: 1.5em;
  float: right;
  clear: right;
  margin: 0 0 1em 1em;
}

.infobox-title {
  font-size: 140%;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  border-bottom: 2px solid #a2a9b1;
}

.infobox-image {
  text-align: center;
  margin: 5px 0;
}

.infobox-caption {
  font-size: 90%;
  text-align: center;
  padding: 2px 5px;
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
}

.infobox-header th {
  background-color: #e6e6e6;
  font-weight: bold;
  text-align: left;
  padding: 5px;
  border-bottom: 1px solid #a2a9b1;
}

.infobox-row td {
  padding: 2px 5px;
  border-bottom: 1px solid #f2f2f2;
}

.infobox-label {
  font-weight: bold;
  background-color: #f2f2f2;
}

.notice {
  width: 80%;
  margin: auto;
  background-color: #f9f9f9;
  border: 2px solid #808080;
  border-radius: 10px;
  box-shadow: 0px -6px #0004 inset;
  padding: 0.4em 0.4em 0.6em; 
}

.port-rectangle {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: #000000;
  vertical-align: baseline;
}

.port-rectangle-execution {
  background-color: #FFE640;
}

.port-rectangle-number {
  background-color: #00DCFF;
}

.port-rectangle-vector {
  background-color: #00FF80;
}

.port-rectangle-rotation {
  background-color: #FF8040;
}

.port-rectangle-truth {
  background-color: #FF4040;
}

.port-rectangle-object {
  background-color: #FF80C0;
}

.port-rectangle-constraint {
  background-color: #A0AAC8;
}

.main-column-box {
  border: 3px solid #000;
  border-radius: 20px;
  box-shadow: 0px -10px #0004 inset;
  flex: 1 1 30%;
  margin-bottom: 0.4em;
  padding: 0.4em 0.4em 1em;
}

.main-welcome-box {
  background-color: #f9f9f9;
  border: 3px solid #202020;
  border-radius: 20px;
  box-shadow: 0px -10px #0004 inset;
  margin-bottom: 0.4em;
  padding: 0.4em 0.4em 1em;
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 0.4em;
}

.main-image {
  text-align: center;
  border-right: inherit;
}

@media only screen and (max-width: 600px) {
  .main-welcome-box {
    grid-template-columns: auto;
  }

  .main-image {
    border-right: none;
    border-bottom: inherit;
  }
}