pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
114 lines (92 loc) • 2.22 kB
text/less
.image-editor-sidebar {
width: 5rem;
height: 100%;
background-color: var(--editing-tools-bg-color);
}
.image-editor-tool-buttons {
display: flex;
flex-direction: row;
flex-flow: wrap;
background-color: var(--editing-tools-bg-color);
}
.image-editor-tool-buttons .image-editor-button {
line-height: calc(~'1.75rem - 2px');
border-radius: 0;
border: 1px solid var(--sidebar-icon-active-color);
&:not(.toggle):focus {
// already has selected border
outline: none;
}
}
.image-editor-tool-buttons .image-editor-button.toggle {
border: 1px solid transparent;
}
.image-editor-color-buttons {
display: flex;
flex-direction: row;
flex-flow: wrap;
padding-left: 0.6rem;
padding-top: 0.375rem;
}
.image-editor-color-buttons .image-editor-button {
margin-left: 0;
margin-top: 0;
&:not(.checkerboard) {
background-color: var(--preview-color) ;
}
}
.image-editor-tilemap-minimap {
position: relative;
}
.minimap-outer {
width: 100%;
height: 100%;
}
.minimap-outer .paint-surface {
width: 100%;
height: 100%;
object-fit: contain;
}
@media only screen and (max-height: 600px) {
.image-editor-sidebar {
width: 10rem;
}
.image-editor-tilemap-minimap {
display: none;
}
.image-editor-colors {
height: 2rem;
width: 100%;
}
.image-editor-color-buttons {
padding-left: .5rem;
padding-top: 0;
.image-editor-button {
width: 2rem;
height: 2rem;
}
}
}
/* Asset editor tutorial is the max height of the tutorial header */
@media only screen and (max-height: 900px) {
.asset-editor-tutorial {
.image-editor-sidebar {
width: 10rem;
}
.image-editor-tilemap-minimap {
display: none;
}
.image-editor-colors {
height: 2rem;
width: 100%;
}
.image-editor-color-buttons {
padding-left: .5rem;
padding-top: 0;
.image-editor-button {
width: 2rem;
height: 2rem;
}
}
}
}