Template:TheoryBox/styles.css

Template page
< Template:TheoryBox
Revision as of 14:38, 2 August 2022 by Kaladin (talk | contribs) (Created page with "→‎Theory Box CSS Grid: .TheoryBoxTitle { grid-area: TheoryBoxTitle; } .TheoryBoxDifficulty { grid-area: TheoryBoxDifficulty; } .TheoryBoxContent { grid-area: TheoryBoxConte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Theory Box CSS Grid */
.TheoryBoxTitle { grid-area: TheoryBoxTitle; }
.TheoryBoxDifficulty { grid-area: TheoryBoxDifficulty; }
.TheoryBoxContent { grid-area: TheoryBoxContent; }
.TheoryBoxVidArea { grid-area: TheoryBoxVidArea; }

@media screen and (min-width: 900px) {
  .TheoryBoxContainer {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  
    grid-template-areas:
      "TheoryBoxTitle TheoryBoxDifficulty"
      "TheoryBoxContent TheoryBoxVidArea";
  
    padding: 10px 10px 5px 15px;
    max-width: 1500px;
  }
  .TheoryBoxContent {
    padding-right: 3em;
  }
}
@media screen and (max-width: 899px) {
.TheoryBoxContainer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);
  grid-column-gap: 0px;
  grid-row-gap: 0px;

  grid-template-areas:
    "TheoryBoxTitle TheoryBoxDifficulty"
    "TheoryBoxVidArea TheoryBoxVidArea"
    "TheoryBoxContent TheoryBoxContent";

  padding: 10px;
  max-width: 1500px;
}
}

.TheoryBoxVideo {
  overflow: hidden;
  border-radius: 10px;
  line-height: 0px;
  text-align: center;
}