smart-webcomponents-react
Version:
[](https://jqwidgets.com/license/)
2 lines • 19.7 kB
CSS
smart-tooltip{position:absolute;text-align:center;z-index:var(--smart-editor-drop-down-z-index);font-family:var(--smart-font-family);font-size:var(--smart-font-size);visibility:hidden;pointer-events:none}smart-tooltip.smart-element{background:0 0;overflow:visible}smart-tooltip .smart-tooltip-content{overflow:hidden;text-overflow:ellipsis;padding:var(--smart-tooltip-padding);background-color:var(--smart-secondary);color:var(--smart-secondary-color);border:var(--smart-border-width) solid var(--smart-secondary);width:100%;height:100%;opacity:.9;box-shadow:var(--smart-elevation-6);font-family:var(--smart-font-family);border-top-left-radius:var(--smart-border-top-left-radius);border-bottom-left-radius:var(--smart-border-bottom-left-radius);border-top-right-radius:var(--smart-border-top-right-radius);border-bottom-right-radius:var(--smart-border-bottom-right-radius)}smart-tooltip[arrow],smart-tooltip[arrow][arrow-direction=bottom]{padding-bottom:var(--smart-tooltip-arrow-width)}smart-tooltip.auto,smart-tooltip.auto .smart-container,smart-tooltip.auto .smart-tooltip-content{height:auto}smart-tooltip[arrow] .smart-tooltip-content:after,smart-tooltip[arrow][arrow-direction=bottom] .smart-tooltip-content:after{content:"";width:0;height:0;border-top:var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);position:absolute;bottom:0;left:calc(50% - var(--smart-tooltip-arrow-width));border-left:var(--smart-tooltip-arrow-width) solid transparent;border-right:var(--smart-tooltip-arrow-width) solid transparent;transform:translateX(var(--smart-tooltip-arrow-translate))}smart-tooltip[visible]{visibility:visible;pointer-events:auto}smart-tooltip[arrow][arrow-direction=top]{padding-bottom:initial;padding-top:var(--smart-tooltip-arrow-width)}smart-tooltip[arrow][arrow-direction=top] .smart-tooltip-content:after{border-left:var(--smart-tooltip-arrow-width) solid transparent;border-right:var(--smart-tooltip-arrow-width) solid transparent;border-bottom:var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);border-top:initial;top:0;bottom:calc(100% + var(--smart-tooltip-arrow-width));transform:translateX(var(--smart-tooltip-arrow-translate))}smart-tooltip[arrow][arrow-direction=left] .smart-tooltip-content:after,smart-tooltip[arrow][arrow-direction=right] .smart-tooltip-content:after{border-bottom:var(--smart-tooltip-arrow-width) solid transparent;border-top:var(--smart-tooltip-arrow-width) solid transparent;transform:translateY(var(--smart-tooltip-arrow-translate))}smart-tooltip[arrow][arrow-direction=left]{padding-bottom:initial;padding-left:var(--smart-tooltip-arrow-width)}smart-tooltip[arrow][arrow-direction=left] .smart-tooltip-content:after{border-right:var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);border-left:initial;left:0;top:calc(50% - var(--smart-tooltip-arrow-width))}smart-tooltip[arrow][arrow-direction=right]{padding-bottom:initial;padding-right:var(--smart-tooltip-arrow-width)}smart-tooltip[arrow][arrow-direction=right] .smart-tooltip-content:after{border-left:var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);border-right:initial;left:calc(100% - var(--smart-tooltip-arrow-width));top:calc(50% - var(--smart-tooltip-arrow-width))}smart-tooltip:not([animation=none]){opacity:0;transition:opacity .5s ease-in-out}smart-tooltip:not([animation=none])[visible]{opacity:1}smart-tooltip[right-to-left] .smart-tooltip-content{direction:rtl}
smart-color-panel{width:var(--smart-color-panel-default-width);height:var(--smart-color-panel-default-height);user-select:none}smart-color-panel .no-touch{touch-action:none}smart-color-panel.smart-element{display:inline-block;overflow:initial;border:none;background:var(--smart-background);color:var(--smart-background-color)}smart-color-panel[disabled]{opacity:.55;pointer-events:none;user-select:none}.smart-color-panel .smart-content{position:relative;cursor:pointer;display:flex;width:100%;height:100%}.smart-color-panel label{display:inline-block;user-select:none}.smart-color-panel smart-tooltip .smart-tooltip-content{box-shadow:0 0 20px 0 #8b8b8b}.smart-color-panel input[type=number]::-webkit-inner-spin-button,.smart-color-panel input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.smart-color-panel input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfied}.smart-color-panel .color-input{width:70px;height:var(--smart-editor-height);margin:5px;padding:5px;border:var(--smart-border-width) solid var(--smart-border);border-radius:var(--smart-border-radius);background:var(--smart-background);color:var(--smart-color);outline:0}.smart-color-panel .color-input:focus{border-color:var(--smart-outline)}.smart-color-panel .color-input::selection{background:var(--smart-editor-selection);color:var(--smart-editor-selection-color)}.smart-color-panel .grid-mode-container,.smart-color-panel .palette-mode-container{width:100%;max-height:100%;position:relative}.smart-color-panel .custom-color-selection .buttons-container{display:flex;align-items:center;justify-content:flex-end}.smart-color-panel .custom-colors-box,.smart-color-panel .gray-shades-box,.smart-color-panel .grid-samples-container,.smart-color-panel .spectrum-box{display:grid;grid-template-columns:repeat(var(--smart-color-panel-grid-mode-column-count),auto)}.smart-color-panel .hue-scale{display:block;max-width:100px;height:var(--smart-color-panel-palette-size);background-image:linear-gradient(red,#f0f,#00f,#0ff,#0f0,#ff0,red);width:20px;margin-left:15px;margin-right:15px;position:relative;padding:1px;border:var(--smart-border-width) solid var(--smart-border);background-clip:content-box;-webkit-background-clip:content-box}.smart-color-panel .hue-scale-thumb{width:100%;height:10px;box-sizing:content-box;border:3px solid #fff;border-left-width:10px;border-right-width:10px;position:absolute;left:-10px;top:-3px;box-shadow:0 0 5px #666,inset 0 0 2px 0 #999,inset 0 0 2px 0 #999;opacity:.8;cursor:pointer}.smart-color-panel .color-palette-thumb{width:0;height:0;top:0;position:absolute;z-index:10;pointer-events:none}.smart-color-panel .color-palette-thumb:after{content:" ";position:absolute;left:-14px;top:-14px;width:16px;height:16px;border:5px solid #fff;border-radius:50%;box-shadow:var(--smart-elevation-2)}.smart-color-panel .color-palette{width:var(--smart-color-panel-palette-size);height:var(--smart-color-panel-palette-size);background-color:red;display:block;position:relative;overflow:hidden;cursor:crosshair;padding:1px;border:1px solid #d3d3d3;background-clip:content-box;-webkit-background-clip:content-box}.smart-color-panel .color-palette:after,.smart-color-panel .color-palette:before{width:100%;height:100%;content:" ";display:block;position:absolute;left:0;top:0;z-index:0}.smart-color-panel .color-palette:before{background-image:linear-gradient(90deg,#fff,transparent)}.smart-color-panel .color-palette:after{background-image:linear-gradient(transparent,#000)}.smart-color-panel .color-controls-container{display:block;max-width:100px;overflow:hidden}.smart-color-panel .color-palette-container{width:100%;height:var(--smart-color-panel-palette-size);display:flex;flex-direction:row}.smart-color-panel .preview-container{width:100%;min-width:100px;height:100px;background-color:#fff;margin-bottom:20px;position:relative;padding:1px;border:var(--smart-border-width) solid var(--smart-border);background-clip:content-box;-webkit-background-clip:content-box}.smart-color-panel .preview-container-bottom,.smart-color-panel .preview-container-top{width:100%;height:50%;display:block;background-color:#fff}.smart-color-panel .alpha-channel-container{flex-direction:row;width:100%;align-items:center;align-content:space-around;margin-top:5px;display:none}.smart-color-panel .alpha-channel-container label{width:48px}.smart-color-panel .alpha-channel-scale{width:var(--smart-color-panel-palette-size);height:20px;margin-top:15px;margin-bottom:15px;position:relative;border:var(--smart-border-width) solid var(--smart-border);margin-right:20px}.smart-color-panel .alpha-channel-scale:after,.smart-color-panel .alpha-channel-scale:before{position:absolute;left:0;top:0;display:block;width:100%;height:100%;content:" "}.smart-color-panel .alpha-channel-scale:before{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%,transparent 74%,#ccc 75%,#ccc),linear-gradient(45deg,#ccc 25%,transparent 25%,transparent 74%,#ccc 75%,#ccc);background-position:0 6px,8px 14px;background-size:16px 16px}.smart-color-panel .alpha-channel-scale:after{background-image:linear-gradient(90deg,var(--smart-color-panel-alpha-channel-color),transparent);box-shadow:inset 1px -1px 0 0 #fff,inset -1px 1px 0 0 #fff}.smart-color-panel .alpha-channel-thumb{width:10px;height:100%;box-sizing:content-box;border:3px solid #fff;border-top-width:10px;border-bottom-width:10px;position:absolute;left:-3px;top:-10px;opacity:.8;box-shadow:0 0 5px #666,inset 0 0 2px 0 #999,inset 0 0 2px 0 #999;cursor:pointer;z-index:1}.smart-color-panel .buttons-container{display:none;flex-direction:row;justify-content:flex-end;padding:10px 0 0}.smart-color-panel .buttons-container smart-button{width:100px}.smart-color-panel .color-sample,.smart-color-panel .user-color-container{width:var(--smart-color-panel-grid-mode-item-size);height:var(--smart-color-panel-grid-mode-item-size)}.smart-color-panel .buttons-container smart-button:last-of-type{margin-left:20px}.smart-color-panel .gradient-background{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%,transparent 74%,#ccc 75%,#ccc),linear-gradient(45deg,#ccc 25%,transparent 25%,transparent 74%,#ccc 75%,#ccc);background-position:0 6px,8px 14px;background-size:16px 16px}.smart-color-panel .color-sample.user-color:before,.smart-color-panel .user-color-container{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%,transparent 74%,#ccc 75%,#ccc),linear-gradient(45deg,#ccc 25%,transparent 25%,transparent 74%,#ccc 75%,#ccc);background-position:0 5px,5px 10px;background-size:10px 10px}.smart-color-panel .material-grid-samples-container{display:grid;grid-template-columns:80px repeat(14,auto)}.smart-color-panel .button-custom-color{margin:5px 0}.smart-color-panel .color-sample{margin:var(--smart-color-panel-grid-mode-columns-gap);box-sizing:border-box;cursor:pointer;border:var(--smart-border-width) solid rgba(0,0,0,.1);background-clip:content-box;-webkit-background-clip:content-box;text-overflow:ellipsis}.smart-color-panel .color-sample.user-color{position:relative;background-clip:padding-box;-webkit-background-clip:padding-box}.smart-color-panel .color-sample.user-color:before{position:absolute;content:"";width:100%;height:100%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:-1}.smart-color-panel .color-sample.selected{border:2px solid var(--smart-ui-state-color-selected);padding:1px}.smart-color-panel .color-sample.empty{visibility:hidden}.smart-color-panel .color-sample.header,.smart-color-panel .color-sample.label-column{display:flex;align-items:center;justify-content:center;font-size:11px;border-width:0;pointer-events:none;user-select:none}.smart-color-panel .color-sample.label-column{width:100%;justify-content:flex-start}.smart-color-panel .color-sample.color-sample-column,.smart-color-panel .color-sample.color-sample-row{width:16px;height:16px;border:2px solid rgba(0,0,0,.2);padding:1px;background:repeating-linear-gradient(-55deg,#fff,#fff 10px,#eee 10px,#eee 20px)}.smart-color-panel .color-sample[transparent]{position:relative}.smart-color-panel .color-sample[transparent]:after{content:"";border:1px solid red;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg);position:absolute;width:150%;border-radius:5px}.smart-color-panel .user-color.empty{background:repeating-linear-gradient(-55deg,#fff,#fff 10px,#eee 10px,#eee 20px);background-origin:content-box;border-color:#d3d3d3}.smart-color-panel .default-samples-container div{display:grid;grid-template-columns:repeat(10,auto);justify-items:center}.smart-color-panel .default-samples-container .theme-shades-box{margin-top:var(--smart-color-panel-default-mode-sections-gap);margin-bottom:var(--smart-color-panel-default-mode-sections-gap)}.smart-color-panel .default-samples-container .standard-colors-label,.smart-color-panel .default-samples-container .theme-colors-label{display:block;font-weight:600;margin-left:2px;margin-top:var(--smart-color-panel-default-mode-sections-gap);margin-bottom:calc(var(--smart-color-panel-default-mode-sections-gap)/ 2)}.smart-color-panel .hex-mode-resize-trigger{visibility:hidden;position:absolute;left:0;top:0}.smart-color-panel[edit-alpha-channel] .alpha-channel-container{display:flex}.smart-color-panel[enable-custom-colors] .button-custom-color,.smart-color-panel[enable-custom-colors] .user-samples-container{width:100%;display:flex;align-items:center}.smart-color-panel[enable-custom-colors]:not([display-mode=palette]):not([display-mdoe=radial]) .custom-color-selection .palette-mode-container{display:block}.smart-color-panel:not([display-mode=radial]) .canvas-radial{display:none}.smart-color-panel[display-mode=hexagonal] .brightness-scale,.smart-color-panel[display-mode=radial] .brightness-scale{display:block;max-width:100px;height:var(--smart-color-panel-palette-size);background-image:linear-gradient(red,#f0f,#00f,#0ff,#0f0,#ff0,red);width:20px;margin-left:15px;margin-right:15px;position:relative;padding:1px;border:var(--smart-border-width) solid var(--smart-border);background-clip:content-box;-webkit-background-clip:content-box}.smart-color-panel[display-mode=hexagonal] .brightness-scale-thumb,.smart-color-panel[display-mode=radial] .brightness-scale-thumb{width:100%;height:10px;box-sizing:content-box;border:3px solid #fff;border-left-width:10px;border-right-width:10px;position:absolute;left:-10px;top:-3px;box-shadow:0 0 5px #666,inset 0 0 2px 0 #999,inset 0 0 2px 0 #999;opacity:.8;cursor:pointer}.smart-color-panel[display-mode=hexagonal] .alpha-channel-scale{width:var(--smart-color-panel-palette-width)}.smart-color-panel[display-mode=hexagonal] .brightness-scale{display:block;height:var(--smart-color-panel-palette-height);background-image:linear-gradient(white,#000)}.smart-color-panel[display-mode=hexagonal] .selected{stroke:#fff;stroke-width:4px}.smart-color-panel[display-mode=hexagonal] .color-palette-container{height:var(--smart-color-panel-palette-height)}.smart-color-panel[display-mode=hexagonal] .color-palette-hexagonal,.smart-color-panel[display-mode=hexagonal] .palette-mode-container{display:block}.smart-color-panel[display-mode=radial] .hue-scale{display:none}.smart-color-panel[display-mode=radial] .brightness-scale{background-image:linear-gradient(white,#000)}.smart-color-panel[display-mode=radial] .color-palette-radial{width:var(--smart-color-panel-palette-size);height:var(--smart-color-panel-palette-size);display:block;position:relative;overflow:hidden;cursor:crosshair;padding:1px;border:1px solid #d3d3d3;background-clip:content-box;-webkit-background-clip:content-box;background:conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#ff00ff,red) #ff005a;border-radius:50%}.smart-color-panel[display-mode=radial] .color-palette-radial:after{width:100%;height:100%;content:" ";display:block;position:absolute;left:0;top:0;z-index:0;background:#000;opacity:var(--smart-color-panel-brightness);border-radius:50%}.smart-color-panel[display-mode=radial] .color-palette-radial-thumb{width:0;height:0;position:absolute;z-index:10;pointer-events:none;left:50%;top:50%}.smart-color-panel[display-mode=radial] .color-palette-radial-thumb:after{content:" ";position:absolute;left:-14px;top:-14px;width:16px;height:16px;border:5px solid #fff;border-radius:50%;box-shadow:var(--smart-elevation-2)}.smart-color-panel[display-mode=radial] .white-radial-gradient{z-index:2;width:var(--smart-color-panel-palette-size);height:var(--smart-color-panel-palette-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-image:radial-gradient(circle,#fff,transparent)}.smart-color-panel[display-mode=radial] .palette-mode-container{display:block}.smart-color-panel[display-mode=radial] canvas{transform:rotate(-180deg);transform-origin:center}.smart-color-panel[display-mode=radial][inverted] .color-palette-radial:after{background:#fff}.smart-color-panel[display-mode=radial][inverted] .white-radial-gradient{background:radial-gradient(black,transparent)}.smart-color-panel[display-mode=default] .default-samples-container,.smart-color-panel[display-mode=materialGrid] .color-palette,.smart-color-panel[display-mode=palette] .color-palette,.smart-color-panel[display-mode=palette] .palette-mode-container,.smart-color-panel[display-mode=spectrumGrid] .spectrum-grid-samples-container{display:block}.smart-color-panel[apply-value-mode=useButtons] .buttons-container{display:flex;align-items:center;justify-content:flex-end}.smart-color-panel .button-custom-color,.smart-color-panel .color-palette-hexagonal,.smart-color-panel .custom-color-selection .grid-mode-container,.smart-color-panel .palette-mode-container,.smart-color-panel .spectrum-grid-samples-container,.smart-color-panel .user-samples-container,.smart-color-panel[display-mode=default] .grid-samples-container,.smart-color-panel[display-mode=default] .material-grid-samples-container,.smart-color-panel[display-mode=default] .palette-mode-container,.smart-color-panel[display-mode=grid] .default-samples-container,.smart-color-panel[display-mode=grid] .material-grid-samples-container,.smart-color-panel[display-mode=grid] .palette-mode-container,.smart-color-panel[display-mode=hexagonal] .color-palette,.smart-color-panel[display-mode=hexagonal] .default-samples-container,.smart-color-panel[display-mode=hexagonal] .grid-samples-container,.smart-color-panel[display-mode=hexagonal] .hue-scale,.smart-color-panel[display-mode=hexagonal] .spectrum-grid-samples-container,.smart-color-panel[display-mode=materialGrid] .default-samples-container,.smart-color-panel[display-mode=materialGrid] .grid-samples-container,.smart-color-panel[display-mode=materialGrid] .palette-mode-container,.smart-color-panel[display-mode=palette] .color-palette-radial,.smart-color-panel[display-mode=palette] .grid-mode-container,.smart-color-panel[display-mode=radial] .color-palette,.smart-color-panel[display-mode=radial] .grid-mode-container,.smart-color-panel[display-mode=spectrumGrid] .default-samples-container,.smart-color-panel[display-mode=spectrumGrid] .grid-samples-container,.smart-color-panel[display-mode=spectrumGrid] .material-grid-samples-container,.smart-color-panel[display-mode=spectrumGrid] .palette-mode-container,.smart-color-panel[enable-custom-colors][display-mode=hexagonal] .button-custom-color,.smart-color-panel[enable-custom-colors][display-mode=hexagonal] .user-samples-container,.smart-color-panel[hide-alpha-editor] .a-channel,.smart-color-panel[hide-h-e-x-editor] .hex,.smart-color-panel[hide-preview-container] .preview-container,.smart-color-panel[hide-r-g-b-editor] .b-channel,.smart-color-panel[hide-r-g-b-editor] .g-channel,.smart-color-panel[hide-r-g-b-editor] .r-channel{display:none}smart-color-panel[right-to-left] .alpha-channel-container,smart-color-panel[right-to-left] .color-palette-container,smart-color-panel[right-to-left] .grid-mode-container{direction:rtl}smart-color-panel[right-to-left] .alpha-channel-scale{margin:0 0 0 20px}smart-color-panel[right-to-left] .alpha-channel-scale:after{background-image:linear-gradient(90deg,transparent,var(--smart-color-panel-alpha-channel-color))}smart-color-panel[right-to-left] .buttons-container{flex-direction:row-reverse}smart-color-panel[right-to-left] .buttons-container smart-button:last-of-type{margin:0 0 0 20px}