@phun-ky/speccer 4.1.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/speccer.min.css CHANGED
@@ -1 +1 @@
1
- .ph.speccer,.ph.speccer:after,.ph.speccer:before{box-sizing:border-box;font-family:Menlo for Powerline,Menlo Regular for Powerline,DejaVu Sans Mono,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important;font-size:12px;line-height:12px;transition:all .2s ease-in;z-index:99999}.ph.speccer,.ph.speccer.dissection,.ph.speccer:after,.ph.speccer:before{align-items:center;display:flex;justify-content:center;position:absolute}.ph.speccer.dissection{background-color:#d4397a;border-radius:100%;box-sizing:initial;color:#fff;font-family:sans-serif;font-size:16px;font-weight:400;height:1.5rem;line-height:150%;width:1.5rem;z-index:100000}.ph.speccer.dissection.button-icon:after,.ph.speccer.dissection.button-outline:after{background-color:#d4397a;content:"";height:1px;position:absolute;top:50%;width:48px;z-index:99999}.ph.speccer.dissection:after{background-color:#d4397a;content:"";height:48px;position:absolute;top:100%;width:1px;z-index:99999}.ph.speccer.dissection.outline.left:after{height:1px;left:100%;top:50%;width:48px}.ph.speccer.dissection.outline.right:after{height:1px;right:100%;top:50%;width:48px}.ph.speccer.dissection.outline.enclose{background-color:initial;border:1px solid #d4397a;border-radius:0;color:red}.ph.speccer.dissection.outline.enclose.right:after{left:calc(100% + 49px);right:auto}.ph.speccer.dissection.outline.enclose.right:before{left:100%;right:auto}.ph.speccer.dissection.outline.enclose.left:after{left:-49px;right:auto}.ph.speccer.dissection.outline.enclose.left:before{left:auto;right:100%}.ph.speccer.dissection.outline.enclose.top:after{bottom:auto;top:-49px}.ph.speccer.dissection.outline.enclose.top:before{bottom:100%;top:auto}.ph.speccer.dissection.outline.enclose.bottom:after{bottom:auto;top:calc(100% + 49px)}.ph.speccer.dissection.outline.enclose.bottom:before{bottom:auto;top:100%}.ph.speccer.dissection.outline.full{background-color:initial;border:1px solid #d4397a;border-radius:0;color:red}.ph.speccer.dissection.outline.full.right{border-left:none}.ph.speccer.dissection.outline.full.right:after{left:56px}.ph.speccer.dissection.outline.full.right:before{left:100%}.ph.speccer.dissection.outline.full.left{border-right:none}.ph.speccer.dissection.outline.full.left:after{left:-56px}.ph.speccer.dissection.outline.full.left:before{right:100%}.ph.speccer.dissection.outline.full.top{border-bottom:none}.ph.speccer.dissection.outline.full.top:after{top:-56px}.ph.speccer.dissection.outline.full.top:before{bottom:100%}.ph.speccer.dissection.outline.full.bottom{border-top:none}.ph.speccer.dissection.outline.full.bottom:after{top:56px}.ph.speccer.dissection.outline.full.bottom:before{top:100%}.ph.speccer.dissection.outline.bottom:after{height:48px;right:50%;top:calc(-100% - 24px);width:1px}.ph.speccer.dissection.button-center:after{background-color:#d4397a;content:"";height:48px;position:absolute;top:100%;width:1px;z-index:99999}.ph.speccer.dissection.button-outline:after{right:100%}.ph.speccer.dissection.button-icon:after{left:100%}.ph.speccer.dissection.button-icon:before{border:1px solid #d4397a;content:"";height:1.5rem;left:calc(100% + 48px);position:absolute;width:1.5rem;z-index:99999}.ph.speccer.dissection.outline.top:after,.ph.speccer.dissection.outline:after{height:48px;right:50%;top:100%;width:1px}[data-anatomy-section]{counter-reset:type}.ph.speccer.dissection.outline.full.left,.ph.speccer.dissection.outline.full.right{width:8px}.ph.speccer.dissection.outline.full.bottom,.ph.speccer.dissection.outline.full.top{height:8px}.ph.speccer.dissection.outline.full.bottom:after,.ph.speccer.dissection.outline.full.left:after,.ph.speccer.dissection.outline.full.right:after,.ph.speccer.dissection.outline.full.top:after{align-items:center;background-color:#d4397a;border-radius:100%;color:#fff;content:attr(data-dissection-counter);display:flex;font-size:16px;height:1.5rem;justify-content:center;line-height:150%;position:absolute;width:1.5rem;z-index:100000}.ph.speccer.dissection.outline.full.left:after,.ph.speccer.dissection.outline.full.right:after{top:50%;transform:translateY(-50%)}.ph.speccer.dissection.outline.full.bottom:after,.ph.speccer.dissection.outline.full.top:after{left:50%;transform:translateX(-50%)}.ph.speccer.dissection.outline.full.bottom:before,.ph.speccer.dissection.outline.full.left:before,.ph.speccer.dissection.outline.full.right:before,.ph.speccer.dissection.outline.full.top:before{background-color:#d4397a;content:"";display:block;position:absolute;z-index:100000}.ph.speccer.dissection.outline.full.left:before,.ph.speccer.dissection.outline.full.right:before{height:1px;top:50%;transform:translateY(-50%);width:49px}.ph.speccer.dissection.outline.full.bottom:before,.ph.speccer.dissection.outline.full.top:before{height:49px;left:50%;transform:translateX(-50%);width:1px}.ph.speccer.dissection.outline.enclose.left,.ph.speccer.dissection.outline.enclose.right{width:8px}.ph.speccer.dissection.outline.enclose.bottom,.ph.speccer.dissection.outline.enclose.top{height:8px}.ph.speccer.dissection.outline.enclose.bottom:after,.ph.speccer.dissection.outline.enclose.left:after,.ph.speccer.dissection.outline.enclose.right:after,.ph.speccer.dissection.outline.enclose.top:after{align-items:center;background-color:#d4397a;border-radius:100%;color:#fff;content:attr(data-dissection-counter);display:flex;font-size:16px;height:1.5rem;justify-content:center;line-height:150%;position:absolute;width:1.5rem;z-index:100000}.ph.speccer.dissection.outline.enclose.left:after,.ph.speccer.dissection.outline.enclose.right:after{top:50%;transform:translateY(-50%)}.ph.speccer.dissection.outline.enclose.bottom:after,.ph.speccer.dissection.outline.enclose.top:after{left:50%;transform:translateX(-50%)}.ph.speccer.dissection.outline.enclose.bottom:before,.ph.speccer.dissection.outline.enclose.left:before,.ph.speccer.dissection.outline.enclose.right:before,.ph.speccer.dissection.outline.enclose.top:before{background-color:#d4397a;content:"";display:block;position:absolute;z-index:100000}.ph.speccer.dissection.outline.enclose.left:before,.ph.speccer.dissection.outline.enclose.right:before{height:1px;top:50%;transform:translateY(-50%);width:49px}.ph.speccer.dissection.outline.enclose.bottom:before,.ph.speccer.dissection.outline.enclose.top:before{height:49px;left:50%;transform:translateX(-50%);width:1px}.ph.speccer.dissection.button-icon:after,.ph.speccer.dissection.button-outline:after{background-color:#d4397a;content:"";height:1px;position:absolute;top:50%;width:48px;z-index:99999}.ph.speccer.spacing:hover{border:1px solid #333}.ph.speccer.spacing.is-specced:hover~.speccer.margin{background-color:#fff76f}.ph.speccer.spacing.is-specced:hover~.speccer.padding{background-color:#db6fff;color:#fff}.ph.speccer.spacing.margin{background-color:#fff76f66;color:#333}.ph.speccer.spacing.padding{background-color:#db6fff66;color:#ff3aa8}.ph.speccer.spacing.margin.bottom:after,.ph.speccer.spacing.margin.top:after{border-bottom:1px solid #333;border-top:1px solid #333;content:"";height:100%;left:40%;position:absolute;width:9px}.ph.speccer.spacing.margin.bottom:before,.ph.speccer.spacing.margin.top:before{border-left:1px solid #333;content:"";height:100%;left:40%;margin-left:4px;position:absolute;width:0}.ph.speccer.spacing.margin.left:after,.ph.speccer.spacing.margin.right:after{border-left:1px solid #ff3aa8;border-right:1px solid #ff3aa8;content:"";height:9px;position:absolute;top:10%;width:100%}.ph.speccer.spacing.margin.left:before,.ph.speccer.spacing.margin.right:before{border-top:1px solid #ff3aa8;content:"";height:0;margin-top:4px;position:absolute;top:10%;width:100%}.ph.speccer.spacing.padding.bottom:after,.ph.speccer.spacing.padding.top:after{border-bottom:1px solid #ff3aa8;border-top:1px solid #ff3aa8;content:"";height:100%;left:40%;position:absolute;width:9px}.ph.speccer.spacing.padding.bottom:before,.ph.speccer.spacing.padding.top:before{border-left:1px solid #ff3aa8;content:"";height:100%;left:40%;margin-left:4px;position:absolute;width:0}.ph.speccer.spacing.padding.left:after,.ph.speccer.spacing.padding.right:after{border-left:1px solid #ff3aa8;border-right:1px solid #ff3aa8;content:"";height:9px;position:absolute;top:10%;width:100%}.ph.speccer.spacing.padding.left:before,.ph.speccer.spacing.padding.right:before{border-top:1px solid #ff3aa8;content:"";height:0;margin-top:4px;position:absolute;top:10%;width:100%}.ph.speccer.typography{background-color:#fff;color:#57575b;display:block;font-size:12px;line-height:140%;max-width:none;min-width:320px;padding:8px 24px;text-align:left;width:auto}.ph.speccer.typography,.ph.speccer.typography:hover{border:1px solid #e227b3}.ph.speccer.typography:after{background-color:#e227b3;content:"";display:block;position:absolute}.ph.speccer.typography.left:after,.ph.speccer.typography:after{height:1px;left:100%;top:50%;transform:translateY(-50%);width:48px}.ph.speccer.typography.right:after{height:1px;left:auto;right:100%;top:50%;transform:translateY(-50%);width:48px}.ph.speccer.typography.top:after{height:48px;left:50%;right:auto;top:100%;transform:translateX(-50%);width:1px}.ph.speccer.typography.bottom:after{bottom:100%;height:48px;left:50%;right:auto;top:auto;transform:translateX(-50%);width:1px}.ph.speccer.typography .speccer-styles{font-size:12px;line-height:140%;list-style:none;margin:0;padding:0 0 0 1rem;width:100%}.ph.speccer.typography .speccer-styles .property{color:#3f85f2;font-size:12px;font-weight:400;margin:0;padding:0;text-align:left}.ph.speccer.typography .speccer-styles>li{border:none;color:#e227b3;font-size:12px;font-weight:400;list-style:none;margin:0;padding:0;text-align:left}.ph.speccer.measure.width{border:1px solid red;border-bottom:none;color:red;height:8px}.ph.speccer.measure.width:after{content:attr(data-measure);position:absolute;top:calc(-100% - 10px)}.ph.speccer.measure.width.bottom{border:1px solid red;border-top:none;color:red}.ph.speccer.measure.width.bottom:after{content:attr(data-measure);position:absolute;top:calc(100% + 5px)}.ph.speccer.measure.width.top{border:1px solid red;border-bottom:none;color:red}.ph.speccer.measure.width.top:after{bottom:calc(100% + 5px);content:attr(data-measure);position:absolute}.ph.speccer.measure.height{border:1px solid red;border-right:none;color:red;width:8px}.ph.speccer.measure.height:after{content:attr(data-measure);left:calc(-100% - 25px);position:absolute;top:50%;transform:translateY(-50%) rotate(-90deg)}.ph.speccer.measure.height.right{border:1px solid red;border-left:none;color:red}.ph.speccer.measure.height.right:after{content:attr(data-measure);left:100%;position:absolute;top:50%;transform:translateY(-50%) rotate(90deg)}
1
+ .ph.speccer{--ph-speccer-color-padding:#db6fff66;--ph-speccer-color-padding-hover:#db6fff;--ph-speccer-color-margin:#fff76f66;--ph-speccer-color-margin-hover:#fff76f;--ph-speccer-color-text-light:#fff;--ph-speccer-color-text-dark:#333;--ph-speccer-color-contrast:#ff3aa8;--ph-speccer-spacing-color:var(--ph-speccer-color-contrast);--ph-speccer-measure-color:red;--ph-speccer-pin-color:var(--ph-speccer-color-contrast);--ph-speccer-typography-background-color:#fff;--ph-speccer-typography-color-property:#3f85f2;--ph-speccer-typography-color-text:#57575b;--ph-speccer-typography-color-value:var(--ph-speccer-color-contrast);--ph-speccer-depth-opacity-400:0.4;--ph-speccer-font-family:"Menlo for Powerline","Menlo Regular for Powerline","DejaVu Sans Mono",Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;--ph-speccer-font-size:12px;--ph-speccer-line-height:12px;--ph-speccer-pin-size:24px;--ph-speccer-pin-space:48px;--ph-speccer-line-width:1px;--ph-speccer-line-width-negative:-1px;--ph-speccer-measure-size:8px}.ph.speccer,.ph.speccer:after,.ph.speccer:before{box-sizing:border-box;font-family:var(--ph-speccer-font-family)!important;font-size:12px;line-height:12px;pointer-events:none;user-select:none;z-index:99999}.ph.speccer,.ph.speccer.dissection,.ph.speccer:after,.ph.speccer:before{align-items:center;display:flex;justify-content:center;position:absolute}.ph.speccer.dissection{background-color:var(--ph-speccer-pin-color);border-radius:100%;box-sizing:initial;color:var(--ph-speccer-color-text-light);font-family:sans-serif;font-size:16px;font-weight:400;height:var(--ph-speccer-pin-size);line-height:150%;width:var(--ph-speccer-pin-size);z-index:100000}.ph.speccer.dissection:after{background-color:var(--ph-speccer-pin-color);content:"";height:var(--ph-speccer-pin-space);position:absolute;top:100%;width:var(--ph-speccer-line-width);z-index:99999}.ph.speccer.dissection.outline.left:after{height:var(--ph-speccer-line-width);left:100%;top:50%;width:var(--ph-speccer-pin-space)}.ph.speccer.dissection.outline.right:after{height:var(--ph-speccer-line-width);right:100%;top:50%;width:var(--ph-speccer-pin-space)}.ph.speccer.dissection.outline.enclose{background-color:initial;border:var(--ph-speccer-line-width) solid var(--ph-speccer-pin-color);border-radius:0;color:var(--ph-speccer-measure-color)}.ph.speccer.dissection.outline.enclose.right:after{left:calc(100% + var(--ph-speccer-pin-space) + var(--ph-speccer-line-width));right:auto}.ph.speccer.dissection.outline.enclose.right:before{left:100%;right:auto}.ph.speccer.dissection.outline.enclose.left:after{left:calc(var(--ph-speccer-line-width-negative) - var(--ph-speccer-pin-size) - var(--ph-speccer-pin-space));right:auto}.ph.speccer.dissection.outline.enclose.left:before{left:auto;right:100%}.ph.speccer.dissection.outline.enclose.top:after{bottom:auto;top:calc(var(--ph-speccer-line-width-negative) - var(--ph-speccer-pin-size) - var(--ph-speccer-pin-space))}.ph.speccer.dissection.outline.enclose.top:before{bottom:100%;top:auto}.ph.speccer.dissection.outline.enclose.bottom:after{bottom:auto;top:calc(100% + var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))}.ph.speccer.dissection.outline.enclose.bottom:before{bottom:auto;top:100%}.ph.speccer.dissection.outline.full{background-color:initial;border:var(--ph-speccer-line-width) solid var(--ph-speccer-pin-color);border-radius:0;color:var(--ph-speccer-measure-color)}.ph.speccer.dissection.outline.full.right{border-left:none}.ph.speccer.dissection.outline.full.right:after{left:calc(8px + var(--ph-speccer-pin-space))}.ph.speccer.dissection.outline.full.right:before{left:100%}.ph.speccer.dissection.outline.full.left{border-right:none}.ph.speccer.dissection.outline.full.left:after{left:calc(-8px - var(--ph-speccer-pin-space))}.ph.speccer.dissection.outline.full.left:before{right:100%}.ph.speccer.dissection.outline.full.top{border-bottom:none}.ph.speccer.dissection.outline.full.top:after{top:calc(-8px - var(--ph-speccer-pin-space))}.ph.speccer.dissection.outline.full.top:before{bottom:100%}.ph.speccer.dissection.outline.full.bottom{border-top:none}.ph.speccer.dissection.outline.full.bottom:after{top:calc(8px + var(--ph-speccer-pin-space))}.ph.speccer.dissection.outline.full.bottom:before{top:100%}.ph.speccer.dissection.outline.bottom:after{height:var(--ph-speccer-pin-space);right:50%;top:calc(-100% - var(--ph-speccer-pin-space)/2);width:var(--ph-speccer-line-width)}.ph.speccer.dissection.outline.top:after,.ph.speccer.dissection.outline:after{height:var(--ph-speccer-pin-space);right:50%;top:100%;width:var(--ph-speccer-line-width)}[data-anatomy-section]{counter-reset:type}.ph.speccer.dissection.outline.full.left,.ph.speccer.dissection.outline.full.right{width:8px}.ph.speccer.dissection.outline.full.bottom,.ph.speccer.dissection.outline.full.top{height:8px}.ph.speccer.dissection.outline.full.bottom:after,.ph.speccer.dissection.outline.full.left:after,.ph.speccer.dissection.outline.full.right:after,.ph.speccer.dissection.outline.full.top:after{align-items:center;background-color:var(--ph-speccer-pin-color);border-radius:100%;color:var(--ph-speccer-color-text-light);content:attr(data-dissection-counter);display:flex;font-size:16px;height:var(--ph-speccer-pin-size);justify-content:center;line-height:150%;position:absolute;width:var(--ph-speccer-pin-size);z-index:100000}.ph.speccer.dissection.outline.full.left:after,.ph.speccer.dissection.outline.full.right:after{top:50%;transform:translateY(-50%)}.ph.speccer.dissection.outline.full.bottom:after,.ph.speccer.dissection.outline.full.top:after{left:50%;transform:translateX(-50%)}.ph.speccer.dissection.outline.full.bottom:before,.ph.speccer.dissection.outline.full.left:before,.ph.speccer.dissection.outline.full.right:before,.ph.speccer.dissection.outline.full.top:before{background-color:var(--ph-speccer-pin-color);content:"";display:block;position:absolute;z-index:100000}.ph.speccer.dissection.outline.full.left:before,.ph.speccer.dissection.outline.full.right:before{height:var(--ph-speccer-line-width);top:50%;transform:translateY(-50%);width:calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))}.ph.speccer.dissection.outline.full.bottom:before,.ph.speccer.dissection.outline.full.top:before{height:calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width));left:50%;transform:translateX(-50%);width:var(--ph-speccer-line-width)}.ph.speccer.dissection.outline.enclose.left,.ph.speccer.dissection.outline.enclose.right{width:8px}.ph.speccer.dissection.outline.enclose.bottom,.ph.speccer.dissection.outline.enclose.top{height:8px}.ph.speccer.dissection.outline.enclose.bottom:after,.ph.speccer.dissection.outline.enclose.left:after,.ph.speccer.dissection.outline.enclose.right:after,.ph.speccer.dissection.outline.enclose.top:after{align-items:center;background-color:var(--ph-speccer-pin-color);border-radius:100%;color:var(--ph-speccer-color-text-light);content:attr(data-dissection-counter);display:flex;font-size:16px;height:var(--ph-speccer-pin-size);justify-content:center;line-height:150%;position:absolute;width:var(--ph-speccer-pin-size);z-index:100000}.ph.speccer.dissection.outline.enclose.left:after,.ph.speccer.dissection.outline.enclose.right:after{top:50%;transform:translateY(-50%)}.ph.speccer.dissection.outline.enclose.bottom:after,.ph.speccer.dissection.outline.enclose.top:after{left:50%;transform:translateX(-50%)}.ph.speccer.dissection.outline.enclose.bottom:before,.ph.speccer.dissection.outline.enclose.left:before,.ph.speccer.dissection.outline.enclose.right:before,.ph.speccer.dissection.outline.enclose.top:before{background-color:var(--ph-speccer-pin-color);content:"";display:block;position:absolute;z-index:100000}.ph.speccer.dissection.outline.enclose.left:before,.ph.speccer.dissection.outline.enclose.right:before{height:var(--ph-speccer-line-width);top:50%;transform:translateY(-50%);width:calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))}.ph.speccer.dissection.outline.enclose.bottom:before,.ph.speccer.dissection.outline.enclose.top:before{height:calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width));left:50%;transform:translateX(-50%);width:var(--ph-speccer-line-width)}.ph.speccer.spacing{border:var(--ph-speccer-line-width) solid #0000;pointer-events:auto;transition:none}.ph.speccer.spacing:hover{border:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark)}.is-specced:hover~.ph.speccer.spacing.margin{background-color:var(--ph-speccer-color-margin-hover)}.is-specced:hover~.ph.speccer.spacing.padding{background-color:var(--ph-speccer-color-padding-hover);color:var(--ph-speccer-color-text-light)}.ph.speccer.spacing.margin{background-color:var(--ph-speccer-color-margin);color:var(--ph-speccer-color-text-dark)}.ph.speccer.spacing.padding{background-color:var(--ph-speccer-color-padding);color:var(--ph-speccer-spacing-color)}.ph.speccer.spacing.margin.bottom:after,.ph.speccer.spacing.margin.top:after{border-bottom:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark);border-top:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark);content:"";height:100%;left:40%;position:absolute;transition:none;width:9px}.ph.speccer.spacing.margin.bottom:before,.ph.speccer.spacing.margin.top:before{border-left:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark);content:"";height:100%;left:40%;margin-left:4px;position:absolute;transition:none;width:0}.ph.speccer.spacing.margin.left:after,.ph.speccer.spacing.margin.right:after{border-left:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark);border-right:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark);content:"";height:9px;position:absolute;top:10%;transition:none;width:100%}.ph.speccer.spacing.margin.left:before,.ph.speccer.spacing.margin.right:before{border-top:var(--ph-speccer-line-width) solid var(--ph-speccer-color-text-dark);content:"";height:0;margin-top:4px;position:absolute;top:10%;transition:none;width:100%}.ph.speccer.spacing.padding.bottom:after,.ph.speccer.spacing.padding.top:after{border-bottom:var(--ph-speccer-line-width) solid var(--ph-speccer-spacing-color);border-top:var(--ph-speccer-line-width) solid var(--ph-speccer-spacing-color);content:"";height:100%;left:40%;position:absolute;transition:none;width:9px}.ph.speccer.spacing.padding.bottom:before,.ph.speccer.spacing.padding.top:before{border-left:var(--ph-speccer-line-width) solid var(--ph-speccer-spacing-color);content:"";height:100%;left:40%;margin-left:4px;position:absolute;transition:none;width:0}.ph.speccer.spacing.padding.left:after,.ph.speccer.spacing.padding.right:after{border-left:var(--ph-speccer-line-width) solid var(--ph-speccer-spacing-color);border-right:var(--ph-speccer-line-width) solid var(--ph-speccer-spacing-color);content:"";height:9px;position:absolute;top:10%;transition:none;width:100%}.ph.speccer.spacing.padding.left:before,.ph.speccer.spacing.padding.right:before{border-top:var(--ph-speccer-line-width) solid var(--ph-speccer-spacing-color);content:"";height:0;margin-top:4px;position:absolute;top:10%;transition:none;width:100%}.ph.speccer.typography{background-color:var(--ph-speccer-typography-background-color);color:var(--ph-speccer-typography-color-text);display:block;font-size:12px;line-height:140%;max-width:none;min-width:320px;padding:8px 24px;text-align:left;width:auto}.ph.speccer.typography,.ph.speccer.typography:hover{border:var(--ph-speccer-line-width) solid var(--ph-speccer-pin-color)}.ph.speccer.typography:after{background-color:var(--ph-speccer-pin-color);content:"";display:block;position:absolute}.ph.speccer.typography.left:after,.ph.speccer.typography:after{height:var(--ph-speccer-line-width);left:100%;top:50%;transform:translateY(-50%);width:48px}.ph.speccer.typography.right:after{height:var(--ph-speccer-line-width);left:auto;right:100%;top:50%;transform:translateY(-50%);width:48px}.ph.speccer.typography.top:after{top:100%}.ph.speccer.typography.bottom:after,.ph.speccer.typography.top:after{height:48px;left:50%;right:auto;transform:translateX(-50%);width:var(--ph-speccer-line-width)}.ph.speccer.typography.bottom:after{bottom:100%;top:auto}.ph.speccer.typography .speccer-styles{font-size:12px;line-height:140%;list-style:none;margin:0;padding:0 0 0 1rem;width:100%}.ph.speccer.typography .speccer-styles .property{color:var(--ph-speccer-typography-color-property);font-size:12px;font-weight:400;margin:0;padding:0;text-align:left}.ph.speccer.typography .speccer-styles>li{border:none;color:var(--ph-speccer-typography-color-value);font-size:12px;font-weight:400;list-style:none;margin:0;padding:0;text-align:left}.ph.speccer.measure.width{border:var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color);border-bottom:none;color:var(--ph-speccer-measure-color);height:var(--ph-speccer-measure-size)}.ph.speccer.measure.width:after{content:attr(data-measure);position:absolute;top:calc(-100% - 10px)}.ph.speccer.measure.width.bottom{border:var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color);border-top:none;color:var(--ph-speccer-measure-color)}.ph.speccer.measure.width.bottom:after{content:attr(data-measure);position:absolute;top:calc(100% + 5px)}.ph.speccer.measure.width.top{border:var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color);border-bottom:none;color:var(--ph-speccer-measure-color)}.ph.speccer.measure.width.top:after{bottom:calc(100% + 5px);content:attr(data-measure);position:absolute}.ph.speccer.measure.height.left{border:var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color);border-right:none;color:var(--ph-speccer-measure-color);width:var(--ph-speccer-measure-size)}.ph.speccer.measure.height.left:after{content:attr(data-measure);left:calc(-100% - 20px - var(--ph-speccer-line-width));position:absolute;top:50%;transform:translateY(-50%) rotate(-90deg)}.ph.speccer.measure.height.right{border:var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color);border-left:none;color:var(--ph-speccer-measure-color);width:var(--ph-speccer-measure-size)}.ph.speccer.measure.height.right:after{content:attr(data-measure);left:calc(100% - var(--ph-speccer-measure-size));position:absolute;top:50%;transform:translateY(-50%) rotate(90deg)}
package/src/index.js CHANGED
@@ -1,28 +1,33 @@
1
1
  /* eslint no-console:0 */
2
2
  'use strict';
3
3
 
4
- import * as node from './lib/node';
5
- import * as spec from './spec';
6
- import * as dissect from './dissect';
7
- import * as measure from './measure';
8
- import * as typography from './typography';
9
- import * as browser from './browser';
4
+ import * as __node from './lib/node';
5
+ import * as __spacing from './spec';
6
+ import * as __dissect from './dissect';
7
+ import * as __measure from './measure';
8
+ import * as __typography from './typography';
9
+ import * as __browser from './browser';
10
10
 
11
11
  const speccer = () => {
12
- node.removeAll('.speccer');
13
- node.removeAll('.dissection');
12
+ __node.removeAll('.speccer');
13
+ __node.removeAll('.dissection');
14
14
 
15
15
  const _els_to_be_specced = document.querySelectorAll('[data-speccer],[data-speccer] *:not(td)');
16
16
  const _els_to_be_measured = document.querySelectorAll('[data-speccer-measure]');
17
17
  const _els_to_be_typography_specced = document.querySelectorAll('[data-speccer-typography]');
18
18
  const _els_to_be_dissected = document.querySelectorAll('[data-anatomy-section] [data-anatomy]');
19
19
 
20
- _els_to_be_specced.forEach(spec.element);
21
- _els_to_be_measured.forEach(measure.element);
22
- _els_to_be_typography_specced.forEach(typography.element);
23
- _els_to_be_dissected.forEach(dissect.element);
20
+ _els_to_be_specced.forEach(__spacing.element);
21
+ _els_to_be_measured.forEach(__measure.element);
22
+ _els_to_be_typography_specced.forEach(__typography.element);
23
+ _els_to_be_dissected.forEach(__dissect.element);
24
24
  };
25
25
 
26
+ export const spacing = __spacing;
27
+ export const dissect = __dissect;
28
+ export const measure = __measure;
29
+ export const typography = __typography;
30
+
26
31
  export default speccer;
27
32
 
28
- browser.activate(speccer);
33
+ __browser.activate(speccer);
package/src/measure.js CHANGED
@@ -71,7 +71,7 @@ export const element = el => {
71
71
  height: _el_rect.height + 'px'
72
72
  });
73
73
  } else {
74
- const _measure_node = create(_el_rect.height, 'height top');
74
+ const _measure_node = create(_el_rect.height, 'height left');
75
75
  if (SPECCER_TAGS_TO_AVOID.indexOf(el.nodeName) >= 0) {
76
76
  node.after(el.closest('table'), _measure_node);
77
77
  } else {
@@ -1,12 +1,12 @@
1
1
  .ph.speccer.dissection
2
2
  font-family sans-serif
3
- height 1.5rem
4
- width 1.5rem
3
+ height var(--ph-speccer-pin-size)
4
+ width var(--ph-speccer-pin-size)
5
5
  display flex
6
6
  position absolute
7
7
  border-radius 100%
8
- background-color #d4397a
9
- color white
8
+ background-color var(--ph-speccer-pin-color)
9
+ color var(--ph-speccer-color-text-light)
10
10
  font-weight 400
11
11
  align-items center
12
12
  justify-content center
@@ -18,128 +18,90 @@
18
18
  .ph.speccer.dissection:after
19
19
  content ""
20
20
  position absolute
21
- height 48px
21
+ height var(--ph-speccer-pin-space)
22
22
  top 100%
23
- width 1px
24
- background-color #d4397a
23
+ width var(--ph-speccer-line-width)
24
+ background-color var(--ph-speccer-pin-color)
25
25
  z-index 99999
26
26
 
27
27
 
28
28
  .ph.speccer.dissection.outline:after,
29
29
  .ph.speccer.dissection.outline.top:after
30
- height 48px
31
- width 1px
30
+ height var(--ph-speccer-pin-space)
31
+ width var(--ph-speccer-line-width)
32
32
  top 100%
33
33
  right 50%
34
34
 
35
35
  .ph.speccer.dissection.outline.left:after
36
- height 1px
37
- width 48px
36
+ height var(--ph-speccer-line-width)
37
+ width var(--ph-speccer-pin-space)
38
38
  top 50%
39
39
  left 100%
40
40
 
41
41
  .ph.speccer.dissection.outline.right:after
42
- height 1px
43
- width 48px
42
+ height var(--ph-speccer-line-width)
43
+ width var(--ph-speccer-pin-space)
44
44
  top 50%
45
45
  right 100%
46
46
 
47
47
  .ph.speccer.dissection.outline.bottom:after
48
- height 48px
49
- width 1px
50
- top calc(-100% - 24px)
48
+ height var(--ph-speccer-pin-space)
49
+ width var(--ph-speccer-line-width)
50
+ top calc(-100% - (var(--ph-speccer-pin-space) / 2))
51
51
  right 50%
52
52
 
53
- .ph.speccer.dissection.button-center:after
54
- content ""
55
- position absolute
56
- height 48px
57
- top 100%
58
- width 1px
59
- background-color #d4397a
60
- z-index 99999
61
-
62
- .ph.speccer.dissection.button-outline:after
63
- content ""
64
- position absolute
65
- width 48px
66
- top 50%
67
- right 100%
68
- height 1px
69
- background-color #d4397a
70
- z-index 99999
71
-
72
- .ph.speccer.dissection.button-icon:after
73
- content ""
74
- position absolute
75
- width 48px
76
- left 100%
77
- top 50%
78
- height 1px
79
- background-color #d4397a
80
- z-index 99999
81
-
82
- .ph.speccer.dissection.button-icon:before
83
- content ""
84
- position absolute
85
- height 1.5rem
86
- left calc(100% + 48px)
87
- width 1.5rem
88
- border 1px solid #d4397a
89
- z-index 99999
90
-
91
53
 
92
54
  .ph.speccer.dissection
93
55
  &:after
94
56
  content ""
95
57
  position absolute
96
- height 48px
58
+ height var(--ph-speccer-pin-space)
97
59
  top 100%
98
- width 1px
99
- background-color #d4397a
60
+ width var(--ph-speccer-line-width)
61
+ background-color var(--ph-speccer-pin-color)
100
62
  z-index 99999
101
63
  &.outline
102
64
  &.left
103
65
  &:after
104
- height 1px
105
- width 48px
66
+ height var(--ph-speccer-line-width)
67
+ width var(--ph-speccer-pin-space)
106
68
  top 50%
107
69
  left 100%
108
70
  &.right
109
71
  &:after
110
- height 1px
111
- width 48px
72
+ height var(--ph-speccer-line-width)
73
+ width var(--ph-speccer-pin-space)
112
74
  top 50%
113
75
  right 100%
114
76
  &.enclose
115
77
  border-radius 0
116
78
  background-color transparent
117
- color red
118
- border 1px solid #d4397a
79
+ color var(--ph-speccer-measure-color)
80
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-pin-color)
119
81
  &.right
120
82
  &:after
121
- left calc(100% + 49px)
83
+ left calc(100% + calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width)))
122
84
  right auto
