fix: build files
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: npm i
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
@@ -31,4 +31,4 @@ jobs:
|
||||
if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs
|
||||
publish_dir: ./dist
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.idea
|
||||
.cache
|
||||
dist
|
||||
node_modules
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,188 +0,0 @@
|
||||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
parcelRequire = (function (modules, cache, entry, globalName) {
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
var nodeRequire = typeof require === 'function' && require;
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error('Cannot find module \'' + name + '\'');
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = cache[name] = new newRequire.Module(name);
|
||||
|
||||
modules[name][0].call(module.exports, localRequire, module, module.exports, this);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x){
|
||||
return newRequire(localRequire.resolve(x));
|
||||
}
|
||||
|
||||
function resolve(x){
|
||||
return modules[name][1][x] || x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [function (require, module) {
|
||||
module.exports = exports;
|
||||
}, {}];
|
||||
};
|
||||
|
||||
var error;
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
try {
|
||||
newRequire(entry[i]);
|
||||
} catch (e) {
|
||||
// Save first error but execute all entries
|
||||
if (!error) {
|
||||
error = e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (entry.length) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(entry[entry.length - 1]);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === "object" && typeof module !== "undefined") {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
|
||||
// Override the current require with this new one
|
||||
parcelRequire = newRequire;
|
||||
|
||||
if (error) {
|
||||
// throw error from earlier, _after updating parcelRequire_
|
||||
throw error;
|
||||
}
|
||||
|
||||
return newRequire;
|
||||
})({"HJDO":[function(require,module,exports) {
|
||||
// JavaScript functions from original HTML
|
||||
var frameworks = ['React', 'Vue.js', 'Angular', 'Svelte', 'Solid', 'Alpine.js', 'Lit', 'Preact', 'Qwik', 'SvelteKit', 'Next.js', 'Nuxt.js'];
|
||||
function filterFrameworks(value) {
|
||||
var results = document.getElementById('js-results');
|
||||
if (!value) {
|
||||
results.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
var filtered = frameworks.filter(function (fw) {
|
||||
return fw.toLowerCase().includes(value.toLowerCase());
|
||||
});
|
||||
results.innerHTML = filtered.map(function (fw) {
|
||||
return "<div style=\"padding:8px; cursor:pointer;\" onclick=\"selectFramework('".concat(fw, "')\">").concat(fw, "</div>");
|
||||
}).join('');
|
||||
results.style.display = filtered.length ? 'block' : 'none';
|
||||
}
|
||||
function selectFramework(fw) {
|
||||
document.getElementById('js-search').value = fw;
|
||||
document.getElementById('js-results').style.display = 'none';
|
||||
}
|
||||
function startNativeProgress() {
|
||||
var progress = document.getElementById('nativeProgress');
|
||||
var text = document.getElementById('nativeProgressText');
|
||||
var value = 0;
|
||||
var interval = setInterval(function () {
|
||||
value += Math.random() * 15;
|
||||
if (value >= 100) {
|
||||
value = 100;
|
||||
clearInterval(interval);
|
||||
}
|
||||
progress.value = value;
|
||||
text.textContent = Math.round(value) + '%';
|
||||
}, 200);
|
||||
}
|
||||
function toggleContent(id) {
|
||||
document.getElementById(id).classList.toggle("active");
|
||||
}
|
||||
function openJSModal() {
|
||||
document.getElementById('jsModal').style.display = 'flex';
|
||||
}
|
||||
function closeJSModal() {
|
||||
document.getElementById('jsModal').style.display = 'none';
|
||||
}
|
||||
function validateJSForm(event) {
|
||||
event.preventDefault();
|
||||
alert('Custom validation would run here');
|
||||
return false;
|
||||
}
|
||||
function startJSProgress() {
|
||||
var bar = document.getElementById('jsProgress');
|
||||
var text = document.getElementById('jsProgressText');
|
||||
var width = 0;
|
||||
var interval = setInterval(function () {
|
||||
width += Math.random() * 15;
|
||||
if (width >= 100) {
|
||||
width = 100;
|
||||
clearInterval(interval);
|
||||
}
|
||||
bar.style.width = width + '%';
|
||||
text.textContent = Math.round(width) + '%';
|
||||
}, 200);
|
||||
}
|
||||
function openDatePicker() {
|
||||
var picker = document.getElementById('datePicker');
|
||||
picker.style.display = picker.style.display === 'none' ? 'block' : 'none';
|
||||
}
|
||||
},{}]},{},["HJDO"], null)
|
||||
//# sourceMappingURL=/html-over-js/main.082e2b9e.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,644 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #ffffff;
|
||||
--color-card: #f8f9fa;
|
||||
--color-primary: #0066cc;
|
||||
--color-primary-hover: #0052a3;
|
||||
--color-danger: #dc3545;
|
||||
--color-warning: #856404;
|
||||
--color-warning-bg: #fff3cd;
|
||||
--color-content-bg: #f1f3f4;
|
||||
--color-border: #dee2e6;
|
||||
--color-text: #212529;
|
||||
--color-text-muted: #6c757d;
|
||||
--color-code-bg: #f8f9fa;
|
||||
--color-code-text: #0066cc;
|
||||
--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
--radius: 8px;
|
||||
--focus-outline: 2px solid #0066cc;
|
||||
--focus-outline-danger: 2px solid #dc3545;
|
||||
--focus-offset: 2px;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 4rem;
|
||||
padding: 3rem;
|
||||
background: var(--color-card);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.hero:focus-within {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: clamp(2rem, 5vw, 3.5rem);
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--color-primary);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.hero .subtitle {
|
||||
font-size: 1.125rem;
|
||||
color: var(--color-text-muted);
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.comparison-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 2rem;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin: 4rem 0;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
padding: 1.5rem 0;
|
||||
text-align: center;
|
||||
color: var(--color-primary);
|
||||
position: relative;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.section-title::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 60px;
|
||||
height: 2px;
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
.column {
|
||||
background: var(--color-card);
|
||||
padding: 2rem;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid var(--color-border);
|
||||
transition: box-shadow 0.2s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.column:hover {
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.column:focus-within {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
.column.bad:focus-within {
|
||||
outline: var(--focus-outline-danger);
|
||||
}
|
||||
|
||||
.column h3 {
|
||||
color: var(--color-text);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
padding-bottom: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.bad {
|
||||
border-left: 3px solid var(--color-danger);
|
||||
}
|
||||
|
||||
.bad h3::before {
|
||||
content: '⚠️ ';
|
||||
}
|
||||
|
||||
.bad button {
|
||||
background: var(--color-danger);
|
||||
}
|
||||
|
||||
.bad button:hover {
|
||||
background: var(--color-danger);
|
||||
}
|
||||
|
||||
.bad button:focus {
|
||||
outline: var(--focus-outline-danger);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
.good {
|
||||
border-left: 3px solid var(--color-primary);
|
||||
}
|
||||
|
||||
.good h3::before {
|
||||
content: '✅ ';
|
||||
}
|
||||
|
||||
.accessibility-note {
|
||||
background: var(--color-warning-bg);
|
||||
border: 1px solid #ffc107;
|
||||
color: var(--color-warning);
|
||||
padding: 1rem;
|
||||
border-radius: var(--radius);
|
||||
margin: 1.5rem 0;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.code-block {
|
||||
/*display: none;*/
|
||||
background: var(--color-code-bg);
|
||||
color: var(--color-code-text);
|
||||
padding: 2rem 1.5rem 1rem;
|
||||
border-radius: var(--radius);
|
||||
overflow-x: auto;
|
||||
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
|
||||
font-size: 0.875rem;
|
||||
margin: 1.5rem 0;
|
||||
border: 1px solid var(--color-border);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.code-block:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
.code-block::before {
|
||||
content: 'CODE';
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: 15px;
|
||||
background: var(--color-primary);
|
||||
color: white;
|
||||
padding: 10px 8px 0;
|
||||
font-size: 0.7rem;
|
||||
border-radius: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pros-cons {
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.pros-cons h4 {
|
||||
margin-bottom: 1rem;
|
||||
color: var(--color-text);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pros-cons ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.pros-cons li {
|
||||
padding: 0.5rem 0;
|
||||
padding-left: 1.5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pros li::before {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--color-primary);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cons li::before {
|
||||
content: '✗';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--color-danger);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Interactive Elements */
|
||||
.js-collapsible {
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
padding: 12px 16px;
|
||||
border: none;
|
||||
text-align: left;
|
||||
outline: none;
|
||||
font-size: 1rem;
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.js-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
.js-content {
|
||||
display: none;
|
||||
background: var(--color-content-bg);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 0 0 var(--radius) var(--radius);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.js-content.active {
|
||||
display: block;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.js-content.active + .js-collapsible {
|
||||
border-radius: var(--radius) var(--radius) 0 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
details {
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 1rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
details:focus-within {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
summary {
|
||||
background: var(--color-primary);
|
||||
color: white;
|
||||
padding: 12px 16px;
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
list-style: none;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
summary:hover {
|
||||
background: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
summary:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
summary::before {
|
||||
content: '▶';
|
||||
margin-right: 8px;
|
||||
transition: transform 0.2s ease;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
details[open] summary::before {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
details > div {
|
||||
padding: 16px;
|
||||
background: var(--color-content-bg);
|
||||
}
|
||||
|
||||
/* Modal Styles */
|
||||
.js-modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.js-modal-overlay.active {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.js-modal-content {
|
||||
margin: auto;
|
||||
background: var(--color-bg);
|
||||
padding: 2rem;
|
||||
border-radius: var(--radius);
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.js-modal-content:focus {
|
||||
outline: var(--focus-outline-danger);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
dialog {
|
||||
margin: auto;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
padding: 2rem;
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
box-shadow: var(--shadow);
|
||||
max-width: 500px;
|
||||
width: 90vw;
|
||||
}
|
||||
|
||||
dialog:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
/* Form Styles */
|
||||
.form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.form-group input, .form-group textarea, .form-group select {
|
||||
width: 100%;
|
||||
padding: 10px 12px;
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
font-size: 1rem;
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
transition: all 0.2s ease;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: 2px;
|
||||
border-color: var(--color-border);
|
||||
}
|
||||
|
||||
.form-group input:invalid {
|
||||
border-color: var(--color-danger);
|
||||
}
|
||||
|
||||
.form-group input:valid {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.js-error {
|
||||
color: var(--color-danger);
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.5rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.js-error.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Progress Styles */
|
||||
.js-progress-container {
|
||||
width: 100%;
|
||||
background: var(--color-border);
|
||||
border-radius: 4px;
|
||||
height: 20px;
|
||||
margin: 1.5rem 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.js-progress-bar {
|
||||
height: 100%;
|
||||
background: var(--color-danger);
|
||||
width: 0;
|
||||
transition: width 0.3s ease;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
progress {
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
margin: 1.5rem 0;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
background: var(--color-border);
|
||||
}
|
||||
|
||||
progress:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
progress::-webkit-progress-bar {
|
||||
background-color: var(--color-border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
progress::-webkit-progress-value {
|
||||
background: var(--color-primary);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
progress::-moz-progress-bar {
|
||||
background: var(--color-primary);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Button Styles */
|
||||
button {
|
||||
background: var(--color-primary);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 16px;
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
margin: 0.5rem 0.5rem 0.5rem 0;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: var(--color-primary-hover);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
button:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
background: var(--color-text-muted);
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Component Styles */
|
||||
.datalist-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
input[list] {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
|
||||
background-position: right 12px center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 16px;
|
||||
padding-right: 36px;
|
||||
}
|
||||
|
||||
.slider-container {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--color-border);
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
input[type="range"]:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.color-input {
|
||||
width: 50px;
|
||||
height: 32px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.color-input:focus {
|
||||
outline: var(--focus-outline);
|
||||
outline-offset: var(--focus-offset);
|
||||
}
|
||||
|
||||
.summary-box {
|
||||
margin-top: 4rem;
|
||||
padding: 2rem;
|
||||
background: var(--color-card);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid var(--color-border);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.summary-box h3 {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--color-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.zen-quote {
|
||||
font-style: italic;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 1rem;
|
||||
margin-top: 1.5rem;
|
||||
border-left: 3px solid var(--color-primary);
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.comparison-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Performance indicators */
|
||||
.perf-indicator {
|
||||
display: inline-block;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.perf-fast {
|
||||
background: rgba(0, 102, 204, 0.1);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.perf-slow {
|
||||
background: rgba(220, 53, 69, 0.1);
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
|
||||
/*# sourceMappingURL=/html-over-js/main.612a6b84.css.map */
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "parcel --port 1312 --public-url / index.pug --open",
|
||||
"build": "parcel build index.pug --out-dir docs --public-url /html-over-js --no-minify",
|
||||
"build": "parcel build index.pug --out-dir dist --public-url /html-over-js --no-minify",
|
||||
"format": "prettier --write src/**/*.pug index.pug package.json && prettier --write --parser json .pugrc"
|
||||
},
|
||||
"author": "Michael Werner Czechowski <mail@dailysh.it>",
|
||||
|
||||
Reference in New Issue
Block a user