mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-30 14:31:14 +08:00
120 lines
3.4 KiB
Plaintext
120 lines
3.4 KiB
Plaintext
|
/*
|
||
|
* Copyright 2024 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_PinnedMessageBanner {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
gap: var(--cpd-space-4x);
|
||
|
/* 80px = 79px + 1px from the bottom border */
|
||
|
height: 79px;
|
||
|
padding: 0 var(--cpd-space-4x);
|
||
|
|
||
|
background-color: var(--cpd-color-bg-canvas-default);
|
||
|
border-bottom: 1px solid var(--cpd-color-gray-400);
|
||
|
|
||
|
/* From figma */
|
||
|
box-shadow: 0 var(--cpd-space-2x) var(--cpd-space-6x) calc(var(--cpd-space-2x) * -1) rgba(27, 29, 34, 0.1);
|
||
|
|
||
|
.mx_PinnedMessageBanner_main {
|
||
|
background: transparent;
|
||
|
border: none;
|
||
|
text-align: start;
|
||
|
cursor: pointer;
|
||
|
|
||
|
height: 100%;
|
||
|
flex-grow: 1;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
|
||
|
.mx_PinnedMessageBanner_content {
|
||
|
display: grid;
|
||
|
grid-template:
|
||
|
"indicators pinIcon title" auto
|
||
|
"indicators pinIcon message" auto;
|
||
|
column-gap: var(--cpd-space-2x);
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_Indicators {
|
||
|
grid-area: indicators;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
gap: var(--cpd-space-0-5x);
|
||
|
height: 100%;
|
||
|
|
||
|
.mx_PinnedMessageBanner_Indicator {
|
||
|
width: var(--cpd-space-0-5x);
|
||
|
background-color: var(--cpd-color-gray-600);
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_Indicator--active {
|
||
|
background-color: var(--cpd-color-icon-accent-primary);
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_Indicator--hidden {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_PinIcon {
|
||
|
grid-area: pinIcon;
|
||
|
align-self: center;
|
||
|
fill: var(--cpd-color-icon-secondary-alpha);
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_title {
|
||
|
grid-area: title;
|
||
|
font: var(--cpd-font-body-sm-regular);
|
||
|
color: var(--cpd-color-text-action-accent);
|
||
|
height: 20px;
|
||
|
|
||
|
.mx_PinnedMessageBanner_title_counter {
|
||
|
font: var(--cpd-font-body-sm-semibold);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_message {
|
||
|
grid-area: message;
|
||
|
font: var(--cpd-font-body-sm-regular);
|
||
|
height: 20px;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_redactedMessage {
|
||
|
grid-area: message;
|
||
|
height: 20px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner_actions {
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.mx_PinnedMessageBanner[data-single-message="true"] {
|
||
|
/* 64px = 63px + 1px from the bottom border */
|
||
|
height: 63px;
|
||
|
|
||
|
.mx_PinnedMessageBanner_content {
|
||
|
grid-template: "pinIcon message" auto;
|
||
|
}
|
||
|
}
|