acklen-keystone
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
48 lines (43 loc) • 1.21 kB
JavaScript
// ==============================
// Form Input
// ==============================
import theme from '../../../theme';
module.exports = {
'FormInput': {
'appearance': 'none',
'backgroundColor': theme.input.background.default,
'backgroundImage': 'none',
'borderColor': theme.input.border.color.default,
'borderRadius': theme.input.border.radius,
'borderStyle': 'solid',
'borderWidth': theme.input.border.width,
'boxShadow': theme.input.boxShadow,
'color': 'inherit', // FIXME
'display': 'block',
'height': theme.input.height,
'lineHeight': theme.input.lineHeight,
'padding': `0 ${theme.input.paddingHorizontal}`,
'transition': 'border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s',
'width': '100%',
':hover': {
borderColor: theme.input.border.color.hover,
outline: 0,
},
':focus': {
borderColor: theme.input.border.color.focus,
boxShadow: theme.input.boxShadowFocus,
outline: 0,
},
},
'FormInput--disabled': {
backgroundColor: theme.input.background.disabled,
pointerEvents: 'none',
},
// sizes
'FormInput__size--small': {
fontSize: theme.font.size.small,
},
'FormInput__size--large': {
fontSize: theme.font.size.large,
},
};