mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-21 09:52:07 +03:00
92906c2130
* Replace `$font-normal` and `$font-semi-bold` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace `font-weight: 600` with the custom property Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace the existing variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
68 lines
1.6 KiB
Text
68 lines
1.6 KiB
Text
/*
|
|
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.
|
|
*/
|
|
|
|
.mx_WidgetPip {
|
|
width: 320px;
|
|
height: 220px;
|
|
border-radius: 8px;
|
|
contain: paint;
|
|
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:not(:hover) > & {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.mx_WidgetPip_header {
|
|
top: 0;
|
|
padding: $spacing-12;
|
|
display: flex;
|
|
font-size: $font-12px;
|
|
font-weight: var(--font-semi-bold);
|
|
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));
|
|
}
|