Commit b1eb90e3f734469d71276348aadd49a5f4df10b0
1 parent
602ae0e3
test
Showing
3 changed files
with
104 additions
and
0 deletions
src/css/mobile.css
0 → 100644
| 1 | +.m-title-wrap, .m-label { | |
| 2 | + display: none; } | |
| 3 | + | |
| 4 | +@media screen and (max-device-width: 414px) { | |
| 5 | + #ideDir { | |
| 6 | + display: none; } | |
| 7 | + .player_volume_wrapper, .ladda-label { | |
| 8 | + display: none !important; } | |
| 9 | + .m-label { | |
| 10 | + display: block; } | |
| 11 | + #componentWrapper .player_mediaTime_total { | |
| 12 | + border-right: none; } | |
| 13 | + #componentWrapper .progress_bg { | |
| 14 | + height: 4px; } | |
| 15 | + #componentWrapper .load_progress { | |
| 16 | + height: 4px; } | |
| 17 | + #componentWrapper .play_progress { | |
| 18 | + height: 4px; | |
| 19 | + background: #FFF; } | |
| 20 | + .m-title-wrap { | |
| 21 | + z-index: 99999; | |
| 22 | + height: 36px; | |
| 23 | + line-height: 36px; | |
| 24 | + background-color: #FFF; | |
| 25 | + display: block; | |
| 26 | + justify-content: space-between; | |
| 27 | + padding: 0 24px; | |
| 28 | + border-bottom: 1px solid #eee; | |
| 29 | + white-space: nowrap; | |
| 30 | + overflow: auto; } | |
| 31 | + .m-title-wrap .m-title { | |
| 32 | + float: left; } | |
| 33 | + .m-title-wrap .m-title, .m-title-wrap .m-menu { | |
| 34 | + padding-right: 12px; } | |
| 35 | + .CodeMirror-gutter { | |
| 36 | + width: 24px !important; | |
| 37 | + min-width: 24px !important; } | |
| 38 | + .record-wrap .m-dir-wrap { | |
| 39 | + display: none; | |
| 40 | + background-color: rgba(45, 48, 56, 0.8); | |
| 41 | + position: absolute; | |
| 42 | + z-index: 9999; | |
| 43 | + width: 100%; | |
| 44 | + height: 100%; } | |
| 45 | + .record-wrap #ideDir { | |
| 46 | + height: auto; | |
| 47 | + float: right; } | |
| 48 | + .record-wrap #ideEditer { | |
| 49 | + width: 100%; | |
| 50 | + height: calc(100% - 286px); } | |
| 51 | + .console-wrap { | |
| 52 | + padding-left: 0; | |
| 53 | + bottom: 40px; | |
| 54 | + padding-bottom: 40px; | |
| 55 | + height: auto; } | |
| 56 | + .console-wrap .CodeMirror-gutter { | |
| 57 | + display: none; | |
| 58 | + margin-left: 0; } | |
| 59 | + .console-wrap #toolbar { | |
| 60 | + padding: 0; } | |
| 61 | + #playFooter { | |
| 62 | + height: 40px; | |
| 63 | + background-color: rgba(0, 0, 0, 0.5); | |
| 64 | + padding: 0px 4px; } | |
| 65 | + .console-wrap #toolbar .func { | |
| 66 | + height: 56px; | |
| 67 | + padding-top: 0; | |
| 68 | + position: absolute; | |
| 69 | + right: 16px; | |
| 70 | + bottom: 54px; | |
| 71 | + z-index: 9999; } | |
| 72 | + #full-screen { | |
| 73 | + display: none; } | |
| 74 | + .compile-btn { | |
| 75 | + padding: 0; | |
| 76 | + height: 56px; | |
| 77 | + width: 56px; | |
| 78 | + border-radius: 50%; | |
| 79 | + color: #FFF; | |
| 80 | + background-image: -webkit-linear-gradient(left, #1FB6FF 0%, #62DCF5 100%); | |
| 81 | + background-image: linear-gradient(to right, #1FB6FF 0%, #62DCF5 100%); } | |
| 82 | + .m-menu { | |
| 83 | + color: #1FB6FF; } | |
| 84 | + .m-menu img { | |
| 85 | + width: 16px; | |
| 86 | + vertical-align: middle; } | |
| 87 | + .ladda-button .ladda-spinner { | |
| 88 | + top: 50%; | |
| 89 | + left: 50%; | |
| 90 | + transform: translate(-50%, -50%); } | |
| 91 | + .ladda-button[data-style=expand-right][data-loading] { | |
| 92 | + padding-right: 0 !important; } | |
| 93 | + .player_volume_wrapper { | |
| 94 | + display: none; } | |
| 95 | + .full { | |
| 96 | + display: none; } | |
| 97 | + #resultoutput .tab-content > .tab-pane { | |
| 98 | + padding-bottom: 64px; } } | ... | ... |
src/scss/mobile.scss
src/v1.1/player.html
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | <html lang="en"> |
| 3 | 3 | <head> |
| 4 | 4 | <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui"> | |
| 5 | 6 | <title></title> |
| 6 | 7 | <link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css"> |
| 7 | 8 | <!-- <link href="../css/codemirror.css" rel="stylesheet"> --> |
| ... | ... | @@ -18,6 +19,7 @@ |
| 18 | 19 | |
| 19 | 20 | <link rel="stylesheet" href="../gxb-ide/toolBox.css"> |
| 20 | 21 | <link rel="stylesheet" href="../css/ide.css"> |
| 22 | + <link rel="stylesheet" href="../css/mobile.css"> | |
| 21 | 23 | |
| 22 | 24 | <script> |
| 23 | 25 | var gxb_api = "https://restful.gaoxiaobang.com"; | ... | ... |