fix: remove theme settings correctly
This commit is contained in:
committed by
mrugesh
parent
12a2b47b17
commit
ab806c1e5d
@ -4,8 +4,6 @@ import { Form } from '@freecodecamp/react-bootstrap';
|
||||
|
||||
import ToggleSetting from './ToggleSetting';
|
||||
|
||||
import './theme-settings.css';
|
||||
|
||||
const propTypes = {
|
||||
currentTheme: PropTypes.string.isRequired,
|
||||
toggleNightMode: PropTypes.func.isRequired
|
||||
|
@ -1,10 +0,0 @@
|
||||
#theme-settings-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#theme-settings-container .theme-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
}
|
@ -4,6 +4,12 @@
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.toggle-setting-container .toggle-label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.toggle-setting-container .btn-group {
|
||||
padding-left: 5px;
|
||||
}
|
||||
@ -23,8 +29,11 @@
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
|
||||
.toggle-setting-container .btn-group,
|
||||
.theme-setting-container .btn-group {
|
||||
.toggle-setting-container .toggle-label {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.toggle-setting-container .btn-group {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
justify-content: flex-start;
|
||||
|
Reference in New Issue
Block a user