Skip to content

Commit

Permalink
Resolve leftover (m|p) duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispuska committed Mar 2, 2024
1 parent 7f2f6ca commit 2ea4be3
Show file tree
Hide file tree
Showing 11 changed files with 190 additions and 1,088 deletions.
2 changes: 1 addition & 1 deletion packages/fractures/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heliosgraphics/fractures",
"version": "6.2.3",
"version": "6.3.0",
"type": "module",
"author": "03b8 <[email protected]>",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions packages/fractures/src/root.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const config: string = `:root {
--box-px: unset;
--box-1: unset;
--box-2: unset;
--box-3: unset;
Expand Down
5 changes: 1 addition & 4 deletions packages/fractures/src/rules/cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import type { FractureRuleType } from "../types/meta"

export const CURSOR: Array<FractureRuleType> = [
{ selector: "no-pointer-events", declarations: { pointerEvents: "none" } },
{
selector: "cursor-context-menu",
declarations: { cursor: "context-menu" },
},
{ selector: "cursor-context-menu", declarations: { cursor: "context-menu" }, },
{ selector: "cursor-crosshair", declarations: { cursor: "crosshair" } },
{ selector: "cursor-grab", declarations: { cursor: "grab" } },
{ selector: "cursor-grabbing", declarations: { cursor: "grabbing" } },
Expand Down
20 changes: 4 additions & 16 deletions packages/fractures/src/rules/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,11 @@ export const DISPLAY: Array<FractureRuleType> = [
{ selector: "table-caption", declarations: { display: "table-caption" } },
{ selector: "table-cell", declarations: { display: "table-cell" } },
{ selector: "table-column", declarations: { display: "table-column" } },
{
selector: "table-column-group",
declarations: { display: "table-column-group" },
},
{
selector: "table-footer-group",
declarations: { display: "table-footer-group" },
},
{
selector: "table-header-group",
declarations: { display: "table-header-group" },
},
{ selector: "table-column-group", declarations: { display: "table-column-group" }, },
{ selector: "table-footer-group", declarations: { display: "table-footer-group" }, },
{ selector: "table-header-group", declarations: { display: "table-header-group" }, },
{ selector: "table-row", declarations: { display: "table-row" } },
{
selector: "table-row-group",
declarations: { display: "table-row-group" },
},
{ selector: "table-row-group", declarations: { display: "table-row-group" }, },
{ selector: "table-layout-fixed", declarations: { tableLayout: "fixed" } },
{ selector: "float-left", declarations: { float: "left" } },
{ selector: "float-right", declarations: { float: "right" } },
Expand Down
35 changes: 12 additions & 23 deletions packages/fractures/src/rules/flex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,27 @@ import type { FractureRuleType } from "../types/meta"

export const FLEX: Array<FractureRuleType> = [
{ selector: "flex-wrap", declarations: { flexWrap: "wrap" } },

{ selector: "flex-row", declarations: { flexDirection: "row" } },
{ selector: "flex-column", declarations: { flexDirection: "column" } },
{
selector: "space-around",
declarations: { justifyContent: "space-around" },
},
{
selector: "space-between",
declarations: { justifyContent: "space-between" },
},
{
selector: "space-evenly",
declarations: { justifyContent: "space-evenly" },
},
{
selector: "flex-center",
declarations: { alignItems: "center", justifyContent: "center" },
},

{ selector: "space-around", declarations: { justifyContent: "space-around" }, },
{ selector: "space-between", declarations: { justifyContent: "space-between" }, },
{ selector: "space-evenly", declarations: { justifyContent: "space-evenly" }, },
{ selector: "flex-x-center", declarations: { justifyContent: "center" } },
{ selector: "justify-flex-start", declarations: { justifyContent: "flex-start" } },
{ selector: "justify-flex-end", declarations: { justifyContent: "flex-end" } },
{ selector: "flex-center", declarations: { alignItems: "center", justifyContent: "center" }, },

{ selector: "align-baseline", declarations: { alignItems: "baseline" } },
{ selector: "align-flex-start", declarations: { alignItems: "flex-start" } },
{ selector: "align-flex-end", declarations: { alignItems: "flex-end" } },
{ selector: "align-stretch", declarations: { alignItems: "stretch" } },
{ selector: "align-start", declarations: { alignItems: "start" } },
{ selector: "align-end", declarations: { alignItems: "end" } },
{ selector: "flex-y-center", declarations: { alignItems: "center" } },
{ selector: "flex-x-center", declarations: { justifyContent: "center" } },
{ selector: "justify-flex-start", declarations: { justifyContent: "flex-start" } },
{ selector: "justify-flex-end", declarations: { justifyContent: "flex-end" } },

{
selector: "self-center",
declarations: { alignSelf: "center", justifySelf: "center" },
},
{ selector: "self-center", declarations: { alignSelf: "center", justifySelf: "center" }, },
{ selector: "self-justify-center", declarations: { justifySelf: "center" } },
{ selector: "self-justify-start", declarations: { justifySelf: "flex-start" } },
{ selector: "self-justify-end", declarations: { justifySelf: "flex-end" } },
Expand All @@ -43,6 +31,7 @@ export const FLEX: Array<FractureRuleType> = [
{ selector: "self-align-start", declarations: { alignSelf: "flex-start" } },
{ selector: "self-align-end", declarations: { alignSelf: "flex-end" } },

{ selector: "gap-px", declarations: { gap: "var(--box-px)" } },
{ selector: "gap-1", declarations: { gap: "var(--box-1)" } },
{ selector: "gap-2", declarations: { gap: "var(--box-2)" } },
{ selector: "gap-3", declarations: { gap: "var(--box-3)" } },
Expand Down
Loading

0 comments on commit 2ea4be3

Please sign in to comment.