mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-24 01:20:32 +08:00
57da29de58
* Fix CSS stacking contexts for Dialogs & PersistedElement Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch to PersistedElement sharing a CSS stacking context for z-index to continue functioning Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix Widget PIP overlay being under the widget and dragging being broken Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix border-radius on widget pip Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix majority of tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix jest retryTimes applying outside of CI Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix remaining tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix React unique key warnings Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix sticker picker Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * id not class Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix widget pip button colour in light theme Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Revert unrelated change Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
82 lines
1.8 KiB
Plaintext
82 lines
1.8 KiB
Plaintext
/*
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
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.
|
|
*/
|
|
|
|
$width: 320px;
|
|
$height: 220px;
|
|
|
|
.mx_WidgetPip {
|
|
width: $width;
|
|
height: $height;
|
|
}
|
|
|
|
.mx_WidgetPip_overlay {
|
|
width: $width;
|
|
height: $height;
|
|
position: absolute;
|
|
top: 0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
color: $call-primary-content;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mx_WidgetPip_header,
|
|
.mx_WidgetPip_footer {
|
|
position: absolute;
|
|
left: 0;
|
|
height: 60px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
transition: opacity ease 0.15s;
|
|
}
|
|
|
|
.mx_WidgetPip_overlay:not(:hover) {
|
|
.mx_WidgetPip_header,
|
|
.mx_WidgetPip_footer {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.mx_WidgetPip_header {
|
|
top: 0;
|
|
padding: $spacing-12;
|
|
display: flex;
|
|
font-size: $font-12px;
|
|
font-weight: var(--cpd-font-weight-semibold);
|
|
background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
|
|
}
|
|
|
|
.mx_WidgetPip_backButton {
|
|
height: $spacing-24;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: $spacing-12;
|
|
|
|
> .mx_Icon {
|
|
color: $call-light-quaternary-content;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.mx_WidgetPip_footer {
|
|
bottom: 0;
|
|
padding: $spacing-12 $spacing-8;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
|
|
}
|