Updated tokens of Editor
parent
a9d46ba470
commit
c11fdca25d
|
@ -949,8 +949,8 @@ const theme = ({ dt }) => `
|
||||||
|
|
||||||
.p-editor .p-editor-toolbar {
|
.p-editor .p-editor-toolbar {
|
||||||
background: ${dt('editor.toolbar.background')};
|
background: ${dt('editor.toolbar.background')};
|
||||||
border-top-right-radius: ${dt('border.radius.md')};
|
border-top-right-radius: ${dt('editor.toolbar.border.radius')};
|
||||||
border-top-left-radius: ${dt('border.radius.md')};
|
border-top-left-radius: ${dt('editor.toolbar.border.radius')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .p-editor-toolbar.ql-snow {
|
.p-editor .p-editor-toolbar.ql-snow {
|
||||||
|
@ -997,27 +997,28 @@ const theme = ({ dt }) => `
|
||||||
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
|
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
|
||||||
background: ${dt('editor.overlay.background')};
|
background: ${dt('editor.overlay.background')};
|
||||||
border: 1px solid ${dt('editor.overlay.border.color')};
|
border: 1px solid ${dt('editor.overlay.border.color')};
|
||||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
box-shadow: ${dt('editor.overlay.shadow')};
|
||||||
border-radius: ${dt('border.radius.md')};
|
border-radius: ${dt('editor.overlay.border.radius')};
|
||||||
padding: 0.25rem 0.25rem;
|
padding: ${dt('editor.overlay.padding')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {
|
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {
|
||||||
color: ${dt('editor.overlay.item.color')};
|
color: ${dt('editor.overlay.option.color')};
|
||||||
|
border-radius: ${dt('editor.overlay.option.border.radius')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {
|
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {
|
||||||
background: ${dt('editor.overlay.item.hover.background')};
|
background: ${dt('editor.overlay.option.focus.background')};
|
||||||
color: ${dt('editor.overlay.item.hover.color')};
|
color: ${dt('editor.overlay.option.focus.color')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {
|
.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {
|
||||||
padding: 0.5rem 0.75rem;
|
padding: ${dt('editor.overlay.option.padding')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .p-editor-content {
|
.p-editor .p-editor-content {
|
||||||
border-bottom-right-radius: ${dt('border.radius.md')};
|
border-bottom-right-radius: ${dt('editor.content.border.radius')};
|
||||||
border-bottom-left-radius: ${dt('border.radius.md')};
|
border-bottom-left-radius: ${dt('editor.content.border.radius')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .p-editor-content.ql-snow {
|
.p-editor .p-editor-content.ql-snow {
|
||||||
|
@ -1027,8 +1028,8 @@ const theme = ({ dt }) => `
|
||||||
.p-editor .p-editor-content .ql-editor {
|
.p-editor .p-editor-content .ql-editor {
|
||||||
background: ${dt('editor.content.background')};
|
background: ${dt('editor.content.background')};
|
||||||
color: ${dt('editor.content.color')};
|
color: ${dt('editor.content.color')};
|
||||||
border-bottom-right-radius: ${dt('border.radius.md')};
|
border-bottom-right-radius: ${dt('editor.content.border.radius')};
|
||||||
border-bottom-left-radius: ${dt('border.radius.md')};
|
border-bottom-left-radius: ${dt('editor.content.border.radius')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-editor .ql-snow.ql-toolbar button:hover,
|
.p-editor .ql-snow.ql-toolbar button:hover,
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
export default {
|
export default {
|
||||||
toolbar: {
|
toolbar: {
|
||||||
background: '{content.background}',
|
background: '{content.background}',
|
||||||
borderColor: '{content.border.color}'
|
borderColor: '{content.border.color}',
|
||||||
|
borderRadius: '{border.radius.md}'
|
||||||
},
|
},
|
||||||
toolbarItem: {
|
toolbarItem: {
|
||||||
color: '{text.muted.color}',
|
color: '{text.muted.color}',
|
||||||
|
@ -9,18 +10,24 @@ export default {
|
||||||
activeColor: '{primary.color}'
|
activeColor: '{primary.color}'
|
||||||
},
|
},
|
||||||
overlay: {
|
overlay: {
|
||||||
background: '{content.background}',
|
background: '{overlay.select.background}',
|
||||||
borderColor: '{content.border.color}',
|
borderColor: '{overlay.select.border.color}',
|
||||||
color: '{content.color}'
|
borderRadius: '{overlay.select.border.radius}',
|
||||||
|
color: '{overlay.select.color}',
|
||||||
|
shadow: '{overlay.select.shadow}',
|
||||||
|
padding: '{list.padding}'
|
||||||
},
|
},
|
||||||
overlayItem: {
|
overlayOption: {
|
||||||
hoverBackground: '{content.hover.background}',
|
focusBackground: '{list.option.focus.background}',
|
||||||
color: '{content.color}',
|
color: '{list.option.color}',
|
||||||
hoverColor: '{content.hover.color}'
|
focusColor: '{list.option.focus.color}',
|
||||||
|
padding: '{list.option.padding}',
|
||||||
|
borderRadius: '{list.option.border.radius}'
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
background: '{content.background}',
|
background: '{content.background}',
|
||||||
borderColor: '{content.border.color}',
|
borderColor: '{content.border.color}',
|
||||||
color: '{content.color}'
|
color: '{content.color}',
|
||||||
|
borderRadius: '{border.radius.md}'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
export default {
|
export default {
|
||||||
toolbar: {
|
toolbar: {
|
||||||
background: '{content.background}',
|
borderColor: '{content.border.color}',
|
||||||
borderColor: '{content.border.color}'
|
borderRadius: '{border.radius.sm}'
|
||||||
},
|
},
|
||||||
toolbarItem: {
|
toolbarItem: {
|
||||||
color: '{text.muted.color}',
|
color: '{text.muted.color}',
|
||||||
|
@ -9,18 +9,36 @@ export default {
|
||||||
activeColor: '{primary.color}'
|
activeColor: '{primary.color}'
|
||||||
},
|
},
|
||||||
overlay: {
|
overlay: {
|
||||||
background: '{content.background}',
|
background: '{overlay.select.background}',
|
||||||
borderColor: '{content.border.color}',
|
borderColor: '{overlay.select.border.color}',
|
||||||
color: '{content.color}'
|
borderRadius: '{overlay.select.border.radius}',
|
||||||
|
color: '{overlay.select.color}',
|
||||||
|
shadow: '{overlay.select.shadow}',
|
||||||
|
padding: '{list.padding}'
|
||||||
},
|
},
|
||||||
overlayItem: {
|
overlayOption: {
|
||||||
hoverBackground: '{content.hover.background}',
|
focusBackground: '{list.option.focus.background}',
|
||||||
color: '{content.color}',
|
color: '{list.option.color}',
|
||||||
hoverColor: '{content.hover.color}'
|
focusColor: '{list.option.focus.color}',
|
||||||
|
padding: '{list.option.padding}',
|
||||||
|
borderRadius: '{list.option.border.radius}'
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
background: '{content.background}',
|
background: '{content.background}',
|
||||||
borderColor: '{content.border.color}',
|
borderColor: '{content.border.color}',
|
||||||
color: '{content.color}'
|
color: '{content.color}',
|
||||||
|
borderRadius: '{border.radius.sm}'
|
||||||
|
},
|
||||||
|
colorScheme: {
|
||||||
|
light: {
|
||||||
|
toolbar: {
|
||||||
|
background: '{surface.100}'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dark: {
|
||||||
|
toolbar: {
|
||||||
|
background: '{surface.800}'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue