-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
138 lines (120 loc) · 2.09 KB
/
index.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
137
138
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Roboto", sans-serif;
background-color: #f5f5f5;
}
main {
display: grid;
grid-template-columns: 40% 1fr;
gap: 1rem;
height: 100%;
padding: 1rem;
}
main textarea {
resize: vertical;
border: none;
outline: none;
font-size: 1.5rem;
padding: 1rem;
border: 1px solid #ccc;
border-radius: 8px;
max-width: 100%;
height: 100%;
}
main textarea:focus {
border: 1px solid #000;
}
main #result {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
main #result .actions {
display: flex;
align-items: center;
width: 100%;
gap: 1rem;
}
main #result button {
padding: 1rem;
height: 10vh;
width: 20vh;
border: none;
outline: none;
border-radius: 8px;
background-color: #000;
color: #fff;
cursor: pointer;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.6rem;
}
main #result button:hover {
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
main #result button#convert {
background-color: #000;
color: #fff;
transition: transform 0.3s;
}
main #result button#convert:hover {
background-color: #353535;
color: #fff;
transform: scale(1.07);
}
main #result button#copy {
background-color: #fff;
height: 10vh;
width: 20vh;
color: #000;
border: 1px solid #ccc;
transition: transform 0.3s;
}
main #result button#copy:hover {
background-color: #fff;
color: #000;
border: 1px solid #ccc;
transform: scale(1.07);
}
main .output {
width: 100%;
border-radius: 8px;
}
main .output pre {
font-size: 1.5rem;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
max-width: 100%;
}
main .output pre code {
font-family: "Roboto Mono", monospace;
white-space: pre-wrap;
word-break: break-all;
}
.rotate-img {
animation: spin 1s linear;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media (max-width: 768px) {
main {
grid-template-columns: 100%;
gap: 2rem;
}
}