diff --git a/css/1140.css b/css/1140.css index b8d6fa2..3ca85c1 100644 --- a/css/1140.css +++ b/css/1140.css @@ -91,13 +91,11 @@ img { /* Smaller screens */ @media only screen and (max-width: 1023px) { - body { - font-size: 0.8em; - line-height: 1.5em; - } - - } + /* font-size: 0.8em; */ + line-height: 1.5em; + } +} /* Mobile */ diff --git a/css/explaingit.css b/css/explaingit.css index 13f9b22..d1fecec 100644 --- a/css/explaingit.css +++ b/css/explaingit.css @@ -108,10 +108,10 @@ span.cmd { #ExplainGitZen-Container .playground-container { position: absolute; - top: 0; - bottom: 20px; - right: 20px; - left: 20px; + top: 10px; + bottom: 30px; + right: 30px; + left: 30px; } .remote-name-display { @@ -168,7 +168,7 @@ span.cmd { padding-left: 15px; color: #FFF; line-height: 14px; - background: url(../images/prompt.gif) no-repeat left top black; + background: url(../images/prompt.gif) no-repeat left center black; } .control-box input[type="text"] { @@ -322,3 +322,61 @@ g.head-tag > text { font-weight: bold; text-transform: uppercase; } + +/* Mobile/portrait view */ +@media screen and (max-width: 767px), (max-device-width: 1920px) and (orientation: portrait) { + .playground-container { + display: flex; + flex-flow: column; + } + + .control-box { + position: relative; + width: 100%; + flex: 1 1 33%; + order: 1; + display: flex; + flex-flow: column; + overflow: hidden; + } + + .control-box input { + width: calc(100% - 15px) !important; + font-size: 16px !important; + position: relative !important; + } + + .control-box .log { + position: relative; + order: 2; + height: 100%; + top: 0; + bottom: 0; + } + + .scenario-chooser { + position: relative !important; + left: 0 !important; + top: 0 !important; + } + + .svg-container { + position: relative !important; + width: 100%; + flex: 1 1 33%; + left: 0 !important; + min-height: auto !important; + } +} + +@media screen and (min-width: 540px) and (max-device-width: 1920px) and (orientation: portrait) { + body, .control-box .log, .control-box .log div { + font-size: 24px !important; + line-height: 2em !important; + } + + .control-box input { + font-weight: bold; + font-size: 35px !important; + } +} \ No newline at end of file diff --git a/index.html b/index.html index a87e584..77ff1da 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@ +