From 04b69116ee53b08fda24a2544214ee5afd019267 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 9 Apr 2019 15:05:39 +0100 Subject: [PATCH] Fix tedious CSS stuff with stylelint --fix --- res/css/structures/_AutoHideScrollbar.scss | 3 +-- res/css/structures/_CompatibilityPage.scss | 2 +- res/css/structures/_ContextualMenu.scss | 24 +++++++++++----------- res/css/structures/_CreateRoom.scss | 2 +- res/css/structures/_GroupView.scss | 10 ++++----- res/css/structures/_NotificationPanel.scss | 2 +- res/css/structures/_RoomStatusBar.scss | 4 ++-- res/css/structures/_RoomView.scss | 4 ++-- 8 files changed, 25 insertions(+), 26 deletions(-) diff --git a/res/css/structures/_AutoHideScrollbar.scss b/res/css/structures/_AutoHideScrollbar.scss index 84811070dc..db86a6fbd6 100644 --- a/res/css/structures/_AutoHideScrollbar.scss +++ b/res/css/structures/_AutoHideScrollbar.scss @@ -66,8 +66,7 @@ body.mx_scrollbar_nooverlay { */ .mx_AutoHideScrollbar:hover.mx_AutoHideScrollbar_overflow > .mx_AutoHideScrollbar_offset, .mx_AutoHideScrollbar:hover.mx_AutoHideScrollbar_overflow::before, - .mx_AutoHideScrollbar:hover.mx_AutoHideScrollbar_overflow::after - { + .mx_AutoHideScrollbar:hover.mx_AutoHideScrollbar_overflow::after { margin-right: calc(-1 * var(--scrollbar-width)); } } diff --git a/res/css/structures/_CompatibilityPage.scss b/res/css/structures/_CompatibilityPage.scss index f3f032c975..26354ed124 100644 --- a/res/css/structures/_CompatibilityPage.scss +++ b/res/css/structures/_CompatibilityPage.scss @@ -16,4 +16,4 @@ border: 1px solid; padding: 10px; background-color: #fcc; -} \ No newline at end of file +} diff --git a/res/css/structures/_ContextualMenu.scss b/res/css/structures/_ContextualMenu.scss index 98a42340b0..fc1538a13d 100644 --- a/res/css/structures/_ContextualMenu.scss +++ b/res/css/structures/_ContextualMenu.scss @@ -54,14 +54,14 @@ limitations under the License. border-bottom: 8px solid transparent; } -.mx_ContextualMenu_chevron_right:after { - content:''; +.mx_ContextualMenu_chevron_right::after { + content: ''; width: 0; height: 0; border-top: 7px solid transparent; border-left: 7px solid $menu-bg-color; border-bottom: 7px solid transparent; - position:absolute; + position: absolute; top: -7px; right: 1px; } @@ -81,14 +81,14 @@ limitations under the License. border-bottom: 8px solid transparent; } -.mx_ContextualMenu_chevron_left:after{ - content:''; +.mx_ContextualMenu_chevron_left::after { + content: ''; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid $menu-bg-color; border-bottom: 7px solid transparent; - position:absolute; + position: absolute; top: -7px; left: 1px; } @@ -108,14 +108,14 @@ limitations under the License. border-right: 8px solid transparent; } -.mx_ContextualMenu_chevron_top:after{ - content:''; +.mx_ContextualMenu_chevron_top::after { + content: ''; width: 0; height: 0; border-left: 7px solid transparent; border-bottom: 7px solid $menu-bg-color; border-right: 7px solid transparent; - position:absolute; + position: absolute; left: -7px; top: 1px; } @@ -135,14 +135,14 @@ limitations under the License. border-right: 8px solid transparent; } -.mx_ContextualMenu_chevron_bottom:after{ - content:''; +.mx_ContextualMenu_chevron_bottom::after { + content: ''; width: 0; height: 0; border-left: 7px solid transparent; border-top: 7px solid $menu-bg-color; border-right: 7px solid transparent; - position:absolute; + position: absolute; left: -7px; bottom: 1px; } diff --git a/res/css/structures/_CreateRoom.scss b/res/css/structures/_CreateRoom.scss index 2be193525e..10f9e23a02 100644 --- a/res/css/structures/_CreateRoom.scss +++ b/res/css/structures/_CreateRoom.scss @@ -22,7 +22,7 @@ limitations under the License. } .mx_CreateRoom input, -.mx_CreateRoom textarea { +.mx_CreateRoom textarea { border-radius: 3px; border: 1px solid $strong-input-border-color; font-weight: 300; diff --git a/res/css/structures/_GroupView.scss b/res/css/structures/_GroupView.scss index 4f33617344..ae86f68fd0 100644 --- a/res/css/structures/_GroupView.scss +++ b/res/css/structures/_GroupView.scss @@ -67,13 +67,13 @@ limitations under the License. } .mx_GroupView_editable { - border-bottom: 1px solid $strong-input-border-color ! important; + border-bottom: 1px solid $strong-input-border-color !important; min-width: 150px; cursor: text; } .mx_GroupView_editable:focus { - border-bottom: 1px solid $accent-color ! important; + border-bottom: 1px solid $accent-color !important; outline: none; box-shadow: none; } @@ -95,7 +95,7 @@ limitations under the License. .mx_GroupView_avatarPicker .mx_Spinner { width: 48px; - height: 48px ! important; + height: 48px !important; } .mx_GroupView_header_leftCol { @@ -176,7 +176,7 @@ limitations under the License. flex: 1; } -.mx_GroupView_body { +.mx_GroupView_body { flex-grow: 1; } @@ -333,7 +333,7 @@ limitations under the License. display: none; } -.mx_GroupView_body .gm-scroll-view > *{ +.mx_GroupView_body .gm-scroll-view > * { margin: 11px 50px 0px 68px; } diff --git a/res/css/structures/_NotificationPanel.scss b/res/css/structures/_NotificationPanel.scss index ecad64dd0d..78b3522d4e 100644 --- a/res/css/structures/_NotificationPanel.scss +++ b/res/css/structures/_NotificationPanel.scss @@ -66,7 +66,7 @@ limitations under the License. .mx_NotificationPanel .mx_EventTile_roomName a, .mx_NotificationPanel .mx_EventTile_senderDetails a { - text-decoration: none ! important; + text-decoration: none !important; } .mx_NotificationPanel .mx_EventTile .mx_MessageTimestamp { diff --git a/res/css/structures/_RoomStatusBar.scss b/res/css/structures/_RoomStatusBar.scss index dd251ae4a5..090a40235f 100644 --- a/res/css/structures/_RoomStatusBar.scss +++ b/res/css/structures/_RoomStatusBar.scss @@ -138,8 +138,8 @@ limitations under the License. } .mx_RoomStatusBar_resend_link { - color: $primary-fg-color ! important; - text-decoration: underline ! important; + color: $primary-fg-color !important; + text-decoration: underline !important; cursor: pointer; } diff --git a/res/css/structures/_RoomView.scss b/res/css/structures/_RoomView.scss index 1ccbc7fb97..cead3f4672 100644 --- a/res/css/structures/_RoomView.scss +++ b/res/css/structures/_RoomView.scss @@ -78,7 +78,7 @@ limitations under the License. } .mx_RoomView_auxPanel_apps { - max-width: 1920px ! important; + max-width: 1920px !important; } @@ -292,7 +292,7 @@ hr.mx_RoomView_myReadMarker { } .mx_RoomView_ongoingConfCallNotification a { - color: $accent-fg-color ! important; + color: $accent-fg-color !important; } .mx_MatrixChat_useCompactLayout {