Module: LazyMobileTester

Defined in:
lib/lazy_mobile_tester.rb,
lib/lazy_mobile_tester/engine.rb,
lib/lazy_mobile_tester/helper.rb,
lib/lazy_mobile_tester/version.rb,
lib/lazy_mobile_tester/middleware.rb

Defined Under Namespace

Modules: Helper Classes: Engine, Middleware

Constant Summary collapse

VERSION =
"0.1.2"
@@enabled =
true
@@resolutions =
{
  "XS" => {
    w: "320px",
    h: "640px",
    rotate: true,
  },
  "SM" => {
    w: "576px",
    h: "844px",
    rotate: true,
  },
  "MD" => {
    w: "834px",
    h: "1112px",
    rotate: true,
  },
  "LG" => {
    w: "1280px",
    h: "calc(100vh - var(--toolbar-height) - 10px)",
    rotate: false,
  },
  "XL" => {
    w: "1400px",
    h: "calc(100vh - var(--toolbar-height) - 10px)",
    rotate: false,
  },
  "100%" => {
    w: "100%",
    h: "calc(100vh - var(--toolbar-height) - 10px)",
    rotate: false,
  }
}
@@style =
s(
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99999;
  padding: 2px;
  font-size: 8px;
  background: #6f7dba;
  color: white;
  cursor: pointer;
  border: 0 none;
  border-bottom-right-radius: 6px;
)