pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
201 lines (175 loc) • 4.56 kB
text/less
/* Import all components */
@import 'themes/default/globals/site.variables';
@import 'themes/pxt/globals/site.variables';
/* Reference import */
@import (reference) "semantic.less";
@blocklyLightTextColor: #fff;
@blocklyDarkTextColor: #575E75;
@fieldNoteSelectedColor: yellowgreen;
////// Note Editor Field ////////
.blocklyDropDownContent {
.blocklyPianoDiv {
position: relative;
touch-action: none;
}
.blocklyNote {
border: solid 0.5px;
cursor: pointer;
display: inline-block;
position: absolute;
top: 0px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
background-color: white;
z-index: @noteEditorWhiteKey;
}
.blocklyNote.black {
background-color: black;
z-index: @noteEditorBlackKey;
}
.blocklyNote:hover {
background-color: yellow ;
}
.blocklyNote.selected {
background-color: @fieldNoteSelectedColor ;
}
.blocklyNoteLabel {
border: solid 0.5px;
color: white;
display: inline-block;
line-height: normal;
position: absolute;
text-align: center;
font-family: @blocklyFont;
font-size: 12pt;
}
.blocklyNotePrevNext {
border: solid 0.5px;
border-top: 0;
cursor: pointer;
color: white;
display: inline-block;
font-weight: bold;
line-height: normal;
position: absolute;
text-align: center;
}
.blocklyDropdownTextLabel {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 70px;
display: inline-block;
color: white;
font-size: 12px;
}
}
////// Toggle Editor Field ////////
.blocklyToggle {
transition: transform 1s;
}
.blocklyToggle .blocklyToggleCircle, .blocklyToggle .blocklyToggleRect {
stroke-width: 1px;
stroke: grey;
stroke-opacity: 0.4;
}
.blocklyToggle.blocklyToggleOn .blocklyToggleCircle, .blocklyToggle.blocklyToggleOn .blocklyToggleRect {
fill: #4DDc64;
}
.blocklyToggle.blocklyToggleOff .blocklyToggleCircle, .blocklyToggle.blocklyToggleOff .blocklyToggleRect {
fill: #95a5a6;
}
.blocklyToggle.blocklyToggleOnBreakpoint polygon {
fill: #E80D00;
stroke: #fff;
stroke-width: 12px ;
stroke-opacity: 1;
stroke-linecap: round;
stroke-opacity: 1;
cursor: pointer;
}
.blocklyToggle.blocklyToggleOffBreakpoint polygon {
fill: #333;
stroke: 0px;
cursor: pointer;
}
.blocklyToggle ~ .blocklyText.blocklyToggleText {
font-size: 10pt;
cursor: pointer;
}
.blocklyToggle.blocklyToggleOff ~ .blocklyText.blocklyToggleText {
fill: white;
}
////// RGB Color picker ////////
.blocklyDropDownDiv .rgbColorPicker > tr > td {
height: 40px;
width: 40px;
}
////// Color wheel ////////
.blocklyDropDownDiv .blocklyFieldSliderReadout .blocklyColorReadout {
height: 20px;
width: 25px;
border-radius: 10px;
display: inline-block;
vertical-align: middle;
}
////// position picker ////////
#custom-content .blocklyLightboxDiv {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background-color: rgba(0, 0, 0, 0.55);
z-index: 993;
}
.blocklyCanvasOverlayOuter {
padding: 0.5rem;
margin: 0.1rem;
background: #249ca3;
border: solid 2px #249ca3;
border-top-left-radius: 1rem;
border-top-right-radius: 1rem;
border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
}
.blocklyCanvasOverlayDiv {
cursor: none;
background-color: rgba(255, 255, 255, 0.9);
z-index: 10000;
position: relative;
overflow: hidden;
border: solid 5px #333333;
clip-path: polygon(0% 4px, 4px 0%, calc(100% - 2px) 0%, 100% 4px,
100% calc(100% - 2px), calc(100% - 2px) 100%, 4px 100%, 0 calc(100% - 2px));
.cross-x, .cross-y {
background-color: #575E75;
position: absolute;
}
.cross-x {
width: 100%;
height: 2px;
z-index: 10;
}
.cross-y {
width: 2px;
height: 100%;
z-index: 10;
}
.label {
position: absolute;
color: #575E75;
font-size: 100%;
white-space: nowrap;
}
}
.positionEyedropper {
background: none;
outline: none;
border: none;
width: 100%;
text-align: center;
border-top: 1px solid #ddd;
padding-top: 5px;
cursor: pointer;
}
.positionEyedropper:hover {
background: #eee;
}