Commit 5c2944b4ad237a641b01b843505d2a97d4278ef0

Authored by ykxie
1 parent 17f6424a

add single style

src/css/mobile.css
1 1 .m-title-wrap, .m-label {
2 2 display: none; }
3 3  
4   -@media screen and (max-width: 768px) {
  4 +@media screen and (max-device-width: 414px) {
5 5 .player_volume_wrapper, .ladda-label {
6 6 display: none !important; }
7 7 .m-label {
... ...
src/css/recording.css
... ... @@ -50,7 +50,9 @@
50 50 body {
51 51 background-color: #E9EBF0;
52 52 width: 100%;
53   - height: 100%; }
  53 + height: 100%;
  54 + position: absolute;
  55 + overflow: hidden; }
54 56  
55 57 a {
56 58 text-decoration: none; }
... ...
src/js/gbreplayer.js
... ... @@ -28,8 +28,6 @@ $(function(){
28 28 var title = getQuery('title');
29 29 $('.m-title').html(title);
30 30  
31   - alert(title)
32   -
33 31 if (_role == 0) {
34 32 var apiUrl = gxb_api + "/programming/codeReplay/" + _codeReplayId + "/api";
35 33 getLangid(apiUrl);
... ... @@ -1243,7 +1241,7 @@ $(function(){
1243 1241 }else{
1244 1242 $("#recordpanel").height($(window).height() - $recordpanel.top - 16 - 34);
1245 1243 $("#resultpanel").height($(window).height() - $resultpanel.top - 16 - 34);
1246   - $(".CodeMirror").height($(window).height() - $recordpanel.top - 288);
  1244 + $(".CodeMirror").height($(window).height() - $recordpanel.top - 253);
1247 1245 }
1248 1246 $('#resultoutput').find('.tab-content').height($(window).height() - $resultoutput.top - 40).css({'overflow': "auto"})
1249 1247  
... ...
src/js/player.js
... ... @@ -26,8 +26,6 @@ $(function(){
26 26 var title = getQuery('title');
27 27 $('.m-title').html(title);
28 28  
29   - alert('title')
30   -
31 29 console.log(_role)
32 30  
33 31 CodingEditer.isRecordPage = 0;
... ...
src/player.html
... ... @@ -168,7 +168,17 @@
168 168 .m-label{
169 169 display: none;
170 170 }
171   -
  171 + .m-title-wrap{
  172 + /*display: none;*/
  173 + width: 100%;
  174 + height: 36px;
  175 + line-height: 36px;
  176 + background-color: #FFF;
  177 + display: flex;
  178 + justify-content: space-between;
  179 + padding: 0 24px;
  180 + border-bottom: 1px solid #eee;
  181 + }
172 182 @media screen and (max-device-width: 414px) {
173 183 p{
174 184 margin: 0;
... ... @@ -220,10 +230,14 @@
220 230 display: none !important;
221 231 }
222 232 }
  233 +
223 234 </style>
224 235 </head>
225 236 <body>
226 237 <div id="player">
  238 + <div class="m-title-wrap">
  239 + <div class="m-title"></div>
  240 + </div>
227 241 <div class="play-editor">
228 242 <div class="">
229 243 <button type="button" class="btn btn-success" data-readonly="1" data-target="#saveModal" id="readonly" title="" style="display: none;"></button>
... ...
src/scss/recording.scss
... ... @@ -8,6 +8,8 @@ body{
8 8 background-color: #E9EBF0;
9 9 width: 100%;
10 10 height: 100%;
  11 + position: absolute;
  12 + overflow: hidden;
11 13 }
12 14  
13 15 a{
... ...