Sha256: ecdc5fb147cd49fa615dfc141f14d6bd19f4d97b0c0339f32bc6d5b59cef4e4e

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

body.simple {
  button,
  input[type=submit] {
    -webkit-appearance: none; // turn off iOS's button re-styling
  }
}

// general adjustment to switch to mobile mode
@media only
screen and (max-width: 550px),
screen and (max-height: 550px) {
  body.simple {
    -webkit-text-size-adjust: none; // turn off iOS's text scaling

    footer {
      display: none;
    }

    header {
      text-align: center;

      .tagline {
        border: none;
        margin: 0;
        height: initial;

        p {
          padding: 0;
        }
      }
    }

    section#contents-container {
      margin: 0;

      form {
        label {
          display: inline;
          font-size: 16px;
        }

        input[type=text],
        input[type=password] {
          margin-top: 5px;
          font-size: 24px;
          height: 50px;
        }

        input[type=submit] {
          width: 100%;
          height: 50px;
          font-size: 120%;
        }

      }

      .wrapper {
        padding: 0;

        #content {
          border: none;
          border-radius: 0;
          box-shadow: none;
          width: auto;
        }
      }
    }

  }

}

// specific tweaks for horizontal mode
@media only
screen and (max-height: 426px) {
  body.simple {
    header {
      padding: 0;

      .tagline {
        display: none;
      }
    }

    section#contents-container {

      form {
        label {
          font-size: 12px;
        }

        input[type=text],
        input[type=password] {
          font-size: 16px;
          height: 34px;
          margin-bottom: 10px;
        }

        input[type=submit] {
          height: 34px;
        }

      }

      .wrapper {
        #content {
          padding: 10px;
        }
      }
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lay_me_out-1.2.9 app/assets/stylesheets/lay_me_out/simple_mobile.css.scss
lay_me_out-1.2.8 app/assets/stylesheets/lay_me_out/simple_mobile.css.scss