stuff
This commit is contained in:
parent
2e536164ca
commit
0ddadf2937
|
@ -5558,22 +5558,13 @@ module.exports = (_ => {
|
||||||
return !this.props.colors.length ? BDFDB.ReactUtils.createElement("div", {
|
return !this.props.colors.length ? BDFDB.ReactUtils.createElement("div", {
|
||||||
className: BDFDB.disCN.colorpickerswatchsinglewrapper,
|
className: BDFDB.disCN.colorpickerswatchsinglewrapper,
|
||||||
children: customSwatch
|
children: customSwatch
|
||||||
}) : BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {
|
}) : BDFDB.ReactUtils.createElement("div", {
|
||||||
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.colorpickerswatches, BDFDB.disCN.colorpickerswatchescontainer, this.props.disabled && BDFDB.disCN.colorpickerswatchesdisabled),
|
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.colorpickerswatches, BDFDB.disCN.colorpickerswatchescontainer, this.props.disabled && BDFDB.disCN.colorpickerswatchesdisabled),
|
||||||
children: [
|
children: [
|
||||||
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex.Child, {
|
customSwatch,
|
||||||
className: BDFDB.disCN.marginreset,
|
BDFDB.ReactUtils.createElement("div", {
|
||||||
shrink: 0,
|
children: this.props.colorRows.map(row => BDFDB.ReactUtils.createElement("div", {
|
||||||
grow: 0,
|
|
||||||
children: customSwatch
|
|
||||||
}),
|
|
||||||
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {
|
|
||||||
direction: InternalComponents.LibraryComponents.Flex.Direction.VERTICAL,
|
|
||||||
className: BDFDB.disCN.flexmarginreset,
|
|
||||||
grow: 1,
|
|
||||||
children: this.props.colorRows.map(row => BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {
|
|
||||||
className: BDFDB.disCN.colorpickerrow,
|
className: BDFDB.disCN.colorpickerrow,
|
||||||
wrap: InternalComponents.LibraryComponents.Flex.Wrap.WRAP,
|
|
||||||
children: row.map(color => BDFDB.ReactUtils.createElement(this.ColorSwatch, {
|
children: row.map(color => BDFDB.ReactUtils.createElement(this.ColorSwatch, {
|
||||||
swatches: this,
|
swatches: this,
|
||||||
color: color,
|
color: color,
|
||||||
|
|
|
@ -1253,6 +1253,10 @@ img:not([src]), img[src=""], img[src="null"] {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[REPLACE_CLASS_colorpickerswatches] > div:not([class]),
|
||||||
|
[REPLACE_CLASS_colorpickerswatches] [REPLACE_CLASS_colorpickerswatch] {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
[REPLACE_CLASS_colorpickerswatchsinglewrapper] {
|
[REPLACE_CLASS_colorpickerswatchsinglewrapper] {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
Loading…
Reference in New Issue