-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
136 lines (118 loc) · 2.35 KB
/
style.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
133
134
135
136
:root {
--white: #ffffff;
--black: #000000;
--red: #ff0000;
--yellow: #f9e42d;
--green: #00bf7d;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Arial", sans-serif;
background-color: var(--white);
display: flex;
flex-direction: column;
align-items: center;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--black);
color: var(--white);
padding: 1rem 2rem;
width: 100%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.header h1 {
font-size: 1.5rem;
}
.file-name input {
width: 15rem;
padding: 0.5rem;
font-size: 1rem;
border-radius: 0.5rem;
border: 1px solid var(--black);
}
.code-editor {
width: 80vw;
height: 80vh;
display: grid;
grid-template-columns: repeat(2, 1fr);
background-color: var(--white);
border-radius: 1rem;
overflow: hidden;
margin-top: 2rem;
border: 1px solid black;
}
.code {
display: grid;
grid-template-rows: repeat(3, 1fr);
overflow-y: auto;
background-color: var(--white);
padding: 1rem;
border-radius: 0 1rem 1rem 0;
}
h1 {
font: 600 1.2rem sans-serif;
margin: 1rem 0;
color: var(--white);
}
h1 > img {
width: 1.3rem;
margin-right: 1rem;
vertical-align: middle;
}
.code textarea {
width: 100%;
height: calc(100% - 4rem);
background-color: var(--white);
color: var(--black);
border: none;
padding: 1rem;
font-size: 1.1rem;
resize: vertical;
border: 1px solid #000;
}
.code h1{
color: var(--black);
}
#result {
width: 100%;
height: 100%;
border: 1px solid black;
}
.buttons {
display: flex;
justify-content: flex-start;
align-items: center;
margin-top: 1rem;
}
.buttons button {
color: var(--white);
padding: 0.5rem 1rem;
font-size: 1.2rem;
cursor: pointer;
margin-right: 1rem;
border: none;
border-radius: 0.5rem;
transition: background-color 0.2s, transform 0.2s, outline 0.2s;
}
.buttons button.reset {
background-color: var(--red);
}
.buttons button.save {
background-color: var(--green);
}
.buttons button.download {
background-color: var(--yellow);
}
.buttons button:hover {
outline: 2px solid;
transform: scale(1.1);
background-color: white;
color: black;
}