update styling for language selector and reset code button in CodeChallenge component
This commit is contained in:
@@ -887,9 +887,9 @@ int main() {
|
|||||||
<option value="C">C</option>
|
<option value="C">C</option>
|
||||||
</select>
|
</select>
|
||||||
<button className="reset-code-btn">
|
<button className="reset-code-btn">
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||||
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/>
|
<polyline points="16 18 22 12 16 6"></polyline>
|
||||||
<path d="M21 3v5h-5"/>
|
<polyline points="8 6 2 12 8 18"></polyline>
|
||||||
</svg>
|
</svg>
|
||||||
Reset Code
|
Reset Code
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1479,41 +1479,55 @@ body {
|
|||||||
.editor-controls {
|
.editor-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
width: 95%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.language-selector {
|
.language-selector {
|
||||||
background-color: #3e3e42;
|
background-color: transparent;
|
||||||
color: #cccccc;
|
color: #858585;
|
||||||
border: 1px solid #3e3e42;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 0;
|
||||||
padding: 6px 12px;
|
padding: 8px 16px;
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
transition: all 0.2s;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.language-selector:hover {
|
.language-selector:hover {
|
||||||
background-color: #4e4e52;
|
color: #cccccc;
|
||||||
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reset-code-btn {
|
.reset-code-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: #cccccc;
|
color: #858585;
|
||||||
border: 1px solid #555555;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reset-code-btn svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
stroke-width: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reset-code-btn:hover {
|
.reset-code-btn:hover {
|
||||||
background-color: #3e3e42;
|
color: #cccccc;
|
||||||
border-color: #777777;
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-container {
|
.editor-container {
|
||||||
|
|||||||
Reference in New Issue
Block a user