feat: update localStorage keys for user progress and last module ID, enhance editor layout with validation indicator
This commit is contained in:
30
src/main.css
30
src/main.css
@@ -331,17 +331,27 @@ code {
|
||||
color: #d4d4d4;
|
||||
border: none;
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
min-height: 100px; /* Ensure minimum height */
|
||||
font-family: var(--font-code);
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
padding: var(--spacing-xs) 0;
|
||||
outline: none;
|
||||
resize: vertical;
|
||||
overflow: auto; /* Ensure scrolling works */
|
||||
resize: none; /* Disable textarea resize */
|
||||
caret-color: var(--primary-light);
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.code-input.inline-input {
|
||||
display: inline-block;
|
||||
min-height: 30px;
|
||||
height: auto;
|
||||
padding: 2px 4px;
|
||||
margin: 0 4px;
|
||||
border-bottom: 1px dashed #666;
|
||||
}
|
||||
|
||||
/* Controls */
|
||||
.controls {
|
||||
display: flex;
|
||||
@@ -414,6 +424,22 @@ code {
|
||||
border: 1px solid var(--success-color);
|
||||
}
|
||||
|
||||
.validation-success-indicator {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 7rem;
|
||||
background-color: var(--success-color);
|
||||
color: white;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
/* Module selector button with progress */
|
||||
#module-selector-btn {
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user