-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
79 lines (70 loc) · 1.29 KB
/
styles.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
body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
font-family: 'Comic Neue', Arial, sans-serif;
background-color: #FFF8DC;
-webkit-app-region: drag;
}
#app-container {
display: flex;
flex-direction: column;
flex: 1;
padding: 20px;
box-sizing: border-box;
overflow: hidden;
position: relative;
}
.buttons-container {
display: flex;
justify-content: center;
/* 按钮居中显示 */
margin-top: 10px;
/* 与文本区域和预览区域之间留些间隔 */
}
#markdown-input,
.toggle-button {
margin: 0 5px;
-webkit-app-region: no-drag;
}
#markdown-input {
flex: 1;
background-color: #FFF8DC;
border: none;
outline: none;
padding: 10px;
font-size: 16px;
color: #333;
resize: none;
overflow-y: auto;
}
#markdown-preview {
display: none;
flex: 1;
padding: 10px;
border: none;
}
.toggle-button {
background-color: #FFD700;
font-weight: bold;
border: none;
color: white;
padding: 10px;
text-align: center;
font-size: 16px;
margin: 10px 5px;
cursor: pointer;
border-radius: 20px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.5s ease;
}
#app-container:hover .toggle-button {
opacity: 1;
}
blockquote {
border-left: 5px solid #ccc;
padding: 0 10px;
margin: 10px 0;
}