Add shared-scene 2D authoring, sprite animation and Rapier2D physics
CI / validate (push) Canceled after 0s
CI / validate (push) Canceled after 0s
This commit is contained in:
@@ -2227,3 +2227,93 @@ button:hover:not(:disabled) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
/* Shared-scene 2D authoring tools */
|
||||
.property input[type="number"] {
|
||||
min-width: 0;
|
||||
width: 95px;
|
||||
}
|
||||
.pair2d .property {
|
||||
padding: 2px 0;
|
||||
}
|
||||
.tile-tools {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
.tile-palette {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
|
||||
gap: 4px;
|
||||
max-height: 240px;
|
||||
overflow: auto;
|
||||
}
|
||||
.tile-palette button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
min-height: 52px;
|
||||
background: #25292b;
|
||||
}
|
||||
.frame-thumb {
|
||||
display: inline-block;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.clip2d {
|
||||
border: 1px solid var(--line, #42484a);
|
||||
padding: 8px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
.sprite-editor {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(200px, 1fr) 290px;
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
max-height: 75vh;
|
||||
overflow: auto;
|
||||
}
|
||||
.sprite-sheet {
|
||||
align-self: start;
|
||||
background: repeating-conic-gradient(#25292b 0% 25%, #363c3f 0% 50%) 50%/24px
|
||||
24px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sprite-rect {
|
||||
position: absolute;
|
||||
border: 1px solid #69c9ff !important;
|
||||
border-radius: 0 !important;
|
||||
background: transparent !important;
|
||||
padding: 0 !important;
|
||||
font-size: 10px;
|
||||
text-align: left;
|
||||
color: white;
|
||||
text-shadow: 0 1px 2px black;
|
||||
}
|
||||
.sprite-rect.selected {
|
||||
border: 2px solid #ffe48a !important;
|
||||
}
|
||||
.sprite-rect i {
|
||||
position: absolute;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #ffe48a;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.sprite-editor h3 {
|
||||
margin: 18px 0 8px;
|
||||
}
|
||||
.sprite-editor .property input {
|
||||
max-width: 145px;
|
||||
}
|
||||
.sprite-editor button {
|
||||
margin: 3px 0;
|
||||
}
|
||||
.asset-art.image {
|
||||
overflow: hidden;
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
.sprite-editor {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user