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