File size: 5,248 Bytes
4af09f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | * {
box-sizing: border-box;
margin: 0;
padding: 0;
border-radius: 2px !important; /* Specification: Extremely-less-curved edges */
}
:root {
--bg-color: #f7f7f7;
--bg-panel: #ffffff;
--text-primary: #111111;
--text-secondary: #666666;
--border-color: #eeeeee;
--accent-color: #2e6ff2;
--font-ibm-plex: 'IBM Plex Mono', monospace;
--font-claude-sans: 'Inter', system-ui, sans-serif;
--font-wix-display: 'Wix Madefor Display', sans-serif;
--font-courier-new: 'Courier New', Courier, monospace;
--radius-sm: 2px;
--radius-md: 2px;
--bg-opacity: 0.15;
--fg-opacity: 1;
--transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
html, body {
height: 100%;
width: 100%;
}
body {
background-color: var(--bg-color);
color: var(--text-primary);
font-family: var(--font-ibm-plex);
overflow: hidden; /* App takes full screen */
}
/* Typography Classes */
.font-ibm-plex-mono { font-family: var(--font-ibm-plex); }
.font-claudesans { font-family: var(--font-claude-sans); }
.font-wixmadefordisplay { font-family: var(--font-wix-display); }
.font-couriernew { font-family: var(--font-courier-new); }
/* Layout Shell */
.app-container {
display: flex;
height: 100vh;
width: 100vw;
position: relative;
overflow: hidden;
}
.app-background {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background-size: cover;
background-position: center;
z-index: -1;
opacity: var(--bg-opacity);
}
.mini-sidebar {
width: 48px;
background-color: var(--bg-panel);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
align-items: center;
padding: 12px 0;
gap: 16px;
z-index: 10;
}
.sidebar-panel {
width: 260px;
background-color: rgba(255, 255, 255, 0.85); /* Glassmorphism leaning */
backdrop-filter: blur(10px);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
z-index: 10;
transition: width 0.3s ease;
}
.sidebar-header {
height: 48px;
padding: 0 16px;
display: flex;
align-items: center;
border-bottom: 1px solid var(--border-color);
font-weight: 500;
font-size: 14px;
}
.editor-main {
flex: 1;
background-color: transparent;
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
}
.editor-placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-secondary);
}
/* Reusable buttons component logic will be added here */
button {
all: unset;
cursor: pointer;
border-radius: var(--radius-sm);
transition: var(--transition-smooth);
}
/* Tree View Styling UPDATED */
.tree-view {
padding-bottom: 20px;
}
.tree-children {
position: relative;
transition: all 0.3s ease;
}
/* Vertical line for the branch refine */
.tree-children::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 1px;
background-color: rgba(0,0,0,0.03);
}
.tree-item-wrapper {
position: relative;
}
.tree-item {
transition: background-color 0.15s ease, border-left 0.1s ease;
}
.tree-item:hover {
background-color: rgba(0, 0, 0, 0.02);
}
.tree-item:hover .more-btn {
opacity: 0.6 !important;
}
.tree-item .more-btn:hover {
opacity: 1 !important;
background-color: rgba(0, 0, 0, 0.05);
}
.tree-item.active {
background-color: rgba(0, 0, 0, 0.04) !important;
font-weight: 500;
}
.btn-icon-sm {
all: unset;
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
color: var(--text-secondary);
opacity: 0.6;
}
.btn-icon-sm:hover {
background-color: rgba(0, 0, 0, 0.05);
opacity: 1;
color: var(--text-primary);
}
.context-menu button {
all: unset;
cursor: pointer;
font-family: var(--font-ibm-plex);
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.spin {
animation: spin 1s linear infinite;
}
.pixilize {
filter: blur(5px) grayscale(0.5);
transition: filter 0.3s ease;
user-select: none;
}
.pixilize:hover {
filter: none;
}
.ContentEditable {
flex: 1;
outline: none;
padding: 0px 24px 100px 24px;
font-size: 14px;
line-height: 1.5;
color: var(--text-primary);
tab-size: 4;
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: break-word;
}
.editor-paragraph {
margin: 0;
position: relative;
}
.comment-bubble {
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 8px 12px;
font-size: 11px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
margin-bottom: 8px;
color: var(--text-primary);
max-width: 250px;
line-height: 1.4;
}
.comment-toggle {
opacity: 0.1;
transition: opacity 0.2s ease;
}
.tree-item-wrapper:hover .comment-toggle,
.line-numbers-container:hover .comment-toggle,
.comment-toggle.active {
opacity: 1;
}
.editor-text-bold { font-weight: bold; }
.editor-text-italic { font-style: italic; }
.editor-text-strikethrough { text-decoration: line-through; }
.editor-text-underline { text-decoration: underline; }
@keyframes fadeInSlide {
from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }
} |