| 1 |
/** |
| 2 |
* Translation Modal Styles |
| 3 |
*/ |
| 4 |
|
| 5 |
.aibui-modal-overlay { |
| 6 |
position: fixed; |
| 7 |
top: 0; |
| 8 |
left: 0; |
| 9 |
width: 100%; |
| 10 |
height: 100%; |
| 11 |
background: rgba(0, 0, 0, 0.7); |
| 12 |
z-index: 100000; |
| 13 |
display: flex; |
| 14 |
align-items: center; |
| 15 |
justify-content: center; |
| 16 |
opacity: 0; |
| 17 |
visibility: hidden; |
| 18 |
transition: opacity 0.3s ease, visibility 0.3s ease; |
| 19 |
backdrop-filter: blur(2px); |
| 20 |
} |
| 21 |
|
| 22 |
.aibui-modal-overlay.aibui-modal-visible { |
| 23 |
opacity: 1; |
| 24 |
visibility: visible; |
| 25 |
} |
| 26 |
|
| 27 |
.aibui-modal-content { |
| 28 |
background: #fff; |
| 29 |
border-radius: 8px; |
| 30 |
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); |
| 31 |
max-width: 500px; |
| 32 |
width: 90%; |
| 33 |
max-height: 90vh; |
| 34 |
overflow-y: auto; |
| 35 |
transform: scale(0.9); |
| 36 |
transition: transform 0.3s ease; |
| 37 |
} |
| 38 |
|
| 39 |
.aibui-modal-overlay.aibui-modal-visible .aibui-modal-content { |
| 40 |
transform: scale(1); |
| 41 |
} |
| 42 |
|
| 43 |
.aibui-modal-header { |
| 44 |
padding: 20px 24px; |
| 45 |
border-bottom: 1px solid #ddd; |
| 46 |
display: flex; |
| 47 |
justify-content: space-between; |
| 48 |
align-items: center; |
| 49 |
background: #f8f9fa; |
| 50 |
border-radius: 8px 8px 0 0; |
| 51 |
} |
| 52 |
|
| 53 |
.aibui-modal-header h2 { |
| 54 |
margin: 0; |
| 55 |
font-size: 20px; |
| 56 |
font-weight: 600; |
| 57 |
color: #1a1a1a; |
| 58 |
} |
| 59 |
|
| 60 |
.aibui-modal-close { |
| 61 |
background: none; |
| 62 |
border: none; |
| 63 |
font-size: 28px; |
| 64 |
line-height: 1; |
| 65 |
color: #666; |
| 66 |
cursor: pointer; |
| 67 |
padding: 0; |
| 68 |
width: 32px; |
| 69 |
height: 32px; |
| 70 |
display: flex; |
| 71 |
align-items: center; |
| 72 |
justify-content: center; |
| 73 |
border-radius: 4px; |
| 74 |
transition: all 0.2s ease; |
| 75 |
} |
| 76 |
|
| 77 |
.aibui-modal-close:hover { |
| 78 |
background: #e5e5e5; |
| 79 |
color: #1a1a1a; |
| 80 |
} |
| 81 |
|
| 82 |
.aibui-modal-body { |
| 83 |
padding: 24px; |
| 84 |
} |
| 85 |
|
| 86 |
.aibui-modal-body p { |
| 87 |
margin: 0 0 16px 0; |
| 88 |
color: #555; |
| 89 |
font-size: 14px; |
| 90 |
} |
| 91 |
|
| 92 |
.aibui-form-group { |
| 93 |
margin-bottom: 20px; |
| 94 |
} |
| 95 |
|
| 96 |
.aibui-form-group label { |
| 97 |
display: block; |
| 98 |
margin-bottom: 8px; |
| 99 |
font-weight: 500; |
| 100 |
color: #1a1a1a; |
| 101 |
font-size: 14px; |
| 102 |
} |
| 103 |
|
| 104 |
.aibui-select { |
| 105 |
width: 100%; |
| 106 |
padding: 10px 12px; |
| 107 |
border: 1px solid #ddd; |
| 108 |
border-radius: 4px; |
| 109 |
font-size: 14px; |
| 110 |
background: #fff; |
| 111 |
color: #1a1a1a; |
| 112 |
cursor: pointer; |
| 113 |
transition: border-color 0.2s ease; |
| 114 |
} |
| 115 |
|
| 116 |
.aibui-select:focus { |
| 117 |
outline: none; |
| 118 |
border-color: #007cba; |
| 119 |
box-shadow: 0 0 0 1px #007cba; |
| 120 |
} |
| 121 |
|
| 122 |
.aibui-modal-message { |
| 123 |
padding: 12px 16px; |
| 124 |
border-radius: 4px; |
| 125 |
margin-top: 16px; |
| 126 |
font-size: 14px; |
| 127 |
line-height: 1.5; |
| 128 |
} |
| 129 |
|
| 130 |
.aibui-message-error { |
| 131 |
background: #f8d7da; |
| 132 |
color: #721c24; |
| 133 |
border: 1px solid #f5c6cb; |
| 134 |
} |
| 135 |
|
| 136 |
.aibui-message-success { |
| 137 |
background: #d4edda; |
| 138 |
color: #155724; |
| 139 |
border: 1px solid #c3e6cb; |
| 140 |
} |
| 141 |
|
| 142 |
.aibui-modal-footer { |
| 143 |
padding: 16px 24px; |
| 144 |
border-top: 1px solid #ddd; |
| 145 |
display: flex; |
| 146 |
justify-content: flex-end; |
| 147 |
gap: 12px; |
| 148 |
background: #f8f9fa; |
| 149 |
border-radius: 0 0 8px 8px; |
| 150 |
} |
| 151 |
|
| 152 |
.aibui-modal-footer .button { |
| 153 |
min-width: 100px; |
| 154 |
} |
| 155 |
|
| 156 |
.aibui-modal-translate { |
| 157 |
position: relative; |
| 158 |
} |
| 159 |
|
| 160 |
.aibui-loading-spinner { |
| 161 |
display: inline-block; |
| 162 |
vertical-align: middle; |
| 163 |
} |
| 164 |
|
| 165 |
.aibui-loading-spinner .spinner { |
| 166 |
margin: 0 !important; |
| 167 |
float: none !important; |
| 168 |
} |
| 169 |
|
| 170 |
/* Row action link styling */ |
| 171 |
.row-actions .aibui-translate-link { |
| 172 |
color: #0073aa; |
| 173 |
text-decoration: none; |
| 174 |
} |
| 175 |
|
| 176 |
.row-actions .aibui-translate-link:hover { |
| 177 |
color: #005177; |
| 178 |
text-decoration: underline; |
| 179 |
} |
| 180 |
|
| 181 |
/* Responsive */ |
| 182 |
@media (max-width: 782px) { |
| 183 |
.aibui-modal-content { |
| 184 |
width: 95%; |
| 185 |
max-height: 95vh; |
| 186 |
} |
| 187 |
|
| 188 |
.aibui-modal-header { |
| 189 |
padding: 16px 20px; |
| 190 |
} |
| 191 |
|
| 192 |
.aibui-modal-body { |
| 193 |
padding: 20px; |
| 194 |
} |
| 195 |
|
| 196 |
.aibui-modal-footer { |
| 197 |
padding: 12px 20px; |
| 198 |
flex-direction: column; |
| 199 |
} |
| 200 |
|
| 201 |
.aibui-modal-footer .button { |
| 202 |
width: 100%; |
| 203 |
} |
| 204 |
} |
| 205 |
|
| 206 |
|