Skip to content

Commit 45fc877

Browse files
authored
Merge pull request #1 from verygoodplugins/design-handoff-editorial
Implement drunk.support editorial design handoff
2 parents 6583d44 + c00939d commit 45fc877

12 files changed

Lines changed: 638 additions & 57 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.mcp.json
22
/.claude
3+
design_handoff_drunk_support/

archive.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
<?php echo get_the_date('F j, Y'); ?>
3838
</time>
3939
<span class="reading-time"><?php echo minimalcode_reading_time(); ?></span>
40+
<?php if ( get_post_meta( get_the_ID(), '_minimalcode_autojack', true ) ) : ?>
41+
<span class="autojack-pill" aria-label="Written by AutoJack"><span class="autojack-pill-glyph" aria-hidden="true">🤖</span> AutoJack</span>
42+
<?php endif; ?>
4043
</div>
4144
</header>
4245

assets/css/custom.css

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,3 +1746,229 @@ button {
17461746
font-size: 1.75rem;
17471747
}
17481748
}
1749+
1750+
/* ==========================================================================
1751+
AutoJack Pill (index + archive lists)
1752+
========================================================================== */
1753+
1754+
.autojack-pill {
1755+
display: inline-flex;
1756+
align-items: center;
1757+
gap: 0.3em;
1758+
font-size: var(--fs-xs);
1759+
font-weight: var(--fw-medium);
1760+
padding: 0.15em 0.55em;
1761+
border-radius: var(--radius-sm);
1762+
background: linear-gradient(
1763+
135deg,
1764+
var(--autojack-grad-start),
1765+
var(--autojack-grad-end)
1766+
);
1767+
color: var(--autojack-grad-end);
1768+
border: 1px solid var(--autojack-border);
1769+
line-height: 1.4;
1770+
white-space: nowrap;
1771+
}
1772+
1773+
[data-theme="dark"] .autojack-pill {
1774+
background: linear-gradient(
1775+
135deg,
1776+
rgba(99, 102, 241, 0.18),
1777+
rgba(139, 92, 246, 0.18)
1778+
);
1779+
color: #a5b4fc;
1780+
}
1781+
1782+
.autojack-pill-glyph {
1783+
font-size: 0.85em;
1784+
line-height: 1;
1785+
}
1786+
1787+
.entry-meta .autojack-pill,
1788+
.post-meta .autojack-pill {
1789+
flex-shrink: 0;
1790+
}
1791+
1792+
/* ==========================================================================
1793+
Header social squircles
1794+
========================================================================== */
1795+
1796+
.header-social {
1797+
display: flex;
1798+
align-items: center;
1799+
gap: var(--spacing-xs);
1800+
list-style: none;
1801+
margin: 0;
1802+
padding: 0;
1803+
}
1804+
1805+
.header-social li {
1806+
margin: 0;
1807+
}
1808+
1809+
.social-squircle {
1810+
display: inline-flex;
1811+
align-items: center;
1812+
justify-content: center;
1813+
width: 36px;
1814+
height: 36px;
1815+
border-radius: var(--radius-md);
1816+
color: var(--fg-secondary);
1817+
background: transparent;
1818+
border: 1px solid transparent;
1819+
transition: color var(--dur-fast) var(--ease-out),
1820+
background-color var(--dur-fast) var(--ease-out),
1821+
border-color var(--dur-fast) var(--ease-out);
1822+
}
1823+
1824+
.social-squircle:hover,
1825+
.social-squircle:focus-visible {
1826+
color: var(--fg-primary);
1827+
background-color: var(--bg-secondary);
1828+
border-color: var(--border-color);
1829+
}
1830+
1831+
.social-squircle:focus-visible {
1832+
outline: 2px solid var(--accent);
1833+
outline-offset: 2px;
1834+
}
1835+
1836+
.social-squircle svg {
1837+
width: 18px;
1838+
height: 18px;
1839+
}
1840+
1841+
@media (max-width: 768px) {
1842+
.header-social {
1843+
display: none;
1844+
}
1845+
}
1846+
1847+
/* Search trigger label (visible on wider screens) */
1848+
.search-trigger-label {
1849+
display: inline;
1850+
}
1851+
1852+
@media (max-width: 640px) {
1853+
.search-trigger-label {
1854+
display: none;
1855+
}
1856+
}
1857+
1858+
/* ==========================================================================
1859+
Search Modal — live results
1860+
========================================================================== */
1861+
1862+
.search-modal-content {
1863+
border-radius: var(--radius-xl);
1864+
box-shadow: var(--shadow-modal);
1865+
}
1866+
1867+
.search-modal-results {
1868+
list-style: none;
1869+
margin: 0;
1870+
padding: var(--spacing-xs) 0;
1871+
max-height: 50vh;
1872+
overflow-y: auto;
1873+
}
1874+
1875+
.search-modal-results:empty {
1876+
display: none;
1877+
}
1878+
1879+
.search-modal-result {
1880+
margin: 0;
1881+
padding: var(--spacing-sm) var(--spacing-md);
1882+
color: var(--text-primary);
1883+
border-left: 2px solid transparent;
1884+
cursor: pointer;
1885+
transition: background-color var(--dur-fast) var(--ease-out);
1886+
}
1887+
1888+
.search-modal-result[aria-selected="true"],
1889+
.search-modal-result:hover {
1890+
background-color: var(--accent-tint);
1891+
border-left-color: var(--accent);
1892+
}
1893+
1894+
.search-modal-result-title {
1895+
display: block;
1896+
font-size: var(--fs-base);
1897+
font-weight: var(--fw-medium);
1898+
line-height: 1.4;
1899+
color: var(--text-primary);
1900+
margin-bottom: 0.15em;
1901+
}
1902+
1903+
.search-modal-result-meta {
1904+
display: block;
1905+
font-size: var(--fs-sm);
1906+
color: var(--text-secondary);
1907+
line-height: 1.4;
1908+
overflow: hidden;
1909+
text-overflow: ellipsis;
1910+
white-space: nowrap;
1911+
text-transform: capitalize;
1912+
}
1913+
1914+
.search-modal-results mark,
1915+
.search-modal-result mark {
1916+
background-color: var(--accent-tint);
1917+
color: var(--accent);
1918+
padding: 0 0.1em;
1919+
border-radius: 2px;
1920+
}
1921+
1922+
.search-modal-empty {
1923+
padding: var(--spacing-md);
1924+
font-size: var(--fs-sm);
1925+
color: var(--text-tertiary);
1926+
text-align: center;
1927+
}
1928+
1929+
.search-modal-hints {
1930+
display: flex;
1931+
align-items: center;
1932+
justify-content: flex-start;
1933+
gap: var(--spacing-sm);
1934+
padding: var(--spacing-xs) var(--spacing-md);
1935+
border-top: 1px solid var(--border-color);
1936+
font-size: var(--fs-xs);
1937+
color: var(--text-tertiary);
1938+
font-family: var(--font-code);
1939+
}
1940+
1941+
.search-modal-hints kbd {
1942+
display: inline-block;
1943+
padding: 0.1em 0.4em;
1944+
background: var(--bg-secondary);
1945+
border: 1px solid var(--border-color);
1946+
border-radius: var(--radius-sm);
1947+
font-size: 0.85em;
1948+
color: var(--text-secondary);
1949+
margin-right: 0.25em;
1950+
}
1951+
1952+
.search-modal-hints span + span {
1953+
border-left: 1px solid var(--border-color);
1954+
padding-left: var(--spacing-sm);
1955+
}
1956+
1957+
/* ==========================================================================
1958+
Spec-alignment polish
1959+
========================================================================== */
1960+
1961+
/* Single-post prose — cap to 700px per editorial spec */
1962+
.single-post .entry-content {
1963+
max-width: var(--max-width-prose);
1964+
}
1965+
1966+
/* Featured image: rounded + 16:9 */
1967+
.post-thumbnail img,
1968+
.single-post .entry-featured-image img {
1969+
border-radius: var(--radius-lg);
1970+
aspect-ratio: 16 / 9;
1971+
object-fit: cover;
1972+
width: 100%;
1973+
height: auto;
1974+
}

0 commit comments

Comments
 (0)