Jump to content

MediaWiki:Common.css: Difference between revisions

From Adaris
Created page with "General Infobox Styling: .infobox { width: 300px; Adjust width: background: #f7efe3; Soft parchment color: border: 2px solid #a67c52; A warm brown border: padding: 10px; margin: 0 10px 10px 0; border-radius: 10px; Soft rounded corners: box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); Subtle shadow: } Table styling inside the infobox: .infobox th { background: #a67c52; Brownish header: color: white;..."
 
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* General Infobox Styling */
/* General Infobox Styling */
.infobox {
.infoboxTable {
     width: 300px; /* Adjust width */
     width: 300px; /* Adjust width */
     background: #f7efe3; /* Soft parchment color */
     background: #f7efe3; /* Soft parchment color */
Line 11: Line 11:


/* Table styling inside the infobox */
/* Table styling inside the infobox */
.infobox th {
.infoboxTable th {
     background: #a67c52; /* Brownish header */
     background: #a67c52; /* Brownish header */
     color: white; /* White text */
     color: white; /* White text */
Line 21: Line 21:


/* Table cells (data) */
/* Table cells (data) */
.infobox td {
.infoboxTable td {
     padding: 8px;
     padding: 8px;
     border-bottom: 1px solid #ddd;
     border-bottom: 1px solid #ddd;
Line 27: Line 27:
}
}


/* Image Styling */
/* Hide empty figcaption below the image */
.infobox img {
.infoboxTable figure figcaption {
     width: 100%; /* Ensure image fits the box */
    display: none;
}
 
/* Center images inside the infobox */
.infoboxTable figure {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
/* Make images fit neatly */
.infoboxTable img {
     width: 100%;
    max-width: 250px;
     border-radius: 5px;
     border-radius: 5px;
     border: 1px solid #8c6239;
     border: 1px solid #8c6239;
     margin-top: 5px;
}
 
/* Hide the infobox title row */
.infoboxTable .infoboxTitle {
     display: none;
}
 
@import url('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@main/dist/en/v7.0.0/legacy/ol.css');
 
#adaris-continent-map {
    width: 100%;
    height: 80vh;
    min-height: 650px;
    background: #111;
    border: 1px solid #5b4a32;
}
 
#adaris-continent-map,
#adaris-continent-map .ol-viewport {
    background: #f2e4c9;
}
 
.pixel-area-tool {
  max-width: 420px;
  padding: 1em;
  border: 1px solid #c8b89e;
  border-radius: 6px;
  background: #f7efe3;
}
 
.pixel-area-tool h3 {
  margin-top: 0;
}
 
.pixel-area-tool label {
  display: block;
  margin-bottom: 0.75em;
}
 
.pixel-area-tool input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25em;
  padding: 0.35em;
}
 
.pixel-area-tool button {
  margin-top: 0.5em;
  padding: 0.4em 0.8em;
  cursor: pointer;
}
 
#pixel-area-result {
  margin-top: 1em;
  font-size: 1.1em;
}
 
.adaris-tool-box {
  max-width: 400px;
  padding: 1em;
  margin: 1em 0;
  border: 1px solid #aaa;
  background: #f9f5ec;
}
 
.adaris-tool-box input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.4em;
  padding: 0.35em;
}
}

Latest revision as of 18:37, 7 May 2026

/* General Infobox Styling */
.infoboxTable {
    width: 300px; /* Adjust width */
    background: #f7efe3; /* Soft parchment color */
    border: 2px solid #a67c52; /* A warm brown border */
    padding: 10px;
    margin: 0 10px 10px 0;
    border-radius: 10px; /* Soft rounded corners */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Table styling inside the infobox */
.infoboxTable th {
    background: #a67c52; /* Brownish header */
    color: white; /* White text */
    text-align: left;
    padding: 8px;
    font-weight: bold;
    border-bottom: 2px solid #8c6239;
}

/* Table cells (data) */
.infoboxTable td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

/* Hide empty figcaption below the image */
.infoboxTable figure figcaption {
    display: none;
}

/* Center images inside the infobox */
.infoboxTable figure {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make images fit neatly */
.infoboxTable img {
    width: 100%;
    max-width: 250px;
    border-radius: 5px;
    border: 1px solid #8c6239;
}

/* Hide the infobox title row */
.infoboxTable .infoboxTitle {
    display: none;
}

@import url('https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@main/dist/en/v7.0.0/legacy/ol.css');

#adaris-continent-map {
    width: 100%;
    height: 80vh;
    min-height: 650px;
    background: #111;
    border: 1px solid #5b4a32;
}

#adaris-continent-map,
#adaris-continent-map .ol-viewport {
    background: #f2e4c9;
}

.pixel-area-tool {
  max-width: 420px;
  padding: 1em;
  border: 1px solid #c8b89e;
  border-radius: 6px;
  background: #f7efe3;
}

.pixel-area-tool h3 {
  margin-top: 0;
}

.pixel-area-tool label {
  display: block;
  margin-bottom: 0.75em;
}

.pixel-area-tool input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25em;
  padding: 0.35em;
}

.pixel-area-tool button {
  margin-top: 0.5em;
  padding: 0.4em 0.8em;
  cursor: pointer;
}

#pixel-area-result {
  margin-top: 1em;
  font-size: 1.1em;
}

.adaris-tool-box {
  max-width: 400px;
  padding: 1em;
  margin: 1em 0;
  border: 1px solid #aaa;
  background: #f9f5ec;
}

.adaris-tool-box input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.4em;
  padding: 0.35em;
}