Add a customisable shadow to canvas boxes
A box can now cast a shadow, independent of its frame: ticking "Shadow" in the box editor gives a hard offset shadow, and Hard/Soft/Glow presets or any typed CSS box-shadow value customise it. The value is stored on Box and Component and carried through duplicates, components and layouts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -24,6 +24,8 @@ type Box {
|
||||
h: Int!
|
||||
z: Int!
|
||||
framed: Boolean!
|
||||
# A CSS box-shadow value, or "" for none.
|
||||
shadow: String!
|
||||
hideOnMobile: Boolean!
|
||||
adminOnly: Boolean!
|
||||
componentId: ID
|
||||
@@ -41,6 +43,7 @@ input CreateBoxInput {
|
||||
h: Int
|
||||
z: Int
|
||||
framed: Boolean
|
||||
shadow: String
|
||||
hideOnMobile: Boolean
|
||||
adminOnly: Boolean
|
||||
# Links the new box to this component; kind is then "html" and html is
|
||||
@@ -58,6 +61,7 @@ input UpdateBoxInput {
|
||||
h: Int
|
||||
z: Int
|
||||
framed: Boolean
|
||||
shadow: String
|
||||
hideOnMobile: Boolean
|
||||
adminOnly: Boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user