Toggle menu
49
33
34
2.1K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox Growing Region/styles.css: Difference between revisions

Template page
Created page with "Template:Infobox Growing Region/styles.css: .lw-infobox.lw-infobox--growing-region { width: 320px; float: right; clear: right; margin: 0 0 1rem 1rem; border: 1px solid rgba(45, 106, 79, 0.18); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.06); font-size: 0.92em; line-height: 1.35; } .lw-infobox__title { background: #2d6a4f; color: #fff; font-size: 1.15em; padding: 0.7rem 0.8rem; text..."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Template:Infobox Growing Region/styles.css */
/* Template:Infobox Growing Region/styles.css */


/* === Base Infobox === */
.lw-infobox.lw-infobox--growing-region {
.lw-infobox.lw-infobox--growing-region {
   width: 320px;
   width: 320px;
Line 6: Line 7:
   clear: right;
   clear: right;
   margin: 0 0 1rem 1rem;
   margin: 0 0 1rem 1rem;
   border: 1px solid rgba(45, 106, 79, 0.18);
   border: 1px solid rgba(45, 106, 79, 0.18);
   border-radius: 14px;
   border-radius: 14px;
Line 12: Line 12:
   background: #fff;
   background: #fff;
   box-shadow: 0 10px 24px rgba(0,0,0,0.06);
   box-shadow: 0 10px 24px rgba(0,0,0,0.06);
   font-size: 0.92em;
   font-size: 0.92em;
   line-height: 1.35;
   line-height: 1.35;
}
}


/* === Header === */
.lw-infobox__title {
.lw-infobox__title {
   background: #2d6a4f;
   background: #2d6a4f;
Line 36: Line 36:
}
}


/* === Media === */
.lw-infobox__media {
.lw-infobox__media {
   padding: 0.55rem 0.55rem 0.35rem 0.55rem;
   padding: 0.55rem 0.55rem 0.35rem 0.55rem;
Line 50: Line 51:
}
}


/* === Map === */
.lw-infobox__map-container {
  position: relative;
  padding: 0 !important;
  border-bottom: 1px solid rgba(45, 106, 79, 0.10);
}
.lw-infobox__map {
  height: 180px;
  width: 100%;
  border-radius: 0;
}
.lw-infobox .lw-map {
  border: none;
  border-radius: 0;
  margin: 0;
  height: 180px;
}
.lw-infobox__map .leaflet-control-zoom {
  margin: 6px !important;
}
.lw-infobox__map .leaflet-control-zoom a {
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  font-size: 14px !important;
}
.lw-infobox__map .lw-layer-toggle {
  margin: 6px !important;
}
.lw-infobox__map .lw-layer-btn {
  width: 26px;
  height: 26px;
}
.lw-infobox__map .lw-layer-btn svg {
  width: 12px;
  height: 12px;
}
.lw-infobox__map-expand {
  display: none;
}
/* === Scaled-down popups for infobox map === */
.lw-infobox--growing-region .lw-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
}
.lw-infobox--growing-region .lw-popup .leaflet-popup-content {
  min-width: 140px;
  max-width: 180px;
  margin: 0;
}
.lw-infobox--growing-region .lw-popup-header {
  padding: 10px 12px;
}
.lw-infobox--growing-region .lw-popup-id {
  font-size: 8px;
  margin-bottom: 2px;
}
.lw-infobox--growing-region .lw-popup-name {
  font-size: 12px;
}
.lw-infobox--growing-region .lw-popup-body {
  padding: 8px 12px;
}
.lw-infobox--growing-region .lw-popup-meta {
  gap: 4px;
  margin-bottom: 4px;
}
.lw-infobox--growing-region .lw-popup-label {
  font-size: 9px;
}
.lw-infobox--growing-region .lw-popup-status {
  padding: 2px 6px;
  font-size: 9px;
}
.lw-infobox--growing-region .lw-popup-status::before {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}
.lw-infobox--growing-region .lw-popup-link {
  padding: 6px 12px;
  font-size: 11px;
}
/* === Data Rows === */
.lw-infobox__label {
.lw-infobox__label {
   width: 42%;
   width: 42%;
Line 69: Line 173:
}
}


