pgadmin4/web/pgadmin/static/js/Theme/overrides/pickr.override.js

32 lines
1.1 KiB
JavaScript
Raw Normal View History

/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
2024-01-01 02:43:48 -06:00
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
export default function pickrOverride(theme) {
return {
'.pickr, .pcr-app': {
fontFamily: theme.typography.fontFamily,
'& *:focus': {
outline: 'none !important',
},
'& .pcr-save': {
backgroundColor: theme.palette.primary.main + '!important',
borderRadius: theme.shape.borderRadius + 'px !important',
color: theme.palette.primary.contrastText + '!important',
border: '1px solid '+theme.palette.primary.main,
},
'& .pcr-clear': {
backgroundColor: theme.palette.default.main + '!important',
borderRadius: theme.shape.borderRadius + 'px !important',
color: theme.palette.default.contrastText + '!important',
border: '1px solid '+theme.palette.default.borderColor,
},
}
};
}