Spaces:
Running
Running
File size: 4,095 Bytes
f2bee8a |
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 |
@import "../../css/units.css";
@import "../../css/colors.css";
@import "../../css/z-index.css";
.monitor-container {
position: absolute;
background: $ui-primary-light; /* tw: do not look different in dark mode */
z-index: $z-index-monitor;
border: 1px solid $ui-black-transparent-default;
border-radius: calc($space / 2);
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.75rem;
transition: box-shadow 0.2s;
pointer-events: all;
overflow: hidden;
color: #575e75; /* tw: explicitly set color to match Scratch */
}
.monitor:hover {
cursor: pointer;
}
.dragging {
z-index: $z-index-monitor-dragging;
box-shadow: 3px 3px 5px #888888;
}
.default-monitor {
display: flex;
flex-direction: column;
padding: 3px;
}
.label {
font-weight: bold;
text-align: center;
margin: 0 5px;
}
.value {
display: flex;
justify-content: center;
align-items: center;
min-width: 40px;
text-align: center;
color: white;
margin: 0 5px;
border-radius: calc($space / 2);
padding: 0 2px;
white-space: pre-wrap;
transform: translateZ(0); /* Fixes flickering in Safari */
}
.large-value {
min-height: 1.4rem;
min-width: 3rem;
padding: 0.1rem 0.25rem;
text-align: center;
color: white;
font-size: 1rem;
white-space: pre-wrap;
transform: translateZ(0); /* Fixes flickering in Safari */
}
.row {
display: flex;
flex-direction: row;
}
.slider {
width: 100%;
transform: translateZ(0); /* Fixes flickering in Safari */
}
.list-monitor {
display: flex;
flex-direction: column;
}
.list-header {
background: $ui-white;
border-bottom: 1px solid $ui-black-transparent-default;
text-align: center;
padding: 3px;
font-size: 0.75rem;
font-weight: bold;
color: $text-primary-light; /* tw: do not look different in dark mode */
width: 100%;
}
.list-body {
background: $ui-primary-light; /* tw: do not look different in dark mode */
width: 100%;
display: flex;
flex-direction: column;
overflow-x: hidden;
flex-grow: 1;
}
.list-row {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
padding: 2px;
flex-shrink: 0;
transform: translateZ(0); /* Keep sharp when scaled */
}
.list-index {
font-weight: bold;
color: $text-primary-light; /* tw: do not look different in dark mode */
margin: 0 3px;
}
.list-value {
min-width: 40px;
text-align: left;
color: white;
margin: 0 3px;
border-radius: calc($space / 2);
border: 1px solid $ui-black-transparent-default;
flex-grow: 1;
height: 22px;
}
.list-footer {
background: $ui-white;
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 3px;
font-size: 0.75rem;
font-weight: bold;
border-top: 1px solid $ui-black-transparent-default;
color: $text-primary-light; /* tw: do not look different in dark mode */
}
.list-empty {
text-align: center;
width: 100%;
padding: 5px;
}
.input-wrapper {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
background: rgba(0, 0, 0, 0.1);
}
.value-inner {
padding: 3px 5px;
min-height: 22px;
overflow: hidden; /* Don't let long values escape container */
text-overflow: ellipsis;
user-select: text; /* Allow selecting list values for 2.0 compatibility, only relevant in player */
white-space: pre;
}
.list-input {
padding: 3px 5px;
border: 0;
background: none;
color: $ui-white;
outline: none;
font-size: 0.75rem;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
/* Workaround for Firefox */
width: 0;
flex: 1 1 auto;
}
.remove-button {
padding: 0;
padding-right: 5px;
cursor: pointer;
color: $ui-white;
}
.add-button {
cursor: pointer;
margin-right: 3px;
}
.resize-handle {
cursor: nwse-resize;
margin-left: 3px;
}
.footer-length {
text-align: center;
}
|