-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Level editor: add UI for adding and removing columns and rows
- Loading branch information
1 parent
08ad55e
commit 588fa54
Showing
2 changed files
with
146 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.rowColumnEdits { | ||
position: relative; | ||
margin-bottom: 4rem; | ||
} | ||
|
||
.rowColumnEdit { | ||
position: absolute; | ||
z-index: 20; | ||
display: flex; | ||
gap: 0.5rem; | ||
justify-content: center; | ||
opacity: 0; | ||
transition-property: opacity; | ||
transition-duration: 0.2s; | ||
transition-delay: 0.5s; | ||
padding: 0.5rem; | ||
} | ||
|
||
.rowColumnEdit:hover, | ||
.rowColumnEdit:focus-within { | ||
opacity: 1; | ||
transition-delay: 0s; | ||
} | ||
|
||
@media (prefers-reduced-motion) { | ||
.rowColumnEdit { | ||
transition-timing-function: step-start; | ||
} | ||
} | ||
|
||
.rowColumnEdit.is_position_left, | ||
.rowColumnEdit.is_position_right { | ||
flex-direction: column; | ||
} | ||
|
||
.rowColumnEdit.is_position_top { | ||
bottom: 100%; | ||
left: 0; | ||
right: 0; | ||
} | ||
.rowColumnEdit.is_position_bottom { | ||
top: 100%; | ||
left: 0; | ||
right: 0; | ||
} | ||
.rowColumnEdit.is_position_left { | ||
right: 100%; | ||
top: 0; | ||
bottom: 0; | ||
} | ||
.rowColumnEdit.is_position_right { | ||
left: 100%; | ||
top: 0; | ||
bottom: 0; | ||
} |
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