WebJamApps/CollegeLutheran

View on GitHub
static/_mobile.scss

Summary

Maintainability
Test Coverage
@media screen and (min-width: 900px) {
  .drawer-container {
    float: right;
    position: fixed;
    right: 0;
    z-index: 100;
  }

  .main-panel {
    position: relative;
    float: left;
    clear: both;
    height: 100vh;
    width: calc(100% - 220px);
    display: block;
    overflow: hidden;
  }

  .material-header {
    width: 100%;
  }

  .content-block {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 91px;
    margin-right: inherit;
    display: flex;
    flex-direction: column;
  }

  .page-content {
    flex: 1 0 auto;
    border-right: 1px solid #000000;
  }

  ::-webkit-scrollbar:vertical {
    width: 0;
  }

  .newsIFrame {
    width:350px;
    height: 610px;
    border: 1px solid #d3d3d3;
  }
}

@media screen and (max-width: 699px) {
  .wide-thermo {
    display:none;
  }
  .cell-thermo {
    display:block
  }
}

@media screen and (min-width: 700px) {
  .wide-thermo {
    display:block;
  }
  .cell-thermo {
    display:none
  }
}

// NavList Fixes && News Anouncement Fixes

@media screen and (min-width: 320px) and (max-width: 425px) {
  .TableStyle-root {
    width: auto;
    align-self: normal;
    overflow-wrap: break-word;
  }
}

// Fixes links breaking content box on several screen sizes
@media screen and (min-width: 280px) and (max-width: 425px) {
  #contentBlock > div.page-content.family-content > div.container-fluid > div.material-content.elevation3 > section > p
  {
    text-align: left;
    > a {
      overflow-wrap: break-word;
    }
  }
}
// Galaxy Fold
@media (max-width: 285px) {
  .header-text {
    font-size: 20px;
  }
  .giving-iframe {
    width: auto !important;
  }
  // Fixes news table
    // Aligns table properly, fixing words running into themselves
  .TableStyle-root {
    width: auto;
    align-self: normal;
    overflow-wrap: break-word;
  }
    // Makes table not stretch, aligning with the screen width
  .newsTable {
    width: 280px !important;
  }

  // Causes stretching issues if much larger on staff page
  #contentBlock > div.page-content > div > div > div.staffELCA > a #elcaLogo {
    margin: auto auto auto -20px !important;
    width: 255px !important;
  }

  // Centers on /home and /news page
  #contentBlock > div.page-content > div.newsELCA > a #elcaLogo, div.homeELCA > a #elcaLogo {
    margin: auto auto auto -2px !important;
  }

  #elcaLogo {
    width: 273px !important;
    margin: auto auto auto -12px !important;
  }
  #wjfooter {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .footer-links {
    padding: 7px 0 7px 0 !important;
  }
  // Pulls text a bit closer to social media icons
  .nohover {
    margin-left: 15px !important;
  }
  .staff-list li {
    padding: 15px;
    overflow-wrap: break-word;
  }

  .staffPicture {
    width: 230px !important;
  }

  // Pushes text underneath the picture a bit to the center
  .staffDescription {
    margin: auto auto auto 12px;
  }
}

@media screen and (max-width: 350px) {
  // 320x480 android
  .nav-list {
    overflow-y: auto;
    height: 100% !important;
  }
  .newsIframe {
    margin-left: -15px;
    width: 108%;
  }
  // Doesn't have equal spacing on both sides when larger
  .staffPicture {
    width: 270px;
  }
  // Causes stretching issues if much larger on staff page
  #contentBlock > div.page-content > div > div > div.staffELCA > a #elcaLogo {
    margin: auto auto auto -20px !important;
    width: 303px !important;
  }
}

// Galaxy S9/S9+
@media screen and (min-width: 351px) and (max-width: 370px) {
  .nav-list {
    overflow-y: auto;
    height: 100% !important;
  }
}
// iPhone 6/7/8 iOS 11 && iPhone X/XS iOS 12
@media screen and (min-width: 375px) and (max-width: 376px) {
  .nav-list {
    overflow-y: auto;
    height: 100% !important;
  }
}
// iPhone 6/7/8 Plus iOS 11
@media screen and (min-width: 377px) and (max-width: 425px) {
  .nav-list {
    overflow-y: auto;
    height: 100% !important;
  }

  // Brings in line with other pages
  #contentBlock > div.page-content > div.newsELCA > a #elcaLogo, div.homeELCA > a #elcaLogo {
    width: 310px !important;
  }
}

