File: //matrixSwot/frontend/src/assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.js
import {
primaryColor,
dangerColor,
roseColor,
grayColor,
blackColor,
whiteColor,
hexToRgb
} from "assets/jss/material-dashboard-pro-react.js";
const customCheckboxRadioSwitch = {
checkRoot: {
padding: "14px",
"&:hover": {
backgroundColor: "unset"
}
},
radioRoot: {
padding: "16px",
"&:hover": {
backgroundColor: "unset"
}
},
labelRoot: {
marginLeft: "-14px"
},
checkboxAndRadio: {
position: "relative",
display: "block",
marginTop: "10px",
marginBottom: "10px"
},
checkboxAndRadioHorizontal: {
position: "relative",
display: "block",
"&:first-child": {
marginTop: "10px"
},
"&:not(:first-child)": {
marginTop: "-14px"
},
marginTop: "0",
marginBottom: "0"
},
checked: {
color: primaryColor[0] + "!important"
},
checkedIcon: {
width: "20px",
height: "20px",
border: "1px solid rgba(" + hexToRgb(blackColor) + ", .54)",
borderRadius: "3px"
},
uncheckedIcon: {
width: "0px",
height: "0px",
padding: "9px",
border: "1px solid rgba(" + hexToRgb(blackColor) + ", .54)",
borderRadius: "3px"
},
disabledCheckboxAndRadio: {
"& $checkedIcon,& $uncheckedIcon,& $radioChecked,& $radioUnchecked": {
borderColor: blackColor,
opacity: "0.26",
color: blackColor
}
},
label: {
cursor: "pointer",
paddingLeft: "0",
color: grayColor[3],
fontSize: "14px",
lineHeight: "1.428571429",
fontWeight: "400",
display: "inline-flex",
transition: "0.3s ease all",
letterSpacing: "unset"
},
labelHorizontal: {
color: "rgba(" + hexToRgb(blackColor) + ", 0.26)",
cursor: "pointer",
display: "inline-flex",
fontSize: "14px",
lineHeight: "1.428571429",
fontWeight: "400",
paddingTop: "39px",
marginRight: "0",
"@media (min-width: 992px)": {
float: "right"
}
},
labelHorizontalRadioCheckbox: {
paddingTop: "22px"
},
labelLeftHorizontal: {
color: "rgba(" + hexToRgb(blackColor) + ", 0.26)",
cursor: "pointer",
display: "inline-flex",
fontSize: "14px",
lineHeight: "1.428571429",
fontWeight: "400",
paddingTop: "22px",
marginRight: "0"
},
labelError: {
color: dangerColor[0]
},
radio: {
color: primaryColor[0] + "!important"
},
radioChecked: {
width: "16px",
height: "16px",
border: "1px solid " + primaryColor[0],
borderRadius: "50%"
},
radioUnchecked: {
width: "0px",
height: "0px",
padding: "7px",
border: "1px solid rgba(" + hexToRgb(blackColor) + ", .54)",
borderRadius: "50%"
},
inlineChecks: {
marginTop: "8px"
},
iconCheckbox: {
height: "116px",
width: "116px",
color: grayColor[0],
padding: "0",
margin: "0 auto 20px",
"& > span:first-child": {
borderWidth: "4px",
borderStyle: "solid",
borderColor: grayColor[9],
textAlign: "center",
verticalAlign: "middle",
borderRadius: "50%",
color: "inherit",
transition: "all 0.2s"
},
"&:hover": {
color: roseColor[0],
"& > span:first-child": {
borderColor: roseColor[0]
}
}
},
iconCheckboxChecked: {
color: roseColor[0],
"& > span:first-child": {
borderColor: roseColor[0]
}
},
iconCheckboxIcon: {
fontSize: "40px",
lineHeight: "111px"
},
switchBase: {
color: primaryColor[0] + "!important"
},
switchIcon: {
boxShadow: "0 1px 3px 1px rgba(" + hexToRgb(blackColor) + ", 0.4)",
color: whiteColor + " !important",
border: "1px solid rgba(" + hexToRgb(blackColor) + ", .54)"
},
switchIconChecked: {
borderColor: primaryColor[0],
transform: "translateX(0px)!important"
},
switchBar: {
width: "30px",
height: "15px",
backgroundColor: "rgb(" + hexToRgb(grayColor[18]) + ")",
borderRadius: "15px",
opacity: "0.7!important"
},
switchChecked: {
"& + $switchBar": {
backgroundColor: "rgba(" + hexToRgb(primaryColor[0]) + ", 1) !important"
},
"& $switchIcon": {
borderColor: primaryColor[0]
}
}
};
export default customCheckboxRadioSwitch;