Replace Sass variables specific to each CSS file with CSS custom properties (#11039)
* Use CSS custom properties on _LeftPanel.pcss * Use CSS custom properties on _SpacePanel.pcss * Use CSS custom properties on _SpaceRoomView.pcss * Use CSS custom properties on _ImageView.pcss * Use CSS custom properties on _EventTile.pcss * Remove a CSS custom properties on _SpaceCreateMenu.pcss Used only on one instance * Revert "Use CSS custom properties on _ImageView.pcss" This reverts commit 0210659f94fcf1107adabecf1bce443fc970a31b. * Revert "Use CSS custom properties on _EventTile.pcss" This reverts commit 83cf824a57b174e62935bb9a4433aadcd8f8164f. * Run prettier
This commit is contained in:
@@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
$roomListCollapsedWidth: 68px;
|
||||
|
||||
.mx_MatrixChat--with-avatar {
|
||||
.mx_LeftPanel,
|
||||
.mx_LeftPanel .mx_LeftPanel_roomListContainer {
|
||||
@@ -33,6 +31,11 @@ $roomListCollapsedWidth: 68px;
|
||||
contain: layout paint;
|
||||
}
|
||||
|
||||
.mx_LeftPanel_wrapper,
|
||||
.mx_LeftPanel {
|
||||
--collapsedWidth: 68px;
|
||||
}
|
||||
|
||||
.mx_LeftPanel_wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -46,7 +49,7 @@ $roomListCollapsedWidth: 68px;
|
||||
position: relative;
|
||||
|
||||
&[data-collapsed] {
|
||||
max-width: $roomListCollapsedWidth;
|
||||
max-width: var(--collapsedWidth);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -218,7 +221,7 @@ $roomListCollapsedWidth: 68px;
|
||||
width: unset !important;
|
||||
|
||||
.mx_LeftPanel_roomListContainer {
|
||||
width: $roomListCollapsedWidth;
|
||||
width: var(--collapsedWidth);
|
||||
|
||||
.mx_LeftPanel_userHeader {
|
||||
flex-direction: row;
|
||||
|
||||
Reference in New Issue
Block a user