// iPad
@media screen and (min-width: 750px) and (max-width: 769px) {
  .nav-list {
    overflow-y: auto;
    height: 100% !important;
  }
}
// Kindle Fire HDX && Nexus 10
@media screen and (min-width: 800px) and (max-width: 899px) {
  .nav-list {
    overflow-y: auto;
    height: 100% !important;
  }
}

// End Fixes

@media (min-width: 300px) and (max-width: 325px) {
  div.familySlideContainer {
    margin: 0 !important;
  }
}

@media (min-width: 345px) and (max-width: 365px) {
  div.familySlideContainer {
    margin: 0 -20px;
  }
}

@media (min-width: 367px) and (max-width: 399px) {
  .newsIFrame {
    width: 102% !important;
  }
  div.familySlideContainer {
    margin: 0 -27px;
  }
}

@media (min-width: 400px) and (max-width: 419px) {

  .flex-header {
    width: 100% !important;
  }

  img#elcaLogo {
    width: 290px !important;
  }

  .subTitle {
    width: 80% !important;
  }

  #copyInput {
    width: 95%;
    margin-left: 8px;
  }

  #playSection audio {
    background-position: center;
  }

  .familySlideContainer {
    margin: 0 -27px;
  }
}

@media (max-width: 425px) {
  ::-webkit-scrollbar {
    display: none;
  }
  .familySlideContainer {
    margin: 0 -47px;
  }
}

@media screen and (min-width: 320px) and (max-width: 500px) {
  .header-text {
    font-size: 24px;
    margin-top:10px;
  }
}

@media screen and (max-width: 767px) {
  .twitch-container {
    grid-auto-flow: row;
  }
}

@media screen and (max-width: 900px) {
  * {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
  }

  .drawer {
    background-color: rgb(192, 192, 192);
    float: right;
    height: 100%;
  }

  .elevation2 {
    height: 100%;
    max-height: 100%;
  }

  .page-content {
    flex: 1 0 auto;
  }

  .menu-item {
    padding-left: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: 'Trebuchet MS', 'ChivoBlack', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    position: relative;
    min-height: 40px;
    padding-top: 0;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .nav-list {
    position: fixed;
    top: 0 !important;
    right: 0;
    margin: auto;
    padding-top: 1px;
  }

  span {
    text-align: left;
  }

  .main-panel {
    position: relative;
    float: left;
    clear: both;
    height: 100vh;
    width: 100vw;
    display: block;
  }

  .material-header {
    width: 100vw;
  }

  .drawer-container.close {
    display: none;
  }

  .drawer-container.open {
    display: block !important;
    width: 100vw !important;
    z-index: 100 !important;
    background-color: rgba(42, 34, 42, 0.67);
  }

  .content-block {
    width: 100vw !important;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .navImage {
    display: none;
  }

  .swipe-area {
    width: 30px;
    height: 100vh;
  }

  #playerAndButtons button {
    border: 1px solid #cccccc;
  }

  ::-webkit-scrollbar:vertical {
    width: 0;
  }

  .giving-iframe {
    width: 320px;
    height: 750px;
    border: 1px solid #d3d3d3;
  }

  .container-fluid {
    overflow-y: auto;
    padding-bottom: 15px;
  }
}

.drawer-container {
  height: 100vh;
  position: fixed;
  float: right;
  z-index: 100;
  width: 220px;
}

.nav-list {
  position: fixed;
  top: 91px;
  right: 0;
  height: 86vh;
  overflow-x: hidden;
  z-index: 90000;
  background-color: rgb(192, 192, 192);
  overflow-y: auto;
  -webkit-appearance: none;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */

}

.navImage {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #244a8bff;
    margin: auto;
    padding-top: 3px;
    text-align: center;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 12px;
}

::-webkit-scrollbar:vertical {
  width: 12px;
}

::-webkit-scrollbar:horizontal {
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  border: 2px solid #ffffff;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #ffffff;
}

.swipe-area {
  position: absolute;
  width: 0px;
  left: 128px;
  top: 0;
  height: 100%;
  /* background: #f3f3f3; */
  z-index: 9999;
  /* touch-action: auto; */
}