mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
9582c1e65a
Fixes https://github.com/vector-im/riot-web/issues/5689 Some dialogs had their own CSS that prevented the buttons from being placed in the right spot. This has been fixed by using a generic standard for the buttons. The only strange dialog that needed more CSS was the devtools dialog due to the header. Not all dialogs have been checked - I spot-checked about half of them and verified the CSS manually on an established account. It's hard to get at all the dialogs without convoluted testing.
181 lines
3.6 KiB
SCSS
181 lines
3.6 KiB
SCSS
/*
|
|
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.
|
|
*/
|
|
|
|
.mx_DevTools_dialog {
|
|
padding-right: 58px;
|
|
}
|
|
|
|
.mx_DevTools_content {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.mx_DevTools_RoomStateExplorer_button, .mx_DevTools_RoomStateExplorer_query {
|
|
margin-bottom: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.mx_DevTools_label_left {
|
|
float: left;
|
|
}
|
|
|
|
.mx_DevTools_label_right {
|
|
float: right;
|
|
}
|
|
|
|
.mx_DevTools_label_bottom {
|
|
clear: both;
|
|
border-bottom: 1px solid #e5e5e5;
|
|
}
|
|
|
|
.mx_DevTools_inputRow
|
|
{
|
|
display: table-row;
|
|
}
|
|
|
|
.mx_DevTools_inputLabelCell
|
|
{
|
|
display: table-cell;
|
|
font-weight: bold;
|
|
padding-right: 24px;
|
|
}
|
|
|
|
.mx_DevTools_inputCell {
|
|
display: table-cell;
|
|
width: 240px;
|
|
}
|
|
|
|
.mx_DevTools_inputCell input
|
|
{
|
|
display: inline-block;
|
|
border: 0;
|
|
border-bottom: 1px solid $input-underline-color;
|
|
padding: 0;
|
|
width: 240px;
|
|
color: $input-fg-color;
|
|
font-family: 'Open Sans', Helvetica, Arial, Sans-Serif;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.mx_DevTools_textarea {
|
|
font-size: 12px;
|
|
max-width: 624px;
|
|
min-height: 250px;
|
|
padding: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.mx_DevTools_tgl {
|
|
display: none;
|
|
|
|
// add default box-sizing for this scope
|
|
&,
|
|
&:after,
|
|
&:before,
|
|
& *,
|
|
& *:after,
|
|
& *:before,
|
|
& + .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;
|
|
&:after,
|
|
&:before {
|
|
position: relative;
|
|
display: block;
|
|
content: "";
|
|
width: 50%;
|
|
height: 100%;
|
|
}
|
|
|
|
&:after {
|
|
left: 0;
|
|
}
|
|
|
|
&:before {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&:checked + .mx_DevTools_tgl-btn:after {
|
|
left: 50%;
|
|
}
|
|
}
|
|
|
|
.mx_DevTools_tgl-flip {
|
|
+ .mx_DevTools_tgl-btn {
|
|
padding: 2px;
|
|
transition: all .2s ease;
|
|
font-family: sans-serif;
|
|
perspective: 100px;
|
|
&:after,
|
|
&:before {
|
|
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;
|
|
}
|
|
|
|
&:after {
|
|
content: attr(data-tg-on);
|
|
background: #02C66F;
|
|
transform: rotateY(-180deg);
|
|
}
|
|
|
|
&:before {
|
|
background: #FF3A19;
|
|
content: attr(data-tg-off);
|
|
}
|
|
|
|
&:active:before {
|
|
transform: rotateY(-20deg);
|
|
}
|
|
}
|
|
|
|
&:checked + .mx_DevTools_tgl-btn {
|
|
&:before {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
&:after {
|
|
transform: rotateY(0);
|
|
left: 0;
|
|
background: #7FC6A6;
|
|
}
|
|
|
|
&:active:after {
|
|
transform: rotateY(20deg);
|
|
}
|
|
}
|
|
}
|