-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: increase specificity of app styles
- Loading branch information
Showing
18 changed files
with
276 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 22 additions & 17 deletions
39
src/ui/assets/jss/material-dashboard-react/checkboxAdnRadioStyle.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,52 @@ | ||
import { primaryColor, blackColor, hexToRgb } from '../material-dashboard-react.js'; | ||
import { | ||
primaryColor, | ||
blackColor, | ||
hexToRgb, | ||
increaseSpecificity, | ||
} from '../material-dashboard-react.js'; | ||
|
||
const checkboxAdnRadioStyle = { | ||
root: { | ||
root: increaseSpecificity({ | ||
padding: '13px', | ||
'&:hover': { | ||
backgroundColor: 'unset', | ||
}, | ||
}, | ||
labelRoot: { | ||
}), | ||
labelRoot: increaseSpecificity({ | ||
marginLeft: '-14px', | ||
}, | ||
checked: { | ||
}), | ||
checked: increaseSpecificity({ | ||
color: primaryColor[0] + '!important', | ||
}, | ||
checkedIcon: { | ||
}), | ||
checkedIcon: increaseSpecificity({ | ||
width: '20px', | ||
height: '20px', | ||
border: '1px solid rgba(' + hexToRgb(blackColor) + ', .54)', | ||
borderRadius: '3px', | ||
}, | ||
uncheckedIcon: { | ||
}), | ||
uncheckedIcon: increaseSpecificity({ | ||
width: '0px', | ||
height: '0px', | ||
padding: '10px', | ||
border: '1px solid rgba(' + hexToRgb(blackColor) + ', .54)', | ||
borderRadius: '3px', | ||
}, | ||
radio: { | ||
}), | ||
radio: increaseSpecificity({ | ||
color: primaryColor[0] + '!important', | ||
}, | ||
radioChecked: { | ||
}), | ||
radioChecked: increaseSpecificity({ | ||
width: '20px', | ||
height: '20px', | ||
border: '1px solid ' + primaryColor[0], | ||
borderRadius: '50%', | ||
}, | ||
radioUnchecked: { | ||
}), | ||
radioUnchecked: increaseSpecificity({ | ||
width: '0px', | ||
height: '0px', | ||
padding: '10px', | ||
border: '1px solid rgba(' + hexToRgb(blackColor) + ', .54)', | ||
borderRadius: '50%', | ||
}, | ||
}), | ||
}; | ||
|
||
export default checkboxAdnRadioStyle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.