Skip to content

Commit 78c2af0

Browse files
brunoborgesCopilot
andcommitted
Extract inline CSS from step.html into step.css
Move all inline <style> block content to a separate step.css file and replace with a <link> tag. Also convert static inline style attributes to CSS classes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cdde81b commit 78c2af0

2 files changed

Lines changed: 80 additions & 80 deletions

File tree

docs/step.css

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
:root {
2+
--bg-dark: #0a0a0f;
3+
--bg-card: #12121a;
4+
--bg-code: #1a1a2e;
5+
--neon-cyan: #00f5ff;
6+
--neon-magenta: #ff00ff;
7+
--neon-purple: #b366ff;
8+
--text-primary: #ffffff;
9+
--text-secondary: #a0a0b0;
10+
--border-color: #2a2a3a;
11+
--success-green: #4ec9b0;
12+
--warning-yellow: #dcdcaa;
13+
}
14+
* { margin: 0; padding: 0; box-sizing: border-box; }
15+
body { font-family: 'Space Grotesk', sans-serif; background: var(--bg-dark); color: var(--text-primary); line-height: 1.7; min-height: 100vh; }
16+
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px), linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: -1; }
17+
.header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
18+
.header-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
19+
.header-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text-primary); }
20+
.header-brand:hover { color: var(--neon-cyan); }
21+
.header-title { font-size: 1.25rem; font-weight: 600; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
22+
.header-nav { display: flex; gap: 0.5rem; }
23+
.nav-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: all 0.2s ease; cursor: pointer; font-family: inherit; }
24+
.nav-btn:hover:not(:disabled) { border-color: var(--neon-cyan); color: var(--neon-cyan); }
25+
.nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
26+
.layout { display: flex; max-width: 1400px; margin: 0 auto; }
27+
.sidebar { width: 280px; background: var(--bg-card); border-right: 1px solid var(--border-color); height: calc(100vh - 65px); position: sticky; top: 65px; overflow-y: auto; flex-shrink: 0; }
28+
.sidebar-section { padding: 1rem; }
29+
.sidebar-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 0.75rem; padding: 0 0.5rem; }
30+
.step-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 6px; text-decoration: none; color: var(--text-secondary); font-size: 0.875rem; transition: all 0.2s ease; margin-bottom: 0.25rem; }
31+
.step-link:hover { background: rgba(0,245,255,0.1); color: var(--text-primary); }
32+
.step-link.active { background: linear-gradient(135deg, rgba(0,245,255,0.2), rgba(255,0,255,0.2)); color: var(--text-primary); border-left: 3px solid var(--neon-cyan); }
33+
.step-number { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--border-color); border-radius: 6px; font-size: 0.75rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
34+
.step-link.active .step-number { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)); color: var(--bg-dark); }
35+
.main { flex: 1; min-width: 0; padding: 2rem 3rem; }
36+
.content { max-width: 800px; margin: 0 auto; }
37+
.loading { display: flex; align-items: center; justify-content: center; height: 300px; color: var(--text-secondary); }
38+
.loading::after { content: ''; width: 32px; height: 32px; border: 3px solid var(--border-color); border-top-color: var(--neon-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 1rem; }
39+
@keyframes spin { to { transform: rotate(360deg); } }
40+
/* Markdown styles */
41+
.markdown h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.3; }
42+
.markdown h2 { font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 1rem; color: var(--neon-cyan); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
43+
.markdown h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--neon-magenta); }
44+
.markdown h4 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text-primary); }
45+
.markdown p { margin-bottom: 1rem; color: var(--text-secondary); }
46+
.markdown a { color: var(--neon-cyan); text-decoration: none; }
47+
.markdown a:hover { text-decoration: underline; }
48+
.markdown strong { color: var(--text-primary); font-weight: 600; }
49+
.markdown ul, .markdown ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
50+
.markdown li { margin-bottom: 0.5rem; }
51+
.markdown li::marker { color: var(--neon-cyan); }
52+
.markdown input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 4px; margin-right: 0.5rem; vertical-align: middle; position: relative; cursor: pointer; }
53+
.markdown input[type="checkbox"]:checked { background: var(--neon-cyan); border-color: var(--neon-cyan); }
54+
.markdown input[type="checkbox"]:checked::after { content: '✓'; position: absolute; color: var(--bg-dark); font-size: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
55+
.markdown code { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; }
56+
.markdown :not(pre) > code { background: var(--bg-code); padding: 0.2em 0.4em; border-radius: 4px; color: var(--warning-yellow); }
57+
.markdown pre { background: var(--bg-code); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
58+
.markdown pre code { color: var(--text-primary); background: none; padding: 0; }
59+
.markdown blockquote { background: var(--bg-card); border-left: 4px solid var(--neon-cyan); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
60+
.markdown blockquote p { margin: 0; color: var(--text-secondary); }
61+
.markdown blockquote p:first-child { font-weight: 600; color: var(--neon-cyan); }
62+
.markdown img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border-color); margin: 1.5rem 0; }
63+
.markdown table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
64+
.markdown th, .markdown td { padding: 0.75rem 1rem; border: 1px solid var(--border-color); text-align: left; }
65+
.markdown th { background: var(--bg-card); color: var(--text-primary); font-weight: 600; }
66+
.markdown td { color: var(--text-secondary); }
67+
.markdown tr:hover td { background: rgba(0,245,255,0.05); }
68+
.markdown hr { border: none; border-top: 1px solid var(--border-color); margin: 2.5rem 0; }
69+
.nav-footer { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
70+
.nav-footer-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); text-decoration: none; font-weight: 500; transition: all 0.2s ease; }
71+
.nav-footer-btn:hover { border-color: var(--neon-cyan); transform: translateY(-2px); }
72+
.nav-footer-btn.disabled { opacity: 0.4; pointer-events: none; }
73+
@media (max-width: 900px) {
74+
.sidebar { display: none; }
75+
.main { padding: 1.5rem; }
76+
.header-title { display: none; }
77+
}
78+
.header-icon { font-size: 1.5rem; }

