Spaces:
Running
Running
File size: 4,431 Bytes
6bcb42f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
@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;
}
|