/* Mobile: stop floating so it doesn’t crush the lead text */
/* === Mobile === */
@media (max-width: 720px) {
@media (max-width: 720px) {
   .lw-infobox.lw-infobox--growing-region {
   .lw-infobox.lw-infobox--growing-region {

Latest revision as of 06:34, 12 January 2026

/* Template:Infobox Growing Region/styles.css */

/* === Base Infobox === */
.lw-infobox.lw-infobox--growing-region {
  width: 320px;
  float: right;
  clear: right;
  margin: 0 0 1rem 1rem;
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  font-size: 0.92em;
  line-height: 1.35;
}

/* === Header === */
.lw-infobox__title {
  background: #2d6a4f;
  color: #fff;
  font-size: 1.15em;
  padding: 0.7rem 0.8rem;
  text-align: center;
  letter-spacing: 0.2px;
}

.lw-infobox__subtitle {
  padding: 0.45rem 0.8rem;
  text-align: center;
  font-weight: 400;
  font-style: italic;
  color: rgba(0,0,0,0.65);
  background: #ffffff;
  border-bottom: 1px solid rgba(45, 106, 79, 0.10);
}

/* === Media === */
.lw-infobox__media {
  padding: 0.55rem 0.55rem 0.35rem 0.55rem;
  text-align: center;
  background: #ffffff;
}

.lw-infobox__caption {
  padding: 0 0.75rem 0.6rem 0.75rem;
  text-align: center;
  font-size: 0.88em;
  color: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(45, 106, 79, 0.10);
}

/* === Map === */
.lw-infobox__map-container {
  position: relative;
  padding: 0 !important;
  border-bottom: 1px solid rgba(45, 106, 79, 0.10);
}

.lw-infobox__map {
  height: 180px;
  width: 100%;
  border-radius: 0;
}

.lw-infobox .lw-map {
  border: none;
  border-radius: 0;
  margin: 0;
  height: 180px;
}

.lw-infobox__map .leaflet-control-zoom {
  margin: 6px !important;
}

.lw-infobox__map .leaflet-control-zoom a {
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  font-size: 14px !important;
}

.lw-infobox__map .lw-layer-toggle {
  margin: 6px !important;
}

.lw-infobox__map .lw-layer-btn {
  width: 26px;
  height: 26px;
}

.lw-infobox__map .lw-layer-btn svg {
  width: 12px;
  height: 12px;
}

.lw-infobox__map-expand {
  display: none;
}

/* === Scaled-down popups for infobox map === */
.lw-infobox--growing-region .lw-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.lw-infobox--growing-region .lw-popup .leaflet-popup-content {
  min-width: 140px;
  max-width: 180px;
  margin: 0;
}

.lw-infobox--growing-region .lw-popup-header {
  padding: 10px 12px;
}

.lw-infobox--growing-region .lw-popup-id {
  font-size: 8px;
  margin-bottom: 2px;
}

.lw-infobox--growing-region .lw-popup-name {
  font-size: 12px;
}

.lw-infobox--growing-region .lw-popup-body {
  padding: 8px 12px;
}

.lw-infobox--growing-region .lw-popup-meta {
  gap: 4px;
  margin-bottom: 4px;
}

.lw-infobox--growing-region .lw-popup-label {
  font-size: 9px;
}

.lw-infobox--growing-region .lw-popup-status {
  padding: 2px 6px;
  font-size: 9px;
}

.lw-infobox--growing-region .lw-popup-status::before {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}

.lw-infobox--growing-region .lw-popup-link {
  padding: 6px 12px;
  font-size: 11px;
}

/* === Data Rows === */
.lw-infobox__label {
  width: 42%;
  padding: 0.5rem 0.6rem;
  background: rgba(45, 106, 79, 0.06);
  color: rgba(0,0,0,0.78);
  text-align: left;
  vertical-align: top;
}

.lw-infobox__value {
  padding: 0.5rem 0.6rem;
  color: rgba(0,0,0,0.80);
  vertical-align: top;
}

.lw-infobox__status {
  font-weight: 700;
}

/* === Mobile === */
@media (max-width: 720px) {
  .lw-infobox.lw-infobox--growing-region {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }
}