Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:FertilizerWindows/styles.css: Difference between revisions

Template page
Created page with "========================= Fertilization Timeline =========================: .vp-fert-timeline { display: flex; border: 3px solid var(--vp-journal-border); border-radius: 10px; overflow: hidden; margin-top: 0.5em; } Individual time windows: .vp-fert-window { flex: 1; text-align: center; padding: 6px; border-right: 3px solid var(--vp-journal-border); background: var(--vp-journal-bg); } .vp-fert-window:last-child { border-right: non..."
 
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =========================
/* =========================
   Fertilization Timeline
   Title pill (text-height only)
  ========================= */
 
.vp-fert-title {
  display: inline-flex;
  align-items: center;
  background: var(--vp-journal-text);
  color: #000;
  padding: 0 6px;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: larger;
  font-family: 'VPTIP';
  line-height: 1;
  height: 2em;
  margin-bottom: 4px;
}
 
/* =========================
  Timeline container
   ========================= */
   ========================= */


.vp-fert-timeline {
.vp-fert-timeline {
   display: flex;
   display: flex;
   border: 3px solid var(--vp-journal-border);
   border: 2px solid #3e7a3e;
   border-radius: 10px;
   border-radius: 8px;
   overflow: hidden;
   overflow: hidden;
   margin-top: 0.5em;
   align-items: stretch;
}
}
 
/* =========================
/* Individual time windows */
  Individual windows
  ========================= */


.vp-fert-window {
.vp-fert-window {
   flex: 1;
   flex: 1;
   text-align: center;
   display: flex;
   padding: 6px;
   flex-direction: column;
   border-right: 3px solid var(--vp-journal-border);
   border-right: 2px solid #3e7a3e;
   background: var(--vp-journal-bg);
   background: #eaf5e4;
}
}


Line 25: Line 45:
}
}


/* Alternating time coloration */
/* Header */


.vp-fert-window:nth-child(odd) {
.vp-fert-header {
   background: #dff1c9;
  background: #cfe8c6;
}
  font-weight: bold;
  padding: 4px;
   border-bottom: 2px solid #3e7a3e;
  text-align: center;


.vp-fert-window:nth-child(even) {
  display: flex;
   background: #fff2b3;
  align-items: center;
}
   justify-content: center;


/* Labels */
   height: 100%;
 
.vp-fert-label {
   font-family: 'VPTIP';
  font-size: 0.9em;
  margin-bottom: 4px;
  text-shadow: 1px 1px 2px #003366;
}
}


/* Fertilizer icons */
/* =========================
  ICON CELLS
  ========================= */


.vp-fert-icons img {
.vp-fert-icons {
   width: 40px !important;
   text-align: center;
   height: 40px !important;
   padding: 6px;
  margin: 2px;
}
}


/* Note text */
/* =========================
  Note
  ========================= */


.vp-fert-note {
.vp-fert-note {
Line 62: Line 82:


/* =========================
/* =========================
   Mobile Layout
   Mobile
   ========================= */
   ========================= */


Line 72: Line 92:


   .vp-fert-window {
   .vp-fert-window {
    display: grid;
    grid-template-columns: 3fr 2fr;
     border-right: none;
     border-right: none;
     border-bottom: 3px solid var(--vp-journal-border);
     border-bottom: 2px solid #3e7a3e;
   }
   }


Line 80: Line 102:
   }
   }


  .vp-fert-header {
    border-bottom: none;
    border-right: 2px solid #3e7a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  .vp-fert-icons {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .vp-fert-icons img {
    width: 34px !important;
    height: 34px !important;
  }
}
.vp-fert-bag {
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}
}

Latest revision as of 12:38, 26 February 2026

/* =========================
   Title pill (text-height only)
   ========================= */

.vp-fert-title {
  display: inline-flex;
  align-items: center;
  background: var(--vp-journal-text);
  color: #000;
  padding: 0 6px;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: larger;
  font-family: 'VPTIP';
  line-height: 1;
  height: 2em;
  margin-bottom: 4px;
}

/* =========================
   Timeline container
   ========================= */

.vp-fert-timeline {
  display: flex;
  border: 2px solid #3e7a3e;
  border-radius: 8px;
  overflow: hidden;
  align-items: stretch;
}
/* =========================
   Individual windows
   ========================= */

.vp-fert-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 2px solid #3e7a3e;
  background: #eaf5e4;
}

.vp-fert-window:last-child {
  border-right: none;
}

/* Header */

.vp-fert-header {
  background: #cfe8c6;
  font-weight: bold;
  padding: 4px;
  border-bottom: 2px solid #3e7a3e;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
}

/* =========================
   ICON CELLS
   ========================= */

.vp-fert-icons {
  text-align: center;
  padding: 6px;
}

/* =========================
   Note
   ========================= */

.vp-fert-note {
  margin-top: 0.4em;
  font-size: 0.85em;
  text-align: center;
  font-family: 'VPTIP';
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {

  .vp-fert-timeline {
    flex-direction: column;
  }

  .vp-fert-window {
    display: grid;
    grid-template-columns: 3fr 2fr;
    border-right: none;
    border-bottom: 2px solid #3e7a3e;
  }

  .vp-fert-window:last-child {
    border-bottom: none;
  }

  .vp-fert-header {
    border-bottom: none;
    border-right: 2px solid #3e7a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .vp-fert-icons {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .vp-fert-icons img {
    width: 34px !important;
    height: 34px !important;
  }

}

.vp-fert-bag {
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}