-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
101 lines (88 loc) · 1.8 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* Modern CSS Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
align-items: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
min-height: 100vh;
}
/* Header Styles */
h1 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 2.5em;
text-align: center;
}
h2 {
color: #34495e;
font-size: 1.2em;
margin: 10px 0;
}
/* Container Styles */
.editor-container {
width: 100%;
max-width: 1200px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.preview-container {
width: 100%;
max-width: 1200px;
}
/* Editor Styles */
textarea {
width: 100%;
height: 300px;
padding: 15px;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 14px;
line-height: 1.5;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #fff;
resize: vertical;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: border-color 0.3s, box-shadow 0.3s;
}
textarea:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}
/* Preview Styles */
#preview {
width: 100%;
height: 500px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Responsive Design */
@media (max-width: 768px) {
body {
padding: 10px;
}
.editor-container {
grid-template-columns: 1fr;
}
textarea {
height: 200px;
}
#preview {
height: 300px;
}
h1 {
font-size: 2em;
}
}