-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
207 lines (180 loc) · 4.52 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
@font-face {
font-family: "Yonkers"; /*a name to be used later*/
src: url("../../long-s-converter/yonkers.ttf") format("truetype"); /*URL to font*/
}
a {
text-decoration: none;
transition: color 0.1s ease;
}
a:link {
color: #007bff;
}
a:visited {
color: #007bff;
}
a:hover {
color: #003bcf;
}
a:active {
color: orange;
}
body, h1, p {
margin: 1rem;
padding: 0;
}
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
select {
font-size: 0.9rem;
}
p {
color: #666; /* Medium gray color */
line-height: 1.5; /* Increase line height for readability */
margin-bottom: 1rem; /* Space below the paragraph */
}
.header-container {
margin: 1rem;
}
.title {
font-size: 2rem;
display: inline;
color: #333; /* Dark gray color */
margin: 0;
margin-bottom: 1rem; /* Space below the heading */
}
.credit {
font-size: 1rem;
display: inline;
color: #007bff;
margin: 0;
}
.bubble-container {
margin-top: 1.3rem;
margin-bottom: 1.3rem;
margin-left: 0.8rem;
margin-right: 0.8rem;
padding: 1rem 1rem 1rem 1rem; /* Padding inside the container */
background-color: #fff; /* White background for the container */
border-radius: 1rem; /* Rounded corners */
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15); /* Soft shadow effect */
overflow-x: hidden;
overflow-y: auto;
}
textarea {
font-family: Arial;
width: auto;
resize: vertical;
margin: 0;
padding: 0.2rem;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #fffff;
font-size: 1.3rem;
}
.flex-container {
display: flex;
align-items: center; /* Vertically centers the items */
justify-content: space-between; /* Ensures the button is pushed to the right */
gap: 0.5rem; /* Adds space between the elements */
margin-bottom: 1rem;
}
#langOption {
/*flex: 1; Allows the select box to take as much space as needed */
margin-left: 0;
margin-right: auto;
max-width: 6rem; /* Sets a maximum width */
width: 100%; /* Ensures the select box stays responsive */
flex-grow: 0; /* Prevents the select box from growing beyond the max-width */
}
#copy-button {
position: absolute;
right: 0;
bottom: 0;
font-size: 1.5rem;
padding: 0.2rem 0.3rem;
background: rgba(60,60,60,0.35);
color: #fff;
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: background 0.3s;
}
#copy-button:hover {
background: rgba(60,60,60,0.6);
}
#notification {
display: none; /* Hide by default */
background-color: rgba(0, 128, 255, 0.8);
color: white;
padding: 10px;
border-radius: 5px;
position: absolute;
bottom: 20px;
right: 20px;
opacity: 1; /* Fully visible */
transition: opacity 1s ease; /* Fade transition */
}
#convert-button {
font-size: 1rem;
padding: 0.9rem 1.8rem;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: background-color 0.3s;
}
#convert-button:hover {
background-color: #0056b3;
}
.ui-container {
width: 100%;
display: inline-flex; /* Flexbox layout */
flex-direction: row; /* By default, items will be in a row */
justify-content: space-between; /* Spread the input and output boxes */
align-items: start; /* Align them vertically in the center */
gap: 1rem; /* Space between the input and output */
padding: 0;
overflow-x: hidden;
overflow-y: auto;
}
/* Input box styling */
#inputText {
width: 100%;
flex: 1;
margin: 0;
padding: 1rem;
min-height: 10rem;
}
#outputTextbox {
line-break: auto;
}
/* Output box styling */
#outputText {
font-family: "Yonkers";
width: 100%;
min-height: 10rem;
font-size: 1.58rem;
flex: 1;
margin: 0;
padding: 1rem;
box-sizing: border-box;
background-color: #f0f0f0;
border: 0;
border-radius: 0.5rem;
overflow: hidden;
position: relative;
line-break: auto;
}
/* Media query to stack elements on smaller screens */
@media (max-width: 45rem) {
.ui-container {
flex-direction: column; /* Stack input and output vertically */
}
#inputBox, #outputBox {
width: auto; /* Full width when stacked */
}
}