2019-02-12 11:04:25 +01:00
|
|
|
/*
|
2019-02-12 12:21:40 +01:00
|
|
|
Copyright 2019 New Vector Ltd
|
2019-02-12 11:04:25 +01:00
|
|
|
|
|
|
|
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_RoomBreadcrumbs {
|
|
|
|
position: relative;
|
2019-03-28 00:51:23 +01:00
|
|
|
height: 42px;
|
2019-04-02 00:06:33 +02:00
|
|
|
padding: 8px;
|
|
|
|
padding-bottom: 0;
|
2019-02-12 11:26:46 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-02-12 11:04:25 +01:00
|
|
|
|
2019-04-05 00:27:00 +02:00
|
|
|
// Autohide the scrollbar
|
|
|
|
overflow-x: hidden;
|
|
|
|
&:hover {
|
|
|
|
overflow-x: visible;
|
|
|
|
}
|
|
|
|
|
2019-03-28 00:51:23 +01:00
|
|
|
.mx_AutoHideScrollbar_offset {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
height: 100%;
|
2019-02-12 11:04:25 +01:00
|
|
|
}
|
|
|
|
|
2019-03-28 00:51:23 +01:00
|
|
|
.mx_RoomBreadcrumbs_crumb {
|
|
|
|
margin-left: 4px;
|
|
|
|
height: 32px;
|
|
|
|
display: inline-block;
|
|
|
|
transition: transform 0.3s, width 0.3s;
|
2019-04-02 00:06:33 +02:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.mx_RoomTile_badge {
|
|
|
|
position: absolute;
|
|
|
|
top: -3px;
|
|
|
|
right: -4px;
|
|
|
|
}
|
2019-04-04 22:31:23 +02:00
|
|
|
|
|
|
|
.mx_RoomBreadcrumbs_dmIndicator {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: -4px;
|
|
|
|
}
|
2019-02-12 11:04:25 +01:00
|
|
|
}
|
2019-02-12 12:16:56 +01:00
|
|
|
|
|
|
|
.mx_RoomBreadcrumbs_animate {
|
|
|
|
margin-left: 0;
|
|
|
|
width: 32px;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomBreadcrumbs_preAnimate {
|
|
|
|
width: 0;
|
|
|
|
transform: scale(0);
|
|
|
|
}
|
2019-03-28 00:51:23 +01:00
|
|
|
|
2019-03-29 02:19:12 +01:00
|
|
|
.mx_RoomBreadcrumbs_left {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2019-03-28 00:51:23 +01:00
|
|
|
|
|
|
|
// Note: we have to manually control the gradient and stuff, but the IndicatorScrollbar
|
|
|
|
// will deal with left/right positioning for us. Normally we'd use position:sticky on
|
|
|
|
// a few key elements, however that doesn't work in horizontal scrolling scenarios.
|
|
|
|
|
|
|
|
.mx_IndicatorScrollbar_leftOverflowIndicator,
|
|
|
|
.mx_IndicatorScrollbar_rightOverflowIndicator {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_IndicatorScrollbar_leftOverflow .mx_IndicatorScrollbar_leftOverflowIndicator,
|
|
|
|
&.mx_IndicatorScrollbar_rightOverflow .mx_IndicatorScrollbar_rightOverflowIndicator {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 15px;
|
|
|
|
display: block;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_IndicatorScrollbar_leftOverflowIndicator {
|
|
|
|
background: linear-gradient(to left, $panel-gradient);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_IndicatorScrollbar_rightOverflowIndicator {
|
|
|
|
background: linear-gradient(to right, $panel-gradient);
|
|
|
|
}
|
2019-02-12 11:04:25 +01:00
|
|
|
}
|
|
|
|
|