123
85
  &:before
124
86
  left 100%
125
87
  right auto
126
88
  &.left
127
89
  &:after
128
- left calc(-1px - 48px)
90
+ left calc(var(--ph-speccer-line-width-negative) - var(--ph-speccer-pin-size) - var(--ph-speccer-pin-space))
129
91
  right auto
130
92
  &:before
131
93
  right 100%
132
94
  left auto
133
95
  &.top
134
96
  &:after
135
- top calc(-1px - 48px)
97
+ top calc(var(--ph-speccer-line-width-negative) - var(--ph-speccer-pin-size) - var(--ph-speccer-pin-space))
136
98
  bottom auto
137
99
  &:before
138
100
  bottom 100%
139
101
  top auto
140
102
  &.bottom
141
103
  &:after
142
- top calc(100% + 49px)
104
+ top calc(100% + calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width)))
143
105
  bottom auto
144
106
  &:before
145
107
  top 100%
@@ -147,66 +109,44 @@
147
109
  &.full
148
110
  border-radius 0
149
111
  background-color transparent
150
- color red
151
- border 1px solid #d4397a
112
+ color var(--ph-speccer-measure-color)
113
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-pin-color)
152
114
  &.right
153
115
  border-left none
154
116
  &:after
155
- left calc(8px + 48px)
117
+ left calc(8px + var(--ph-speccer-pin-space))
156
118
  &:before
