-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.css
126 lines (108 loc) · 2.15 KB
/
popup.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
#content {
display: flex;
flex-direction: column;
align-items: center;
margin: 10px;
}
button {
width: 100%;
padding: 10px;
margin: 5px 0;
font-size: 16px;
}
/* Add/update these styles */
.popup-container {
min-width: 200px; /* Ensure minimum width for readability */
padding: 12px;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.menu-item {
display: block;
padding: 8px 12px;
text-decoration: none;
color: #333;
cursor: pointer;
white-space: nowrap; /* Prevent text wrapping */
}
.menu-item:hover {
background-color: #f5f5f5;
}
.pinyin {
font-family: "Noto Sans", "Arial Unicode MS", sans-serif;
}
.translation-container {
min-width: 300px; /* adjust as needed */
max-width: 600px; /* adjust as needed */
}
.page-content {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.api-key-container {
display: flex;
flex-direction: column;
align-items: center;
margin: 10px;
}
#apiKey {
width: 250px; /* Set a fixed width */
padding: 5px;
margin: 5px 0;
box-sizing: border-box;
}
#saveApiKey {
padding: 5px 10px;
}
#statusMessage {
text-align: center;
color: green;
margin-top: 10px;
}
/* Ensure the HTML and body take full width */
html, body {
width: 100%;
margin: 0;
padding: 0;
}
/* Center the popup content */
body {
display: flex;
justify-content: center;
align-items: center;
}
/* Style the popup container */
.popup-container {
width: 300px; /* Adjust the width as needed */
padding: 20px;
background-color: white;
box-sizing: border-box;
}
/* Style for the API key container */
.api-key-container {
display: flex;
flex-direction: column;
align-items: stretch; /* Allow children to stretch to full width */
margin: 10px 0;
}
/* Style the input field */
#apiKey {
width: 100%;
padding: 8px;
margin: 5px 0;
box-sizing: border-box;
}
/* Style the save button */
#saveApiKey {
padding: 10px;
margin-top: 10px;
width: 100%;
}
/* Center the status message */
#statusMessage {
text-align: center;
color: green;
margin-top: 10px;
}