|
1 | 1 | <!doctype html> |
2 | 2 | <html lang="en"> |
3 | | -<head> |
4 | | - <meta charset="utf-8"> |
5 | | - <title>deck.gl Example</title> |
6 | | - <style> |
7 | | - body {margin: 0; width: 100vw; height: 100vh; overflow: hidden;} |
8 | | - </style> |
9 | | -</head> |
10 | | -<body> |
11 | | -</body> |
12 | | -<script type="module" src="app.js"></script> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <title>deck.gl Example</title> |
| 6 | + <style> |
| 7 | + body { |
| 8 | + margin: 0; |
| 9 | + width: 100vw; |
| 10 | + height: 100vh; |
| 11 | + overflow: hidden; |
| 12 | + background: #111; |
| 13 | + } |
| 14 | + .zoom-control { |
| 15 | + position: absolute; |
| 16 | + z-index: 1; |
| 17 | + top: 24px; |
| 18 | + right: 24px; |
| 19 | + padding: 12px; |
| 20 | + border: 1px solid rgba(255, 255, 255, 0.22); |
| 21 | + border-radius: 6px; |
| 22 | + background: rgba(8, 14, 24, 0.78); |
| 23 | + box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); |
| 24 | + color: #fff; |
| 25 | + font-family: Helvetica, Arial, sans-serif; |
| 26 | + } |
| 27 | + .zoom-control-label { |
| 28 | + margin-bottom: 8px; |
| 29 | + color: rgba(255, 255, 255, 0.82); |
| 30 | + font-size: 12px; |
| 31 | + font-weight: 600; |
| 32 | + line-height: 1; |
| 33 | + } |
| 34 | + .zoom-button-group { |
| 35 | + display: flex; |
| 36 | + } |
| 37 | + .zoom-button-group button { |
| 38 | + min-width: 70px; |
| 39 | + padding: 8px 10px; |
| 40 | + border: 1px solid rgba(122, 136, 255, 0.64); |
| 41 | + background: rgba(12, 18, 34, 0.72); |
| 42 | + color: rgba(205, 213, 255, 0.9); |
| 43 | + cursor: pointer; |
| 44 | + font-size: 12px; |
| 45 | + font-weight: 700; |
| 46 | + line-height: 1; |
| 47 | + } |
| 48 | + .zoom-button-group button:first-child { |
| 49 | + border-radius: 4px 0 0 4px; |
| 50 | + } |
| 51 | + .zoom-button-group button:last-child { |
| 52 | + margin-left: -1px; |
| 53 | + border-radius: 0 4px 4px 0; |
| 54 | + } |
| 55 | + .zoom-button-group button[aria-pressed='true'] { |
| 56 | + background: #5262df; |
| 57 | + color: #fff; |
| 58 | + } |
| 59 | + </style> |
| 60 | + </head> |
| 61 | + <body> |
| 62 | + <div class="zoom-control"> |
| 63 | + <div class="zoom-control-label">Zoom anchor</div> |
| 64 | + <div class="zoom-button-group" role="group" aria-label="Zoom anchor"> |
| 65 | + <button type="button" data-zoom-around="center" aria-pressed="true">Center</button> |
| 66 | + <button type="button" data-zoom-around="pointer" aria-pressed="false">Pointer</button> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + </body> |
| 70 | + <script type="module" src="app.js"></script> |
13 | 71 | </html> |
0 commit comments