forked from mdnice/markdown-nice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.css
executable file
·132 lines (116 loc) · 2.18 KB
/
App.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.nice-app {
height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
font-family: "PingFang SC", BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serifhtml, body;
font-size: 16px;
}
.nice-text-container {
display: flex;
height: calc(100vh - 50px);
width: 100%;
}
.nice-text-container-immersive {
display: flex;
height: 100vh;
width: 100%;
}
.nice-md-editing-immersive {
padding: 0px;
width: 100%;
}
.nice-md-editing-immersive .CodeMirror-lines {
padding: 20px;
}
@media screen and (min-width: 768px) {
.nice-md-editing-immersive .CodeMirror-lines {
padding: 20px 10%;
}
}
@media screen and (min-width: 1024px) {
.nice-md-editing-immersive .CodeMirror-lines {
padding: 20px 15%;
}
}
/* 编辑器最多会被分成三份width:33.3%,当两份时根据flex-grow:1伸展 */
.nice-md-editing,
.nice-style-editing {
position: relative;
width: 33.3%;
flex-grow: 1;
word-wrap: break-word;
z-index: 1;
}
.nice-marked-text {
display: flex;
justify-content: center;
width: 33.3%;
flex-grow: 1;
padding: 20px;
word-wrap: break-word;
position: relative;
}
.nice-marked-text-pc {
padding: 0;
}
.nice-wx-box {
overflow-y: auto;
padding: 25px 20px;
height: 100%;
width: 375px;
box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}
.nice-wx-box-pc {
width: 100%;
padding: 20px 35px 20px 20px;
box-shadow: none;
}
.nice-style-editing-hide {
display: none;
}
.nice-md-editing-hide {
display: none;
}
.nice-marked-text-hide {
display: none;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
border-radius: 3px;
background: rgba(0, 0, 0, 0.06);
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}
::-webkit-scrollbar-thumb {
border-radius: 3px;
background: rgba(0, 0, 0, 0.12);
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}
@media print {
.nice-md-editing {
display: none;
}
.nice-navbar {
display: none;
}
.nice-sidebar {
display: none;
}
.nice-wx-box {
overflow: visible;
box-shadow: none;
width: 100%;
}
.nice-style-editing {
display: none;
}
#nice-rich-text {
padding: 0 !important;
}
.nice-footer-container {
display: none;
}
}