-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
139 lines (123 loc) · 2.53 KB
/
Copy pathstyles.css
File metadata and controls
139 lines (123 loc) · 2.53 KB
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
133
134
135
136
137
138
139
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
h1 {
color: #2c3e50;
font-size: 2rem;
}
#clearBtn {
padding: 8px 16px;
background-color: #e74c3c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s;
}
#clearBtn:hover {
background-color: #c0392b;
}
.editor-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
height: calc(100vh - 150px);
}
.editor-section, .preview-section {
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
display: flex;
flex-direction: column;
}
h2 {
color: #2c3e50;
margin-bottom: 15px;
font-size: 1.5rem;
}
#editor {
flex: 1;
width: 100%;
padding: 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
resize: none;
outline: none;
}
#preview {
flex: 1;
overflow-y: auto;
padding: 15px;
}
/* Markdown Preview Styles */
#preview h1 { font-size: 2em; margin-bottom: 0.5em; }
#preview h2 { font-size: 1.5em; margin-bottom: 0.5em; }
#preview h3 { font-size: 1.17em; margin-bottom: 0.5em; }
#preview p { margin-bottom: 1em; }
#preview ul, #preview ol { margin-bottom: 1em; padding-left: 2em; }
#preview code {
background-color: #f8f9fa;
padding: 2px 4px;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
}
#preview pre {
background-color: #f8f9fa;
padding: 15px;
border-radius: 4px;
overflow-x: auto;
margin-bottom: 1em;
}
#preview blockquote {
border-left: 4px solid #ddd;
padding-left: 1em;
margin-bottom: 1em;
color: #666;
}
#preview a {
color: #3498db;
text-decoration: none;
}
#preview a:hover {
text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 768px) {
.editor-container {
grid-template-columns: 1fr;
}
.container {
padding: 10px;
}
header {
flex-direction: column;
gap: 10px;
text-align: center;
}
h1 {
font-size: 1.5rem;
}
}