|
| 1 | +/* ================================ |
| 2 | + Developer Console Styles (RCSS-safe) |
| 3 | +================================ */ |
| 4 | + |
| 5 | +body#dev-console-body { |
| 6 | + position: absolute; |
| 7 | + left: 0; |
| 8 | + right: 500px; |
| 9 | + bottom: 80px; |
| 10 | + height: 300dp; |
| 11 | + padding: 0dp; |
| 12 | + font-family: Poppins; |
| 13 | + color: #c8d0e0; |
| 14 | + background-color: #1a1d219e; |
| 15 | + |
| 16 | + /* border: 1dp solid #000000; */ |
| 17 | + border-width: 1dp; |
| 18 | + border-color: #000000; |
| 19 | +} |
| 20 | + |
| 21 | +#console-root { |
| 22 | + position: absolute; |
| 23 | + left: 0dp; |
| 24 | + right: 0dp; |
| 25 | + bottom: 0dp; |
| 26 | +} |
| 27 | + |
| 28 | +.hidden { display: none; } |
| 29 | +.dev-console.hidden { display: none; } |
| 30 | + |
| 31 | +/* ================================ |
| 32 | + Header |
| 33 | +================================ */ |
| 34 | +.header { |
| 35 | + overflow: hidden; |
| 36 | + margin-bottom: 8dp; |
| 37 | +} |
| 38 | + |
| 39 | +.header .title { |
| 40 | + float: left; |
| 41 | + font-size: 18dp; |
| 42 | + font-weight: bold; |
| 43 | + color: #eef1ff; |
| 44 | +} |
| 45 | + |
| 46 | +.dev-console::after { |
| 47 | + display: block; |
| 48 | + clear: both; |
| 49 | +} |
| 50 | + |
| 51 | +/* ================================ |
| 52 | + Toolbar |
| 53 | +================================ */ |
| 54 | +.toolbar { |
| 55 | + margin: 5dp; |
| 56 | + gap: 5dp; |
| 57 | + display: flex; /* If flex is unsupported in your RmlUi build, swap to inline-blocks. */ |
| 58 | +} |
| 59 | + |
| 60 | +/* ================================ |
| 61 | + Buttons (base) |
| 62 | +================================ */ |
| 63 | +.dev-console button { |
| 64 | + flex: 1; |
| 65 | + padding: 6dp 12dp; |
| 66 | + text-align: center; |
| 67 | + font-size: 13dp; |
| 68 | + letter-spacing: 0.05em; |
| 69 | + color: #b8bcc4; |
| 70 | + background-color: #1c1d20; |
| 71 | + |
| 72 | + /* border: 1dp solid #2a2b2e; */ |
| 73 | + border-width: 1dp; |
| 74 | + border-color: #2a2b2e; |
| 75 | + |
| 76 | + cursor: pointer; |
| 77 | +} |
| 78 | + |
| 79 | +.dev-console button:hover { |
| 80 | + background-color: #2a2b2e; |
| 81 | + color: #d4d8df; |
| 82 | +} |
| 83 | + |
| 84 | +.dev-console button:active { |
| 85 | + background-color: #1a1b1e; |
| 86 | +} |
| 87 | + |
| 88 | +.dev-console button.ghost { |
| 89 | + background-color: transparent; |
| 90 | + color: #808590; |
| 91 | +} |
| 92 | + |
| 93 | +/* ================================ |
| 94 | + Toggle Buttons — DISTINCT LOOK |
| 95 | + (green only when ON) |
| 96 | +================================ */ |
| 97 | + |
| 98 | +/* OFF: different tint, rounded corners, bold+uppercase, permanent stripe */ |
| 99 | +.dev-console button.toggle { |
| 100 | + /* Permanent stripe (visible even when OFF) */ |
| 101 | + border-left-width: 6dp; |
| 102 | + border-left-color: #2e2f32; |
| 103 | + |
| 104 | + /* Different body tint so toggles stand out from other buttons */ |
| 105 | + background-color: #212528; |
| 106 | + color: #cfd4db; |
| 107 | + |
| 108 | + /* Slightly different shape and weight */ |
| 109 | + border-radius: 6dp; |
| 110 | + font-weight: bold; |
| 111 | + text-transform: uppercase; |
| 112 | + |
| 113 | + /* Slight extra padding so stripe doesn’t crowd the label */ |
| 114 | + padding-left: 18dp; |
| 115 | +} |
| 116 | + |
| 117 | +/* OFF hover stays neutral (no green here) */ |
| 118 | +.dev-console button.toggle:hover { |
| 119 | + background-color: #2a2e32; |
| 120 | + color: #e1e5eb; |
| 121 | + /* Stripe gets a touch brighter but remains gray */ |
| 122 | + border-left-color: #4a4d52; |
| 123 | +} |
| 124 | + |
| 125 | +/* ON state (is-active): green palette + thicker stripe */ |
| 126 | +.dev-console button.toggle.is-active { |
| 127 | + background-color: #18241b; |
| 128 | + color: #79e68c; |
| 129 | + |
| 130 | + /* thicker left stripe: ON */ |
| 131 | + border-left-width: 6dp; |
| 132 | + border-left-color: #397848; |
| 133 | + |
| 134 | + /* top/bottom edging for depth */ |
| 135 | + border-top-width: 1dp; |
| 136 | + border-top-color: #111512; |
| 137 | + border-bottom-width: 1dp; |
| 138 | + border-bottom-color: #0a0e0b; |
| 139 | +} |
| 140 | + |
| 141 | +/* ON hover: brighter, but clearly still ON */ |
| 142 | +.dev-console button.toggle.is-active:hover { |
| 143 | + background-color: #1f3425; |
| 144 | + color: #9efca6; |
| 145 | + border-left-color: #5fc878; |
| 146 | +} |
| 147 | + |
| 148 | +/* ================================ |
| 149 | + Log Container |
| 150 | +================================ */ |
| 151 | +.log-container { |
| 152 | + height: 240dp; |
| 153 | + font-size: 11dp; |
| 154 | + line-height: 12dp; |
| 155 | + color: #c8d0e0; |
| 156 | + overflow-y: scroll; /* always show vertical scrollbar */ |
| 157 | + overflow-x: auto; |
| 158 | + white-space: pre; |
| 159 | + padding: 6dp; |
| 160 | + |
| 161 | + /* remove if your build dislikes it */ |
| 162 | + box-sizing: border-box; |
| 163 | +} |
| 164 | + |
| 165 | +.log-container .log-line { |
| 166 | + display: block; |
| 167 | + margin-bottom: 2dp; |
| 168 | +} |
| 169 | + |
| 170 | +.log-container .log-line:last-child { |
| 171 | + margin-bottom: 0dp; |
| 172 | +} |
| 173 | + |
| 174 | +.log-container .log-line.severity-info { |
| 175 | + color: #c8d0e0; |
| 176 | +} |
| 177 | + |
| 178 | +.log-container .log-line.severity-warning { |
| 179 | + color: #ffb84d; |
| 180 | +} |
| 181 | + |
| 182 | +.log-container .log-line.severity-error { |
| 183 | + color: #ff6b6b; |
| 184 | + font-weight: bold; |
| 185 | +} |
| 186 | + |
| 187 | +.log-container .log-link { |
| 188 | + color: #6ba3ff; |
| 189 | + text-decoration: underline; |
| 190 | + cursor: pointer; |
| 191 | +} |
0 commit comments