2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2017 Michael Telatynski <7t3chguy@gmail.com>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2018-05-24 00:18:33 +08:00
|
|
|
.mx_DevTools_content {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
|
2019-03-19 07:21:21 +08:00
|
|
|
.mx_DevTools_ServersInRoomList_button {
|
2019-05-10 05:30:45 +08:00
|
|
|
/* Set the cursor back to default as `.mx_Dialog button` sets it to pointer */
|
2019-03-19 07:21:21 +08:00
|
|
|
cursor: default !important;
|
|
|
|
}
|
|
|
|
|
2019-06-14 06:48:47 +08:00
|
|
|
.mx_DevTools_RoomStateExplorer_query {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_RoomStateExplorer_button, .mx_DevTools_ServersInRoomList_button {
|
2018-04-12 07:23:35 +08:00
|
|
|
margin-bottom: 10px;
|
2018-05-24 00:18:33 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_DevTools_label_left {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_label_right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_label_bottom {
|
|
|
|
clear: both;
|
|
|
|
border-bottom: 1px solid #e5e5e5;
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
.mx_DevTools_inputRow {
|
2018-04-12 07:23:35 +08:00
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
.mx_DevTools_inputLabelCell {
|
2018-04-12 07:23:35 +08:00
|
|
|
display: table-cell;
|
|
|
|
font-weight: bold;
|
|
|
|
padding-right: 24px;
|
|
|
|
}
|
|
|
|
|
2018-05-24 00:18:33 +08:00
|
|
|
.mx_DevTools_textarea {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-12px;
|
2019-02-26 06:12:06 +08:00
|
|
|
max-width: 684px;
|
2018-05-24 00:18:33 +08:00
|
|
|
min-height: 250px;
|
2018-05-24 00:40:15 +08:00
|
|
|
padding: 10px;
|
2018-05-24 00:18:33 +08:00
|
|
|
}
|
|
|
|
|
2019-05-17 04:55:17 +08:00
|
|
|
.mx_DevTools_eventTypeStateKeyGroup {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_content .mx_Field_input:first-of-type {
|
|
|
|
margin-right: 42px;
|
2019-02-26 06:38:33 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_DevTools_tgl {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
// add default box-sizing for this scope
|
|
|
|
&,
|
2019-07-10 01:15:10 +08:00
|
|
|
&::after,
|
|
|
|
&::before,
|
2018-04-12 07:23:35 +08:00
|
|
|
& *,
|
2019-07-10 01:15:10 +08:00
|
|
|
& *::after,
|
|
|
|
& *::before,
|
2018-04-12 07:23:35 +08:00
|
|
|
& + .mx_DevTools_tgl-btn {
|
|
|
|
box-sizing: border-box;
|
|
|
|
&::selection {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ .mx_DevTools_tgl-btn {
|
|
|
|
outline: 0;
|
|
|
|
display: block;
|
|
|
|
width: 7em;
|
|
|
|
height: 2em;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
2019-07-10 01:15:10 +08:00
|
|
|
&::after,
|
|
|
|
&::before {
|
2018-04-12 07:23:35 +08:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&::after {
|
2018-04-12 07:23:35 +08:00
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&::before {
|
2018-04-12 07:23:35 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&:checked + .mx_DevTools_tgl-btn::after {
|
2018-04-12 07:23:35 +08:00
|
|
|
left: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_tgl-flip {
|
|
|
|
+ .mx_DevTools_tgl-btn {
|
|
|
|
padding: 2px;
|
|
|
|
transition: all .2s ease;
|
|
|
|
perspective: 100px;
|
2019-07-10 01:15:10 +08:00
|
|
|
&::after,
|
|
|
|
&::before {
|
2018-04-12 07:23:35 +08:00
|
|
|
display: inline-block;
|
|
|
|
transition: all .4s ease;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
|
|
|
line-height: 2em;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #fff;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
backface-visibility: hidden;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&::after {
|
2018-04-12 07:23:35 +08:00
|
|
|
content: attr(data-tg-on);
|
2019-07-10 01:15:10 +08:00
|
|
|
background: #02c66f;
|
2018-04-12 07:23:35 +08:00
|
|
|
transform: rotateY(-180deg);
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&::before {
|
|
|
|
background: #ff3a19;
|
2018-04-12 07:23:35 +08:00
|
|
|
content: attr(data-tg-off);
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&:active::before {
|
2018-04-12 07:23:35 +08:00
|
|
|
transform: rotateY(-20deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked + .mx_DevTools_tgl-btn {
|
2019-07-10 01:15:10 +08:00
|
|
|
&::before {
|
2018-04-12 07:23:35 +08:00
|
|
|
transform: rotateY(180deg);
|
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&::after {
|
2018-04-12 07:23:35 +08:00
|
|
|
transform: rotateY(0);
|
|
|
|
left: 0;
|
2019-07-10 01:15:10 +08:00
|
|
|
background: #7fc6a6;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-07-10 01:15:10 +08:00
|
|
|
&:active::after {
|
2018-04-12 07:23:35 +08:00
|
|
|
transform: rotateY(20deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-22 01:15:53 +08:00
|
|
|
|
|
|
|
.mx_DevTools_VerificationRequest {
|
|
|
|
border: 1px solid #cccccc;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 1px 5px;
|
|
|
|
margin-bottom: 6px;
|
2020-02-24 18:17:33 +08:00
|
|
|
font-family: $monospace-font-family;
|
2020-02-22 01:15:53 +08:00
|
|
|
|
|
|
|
dl {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: max-content auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
|
|
|
grid-column-start: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd:empty {
|
|
|
|
color: #666666;
|
|
|
|
&::after {
|
|
|
|
content: "(empty)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dt {
|
|
|
|
font-weight: bold;
|
|
|
|
grid-column-start: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
dt::after {
|
|
|
|
content: ":";
|
|
|
|
}
|
2020-02-24 18:17:33 +08:00
|
|
|
}
|
2021-02-19 05:56:19 +08:00
|
|
|
|
|
|
|
.mx_DevTools_SettingsExplorer {
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
table-layout: fixed;
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
|
|
|
th {
|
|
|
|
// Colour choice: first one autocomplete gave me.
|
|
|
|
border-bottom: 1px solid $accent-color;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
td, th {
|
|
|
|
width: 360px; // "feels right" number
|
|
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2021-02-19 06:30:03 +08:00
|
|
|
td + td, th + th {
|
2021-02-19 05:56:19 +08:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:hover {
|
|
|
|
// Colour choice: first one autocomplete gave me.
|
|
|
|
background-color: $accent-color-50pct;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_SettingsExplorer_mutable {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_SettingsExplorer_immutable {
|
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_SettingsExplorer_edit {
|
|
|
|
float: right;
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DevTools_SettingsExplorer_warning {
|
|
|
|
border: 2px solid $warning-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 4px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
}
|