Skip to content

Commit

Permalink
added logical properties to identity blocks (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeganderson authored Dec 22, 2023
1 parent b7f4139 commit 97de62c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
27 changes: 14 additions & 13 deletions blocks/identity-block/themes/commerce.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
},
"heading": {
"font-size": "var(--global-font-size-7)",
"margin-block-end": "var(--global-spacing-2)",
"margin-bottom": "var(--global-spacing-2)"
"margin-block-end": "var(--global-spacing-2)"
},
"input": {
"margin-block-end": "var(--global-spacing-5)"
Expand All @@ -24,7 +23,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -116,7 +114,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -128,7 +125,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -188,14 +184,25 @@
"header-account-action-dropdown-open": {
"styles": {
"default": {
"top": "100%",
"inset-block-start": "100%",
"position": "absolute",
"padding-block-end": "var(--global-spacing-4)",
"padding-block-start": "var(--global-spacing-4)",
"padding-inline-end": "var(--global-spacing-4)",
"padding-inline-start": "var(--global-spacing-4)",
"background-color": "var(--global-white)",
"border": "1px solid var(--border-color)",
"border-block-start-width": "1px",
"border-block-end-width": "1px",
"border-inline-start-width": "1px",
"border-inline-end-width": "1px",
"border-block-start-style": "solid",
"border-block-end-style": "solid",
"border-inline-start-style": "solid",
"border-inline-end-style": "solid",
"border-block-start-color": "var(--border-color)",
"border-block-end-color": "var(--border-color)",
"border-inline-start-color": "var(--border-color)",
"border-inline-end-color": "var(--border-color)",
"border-radius": "var(--global-spacing-1)",
"box-shadow": "0 0 4px 0 rgba(0, 0, 0, 0.25)",
"display": "flex",
Expand Down Expand Up @@ -243,7 +250,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -255,7 +261,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -304,7 +309,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -316,7 +320,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -351,7 +354,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -363,7 +365,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down
27 changes: 14 additions & 13 deletions blocks/identity-block/themes/news.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
},
"heading": {
"font-size": "var(--global-font-size-7)",
"margin-block-end": "var(--global-spacing-2)",
"margin-bottom": "var(--global-spacing-2)"
"margin-block-end": "var(--global-spacing-2)"
},
"input": {
"margin-block-end": "var(--global-spacing-5)"
Expand All @@ -24,7 +23,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -116,7 +114,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -128,7 +125,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -188,14 +184,25 @@
"header-account-action-dropdown-open": {
"styles": {
"default": {
"top": "100%",
"inset-block-start": "100%",
"position": "absolute",
"padding-block-end": "var(--global-spacing-4)",
"padding-block-start": "var(--global-spacing-4)",
"padding-inline-end": "var(--global-spacing-4)",
"padding-inline-start": "var(--global-spacing-4)",
"background-color": "var(--global-white)",
"border": "1px solid var(--border-color)",
"border-block-start-width": "1px",
"border-block-end-width": "1px",
"border-inline-start-width": "1px",
"border-inline-end-width": "1px",
"border-block-start-style": "solid",
"border-block-end-style": "solid",
"border-inline-start-style": "solid",
"border-inline-end-style": "solid",
"border-block-start-color": "var(--border-color)",
"border-block-end-color": "var(--border-color)",
"border-inline-start-color": "var(--border-color)",
"border-inline-end-color": "var(--border-color)",
"border-radius": "var(--global-spacing-1)",
"box-shadow": "0 0 4px 0 rgba(0, 0, 0, 0.25)",
"display": "flex",
Expand Down Expand Up @@ -243,7 +250,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -255,7 +261,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -304,7 +309,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -316,7 +320,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down Expand Up @@ -351,7 +354,6 @@
"border-block-end-width": "var(--global-border-width-1)",
"font-size": "var(--global-font-size-9)",
"margin-block-end": "var(--global-spacing-4)",
"margin-bottom": "var(--global-spacing-4)",
"padding-block-end": "var(--global-spacing-2)",
"text-align": "center"
},
Expand All @@ -363,7 +365,6 @@
},
"input-input": {
"inline-size": "100%",
"width": "100%",
"padding-block-end": "var(--global-spacing-2)",
"padding-block-start": "var(--global-spacing-2)"
},
Expand Down

0 comments on commit 97de62c

Please sign in to comment.