| | * { |
| | box-sizing: border-box; |
| | padding: 0; |
| | margin: 0; |
| | font-family: sans-serif; |
| | } |
| |
|
| | html, |
| | body { |
| | height: 100%; |
| | } |
| |
|
| | body { |
| | padding: 32px; |
| | background-color: #f5f5f5; |
| | } |
| |
|
| | body, |
| | #container { |
| | display: flex; |
| | flex-direction: column; |
| | justify-content: center; |
| | align-items: center; |
| | } |
| |
|
| | #container { |
| | position: relative; |
| | gap: 0.4rem; |
| | width: 640px; |
| | height: 640px; |
| | max-width: 100%; |
| | max-height: 100%; |
| | border: 2px dashed #3572A5; |
| | border-radius: 0.75rem; |
| | overflow: hidden; |
| | cursor: pointer; |
| | margin: 1rem; |
| | background-color: #FFD43B; |
| | background-size: 100% 100%; |
| | background-position: center; |
| | background-repeat: no-repeat; |
| | font-size: 18px; |
| | color: #282c34; |
| | } |
| |
|
| | textarea { |
| | width: 95%; |
| | height: 200px; |
| | padding: 10px; |
| | margin: 10px 0; |
| | border: 1px solid #3572A5; |
| | border-radius: 5px; |
| | background-color: #FFFFFF; |
| | font-family: 'Courier New', Courier, monospace; |
| | font-size: 16px; |
| | } |
| |
|
| | button { |
| | padding: 10px 20px; |
| | background-color: #3572A5; |
| | color: white; |
| | border: none; |
| | border-radius: 5px; |
| | cursor: pointer; |
| | font-size: 16px; |
| | } |
| |
|
| | button:hover { |
| | background-color: #285e8e; |
| | } |
| |
|
| | #upload { |
| | display: none; |
| | } |
| |
|
| | svg { |
| | pointer-events: none; |
| | } |
| |
|
| | #example { |
| | font-size: 14px; |
| | text-decoration: underline; |
| | color: #3572A5; |
| | cursor: pointer; |
| | } |
| |
|
| | #example:hover { |
| | color: #2563EB; |
| | } |
| |
|
| | .bounding-box { |
| | position: absolute; |
| | box-sizing: border-box; |
| | border: solid 2px; |
| | } |
| |
|
| | .bounding-box-label { |
| | color: white; |
| | position: absolute; |
| | font-size: 12px; |
| | margin: -16px 0 0 -2px; |
| | padding: 1px; |
| | } |
| |
|
| | #results { |
| | width: 95%; |
| | max-width: 640px; |
| | background-color: #f0f0f0; |
| | border: 1px solid #ddd; |
| | border-radius: 5px; |
| | padding: 10px; |
| | margin-top: 10px; |
| | overflow: auto; |
| | } |
| |
|