|
87 | 87 | <div class="retro-sidebar-header">Demo Sections</div> |
88 | 88 | <nav aria-label="Demo sections navigation" class="retro-nav-vertical retro-w-full"> |
89 | 89 | <div class="retro-sidebar-section"> |
| 90 | + <div class="retro-sidebar-group">Navigation</div> |
90 | 91 | <ul> |
91 | 92 | <li><a href="#section-navigation" class="retro-nav-item">Navigation</a></li> |
92 | | - <li><a href="#section-vertical-navigation" class="retro-nav-item">Vertical Navigation</a></li> |
93 | | - <li><a href="#section-pills-navigation" class="retro-nav-item">Pills Navigation</a></li> |
94 | | - <li><a href="#section-toolbar-navigation" class="retro-nav-item">Toolbar Navigation</a></li> |
95 | | - <li><a href="#section-tabbed-navigation" class="retro-nav-item">Tabbed Navigation</a></li> |
96 | | - <li><a href="#section-underlined-navigation" class="retro-nav-item">Underlined Navigation</a></li> |
97 | | - <li><a href="#section-button-navigation" class="retro-nav-item">Button Group Navigation</a></li> |
| 93 | + <li><a href="#section-vertical-navigation" class="retro-nav-item">Vertical</a></li> |
| 94 | + <li><a href="#section-pills-navigation" class="retro-nav-item">Pills</a></li> |
| 95 | + <li><a href="#section-toolbar-navigation" class="retro-nav-item">Toolbar</a></li> |
| 96 | + <li><a href="#section-tabbed-navigation" class="retro-nav-item">Tabbed</a></li> |
| 97 | + <li><a href="#section-underlined-navigation" class="retro-nav-item">Underlined</a></li> |
| 98 | + <li><a href="#section-button-navigation" class="retro-nav-item">Button Group</a></li> |
| 99 | + </ul> |
| 100 | + </div> |
| 101 | + <div class="retro-sidebar-section"> |
| 102 | + <div class="retro-sidebar-group">Layout</div> |
| 103 | + <ul> |
| 104 | + <li><a href="#section-utilities" class="retro-nav-item">Utilities</a></li> |
| 105 | + <li><a href="#section-grid" class="retro-nav-item">Grid System</a></li> |
| 106 | + <li><a href="#section-container-queries" class="retro-nav-item">Container Queries</a></li> |
| 107 | + </ul> |
| 108 | + </div> |
| 109 | + <div class="retro-sidebar-section"> |
| 110 | + <div class="retro-sidebar-group">Content</div> |
| 111 | + <ul> |
| 112 | + <li><a href="#section-typography" class="retro-nav-item">Typography</a></li> |
98 | 113 | <li><a href="#section-badges" class="retro-nav-item">Badges</a></li> |
99 | | - <li><a href="#section-buttons" class="retro-nav-item">Buttons</a></li> |
100 | 114 | <li><a href="#section-cards" class="retro-nav-item">Cards</a></li> |
101 | | - <li><a href="#section-forms" class="retro-nav-item">Forms</a></li> |
| 115 | + <li><a href="#section-lists" class="retro-nav-item">Lists</a></li> |
| 116 | + <li><a href="#section-dividers" class="retro-nav-item">Dividers</a></li> |
102 | 117 | <li><a href="#section-tables" class="retro-nav-item">Tables</a></li> |
103 | | - <li><a href="#section-grid" class="retro-nav-item">Grid System</a></li> |
104 | | - <li><a href="#section-container-queries" class="retro-nav-item">Container Queries</a></li> |
| 118 | + </ul> |
| 119 | + </div> |
| 120 | + <div class="retro-sidebar-section"> |
| 121 | + <div class="retro-sidebar-group">Forms</div> |
| 122 | + <ul> |
| 123 | + <li><a href="#section-forms" class="retro-nav-item">Form Controls</a></li> |
| 124 | + <li><a href="#section-file-upload" class="retro-nav-item">File Upload</a></li> |
| 125 | + <li><a href="#section-tag-input" class="retro-nav-item">Tag / Chip Input</a></li> |
| 126 | + <li><a href="#section-search" class="retro-nav-item">Search Bar</a></li> |
| 127 | + <li><a href="#section-rating" class="retro-nav-item">Rating Stars</a></li> |
| 128 | + <li><a href="#section-datetime" class="retro-nav-item">Date / Time Picker</a></li> |
| 129 | + </ul> |
| 130 | + </div> |
| 131 | + <div class="retro-sidebar-section"> |
| 132 | + <div class="retro-sidebar-group">Actions</div> |
| 133 | + <ul> |
| 134 | + <li><a href="#section-buttons" class="retro-nav-item">Buttons</a></li> |
| 135 | + <li><a href="#section-dropdown" class="retro-nav-item">Dropdown Menu</a></li> |
| 136 | + </ul> |
| 137 | + </div> |
| 138 | + <div class="retro-sidebar-section"> |
| 139 | + <div class="retro-sidebar-group">Feedback</div> |
| 140 | + <ul> |
105 | 141 | <li><a href="#section-alerts" class="retro-nav-item">Alerts</a></li> |
106 | 142 | <li><a href="#section-toasts" class="retro-nav-item">Toasts</a></li> |
| 143 | + <li><a href="#section-modals" class="retro-nav-item">Modals</a></li> |
107 | 144 | <li><a href="#section-progress" class="retro-nav-item">Progress</a></li> |
| 145 | + <li><a href="#section-tooltips" class="retro-nav-item">Tooltips</a></li> |
| 146 | + </ul> |
| 147 | + </div> |
| 148 | + <div class="retro-sidebar-section"> |
| 149 | + <div class="retro-sidebar-group">Disclosure</div> |
| 150 | + <ul> |
108 | 151 | <li><a href="#section-accordion" class="retro-nav-item">Accordion</a></li> |
| 152 | + <li><a href="#section-carousel" class="retro-nav-item">Carousel</a></li> |
109 | 153 | <li><a href="#section-pagination" class="retro-nav-item">Pagination</a></li> |
110 | 154 | <li><a href="#section-breadcrumbs" class="retro-nav-item">Breadcrumbs</a></li> |
111 | | - <li><a href="#section-dropdown" class="retro-nav-item">Dropdown Menu</a></li> |
112 | | - <li><a href="#section-file-upload" class="retro-nav-item">File Upload</a></li> |
113 | | - <li><a href="#section-tag-input" class="retro-nav-item">Tag/Chip Input</a></li> |
114 | | - <li><a href="#section-search" class="retro-nav-item">Search Bar</a></li> |
115 | | - <li><a href="#section-rating" class="retro-nav-item">Rating Stars</a></li> |
116 | | - <li><a href="#section-dividers" class="retro-nav-item">Dividers</a></li> |
117 | | - <li><a href="#section-tooltips" class="retro-nav-item">Tooltips</a></li> |
118 | | - <li><a href="#section-lists" class="retro-nav-item">Lists</a></li> |
119 | | - <li><a href="#section-carousel" class="retro-nav-item">Carousel</a></li> |
120 | | - <li><a href="#section-datetime" class="retro-nav-item">Date/Time Picker</a></li> |
121 | 155 | <li><a href="#section-infinite-scroll" class="retro-nav-item">Infinite Scroll</a></li> |
122 | | - <li><a href="#section-typography" class="retro-nav-item">Typography</a></li> |
123 | 156 | </ul> |
124 | 157 | </div> |
125 | 158 | </nav> |
|
129 | 162 | <div class="retro-col-span-12 md:retro-col-span-9"> |
130 | 163 | <!-- Mobile sidebar toggle button (automatically added by JS) --> |
131 | 164 | <!-- Win9x Style Layout --> |
132 | | - <div class="retro-container retro-mb-5"> |
133 | | - <!-- Main Content Area Header --> |
134 | | - <div class="retro-card retro-mb-3"> |
135 | | - <div class="retro-card-header"> |
136 | | - <h1 class="retro-heading-primary">RetroCSS Win9x Demo</h1> |
137 | | - </div> |
138 | | - <div class="retro-card-content"> |
139 | | - <p>Welcome to the RetroCSS demo page! This page showcases various components and styles inspired by the classic Win9x interface.</p> |
140 | | - </div> |
141 | | - </div> |
142 | | - </div> |
143 | | - <!-- Content window --> |
| 165 | + <!-- Hero --> |
144 | 166 | <div class="retro-card retro-mb-4"> |
145 | | - <div class="retro-card-header"> |
146 | | - Navigation Examples |
147 | | - </div> |
| 167 | + <div class="retro-card-header">RetroCSS</div> |
148 | 168 | <div class="retro-card-content"> |
149 | | - <div class="retro-flex retro-justify-between retro-align-center retro-mb-4"> |
150 | | - <h1 class="retro-heading-primary retro-m-0">Components Demo</h1> |
| 169 | + <h1 class="retro-mt-0">Win9x styling for the modern web</h1> |
| 170 | + <p class="retro-max-w-prose">A CSS framework with the look of 1995 and the ergonomics of today: |
| 171 | + themeable tokens, a dark mode that actually reads, keyboard-safe components and |
| 172 | + WCAG AA contrast throughout. Every component below is on this page.</p> |
| 173 | + <pre class="retro-code"><code>npm install @phantompixeldev/retrocss</code></pre> |
| 174 | + <div class="retro-flex retro-flex-wrap retro-gap-2 retro-mt-4"> |
| 175 | + <a class="retro-btn retro-btn-primary" href="documentation.html">Documentation</a> |
| 176 | + <a class="retro-btn" href="examples/theme-matrix.html">Theme Matrix</a> |
| 177 | + <a class="retro-btn" href="https://github.com/phantompixeldev/retrocss">GitHub</a> |
| 178 | + <button class="retro-btn retro-theme-toggle">🌓 Toggle Theme</button> |
151 | 179 | </div> |
| 180 | + </div> |
| 181 | + </div> |
152 | 182 | <div class="demo-section retro-card" id="section-navigation"> |
153 | 183 | <h2>🧭 Navigation</h2> |
154 | 184 | <nav class="retro-nav"> |
@@ -1023,6 +1053,69 @@ <h2>📊 Tables</h2> |
1023 | 1053 | </div> |
1024 | 1054 | </div> |
1025 | 1055 |
|
| 1056 | + <div class="demo-section retro-card" id="section-utilities"> |
| 1057 | + <h2>🧰 Utilities</h2> |
| 1058 | + <p class="retro-max-w-prose">Atomic helpers on the same tokens as the components. |
| 1059 | + <code>retro-bg-<hue></code> sets the fill <em>and</em> its on-fill text colour, so a |
| 1060 | + filled panel reads correctly in both themes from one class.</p> |
| 1061 | + |
| 1062 | + <h3>Backgrounds</h3> |
| 1063 | + <div class="retro-grid retro-grid-cols-2 md:retro-grid-cols-4 retro-gap-2 retro-mb-4"> |
| 1064 | + <div class="retro-bg-primary retro-p-3">primary</div> |
| 1065 | + <div class="retro-bg-success retro-p-3">success</div> |
| 1066 | + <div class="retro-bg-danger retro-p-3">danger</div> |
| 1067 | + <div class="retro-bg-warning retro-p-3">warning</div> |
| 1068 | + <div class="retro-bg-info retro-p-3">info</div> |
| 1069 | + <div class="retro-bg-teal retro-p-3">teal</div> |
| 1070 | + <div class="retro-bg-pink retro-p-3">pink</div> |
| 1071 | + <div class="retro-bg-lime retro-p-3">lime</div> |
| 1072 | + </div> |
| 1073 | + |
| 1074 | + <h3>Subtle tints</h3> |
| 1075 | + <div class="retro-grid retro-grid-cols-2 md:retro-grid-cols-4 retro-gap-2 retro-mb-4"> |
| 1076 | + <div class="retro-bg-primary-subtle retro-p-3">primary-subtle</div> |
| 1077 | + <div class="retro-bg-success-subtle retro-p-3">success-subtle</div> |
| 1078 | + <div class="retro-bg-danger-subtle retro-p-3">danger-subtle</div> |
| 1079 | + <div class="retro-bg-warning-subtle retro-p-3">warning-subtle</div> |
| 1080 | + <div class="retro-bg-info-subtle retro-p-3">info-subtle</div> |
| 1081 | + <div class="retro-bg-teal-subtle retro-p-3">teal-subtle</div> |
| 1082 | + <div class="retro-bg-pink-subtle retro-p-3">pink-subtle</div> |
| 1083 | + <div class="retro-bg-lime-subtle retro-p-3">lime-subtle</div> |
| 1084 | + </div> |
| 1085 | + |
| 1086 | + <h3>Text colours</h3> |
| 1087 | + <p class="retro-flex retro-flex-wrap retro-gap-3"> |
| 1088 | + <span class="retro-text-primary">primary</span> |
| 1089 | + <span class="retro-text-success">success</span> |
| 1090 | + <span class="retro-text-danger">danger</span> |
| 1091 | + <span class="retro-text-warning">warning</span> |
| 1092 | + <span class="retro-text-info">info</span> |
| 1093 | + <span class="retro-text-teal">teal</span> |
| 1094 | + <span class="retro-text-pink">pink</span> |
| 1095 | + <span class="retro-text-lime">lime</span> |
| 1096 | + <span class="retro-text-muted">muted</span> |
| 1097 | + </p> |
| 1098 | + |
| 1099 | + <h3>Spacing & flex</h3> |
| 1100 | + <div class="retro-flex retro-flex-wrap retro-gap-2 retro-mb-2"> |
| 1101 | + <span class="retro-badge">retro-flex</span> |
| 1102 | + <span class="retro-badge">retro-gap-2</span> |
| 1103 | + <span class="retro-badge">retro-flex-wrap</span> |
| 1104 | + <span class="retro-badge">retro-items-center</span> |
| 1105 | + <span class="retro-badge">retro-mt-4</span> |
| 1106 | + <span class="retro-badge">retro-px-5</span> |
| 1107 | + <span class="retro-badge">retro-mx-auto</span> |
| 1108 | + </div> |
| 1109 | + <p class="retro-text-muted">Margins and padding run <code>0–8</code> on a 0/4/8/12/16/24/32/40/48px scale.</p> |
| 1110 | + |
| 1111 | + <h3>Effects</h3> |
| 1112 | + <div class="retro-flex retro-flex-wrap retro-gap-3"> |
| 1113 | + <div class="retro-bg-light retro-p-4 retro-raised">retro-raised</div> |
| 1114 | + <div class="retro-bg-light retro-p-4 retro-sunken">retro-sunken</div> |
| 1115 | + <div class="retro-bg-light retro-p-4 retro-shadow-md">retro-shadow-md</div> |
| 1116 | + <div class="retro-bg-light retro-p-4 retro-shadow-lg">retro-shadow-lg</div> |
| 1117 | + </div> |
| 1118 | + </div> |
1026 | 1119 | <div class="demo-section retro-card" id="section-grid"> |
1027 | 1120 | <h2>📐 Grid System</h2> |
1028 | 1121 | <h3>Basic Grid</h3> |
@@ -1385,21 +1478,21 @@ <h2>🎠 Carousel / Slider</h2> |
1385 | 1478 | <div class="retro-carousel-track"> |
1386 | 1479 | <div class="retro-carousel-slide"> |
1387 | 1480 | <div class="retro-card"> |
1388 | | - <h2>Slide 1: Welcome to RetroCSS!</h2> |
| 1481 | + <h3>Slide 1: Welcome to RetroCSS!</h3> |
1389 | 1482 | <p>This is the first slide of the carousel. It can contain any content you want.</p> |
1390 | 1483 | <img src="https://placehold.co/600x400" alt="Placeholder Image"> |
1391 | 1484 | </div> |
1392 | 1485 | </div> |
1393 | 1486 | <div class="retro-carousel-slide"> |
1394 | 1487 | <div class="retro-card"> |
1395 | | - <h2>Slide 2: You can add any content here.</h2> |
| 1488 | + <h3>Slide 2: You can add any content here.</h3> |
1396 | 1489 | <p>This is the second slide of the carousel. It can contain any content you want.</p> |
1397 | 1490 | <img src="https://placehold.co/600x400" alt="Placeholder Image"> |
1398 | 1491 | </div> |
1399 | 1492 | </div> |
1400 | 1493 | <div class="retro-carousel-slide"> |
1401 | 1494 | <div class="retro-card"> |
1402 | | - <h2>Slide 3: Try the arrows or dots below.</h2> |
| 1495 | + <h3>Slide 3: Try the arrows or dots below.</h3> |
1403 | 1496 | <p>This is the third slide of the carousel. It can contain any content you want.</p> |
1404 | 1497 | <img src="https://placehold.co/600x400" alt="Placeholder Image"> |
1405 | 1498 | </div> |
@@ -1553,7 +1646,8 @@ <h3>Retro Listbox</h3> |
1553 | 1646 | <p><del>Deleted text</del> <ins>Inserted text</ins> <sub>sub</sub> <sup>sup</sup></p> |
1554 | 1647 | </div> |
1555 | 1648 | </div> |
1556 | | - </div><!-- End of retro-main-grid --> |
| 1649 | + </div><!-- /content column --> |
| 1650 | + </div><!-- /retro-main-grid --> |
1557 | 1651 |
|
1558 | 1652 | <!-- Original Demo Modal (can be moved or kept here) --> |
1559 | 1653 | <div class="retro-modal" id="demoModal"> |
|
0 commit comments