diff --git a/css/1140.css b/css/1140.css index b8d6fa2..9b1a3da 100644 --- a/css/1140.css +++ b/css/1140.css @@ -87,6 +87,9 @@ img { height: auto; } +.mobile-tabs { + display: none; +} /* Smaller screens */ @@ -108,7 +111,7 @@ img { font-size: 16px; -webkit-text-size-adjust: none; } - + .row, body, .container { width: 100%; min-width: 0; @@ -127,4 +130,86 @@ img { padding-right: 20px; } + /* Re-arrange layout */ + body #ExplainGitZen-Container .playground-container { + display: flex; + flex-direction: column; + margin: 0; + left: 0; + right: 0; + bottom: 0; + } + + body #ExplainGitZen-Container .control-box { + width: 100%; + height: 30vh; + bottom: 0; + top: auto; + z-index: 105; + background-color: white; + } + + body #ExplainGitZen-Container .control-box input[type="text"] { + width: 100vw; + height: 40px; + box-sizing: border-box; + border-top: 1px solid gray; + } + + body #ExplainGitZen-Container .control-box .log { + bottom: 40px; + padding-bottom: 10px; + } + + body #ExplainGitZen-Container .svg-container { + position: static; + width: 100%; + height: calc(70vh - 15px); + margin-top: 11px; + border: none; + } + + /* Tabbed view for Remote scenarios */ + #ExplainGitZen-Container .svg-container.remote-container { + height: 70vh; + min-height: auto; + } + + #ExplainGitZen-Container .svg-container.remote-container + #ExplainGitZen-Origin { + height: 90%; + } + + #ExplainGitZen-Container .svg-container.remote-container.hidden { + opacity: 0; + pointer-events: none; + } + + .mobile-tabs { + display: flex; + position: fixed; + z-index: 105; + width: 100%; + background-color: white; + } + + .mobile-tabs.hidden { + display: none; + } + + .mobile-tabs span { + display: flex; + justify-content: center; + align-items: center; + width: 50%; + text-align: center; + height: 40px; + font-weight: bold; + cursor: pointer; + } + + .tab-origin { + background-color: #eff1ff; + } + } \ No newline at end of file diff --git a/index.html b/index.html index a87e584..c7b1255 100644 --- a/index.html +++ b/index.html @@ -11,6 +11,7 @@ gtag('config', 'UA-115441830-1'); + Visualizing Git @@ -23,6 +24,11 @@ + +