@asafarim/markdown-explorer-viewer
Version:
A reusable React component for exploring and viewing markdown files with file tree navigation
86 lines (73 loc) • 1.45 kB
CSS
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
height: 100vh;
overflow: hidden;
}
#root {
height: 100vh;
}
.demo-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 1rem 2rem;
text-align: center;
}
.demo-header h1 {
margin: 0 0 0.5rem 0;
font-size: 2rem;
}
.demo-header p {
margin: 0;
opacity: 0.9;
}
.demo-container {
height: calc(100vh - 120px);
display: flex;
flex-direction: column;
}
.demo-controls {
padding: 1rem 2rem;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
display: flex;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
}
.demo-controls label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
font-weight: 500;
}
.demo-controls select,
.demo-controls input {
padding: 0.25rem 0.5rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
font-size: 0.875rem;
}
.demo-controls button {
padding: 0.5rem 1rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 0.375rem;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
transition: background-color 0.2s;
}
.demo-controls button:hover {
background: #2563eb;
}
.explorer-container {
flex: 1;
overflow: hidden;
}