mindmap-studio / frontend /style.css
kazutab's picture
Upload folder using huggingface_hub
8db8202 verified
Raw
History Blame Contribute Delete
4.62 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
:root {
--bg-canvas: #fafafa;
--bg-sidebar: #ffffff;
--border-color: #eaeaea;
--text-primary: #171717;
--text-secondary: #666666;
--text-tertiary: #a1a1aa;
--focus-ring: rgba(0, 0, 0, 0.08);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
color: var(--text-primary);
background-color: var(--bg-canvas);
height: 100vh;
overflow: hidden;
-webkit-font-smoothing: antialiased;
}
.app-layout {
display: flex;
height: 100vh;
width: 100vw;
}
/* Sidebar Styling (Vercel/Linear Style) */
.sidebar {
width: 360px;
background-color: var(--bg-sidebar);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
box-shadow: 1px 0 10px rgba(0,0,0,0.02);
z-index: 10;
}
.sidebar-header {
padding: 24px;
border-bottom: 1px solid var(--border-color);
}
.logo {
display: flex;
align-items: center;
gap: 12px;
font-weight: 600;
font-size: 16px;
letter-spacing: -0.02em;
}
.sidebar-content {
flex-grow: 1;
padding: 24px;
display: flex;
flex-direction: column;
gap: 20px;
}
.input-group {
display: flex;
flex-direction: column;
gap: 8px;
flex-grow: 1;
}
.input-group label {
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
}
textarea {
flex-grow: 1;
width: 100%;
resize: none;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 16px;
font-family: inherit;
font-size: 14px;
line-height: 1.6;
color: var(--text-primary);
background-color: #fff;
transition: all 0.2s ease;
box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
textarea:focus {
outline: none;
border-color: #999;
box-shadow: 0 0 0 4px var(--focus-ring);
}
textarea::placeholder {
color: #a1a1aa;
}
/* Minimalist Black Button */
.btn-primary {
background-color: #000;
color: #fff;
border: none;
border-radius: 6px;
padding: 12px 16px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-primary:hover {
background-color: #333;
}
.btn-primary:active {
transform: scale(0.98);
}
.btn-primary:disabled {
background-color: #e5e5e5;
color: #a3a3a3;
cursor: not-allowed;
}
/* Loading State */
#loading {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
font-size: 13px;
color: var(--text-secondary);
padding: 12px;
}
.spinner {
width: 16px;
height: 16px;
border: 2px solid var(--border-color);
border-top: 2px solid #000;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.hidden {
display: none !important;
}
.sidebar-footer {
padding: 16px 24px;
border-top: 1px solid var(--border-color);
font-size: 12px;
color: var(--text-tertiary);
}
/* Canvas Area */
.canvas-area {
flex-grow: 1;
position: relative;
background-color: var(--bg-canvas);
/* Subtle dot pattern for the canvas */
background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
background-size: 20px 20px;
}
#markmap {
width: 100%;
height: 100%;
}
.disclaimer {
position: absolute;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: var(--text-tertiary);
text-align: center;
pointer-events: none;
z-index: 100;
}
/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
.app-layout {
flex-direction: column;
height: 100vh;
overflow-y: auto; /* Allow scrolling if content overflows */
}
.sidebar {
width: 100%;
height: auto;
border-right: none;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.sidebar-header {
padding: 16px;
}
.sidebar-content {
padding: 16px;
gap: 16px;
}
textarea {
height: 120px; /* Reduce textarea height on mobile */
flex-grow: 0;
}
.canvas-area {
min-height: 50vh; /* Ensure canvas has enough space */
flex-grow: 1;
}
.sidebar-footer {
padding: 12px 16px;
}
}