@@ -14,79 +14,50 @@ html, body, .wrapper {
1414.edit-container {
1515 background-color : # f9f9f9 ;
1616 position : relative;
17- height : 100% ;
1817}
1918
20- .content {
21- top : 52px ;
22- bottom : 0 ;
23- margin : 0 ;
24- padding : 0 ;
19+ .edit-container section .content {
2520 width : 100% ;
26- z-index : 99 ;
27- overflow : hidden;
21+ padding : 0 ;
2822 position : absolute;
23+ top : 0 ;
24+ bottom : 0 ;
2925}
3026
31- @media (max-width : 767px ) {
32- .edit-container {
33- margin-top : 100px ;
34- }
35- .content {
36- top : 0 ;
37- }
27+ .content .pane {
28+ position : relative;
29+ padding : 0 ;
3830}
3931
4032# codePane {
41- width : 660px ;
4233 height : 100% ;
43- position : absolute;
4434 box-shadow : 2px 0px 6px # cccccc ;
4535}
4636
47- .contentTool {
48- height : 44px ;
49- line-height : 44px ;
50- box-shadow : 0px 2px 10px # dddddd ;
51- }
52-
53- .editorBtn {
54- display : inline-block;
55- width : 60px ;
56- height : 30px ;
57- text-align : center;
58- line-height : 30px ;
59- color : # 0083CB ;
60- float : right;
61- cursor : pointer;
62- margin : 8px 4px ;
63- border-radius : 2px ;
64- }
65-
66- .editorBtn : hover {
67- font-weight : bolder;
68- }
69-
70- .editorBtn span {
71- width : 24px ;
72- height : 24px ;
37+ .codePaneTool {
38+ position : absolute;
39+ width : 100% ;
40+ height : 40px ;
41+ line-height : 24px ;
42+ z-index : 800 ;
43+ background-color : white;
44+ padding : 8px 22px ;
45+ box-shadow : 0 2px 10px # dddddd ;
7346}
7447
7548# editor {
7649 font-family : Consolas, monaco, 'Courier New' , Courier, monospace;
7750 position : absolute;
51+ top : 42px ;
7852 bottom : 0 ;
79- top : 46 px ;
53+ right : 0 ;
8054 width : 100% ;
81- font-size : 12px ;
55+ line-height : 18px ;
56+ font-size : 13px ;
8257}
8358
84- # preview {
59+ # previewPane {
8560 height : 100% ;
86- right : 0 ;
87- min-width : 400px ;
88- margin-left : 662px ;
89- position : relative;
9061}
9162
9263# innerPage {
@@ -95,34 +66,46 @@ html, body, .wrapper {
9566 border : none;
9667}
9768
98- @media screen and (max-width : 1024px ) {
99- # codePane {
100- width : 340px ;
101- height : 100% ;
102- position : absolute;
103- box-shadow : 3px 0px 6px # cccccc ;
104- }
69+ .editorBtn {
70+ display : inline-block;
71+ width : 60px ;
72+ height : 24px ;
73+ line-height : 24px ;
74+ text-align : center;
75+ color : # 0083CB ;
76+ float : right;
77+ cursor : pointer;
78+ }
10579
106- # preview {
107- height : 100% ;
108- margin-left : 340px ;
109- position : relative;
110- }
80+ .editorBtn : hover {
81+ font-weight : bold;
82+ }
83+
84+ # showCodeBtn {
85+ cursor : pointer;
86+ z-index : 900 ;
87+ position : absolute;
88+ right : 0 ;
89+ top : 0 ;
90+ width : 54px ;
91+ height : 30px ;
92+ line-height : 30px ;
93+ margin : 4px ;
94+ text-align : center;
95+ background-color : rgba (34 , 45 , 50 , 0.7 );
96+ color : # fff ;
11197}
11298
113- @media screen and (min-width : 1024px )and ( max-width : 1400px ) {
99+ # showCodeBtn : hover {
100+ background-color : rgba (34 , 45 , 50 , 0.9 );
101+ }
102+
103+ @media screen and (max-width : 992px ) {
114104 # codePane {
115- width : 500px ;
116- height : 100% ;
117- position : absolute;
118- box-shadow : 3px 0px 6px # cccccc ;
105+ display : none;
119106 }
120-
121- # preview {
122- height : 100% ;
123- margin-left : 502px ;
124- min-width : 400px ;
125- position : relative;
107+ .codePaneTool {
108+ padding : 8px 68px 8px 20px ;
126109 }
127110}
128111
@@ -134,4 +117,4 @@ html, body, .wrapper {
134117 border-radius : 12px ;
135118 background : # e7e7e7 ;
136119 -webkit-box-shadow : inset 0 0 6px # d1cfcf ;
137- }
120+ }
0 commit comments