soiz1's picture
Upload 2891 files
6bcb42f verified
@import "../../css/colors.css";
@import "../../css/units.css";
.modal-content {
width: 700px;
margin: 50px auto; /* This modal is taller than most, reduce top margin */
}
.body {
background: $ui-white;
padding: 1.5rem 2.25rem;
}
[theme="dark"] .body {
color: $text-primary;
background: $ui-secondary;
}
.body input[type="checkbox"],
.body input[type="radio"] {
margin: 3px;
}
.color-picker-area {
width: 100%;
padding: 8px;
display: flex;
flex-direction: column;
align-items: center;
}
.color-picker-area > div:nth-child(1),
.color-picker-area > div:nth-child(2) {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
/* .color-picker-area div:nth-child(1) {
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
[theme="dark"] .color-picker-area div:nth-child(1) {
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
} */
/* Color inputs & color swatch */
.body input[type="color"] {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background: none;
padding: 0;
border: 0 !important;
cursor: pointer;
}
::-webkit-color-swatch-wrapper {
margin: 0;
padding: 0;
}
::-webkit-color-swatch {
margin: 0;
border-radius: 100%;
border: 2px solid rgba(0, 0, 0, 0.2);
overflow: none;
padding: 0;
}
::-moz-color-swatch {
margin: 0;
border-radius: 100%;
border: 2px solid rgba(0, 0, 0, 0.2);
overflow: none;
padding: 0;
}
[theme="dark"] ::-webkit-color-swatch {
border-color: white;
}
[theme="dark"] ::-moz-color-swatch {
border-color: white;
}
::-moz-focus-inner {
margin: 0;
border: 0;
}
::-moz-focus-inner {
margin: 0;
padding: 0;
}
/* Preset color options */
.preset-color {
border: 2px solid rgba(0, 0, 0, 0.2);
margin: 4px;
border-radius: 100%;
width: 2.5em;
height: 2.5em;
}
/* prevent soft-looking colors */
[theme="dark"] .preset-color {
border-color: white;
}
.parent-custom {
margin: 4px;
width: 2.5em;
height: 2.5em;
position: relative;
}
.parent-custom > .preset-color {
margin: 0;
width: 100%;
height: 100%;
}
.custom-plus {
position: absolute;
left: 4px;
top: 4px;
width: calc(100% - 8px);
height: calc(100% - 8px);
z-index: 500;
pointer-events: none;
}
.preset-color:active {
transform: scale(0.7);
transition-duration: 0.1s;
transition-timing-function: ease-out;
transition-property: transform;
}
.preset-color {
transition-duration: 0.3s;
transition-timing-function: cubic-bezier(0, 0, 0.24, 1.83);
transition-property: transform;
}
/* Blocks workspace for custom procedure declaration editor */
.workspace {
min-height: 200px;
position: relative;
}
.workspace :global(.injectionDiv){
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.workspace :global(.blocklySvg) {
background-color: $ui-primary;
}
/* Row of "card" buttons for modifying custom procedures */
.options-row {
display: flex;
justify-content: space-between;
}
.option-card {
background: white;
border: 2px solid $ui-black-transparent;
border-radius: $space;
padding: calc($space * 2);
text-align: center;
flex-grow: 1;
cursor: pointer;
transition: all 0.2s;
flex-basis: 100px;
}
[theme="dark"] .option-card {
background: $ui-tertiary;
}
.option-card:hover {
border: 2px solid $motion-primary;
box-shadow: 0px 0px 0px 4px $motion-transparent;
}
.option-card + .option-card {
margin-left: 1rem;
}
.option-icon {
max-height: 48px;
margin-bottom: 0.5rem;
}
.option-title {
font-weight: bold;
}
/* "Run without screen refresh" row */
/* .checkbox-row {
margin-top: 1rem;
} */
/* Confirmation buttons at the bottom of the modal */
.button-row {
margin-top: 1rem;
font-weight: bolder;
text-align: right;
}
.button-row button {
border: 1px solid $ui-black-transparent;
border-radius: 0.25rem;
padding: 0.75rem 1rem;
background: white;
font-weight: bold;
font-size: 0.85rem;
}
.button-row button.ok-button {
background: $motion-primary;
border: $motion-primary;
color: white;
}
[dir="ltr"] .button-row button + button {
margin-left: 0.5rem;
}
[dir="rtl"] .button-row button + button {
margin-right: 0.5rem;
}
.cancel-button {
color: black;
}