|
5 | 5 | <head> |
6 | 6 | <title>{{title}}</title> |
7 | 7 | <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1"> |
8 | | - <link href="{% static 'bootstrap.min.css' %}" rel="stylesheet"> |
9 | 8 | <style> |
10 | 9 | /* Keep this inline, don't move to external css file because this template is used to generate static exports that need to be usable as-is without an accompanying staticfiles dir */ |
| 10 | + * { box-sizing: border-box; } |
11 | 11 | html, body { |
12 | 12 | width: 100%; |
13 | 13 | height: 100%; |
14 | 14 | background-color: #ddd; |
15 | | - } |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + } |
| 18 | + body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } |
| 19 | + a { color: inherit; text-decoration: none; } |
| 20 | + a:hover { text-decoration: underline; } |
| 21 | + .container-fluid { width: 100%; margin: 0 auto; padding: 0 12px; } |
| 22 | + .row { display: flex; flex-wrap: wrap; width: 100%; margin: 0; } |
| 23 | + .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; } |
| 24 | + .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; } |
| 25 | + .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; } |
| 26 | + .col-lg-12 { flex: 0 0 100%; max-width: 100%; } |
| 27 | + .badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 12px; line-height: 1.2; } |
| 28 | + .badge-default { background: rgba(255,255,255,0.2); color: #f6f6f6; } |
| 29 | + .badge-info { background: #dbe7ff; color: #2b4aa0; } |
| 30 | + .badge-success { background: #d4edda; color: #1e7e34; } |
| 31 | + .badge-warning { background: #fff3cd; color: #856404; } |
| 32 | + .badge-danger { background: #f8d7da; color: #721c24; } |
| 33 | + .alert { padding: 6px 10px; border-radius: 6px; background: #f5f5f5; color: #333; } |
16 | 34 | header { |
17 | 35 | background-color: #aa1e55; |
18 | 36 | } |
|
345 | 363 | } |
346 | 364 | .thumb-grid { |
347 | 365 | display: block; |
348 | | - column-width: 180px; |
349 | 366 | column-gap: 6px; |
350 | 367 | align-content: start; |
351 | | - width: 100%; |
| 368 | + width: 100vw; |
| 369 | + margin-left: calc(50% - 50vw); |
| 370 | + padding: 0 6px; |
| 371 | + column-fill: balance; |
| 372 | + column-count: 2; |
| 373 | + } |
| 374 | + @media (min-width: 720px) { |
| 375 | + .thumb-grid { column-count: 3; } |
| 376 | + } |
| 377 | + @media (min-width: 1024px) { |
| 378 | + .thumb-grid { column-count: 4; } |
| 379 | + } |
| 380 | + @media (min-width: 1280px) { |
| 381 | + .thumb-grid { column-count: 5; } |
| 382 | + } |
| 383 | + @media (min-width: 1600px) { |
| 384 | + .thumb-grid { column-count: 6; } |
| 385 | + } |
| 386 | + @media (min-width: 1920px) { |
| 387 | + .thumb-grid { column-count: 7; } |
352 | 388 | } |
353 | 389 | .thumb-card { |
354 | 390 | box-shadow: 2px 2px 7px 0px rgba(0, 0, 0, 0.1); |
|
364 | 400 | height: 138px; |
365 | 401 | min-height: 138px; |
366 | 402 | max-height: 138px; |
| 403 | + display: flex; |
| 404 | + flex-direction: column; |
367 | 405 | } |
368 | 406 | .thumb-card:has([data-compact]) { |
369 | 407 | height: 46px; |
|
379 | 417 | text-overflow: ellipsis; |
380 | 418 | color: #222; |
381 | 419 | background-color: #f6f6f6; |
| 420 | + flex: 0 0 auto; |
382 | 421 | } |
383 | 422 | .thumb-card .thumb-body h4 { |
384 | 423 | font-size: 0.8em; |
|
394 | 433 | .thumb-card iframe.card-img-top { |
395 | 434 | display: block; |
396 | 435 | width: 100%; |
| 436 | + flex: 1 1 auto; |
| 437 | + min-height: 0; |
| 438 | + } |
| 439 | + .thumb-card .thumbnail-wrapper > *, |
| 440 | + .thumb-card iframe.card-img-top { |
| 441 | + width: 100%; |
| 442 | + height: 100%; |
| 443 | + object-fit: cover; |
397 | 444 | } |
398 | 445 | .thumb-card:has([data-compact]) .thumbnail-wrapper, |
399 | 446 | .thumb-card:has([data-compact]) .thumbnail-wrapper.compact { |
@@ -666,17 +713,6 @@ <h4>{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}} < |
666 | 713 | {% endwith %} |
667 | 714 | </div> |
668 | 715 | {% endfor %} |
669 | | - |
670 | | - |
671 | | - <div class="thumb-card"> |
672 | | - <div class="thumb-body"> |
673 | | - <a href="./" target="preview"> |
674 | | - <h4>Headers, JSON, etc.</h4> |
675 | | - </a> |
676 | | - <!--<a href="{{result.path|urlencode}}" target="preview"><h4 class="card-title">{{result.name}}</h4></a>--> |
677 | | - </div> |
678 | | - <iframe class="card-img-top" src="./" sandbox="" scrolling="no" loading="lazy"></iframe> |
679 | | - </div> |
680 | 716 | </div> |
681 | 717 | </div> |
682 | 718 | </header> |
|
0 commit comments