157
119
  left 100%
158
120
  &.left
159
121
  border-right none
160
122
  &:after
161
- left calc(-8px - 48px)
123
+ left calc(-8px - var(--ph-speccer-pin-space))
162
124
  &:before
163
125
  right 100%
164
126
  &.top
165
127
  border-bottom none
166
128
  &:after
167
- top calc(-8px - 48px)
129
+ top calc(-8px - var(--ph-speccer-pin-space))
168
130
  &:before
169
131
  bottom 100%
170
132
  &.bottom
171
133
  border-top none
172
134
  &:after
173
- top calc(8px + 48px)
135
+ top calc(8px + var(--ph-speccer-pin-space))
174
136
  &:before
175
137
  top 100%
176
138
  &.bottom
177
139
  &:after
178
- height 48px
179
- width 1px
180
- top calc(-100% - 24px)
140
+ height var(--ph-speccer-pin-space)
141
+ width var(--ph-speccer-line-width)
142
+ top calc(-100% - (var(--ph-speccer-pin-space) / 2))
181
143
  right 50%
182
- &.button-center
183
- &:after
184
- content ""
185
- position absolute
186
- height 48px
187
- top 100%
188
- width 1px
189
- background-color #d4397a
190
- z-index 99999
191
- &.button-outline
192
- &:after
193
- right 100%
194
- &.button-icon
195
- &:after
196
- left 100%
197
- &:before
198
- content ""
199
- position absolute
200
- height 1.5rem
201
- left calc(100% + 48px)
202
- width 1.5rem
203
- border 1px solid #d4397a
204
- z-index 99999
144
+
205
145
 
206
146
  .ph.speccer.dissection.outline.top:after,
207
147
  .ph.speccer.dissection.outline:after
208
- height 48px
209
- width 1px
148
+ height var(--ph-speccer-pin-space)
149
+ width var(--ph-speccer-line-width)
210
150
  top 100%
211
151
  right 50%
212
152
 
@@ -226,13 +166,13 @@
226
166
  .ph.speccer.dissection.outline.full.top:after,
227
167
  .ph.speccer.dissection.outline.full.bottom:after
228
168
  content attr(data-dissection-counter)
229
- height 1.5rem
230
- width 1.5rem
169
+ height var(--ph-speccer-pin-size)
170
+ width var(--ph-speccer-pin-size)
231
171
  display flex
232
172
  position absolute
233
173
  border-radius 100%
234
- background-color #d4397a
235
- color #fff
174
+ background-color var(--ph-speccer-pin-color)
175
+ color var(--ph-speccer-color-text-light)
236
176
  align-items center
237
177
  justify-content center
238
178
  line-height 150%
@@ -255,7 +195,7 @@
255
195
  .ph.speccer.dissection.outline.full.bottom:before
256
196
  content ""
257
197
  position absolute
258
- background-color #d4397a
198
+ background-color var(--ph-speccer-pin-color)
259
199
  z-index 100000
260
200
  display block
261
201
 
@@ -263,15 +203,15 @@
263
203
  .ph.speccer.dissection.outline.full.left:before
264
204
  top 50%
265
205
  transform translateY(-50%)
266
- height 1px
267
- width 49px
206
+ height var(--ph-speccer-line-width)
207
+ width calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))
268
208
 
269
209
  .ph.speccer.dissection.outline.full.top:before,
270
210
  .ph.speccer.dissection.outline.full.bottom:before
271
211
  left 50%
272
212
  transform translateX(-50%)
273
- width 1px
274
- height 49px
213
+ width var(--ph-speccer-line-width)
214
+ height calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))
275
215
 
276
216
  .ph.speccer.dissection.outline.enclose.right,
277
217
  .ph.speccer.dissection.outline.enclose.left
@@ -286,13 +226,13 @@
286
226
  .ph.speccer.dissection.outline.enclose.top:after,
287
227
  .ph.speccer.dissection.outline.enclose.bottom:after
288
228
  content attr(data-dissection-counter)
289
- height 1.5rem
290
- width 1.5rem
229
+ height var(--ph-speccer-pin-size)
230
+ width var(--ph-speccer-pin-size)
291
231
  display flex
292
232
  position absolute
293
233
  border-radius 100%
294
- background-color #d4397a
295
- color #fff
234
+ background-color var(--ph-speccer-pin-color)
235
+ color var(--ph-speccer-color-text-light)
296
236
  align-items center
297
237
  justify-content center
298
238
  line-height 150%
@@ -315,7 +255,7 @@
315
255
  .ph.speccer.dissection.outline.enclose.bottom:before
316
256
  content ""
317
257
  position absolute
318
- background-color #d4397a
258
+ background-color var(--ph-speccer-pin-color)
319
259
  z-index 100000
320
260
  display block
321
261
 
@@ -323,22 +263,12 @@
323
263
  .ph.speccer.dissection.outline.enclose.left:before
324
264
  top 50%
325
265
  transform translateY(-50%)
326
- height 1px
327
- width 49px
266
+ height var(--ph-speccer-line-width)
267
+ width calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))
328
268
 
329
269
  .ph.speccer.dissection.outline.enclose.top:before,
330
270
  .ph.speccer.dissection.outline.enclose.bottom:before
331
271
  left 50%
332
272
  transform translateX(-50%)
333
- width 1px
334
- height 49px
335
-
336
- .ph.speccer.dissection.button-icon:after,
337
- .ph.speccer.dissection.button-outline:after
338
- content ""
339
- position absolute
340
- width 48px
341
- top 50%
342
- height 1px
343
- background-color #d4397a
344
- z-index 99999
273
+ width var(--ph-speccer-line-width)
274
+ height calc(var(--ph-speccer-pin-space) + var(--ph-speccer-line-width))
@@ -1,25 +1,67 @@
1
- $ph-speccer-color-padding = rgb(219, 111, 255);
2
- $ph-speccer-color-margin = rgb(255, 247, 111);
1
+ $ph-speccer-color-padding = rgba(219, 111, 255, 0.4);
2
+ $ph-speccer-color-padding-hover = rgb(219, 111, 255);
3
+ $ph-speccer-color-margin = rgba(255, 247, 111, 0.4);
4
+ $ph-speccer-color-margin-hover = rgb(255, 247, 111);
3
5
  $ph-speccer-color-text-light = rgb(255, 255, 255);
4
- $ph-speccer-color-text-dark = rgb(51, 51, 51);
5
- $ph-speccer-color-border-dark = rgb(51, 51, 51);
6
- $ph-speccer-color-text-pink = rgb(255, 58, 168);
7
- $ph-speccer-color-border-pink = rgb(255, 58, 168);
6
+ $ph-speccer-color-text-dark = rgb(51,51,51);
7
+ $ph-speccer-color-contrast = rgb(255, 58, 168);
8
+ $ph-speccer-spacing-color = $ph-speccer-color-contrast;
9
+ $ph-speccer-measure-color = rgb(255,0,0);
10
+ $ph-speccer-pin-color = $ph-speccer-color-contrast;
11
+ $ph-speccer-typography-background-color = rgb(255, 255,255);
12
+ $ph-speccer-typography-color-property = rgb(63, 133, 242);
13
+ $ph-speccer-typography-color-text = rgb(87, 87, 91);
14
+ $ph-speccer-typography-color-value = $ph-speccer-color-contrast;
8
15
  $ph-speccer-depth-opacity-400 = 0.4;
16
+ $ph-speccer-font-family = "Menlo for Powerline", "Menlo Regular for Powerline", "DejaVu Sans Mono", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
17
+ $ph-speccer-font-size = 12px;
18
+ $ph-speccer-line-height = 12px;
19
+ $ph-speccer-pin-size = 24px
20
+ $ph-speccer-pin-space = 48px
21
+ $ph-speccer-line-width = 1px
22
+ $ph-speccer-line-width-negative = -1px
23
+ $ph-speccer-measure-size = 8px
24
+
25
+
26
+ .ph.speccer
27
+ --ph-speccer-color-padding: $ph-speccer-color-padding;
28
+ --ph-speccer-color-padding-hover: $ph-speccer-color-padding-hover;
29
+ --ph-speccer-color-margin: $ph-speccer-color-margin;
30
+ --ph-speccer-color-margin-hover: $ph-speccer-color-margin-hover;
31
+ --ph-speccer-color-text-light: $ph-speccer-color-text-light;
32
+ --ph-speccer-color-text-dark: $ph-speccer-color-text-dark;
33
+ --ph-speccer-color-contrast: $ph-speccer-color-contrast;
34
+ --ph-speccer-spacing-color: var(--ph-speccer-color-contrast);
35
+ --ph-speccer-measure-color: $ph-speccer-measure-color;
36
+ --ph-speccer-pin-color: var(--ph-speccer-color-contrast);
37
+ --ph-speccer-typography-background-color: $ph-speccer-typography-background-color;
38
+ --ph-speccer-typography-color-property: $ph-speccer-typography-color-property;
39
+ --ph-speccer-typography-color-text: $ph-speccer-typography-color-text;
40
+ --ph-speccer-typography-color-value: var(--ph-speccer-color-contrast);
41
+ --ph-speccer-depth-opacity-400: $ph-speccer-depth-opacity-400;
42
+ --ph-speccer-font-family: $ph-speccer-font-family;
43
+ --ph-speccer-font-size: $ph-speccer-font-size;
44
+ --ph-speccer-line-height: $ph-speccer-line-height;
45
+ --ph-speccer-pin-size: $ph-speccer-pin-size;
46
+ --ph-speccer-pin-space: $ph-speccer-pin-space;
47
+ --ph-speccer-line-width: $ph-speccer-line-width;
48
+ --ph-speccer-line-width-negative: $ph-speccer-line-width-negative;
49
+ --ph-speccer-measure-size: $ph-speccer-measure-size;
9
50
 
10
51
 
11
52
  .ph.speccer,
12
53
  .ph.speccer::after,
13
54
  .ph.speccer::before
14
- font-family "Menlo for Powerline", "Menlo Regular for Powerline", "DejaVu Sans Mono", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important
55
+ font-family var(--ph-speccer-font-family) !important
15
56
  justify-content center
16
57
  align-items center
17
58
  z-index 99999
18
59
  position absolute
60
+ pointer-events none
61
+ user-select none
19
62
  display flex
20
63
  font-size 12px
21
64
  box-sizing border-box
22
- transition all 0.2s ease-in
23
65
  line-height 12px
24
66
 
25
67
  @require './anatomy.styl'
@@ -1,9 +1,9 @@
1
1
  .ph.speccer.measure
2
2
  &.width
3
- color red
4
- border 1px solid red
3
+ color var(--ph-speccer-measure-color)
4
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color)
5
5
  border-bottom none
6
- height 8px
6
+ height var(--ph-speccer-measure-size)
7
7
 
8
8
 
9
9
  .ph.speccer.measure
@@ -17,8 +17,8 @@
17
17
  .ph.speccer.measure
18
18
  &.width
19
19
  &.bottom
20
- color red
21
- border 1px solid red
20
+ color var(--ph-speccer-measure-color)
21
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color)
22
22
  border-top none
23
23
 
24
24
 
@@ -34,8 +34,8 @@
34
34
  .ph.speccer.measure
35
35
  &.width
36
36
  &.top
37
- color red
38
- border 1px solid red
37
+ color var(--ph-speccer-measure-color)
38
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color)
39
39
  border-bottom none
40
40
 
41
41
 
@@ -50,28 +50,31 @@
50
50
 
51
51
  .ph.speccer.measure
52
52
  &.height
53
- color red
54
- border 1px solid red
55
- border-right none
56
- width 8px
53
+ &.left
54
+ color var(--ph-speccer-measure-color)
55
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color)
56
+ border-right none
57
+ width var(--ph-speccer-measure-size)
57
58
 
58
59
 
59
60
  .ph.speccer.measure
60
61
  &.height
61
- &::after
62
- content attr(data-measure)
63
- position absolute
64
- top 50%
65
- left calc(-100% - 25px)
66
- transform translateY(-50%) rotate(-90deg)
62
+ &.left
63
+ &::after
64
+ content attr(data-measure)
65
+ position absolute
66
+ top 50%
67
+ left calc(-100% - 20px - var(--ph-speccer-line-width))
68
+ transform translateY(-50%) rotate(-90deg)
67
69
 
68
70
 
69
71
  .ph.speccer.measure
70
72
  &.height
71
73
  &.right
72
- color red
73
- border 1px solid red
74
+ color var(--ph-speccer-measure-color)
75
+ border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color)
74
76
  border-left none
77
+ width var(--ph-speccer-measure-size)
75
78
 
76
79
 
77
80
  .ph.speccer.measure
@@ -81,5 +84,5 @@
81
84
  content attr(data-measure)
82
85
  position absolute
83
86
  top 50%
84
- left 100%
87
+ left calc(100% - var(--ph-speccer-measure-size))
85
88
  transform translateY(-50%) rotate(90deg)