-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add real screenshots, full feature pages, i18n (en/es), gallery… #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| _site/ | ||
| site/ | ||
| .sass-cache/ | ||
| .jekyll-cache/ | ||
| .jekyll-metadata | ||
| vendor/ | ||
| .venv/ | ||
| node_modules/ | ||
| .bundle/ | ||
| .DS_Store | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,193 @@ | ||
| /* ── DistTopic custom light theme ────────────────────────────── */ | ||
|
|
||
| /* Language selector button — garante visibilidade no header claro */ | ||
| .md-header__button { | ||
| color: rgba(255,255,255,0.87) !important; | ||
| } | ||
| .md-header__button:hover { | ||
| color: #fff !important; | ||
| } | ||
|
|
||
| /* Dropdown do seletor de idioma */ | ||
| .md-select__inner { | ||
| background-color: #fff !important; | ||
| border: 1px solid #e0e0e0 !important; | ||
| box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important; | ||
| } | ||
| .md-select__link { | ||
| color: #37474f !important; | ||
| } | ||
| .md-select__link:hover, | ||
| .md-select__link--active { | ||
| color: #3f51b5 !important; | ||
| background-color: rgba(63,81,181,0.08) !important; | ||
| } | ||
|
|
||
| /* ── Gallery grid ─────────────────────────────────────────────── */ | ||
| .gallery-grid { | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); | ||
| gap: 1.25rem; | ||
| margin: 1.5rem 0; | ||
| } | ||
|
|
||
| .gallery-item { | ||
| /* button reset */ | ||
| -webkit-appearance: none; | ||
| appearance: none; | ||
| padding: 0; | ||
| cursor: pointer; | ||
| font: inherit; | ||
| width: 100%; | ||
| /* card */ | ||
| display: block; | ||
| text-decoration: none !important; | ||
| border-radius: 10px; | ||
| overflow: hidden; | ||
| border: 1px solid #e0e0e0; | ||
| background: #0d1117; | ||
| box-shadow: 0 2px 8px rgba(0,0,0,0.07); | ||
| transition: box-shadow .2s ease, transform .2s ease; | ||
| color: inherit !important; | ||
| } | ||
|
|
||
| .gallery-item:hover { | ||
| box-shadow: 0 8px 28px rgba(0,0,0,0.16); | ||
| transform: translateY(-3px); | ||
| } | ||
|
|
||
| .gallery-item figure { | ||
| margin: 0; | ||
| } | ||
|
|
||
| .gallery-thumb { | ||
| overflow: hidden; | ||
| line-height: 0; | ||
| } | ||
|
|
||
| .gallery-item img { | ||
| display: block; | ||
| width: 100%; | ||
| height: auto; | ||
| transition: transform .35s ease; | ||
| border: none !important; | ||
| border-radius: 0 !important; | ||
| box-shadow: none !important; | ||
| margin: 0 !important; | ||
| } | ||
|
|
||
| .gallery-item:hover img { | ||
| transform: scale(1.04); | ||
| } | ||
|
|
||
| .gallery-item figcaption { | ||
| padding: .75rem 1rem .85rem; | ||
| background: #fff; | ||
| border-top: 1px solid #e0e0e0; | ||
| } | ||
|
|
||
| .gallery-item figcaption strong { | ||
| display: block; | ||
| color: #263238; | ||
| font-size: .875rem; | ||
| font-weight: 600; | ||
| margin-bottom: .25rem; | ||
| } | ||
|
|
||
| .gallery-item figcaption span { | ||
| color: #546e7a; | ||
| font-size: .78rem; | ||
| line-height: 1.45; | ||
| display: block; | ||
| } | ||
|
|
||
| /* ── Lightbox dialog ─────────────────────────────────────────── */ | ||
| #gallery-lightbox { | ||
| border: none; | ||
| padding: 0; | ||
| background: transparent; | ||
| box-shadow: none; | ||
| max-width: none; | ||
| max-height: none; | ||
| overflow: visible; | ||
| } | ||
|
|
||
| #gallery-lightbox::backdrop { | ||
| background: rgba(0, 0, 0, 0.88); | ||
| cursor: zoom-out; | ||
| } | ||
|
|
||
| .lb-wrap { | ||
| position: relative; | ||
| } | ||
|
|
||
| .lb-close { | ||
| position: absolute; | ||
| top: -2.25rem; | ||
| right: 0; | ||
| width: 2rem; | ||
| height: 2rem; | ||
| background: rgba(255, 255, 255, 0.15); | ||
| border: 1px solid rgba(255, 255, 255, 0.35); | ||
| border-radius: 50%; | ||
| color: #fff; | ||
| font-size: 1.1rem; | ||
| line-height: 1; | ||
| cursor: pointer; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| transition: background 0.15s; | ||
| } | ||
|
|
||
| .lb-close:hover { | ||
| background: rgba(255, 255, 255, 0.28); | ||
| } | ||
|
|
||
| .lb-img { | ||
| display: block; | ||
| max-width: min(90vw, 960px); | ||
| max-height: 88vh; | ||
| border-radius: 8px; | ||
| box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55); | ||
| cursor: default; | ||
| } | ||
|
|
||
| /* ── Tables ──────────────────────────────────────────────────── */ | ||
| .md-typeset__table { | ||
| width: 100%; | ||
| min-width: 100%; | ||
| } | ||
|
|
||
| .md-typeset__table table { | ||
| display: table !important; | ||
| width: 100% !important; | ||
| } | ||
|
|
||
| .md-typeset table { | ||
| display: table !important; | ||
| width: 100% !important; | ||
| } | ||
|
|
||
| .md-typeset table th { | ||
| text-align: center !important; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .md-typeset table td { | ||
| text-align: center !important; | ||
| } | ||
|
|
||
| .md-typeset table th:first-child, | ||
| .md-typeset table td:first-child { | ||
| text-align: left !important; | ||
| } | ||
|
|
||
| /* Scrollbar fina */ | ||
| * { | ||
| scrollbar-width: thin; | ||
| scrollbar-color: #bdbdbd transparent; | ||
| } | ||
| ::-webkit-scrollbar { width: 6px; height: 6px; } | ||
| ::-webkit-scrollbar-thumb { background-color: #bdbdbd; border-radius: 3px; } | ||
| ::-webkit-scrollbar-track { background: transparent; } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -490,6 +490,35 @@ code, pre, kbd, samp, | |||||||||||||||||||||||||||||||||
| color: var(--gh-blue) !important; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| /* ── Language selector ────────────────────────────────────────── */ | ||||||||||||||||||||||||||||||||||
| /* Material uses --md-primary-bg-color for header icons, which in our | ||||||||||||||||||||||||||||||||||
| custom palette equals the header background → invisible. Force fg. */ | ||||||||||||||||||||||||||||||||||
| .md-header__button, | ||||||||||||||||||||||||||||||||||
| .md-header__option .md-header__button { | ||||||||||||||||||||||||||||||||||
| color: var(--gh-fg-muted) !important; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| .md-header__button:hover { | ||||||||||||||||||||||||||||||||||
| color: var(--gh-fg) !important; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| /* Language picker dropdown */ | ||||||||||||||||||||||||||||||||||
| .md-select__inner { | ||||||||||||||||||||||||||||||||||
| background-color: var(--gh-canvas-subtle) !important; | ||||||||||||||||||||||||||||||||||
| border: 1px solid var(--gh-border) !important; | ||||||||||||||||||||||||||||||||||
| box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| .md-select__link { | ||||||||||||||||||||||||||||||||||
| color: var(--gh-fg-muted) !important; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| .md-select__link:hover, | ||||||||||||||||||||||||||||||||||
| .md-select__link--active { | ||||||||||||||||||||||||||||||||||
| color: var(--gh-blue) !important; | ||||||||||||||||||||||||||||||||||
| background-color: var(--gh-blue-muted) !important; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
Comment on lines
+505
to
+521
|
||||||||||||||||||||||||||||||||||
| /* Language picker dropdown */ | |
| .md-select__inner { | |
| background-color: var(--gh-canvas-subtle) !important; | |
| border: 1px solid var(--gh-border) !important; | |
| box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important; | |
| } | |
| .md-select__link { | |
| color: var(--gh-fg-muted) !important; | |
| } | |
| .md-select__link:hover, | |
| .md-select__link--active { | |
| color: var(--gh-blue) !important; | |
| background-color: var(--gh-blue-muted) !important; | |
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,53 @@ | ||||||||||||||||||||||||||||||||||
| /* Gallery lightbox — uses native <dialog> element, no dependencies */ | ||||||||||||||||||||||||||||||||||
| (function () { | ||||||||||||||||||||||||||||||||||
| 'use strict'; | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| function buildLightbox() { | ||||||||||||||||||||||||||||||||||
| var existing = document.getElementById('gallery-lightbox'); | ||||||||||||||||||||||||||||||||||
| if (existing) return existing; | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| var dlg = document.createElement('dialog'); | ||||||||||||||||||||||||||||||||||
| dlg.id = 'gallery-lightbox'; | ||||||||||||||||||||||||||||||||||
| dlg.innerHTML = | ||||||||||||||||||||||||||||||||||
| '<div class="lb-wrap">' + | ||||||||||||||||||||||||||||||||||
| '<button type="button" class="lb-close" aria-label="Fechar">\u00D7</button>' + | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+11
to
+13
|
||||||||||||||||||||||||||||||||||
| dlg.innerHTML = | |
| '<div class="lb-wrap">' + | |
| '<button type="button" class="lb-close" aria-label="Fechar">\u00D7</button>' + | |
| var docLang = (document.documentElement && document.documentElement.lang || '').toLowerCase(); | |
| var baseLang = docLang.split('-')[0]; | |
| var closeLabelMap = { | |
| pt: 'Fechar', | |
| es: 'Cerrar', | |
| en: 'Close' | |
| }; | |
| var closeLabel = closeLabelMap[docLang] || closeLabelMap[baseLang] || 'Close'; | |
| dlg.innerHTML = | |
| '<div class="lb-wrap">' + | |
| '<button type="button" class="lb-close" aria-label="' + closeLabel + '">\u00D7</button>' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));can force horizontal overflow on narrow viewports (<340px). Consider lowering the minimum or using a responsive clamp (e.g.,minmax(min(340px, 100%), 1fr)) so the gallery stays usable on small screens.