mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4530 - Export styles of all components
This commit is contained in:
parent
7b6d458067
commit
dc2913e887
463 changed files with 10696 additions and 9670 deletions
48
components/lib/inputswitch/style/InputSwitchStyle.js
Normal file
48
components/lib/inputswitch/style/InputSwitchStyle.js
Normal file
|
@ -0,0 +1,48 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const css = `
|
||||
@layer primevue {
|
||||
.p-inputswitch {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.p-inputswitch-slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.p-inputswitch-slider:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
top: 50%;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const inlineStyles = {
|
||||
root: { position: 'relative' }
|
||||
};
|
||||
|
||||
const classes = {
|
||||
root: ({ instance, props }) => [
|
||||
'p-inputswitch p-component',
|
||||
{
|
||||
'p-inputswitch-checked': instance.checked,
|
||||
'p-disabled': props.disabled,
|
||||
'p-focus': instance.focused
|
||||
}
|
||||
],
|
||||
slider: 'p-inputswitch-slider'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'inputswitch',
|
||||
css,
|
||||
classes,
|
||||
inlineStyles
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue