-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 Add new default measure feature, keep old as
slim
.
BREAKING CHANGE: 🧨 While setting a new default feature seems appropriate, it does not come without consequence. This is a breaking change, since the default of the API has changed. Please use the `slim` version if you want that instead of the new version. ✅ Closes: #124
- Loading branch information
Showing
9 changed files
with
356 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.ph-speccer.speccer.measure | ||
&.height | ||
color var(--ph-speccer-measure-color) | ||
border-top var(--ph-speccer-measure-line-width) var(--ph-speccer-measure-border-style) | ||
border-bottom var(--ph-speccer-measure-line-width) var(--ph-speccer-measure-border-style) | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.left | ||
&::before | ||
content '' | ||
display block | ||
height calc(100% + var(--ph-speccer-measure-line-width)) | ||
background transparent | ||
position absolute | ||
left calc(64px - 5px) | ||
width 10px | ||
border-top var(--ph-speccer-measure-line-width) solid | ||
border-bottom var(--ph-speccer-measure-line-width) solid | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.left | ||
&::after | ||
position static | ||
content attr(data-measure) | ||
display flex | ||
width 64px | ||
height 100% | ||
line-height 100% | ||
margin-right auto | ||
border-right var(--ph-speccer-measure-line-width) solid | ||
justify-content flex-end | ||
padding-right 8px | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.right | ||
&::before | ||
content '' | ||
display block | ||
height calc(100% + var(--ph-speccer-measure-line-width)) | ||
background transparent | ||
position absolute | ||
left calc(100% - 64px - 5px) | ||
width 10px | ||
border-top var(--ph-speccer-measure-line-width) solid | ||
border-bottom var(--ph-speccer-measure-line-width) solid | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.right | ||
&::after | ||
position static | ||
content attr(data-measure) | ||
display flex | ||
width 64px | ||
height 100% | ||
line-height 100% | ||
margin-left auto | ||
border-left var(--ph-speccer-measure-line-width) solid | ||
justify-content flex-start | ||
padding-left 8px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,7 @@ | ||
.ph-speccer.speccer.measure | ||
display flex | ||
|
||
.ph-speccer.speccer.measure | ||
&.width | ||
color var(--ph-speccer-measure-color) | ||
border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color) | ||
border-bottom none | ||
height var(--ph-speccer-measure-size) | ||
|
||
.ph-speccer.speccer.measure | ||
&.width | ||
&::after | ||
content attr(data-measure) | ||
position absolute | ||
top calc(-100% - 10px) | ||
|
||
.ph-speccer.speccer.measure | ||
&.width | ||
&.bottom | ||
color var(--ph-speccer-measure-color) | ||
border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color) | ||
border-top none | ||
|
||
.ph-speccer.speccer.measure | ||
&.width | ||
&.bottom | ||
&::after | ||
content attr(data-measure) | ||
position absolute | ||
top calc(100% + 5px) | ||
|
||
.ph-speccer.speccer.measure | ||
&.width | ||
&.top | ||
color var(--ph-speccer-measure-color) | ||
border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color) | ||
border-bottom none | ||
|
||
.ph-speccer.speccer.measure | ||
&.width | ||
&.top | ||
&::after | ||
content attr(data-measure) | ||
position absolute | ||
bottom calc(100% + 5px) | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.left | ||
color var(--ph-speccer-measure-color) | ||
border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color) | ||
border-right none | ||
width var(--ph-speccer-measure-size) | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.left | ||
&::after | ||
content attr(data-measure) | ||
position absolute | ||
top 50% | ||
left calc(-100% - 20px - var(--ph-speccer-line-width)) | ||
transform translateY(-50%) rotate(-90deg) | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.right | ||
color var(--ph-speccer-measure-color) | ||
border var(--ph-speccer-line-width) solid var(--ph-speccer-measure-color) | ||
border-left none | ||
width var(--ph-speccer-measure-size) | ||
|
||
.ph-speccer.speccer.measure | ||
&.height | ||
&.right | ||
&::after | ||
content attr(data-measure) | ||
position absolute | ||
top 50% | ||
left calc(100% - var(--ph-speccer-measure-size)) | ||
transform translateY(-50%) rotate(90deg) | ||
|
||
@require './height.styl' | ||
@require './width.styl' | ||
@require './slim.styl' | ||
@require './subtle.styl' |
Oops, something went wrong.