2021-08-06 08:37:42 +00:00
|
|
|
/*
|
2021-08-06 08:40:26 +00:00
|
|
|
Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.
|
2021-08-06 08:37:42 +00:00
|
|
|
Copyright 2021 Šimon Brandner <simon.bra.ag@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.
|
|
|
|
*/
|
|
|
|
|
2024-07-05 07:30:31 +00:00
|
|
|
.mx_LayoutSwitcher_LayoutSelector {
|
2023-05-21 21:12:11 +00:00
|
|
|
display: flex;
|
2024-07-05 07:30:31 +00:00
|
|
|
flex-direction: column;
|
|
|
|
/**
|
|
|
|
* The settings form has a default gap of 10px
|
|
|
|
* We want to have a bigger gap between the layout options
|
|
|
|
*/
|
|
|
|
gap: var(--cpd-space-4x) !important;
|
|
|
|
|
|
|
|
.mxLayoutSwitcher_LayoutSelector_LayoutRadio {
|
|
|
|
border: 1px solid var(--cpd-color-border-interactive-primary);
|
|
|
|
border-radius: var(--cpd-space-2x);
|
|
|
|
|
|
|
|
.mxLayoutSwitcher_LayoutSelector_LayoutRadio_inline {
|
2023-05-21 21:12:11 +00:00
|
|
|
display: flex;
|
2024-07-05 07:30:31 +00:00
|
|
|
/*
|
|
|
|
* 10px
|
|
|
|
*/
|
|
|
|
gap: calc(var(--cpd-space-2x) + var(--cpd-space-0-5x));
|
2023-05-21 21:12:11 +00:00
|
|
|
align-items: center;
|
2021-08-06 08:37:42 +00:00
|
|
|
}
|
|
|
|
|
2024-07-05 07:30:31 +00:00
|
|
|
.mxLayoutSwitcher_LayoutSelector_LayoutRadio_inline,
|
|
|
|
.mxLayoutSwitcher_LayoutSelector_LayoutRadio_EventTilePreview {
|
|
|
|
margin: var(--cpd-space-3x);
|
2021-08-06 08:37:42 +00:00
|
|
|
}
|
|
|
|
|
2024-07-05 07:30:31 +00:00
|
|
|
/**
|
|
|
|
* Override the event tile style to make it fit in the selector
|
|
|
|
* Tweak also hover style and remove action bar
|
|
|
|
*/
|
|
|
|
.mxLayoutSwitcher_LayoutSelector_LayoutRadio_EventTilePreview {
|
|
|
|
pointer-events: none;
|
2023-05-21 21:12:11 +00:00
|
|
|
|
2024-07-05 07:30:31 +00:00
|
|
|
.mx_EventTile {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Hide the message options and message action bar in the preview
|
|
|
|
*/
|
|
|
|
.mx_EventTile_msgOption,
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_content {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-layout="group"] {
|
|
|
|
margin-top: calc(var(--cpd-space-3x) * -1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Add margin to center the bubble
|
|
|
|
*/
|
|
|
|
&[data-layout="bubble"] {
|
|
|
|
/**
|
|
|
|
* Add the layout margin and the margin to vertically center the bubble
|
|
|
|
*/
|
|
|
|
margin-top: var(--cpd-space-6x);
|
|
|
|
margin-right: 34px;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2021-08-06 08:37:42 +00:00
|
|
|
}
|
|
|
|
}
|
2024-07-05 07:30:31 +00:00
|
|
|
|
|
|
|
.mxLayoutSwitcher_LayoutSelector_LayoutRadio_separator {
|
|
|
|
border-top: 0;
|
|
|
|
border-bottom: 1px solid var(--cpd-color-border-interactive-secondary);
|
2023-05-21 21:12:11 +00:00
|
|
|
}
|
2021-08-06 08:37:42 +00:00
|
|
|
}
|
|
|
|
}
|