From 3ae50c1701896f7df5b34744961973c97916c1ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 17 Mar 2022 16:50:39 +0100 Subject: [PATCH] fix(css) remove no longer used AUI classes --- css/_base.scss | 10 --- css/{_aui_reset.scss => _reset.scss} | 0 css/aui-components/dropdown.scss | 68 ---------------- css/main.scss | 4 +- css/modals/_dialog.scss | 111 --------------------------- css/themes/_light.scss | 5 -- 6 files changed, 1 insertion(+), 197 deletions(-) rename css/{_aui_reset.scss => _reset.scss} (100%) delete mode 100644 css/aui-components/dropdown.scss diff --git a/css/_base.scss b/css/_base.scss index d3b6a5a00..288ad31ed 100644 --- a/css/_base.scss +++ b/css/_base.scss @@ -164,16 +164,6 @@ form { font-size: 12px; } -/** -* Dialogs fade -*/ -.aui-blanket { - background: #000; - transition: opacity 0.2s, visibility 0.2s; - transition-delay: 0.1s; - visibility: visible; -} - #inviteLinkRef { -webkit-user-select: text; user-select: text; diff --git a/css/_aui_reset.scss b/css/_reset.scss similarity index 100% rename from css/_aui_reset.scss rename to css/_reset.scss diff --git a/css/aui-components/dropdown.scss b/css/aui-components/dropdown.scss deleted file mode 100644 index 7117cba36..000000000 --- a/css/aui-components/dropdown.scss +++ /dev/null @@ -1,68 +0,0 @@ -.select2-container.aui-select2-container { - background-color: transparent !important; - margin-top: 2px; - - a.select2-choice { - height: 28px !important; - line-height: 18px !important; - width: 100% !important; - background-color: $selectBg !important; - border-color: $selectBg !important; - color: $selectFontColor !important; - text-shadow: none !important; - font-size: 12px !important; - margin: 0 auto !important; - - &:after { - border-top-color: $selectFontColor; - } - } - - &.select2-dropdown-open{ - a.select2-choice { - background-color: $selectActiveBg !important; - border-color: $selectActiveBg !important; - } - } -} - -.select2-drop.aui-select2-drop.aui-style-default { - z-index: $dropdownZ; - background-color: $selectActiveBg; - border-color: $selectActiveBg; - - .select2-results{ - background-color: $selectActiveBg; - border-color: $selectActiveBg; - - &::-webkit-scrollbar { - background-color: transparent; - } - &::-webkit-scrollbar-track { - background-color: transparent; - } - &::-webkit-scrollbar-track-piece { - background-color: transparent; - } - &::-webkit-scrollbar-thumb { - background-color: $selectActiveItemBg; - } - - .select2-result{ - &.select2-highlighted{ - background-color: $selectActiveItemBg; - } - - .select2-result-label{ - font-size: 12px; - color: $selectFontColor !important; - line-height: 20px; - } - } - - } -} - -.select2-drop-mask { - z-index: $dropdownMaskZ; -} \ No newline at end of file diff --git a/css/main.scss b/css/main.scss index 26726ef40..ff925c924 100644 --- a/css/main.scss +++ b/css/main.scss @@ -24,8 +24,7 @@ $flagsImagePath: "../images/"; /* Flags END */ /* Modules BEGIN */ - -@import 'aui_reset'; +@import 'reset'; @import 'atlaskit_overrides'; @import 'base'; @import 'utils'; @@ -63,7 +62,6 @@ $flagsImagePath: "../images/"; @import 'components/input-control'; @import 'components/input-slider'; @import "connection-info"; -@import 'aui-components/dropdown'; @import '404'; @import 'policy'; @import 'popover'; diff --git a/css/modals/_dialog.scss b/css/modals/_dialog.scss index b01cef74a..9a3a86412 100644 --- a/css/modals/_dialog.scss +++ b/css/modals/_dialog.scss @@ -1,114 +1,3 @@ -.dialog { - box-sizing: border-box; - height: auto; - min-height: 131px; - overflow: visible; - visibility: visible; - width: 400px; - - h1, h2, h3, h4, h5, h6 { - color: $auiDialogColor; - } - - .aui { - - &-dialog2 { - &-header, &-footer { - background-color: $auiDialogBg; - border: none; - } - - &-header { - border-bottom: 1px solid $auiBorderColor; - border-radius: 5px 5px 0 0; - box-sizing: border-box; - color: #333; - display: table; - font-weight: normal; - height: em(58, 12); - margin-top: -69px; - padding: 0 20px; - width: 100%; - - h2 { - font-size: em(20, 12); - font-weight: $dialogTitleFontWeight; - color: $auiDialogColor; - } - - &-main { - display: table-cell; - padding-right: 0; - max-width: 400px; - overflow: hidden; - text-overflow: ellipsis; - vertical-align: middle; - white-space: nowrap; - - } - } - - &-footer { - border-top: 1px solid $auiBorderColor; - border-radius: 0 0 5px 5px; - box-sizing: border-box; - height: 51px; - overflow: hidden; - padding: 10px 20px; - width: 100%; - - &:empty { - height: 5px; - padding: 0; - } - } - - &-content { - background-color: $auiDialogBg; - box-sizing: border-box; - color: $auiDialogColor; - font-size: em(14, 12); - overflow: auto; - max-height: 100%; - padding: 20px; - - p,span, h3 { - font-weight: $labelFontWeight; - } - - &:last-child { - border-bottom-right-radius: 5px; - border-bottom-left-radius: 5px; - } - - &:first-child { - border-top-right-radius: 5px; - border-top-left-radius: 5px; - } - } - } - - &-hide { - display: none; - } - } - - .input-control { - background-color: $auiDialogContentBg; - color: $auiDialogColor; - } - - .form-control:not(:last-child) { - border-bottom: 1px solid $auiBorderColor; - } -} - -@media all and (max-width: 420px) { - .aui-dialog2-small .aui-dialog2-content { - height: 100%; - } -} - .modal-dialog-form { margin-top: 5px !important; diff --git a/css/themes/_light.scss b/css/themes/_light.scss index 35b0dcef2..0a197bd5a 100644 --- a/css/themes/_light.scss +++ b/css/themes/_light.scss @@ -46,11 +46,6 @@ $reloadProgressBarBg: #0074E0; /** * Dialog colors **/ -$auiDialogColor: #eceef1; -$auiDialogBg: #253858; -$auiDialogContentBg: #344563; -$auiBorderColor: #253858; -$dialogTitleFontWeight: 400; $dialogErrorText: #344563; /**