docs/step.html

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -17,93 +17,15 @@
1717
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
1818
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
1919
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/dist/confetti.browser.min.js"></script>
20-
<style>
21-
:root {
22-
--bg-dark: #0a0a0f;
23-
--bg-card: #12121a;
24-
--bg-code: #1a1a2e;
25-
--neon-cyan: #00f5ff;
26-
--neon-magenta: #ff00ff;
27-
--neon-purple: #b366ff;
28-
--text-primary: #ffffff;
29-
--text-secondary: #a0a0b0;
30-
--border-color: #2a2a3a;
31-
--success-green: #4ec9b0;
32-
--warning-yellow: #dcdcaa;
33-
}
34-
* { margin: 0; padding: 0; box-sizing: border-box; }
35-
body { font-family: 'Space Grotesk', sans-serif; background: var(--bg-dark); color: var(--text-primary); line-height: 1.7; min-height: 100vh; }
36-
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px), linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: -1; }
37-
.header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
38-
.header-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
39-
.header-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text-primary); }
40-
.header-brand:hover { color: var(--neon-cyan); }
41-
.header-title { font-size: 1.25rem; font-weight: 600; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
42-
.header-nav { display: flex; gap: 0.5rem; }
43-
.nav-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: all 0.2s ease; cursor: pointer; font-family: inherit; }
44-
.nav-btn:hover:not(:disabled) { border-color: var(--neon-cyan); color: var(--neon-cyan); }
45-
.nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
46-
.layout { display: flex; max-width: 1400px; margin: 0 auto; }
47-
.sidebar { width: 280px; background: var(--bg-card); border-right: 1px solid var(--border-color); height: calc(100vh - 65px); position: sticky; top: 65px; overflow-y: auto; flex-shrink: 0; }
48-
.sidebar-section { padding: 1rem; }
49-
.sidebar-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 0.75rem; padding: 0 0.5rem; }
50-
.step-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 6px; text-decoration: none; color: var(--text-secondary); font-size: 0.875rem; transition: all 0.2s ease; margin-bottom: 0.25rem; }
51-
.step-link:hover { background: rgba(0,245,255,0.1); color: var(--text-primary); }
52-
.step-link.active { background: linear-gradient(135deg, rgba(0,245,255,0.2), rgba(255,0,255,0.2)); color: var(--text-primary); border-left: 3px solid var(--neon-cyan); }
53-
.step-number { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--border-color); border-radius: 6px; font-size: 0.75rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
54-
.step-link.active .step-number { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)); color: var(--bg-dark); }
55-
.main { flex: 1; min-width: 0; padding: 2rem 3rem; }
56-
.content { max-width: 800px; margin: 0 auto; }
57-
.loading { display: flex; align-items: center; justify-content: center; height: 300px; color: var(--text-secondary); }
58-
.loading::after { content: ''; width: 32px; height: 32px; border: 3px solid var(--border-color); border-top-color: var(--neon-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 1rem; }
59-
@keyframes spin { to { transform: rotate(360deg); } }
60-
/* Markdown styles */
61-
.markdown h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.3; }
62-
.markdown h2 { font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 1rem; color: var(--neon-cyan); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
63-
.markdown h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--neon-magenta); }
64-
.markdown h4 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text-primary); }
65-
.markdown p { margin-bottom: 1rem; color: var(--text-secondary); }
66-
.markdown a { color: var(--neon-cyan); text-decoration: none; }
67-
.markdown a:hover { text-decoration: underline; }
68-
.markdown strong { color: var(--text-primary); font-weight: 600; }
69-
.markdown ul, .markdown ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
70-
.markdown li { margin-bottom: 0.5rem; }
71-
.markdown li::marker { color: var(--neon-cyan); }
72-
.markdown input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 4px; margin-right: 0.5rem; vertical-align: middle; position: relative; cursor: pointer; }
73-
.markdown input[type="checkbox"]:checked { background: var(--neon-cyan); border-color: var(--neon-cyan); }
74-
.markdown input[type="checkbox"]:checked::after { content: '✓'; position: absolute; color: var(--bg-dark); font-size: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
75-
.markdown code { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; }
76-
.markdown :not(pre) > code { background: var(--bg-code); padding: 0.2em 0.4em; border-radius: 4px; color: var(--warning-yellow); }
77-
.markdown pre { background: var(--bg-code); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
78-
.markdown pre code { color: var(--text-primary); background: none; padding: 0; }
79-
.markdown blockquote { background: var(--bg-card); border-left: 4px solid var(--neon-cyan); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
80-
.markdown blockquote p { margin: 0; color: var(--text-secondary); }
81-
.markdown blockquote p:first-child { font-weight: 600; color: var(--neon-cyan); }
82-
.markdown img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border-color); margin: 1.5rem 0; }
83-
.markdown table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
84-
.markdown th, .markdown td { padding: 0.75rem 1rem; border: 1px solid var(--border-color); text-align: left; }
85-
.markdown th { background: var(--bg-card); color: var(--text-primary); font-weight: 600; }
86-
.markdown td { color: var(--text-secondary); }
87-
.markdown tr:hover td { background: rgba(0,245,255,0.05); }
88-
.markdown hr { border: none; border-top: 1px solid var(--border-color); margin: 2.5rem 0; }
89-
.nav-footer { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
90-
.nav-footer-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); text-decoration: none; font-weight: 500; transition: all 0.2s ease; }
91-
.nav-footer-btn:hover { border-color: var(--neon-cyan); transform: translateY(-2px); }
92-
.nav-footer-btn.disabled { opacity: 0.4; pointer-events: none; }
93-
@media (max-width: 900px) {
94-
.sidebar { display: none; }
95-
.main { padding: 1.5rem; }
96-
.header-title { display: none; }
97-
}
98-
</style>
20+
<link rel="stylesheet" href="step.css">
9921
<link rel="stylesheet" href="light-theme.css">
10022
<script src="theme-toggle.js"></script>
10123
</head>
10224
<body>
10325
<header class="header">
10426
<div class="header-content">
10527
<a href="index.html" class="header-brand">
106-
<span style="font-size: 1.5rem;">🚀</span>
28+
<span class="header-icon">🚀</span>
10729
<!-- TODO: Update header title -->
10830
<span class="header-title">Agentic Workflows Workshop</span>
10931
</a>

0 commit comments

Comments
 (0)