From daee8870f4a658d20b2a4e81aa75b1ac5afbd1a7 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 5 Jan 2018 17:46:20 +0400 Subject: [PATCH] remove remaining uses of .font-smoothing function --- plugins/c9.ide.ace/style.less | 4 ++-- plugins/c9.ide.collab/chat/chat.css | 2 +- plugins/c9.ide.dialog.common/error.css | 2 +- plugins/c9.ide.immediate/style.css | 4 ++-- plugins/c9.ide.installer/style.css | 2 +- plugins/c9.ide.layout.classic/less/blackbutton.less | 2 +- .../c9.ide.layout.classic/less/btn-default-css3.less | 2 +- plugins/c9.ide.layout.classic/less/lesshat.less | 12 ------------ plugins/c9.ide.layout.classic/less/main.less | 4 ++-- plugins/c9.ide.preferences/preferences.css | 8 ++++---- plugins/c9.ide.restore/restore.css | 2 +- plugins/c9.ide.run.debug/debuggers/debugger.css | 2 +- plugins/c9.ide.run/style.css | 2 +- plugins/c9.ide.tree/style.css | 2 +- plugins/c9.ide.ui/widgets.less | 2 +- plugins/c9.ide.welcome/style.css | 2 +- 16 files changed, 21 insertions(+), 33 deletions(-) diff --git a/plugins/c9.ide.ace/style.less b/plugins/c9.ide.ace/style.less index 03a35185..ebca6e07 100644 --- a/plugins/c9.ide.ace/style.less +++ b/plugins/c9.ide.ace/style.less @@ -204,14 +204,14 @@ background : @gutter-tooltip-background !important; border : 1px solid @gutter-tooltip-border; color : @gutter-tooltip-color; - .font-smoothing(@gutter-tooltip-font-smoothing); + font-smoothing: @gutter-tooltip-font-smoothing; } .ace_dark .ace_tooltip, .ace_dark.ace_tooltip { box-shadow : @gutter-tooltip-dark-shadow !important; background : @gutter-tooltip-dark-background !important; border : 1px solid @gutter-tooltip-dark-border; color : @gutter-tooltip-dark-color; - .font-smoothing(@gutter-tooltip-dark-font-smoothing); + font-smoothing: @gutter-tooltip-dark-font-smoothing; } .ace_progress { diff --git a/plugins/c9.ide.collab/chat/chat.css b/plugins/c9.ide.collab/chat/chat.css index a465b4ed..0c0e015d 100644 --- a/plugins/c9.ide.collab/chat/chat.css +++ b/plugins/c9.ide.collab/chat/chat.css @@ -95,7 +95,7 @@ } .chatContainer .searchbox .sbtb_middle .input{ color: @collab-chat-input-color; - .font-smoothing(@collab-chat-input-font-smoothing); + font-smoothing: @collab-chat-input-font-smoothing; } .chatContainer .ace-tm .ace_marker-layer .ace_selection { background: @collab-chat-input-selection-color; diff --git a/plugins/c9.ide.dialog.common/error.css b/plugins/c9.ide.dialog.common/error.css index 6c6bb89a..2035242f 100644 --- a/plugins/c9.ide.dialog.common/error.css +++ b/plugins/c9.ide.dialog.common/error.css @@ -6,7 +6,7 @@ z-index: 10000000; /*text-align: center;*/ pointer-events: none; - .font-smoothing(@error-font-smoothing); + font-smoothing: @error-font-smoothing; } .errorlabel.anim, .disconnectlabel.anim{ transition: top 0.2s; diff --git a/plugins/c9.ide.immediate/style.css b/plugins/c9.ide.immediate/style.css index b02e3e32..bb7d9cff 100644 --- a/plugins/c9.ide.immediate/style.css +++ b/plugins/c9.ide.immediate/style.css @@ -35,7 +35,7 @@ .immediate .treeitem{ display : inline-block; padding-left : 10px; - .font-smoothing(@immediate-font-smoothing); + font-smoothing: @immediate-font-smoothing; position : relative; white-space: nowrap; } @@ -169,7 +169,7 @@ color : @immediate-dark-property; } .immediate .ace_dark .treeitem{ - .font-smoothing(@immediate-dark-font-smoothing); + font-smoothing: @immediate-dark-font-smoothing; } .immediate .ace_dark .treeitem .arrow{ .image-2x("@{immediate-dark-tree-arrow}", 20px, 10px); diff --git a/plugins/c9.ide.installer/style.css b/plugins/c9.ide.installer/style.css index 66eef100..bfede2d1 100644 --- a/plugins/c9.ide.installer/style.css +++ b/plugins/c9.ide.installer/style.css @@ -39,7 +39,7 @@ .execute{ background : @installer-background; - .font-smoothing(@installer-font-smoothing); + font-smoothing: @installer-font-smoothing; /*height : 250px;*/ /*position : relative;*/ border-top: @installer-border-top; diff --git a/plugins/c9.ide.layout.classic/less/blackbutton.less b/plugins/c9.ide.layout.classic/less/blackbutton.less index 63cf9a23..e7bc395a 100644 --- a/plugins/c9.ide.layout.classic/less/blackbutton.less +++ b/plugins/c9.ide.layout.classic/less/blackbutton.less @@ -12,7 +12,7 @@ text-align : center; cursor : @button-black-cursor; font-weight: @button-black-font-weight; - .font-smoothing(@button-black-font-smoothing); + font-smoothing: @button-black-font-smoothing; } .blackbuttonDisabled{ color: @button-black-disabled-color; diff --git a/plugins/c9.ide.layout.classic/less/btn-default-css3.less b/plugins/c9.ide.layout.classic/less/btn-default-css3.less index b14a6f4c..18d2e46f 100644 --- a/plugins/c9.ide.layout.classic/less/btn-default-css3.less +++ b/plugins/c9.ide.layout.classic/less/btn-default-css3.less @@ -14,7 +14,7 @@ position: relative; cursor: @button-cursor; - .font-smoothing(@button-font-smoothing); + font-smoothing: @button-font-smoothing; } .win-deploy-target .btn-default-css3, diff --git a/plugins/c9.ide.layout.classic/less/lesshat.less b/plugins/c9.ide.layout.classic/less/lesshat.less index ade915fe..5bd78238 100755 --- a/plugins/c9.ide.layout.classic/less/lesshat.less +++ b/plugins/c9.ide.layout.classic/less/lesshat.less @@ -5,18 +5,6 @@ // Petr Brzek & Jan Kuca -.font-smoothing(@state){ - .font-smoothing(@state) when (@state = true) { - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - .font-smoothing(@state) when (@state = false) { - -webkit-font-smoothing: auto; - -moz-osx-font-smoothing: auto; - } - .font-smoothing(@state); -} - .image-2x(@image; @width; @height; @repeat: no-repeat; @important: false) { @filename : ~`/(.*)\.(jpg|jpeg|png|gif)|$/.exec(@{image})[1] || ""`; @extension : ~`/(.*)\.(jpg|jpeg|png|gif)|$/.exec(@{image})[2] || ""`; diff --git a/plugins/c9.ide.layout.classic/less/main.less b/plugins/c9.ide.layout.classic/less/main.less index c3acbc05..8329975f 100644 --- a/plugins/c9.ide.layout.classic/less/main.less +++ b/plugins/c9.ide.layout.classic/less/main.less @@ -14,7 +14,7 @@ BODY { top : 0; right : 0; bottom : 0; - .font-smoothing(@general-smoothing); + font-smoothing: @general-smoothing; } BODY.noInput *{ @@ -22,7 +22,7 @@ BODY.noInput *{ } .ace_editor .ace_gutter{ - .font-smoothing(@ace-gutter-font-smoothing); + font-smoothing: @ace-gutter-font-smoothing; } .disableIframe iframe{ diff --git a/plugins/c9.ide.preferences/preferences.css b/plugins/c9.ide.preferences/preferences.css index 87012df0..304b4a24 100644 --- a/plugins/c9.ide.preferences/preferences.css +++ b/plugins/c9.ide.preferences/preferences.css @@ -52,7 +52,7 @@ padding: @preferences-nav-main-padding; /* font-weight: normal; */ position: relative; - .font-smoothing(@preferences-nav-main-font-smoothing); + font-smoothing: @preferences-nav-main-font-smoothing; } .bar-preferences .navigation .level1 > a:after { .image-2x("@{tree-arrow}", 20px, 10px); @@ -173,7 +173,7 @@ color : @preferences-form-label-color; font-size : 12px; text-overflow : ellipsis; - .font-smoothing(@preferences-form-label-font-smoothing); + font-smoothing: @preferences-form-label-font-smoothing; } .bar-preferences .blackbutton{ min-height: @preferences-button-height; @@ -269,7 +269,7 @@ } .bar-preferences .blackdg .tree-headings { background: @preferences-datagrid-header-background; - .font-smoothing(@preferences-datagrid-font-smoothing); + font-smoothing: @preferences-datagrid-font-smoothing; font-weight: @preferences-datagrid-header-font-weight; border-bottom: @preferences-datagrid-header-border-bottom; } @@ -288,7 +288,7 @@ height: @preferences-datagrid-row-height; } .bar-preferences .blackdg .tree-row.selected{ - .font-smoothing(@preferences-datagrid-font-smoothing); + font-smoothing: @preferences-datagrid-font-smoothing; } .bar-preferences .blackdg .tree-row > .tree-column{ padding: @preferences-datagrid-cell-padding; diff --git a/plugins/c9.ide.restore/restore.css b/plugins/c9.ide.restore/restore.css index d29881c9..b5fedaa4 100644 --- a/plugins/c9.ide.restore/restore.css +++ b/plugins/c9.ide.restore/restore.css @@ -36,7 +36,7 @@ z-index: 100000; left: 0; top: 0; - .font-smoothing(~"antialiased !important"); + font-smoothing: true !important; background: white url("@{image-path}/loadingbgrepeat.png"); background-size: 1px 8px; } diff --git a/plugins/c9.ide.run.debug/debuggers/debugger.css b/plugins/c9.ide.run.debug/debuggers/debugger.css index dbf33950..137a3f16 100644 --- a/plugins/c9.ide.run.debug/debuggers/debugger.css +++ b/plugins/c9.ide.run.debug/debuggers/debugger.css @@ -35,7 +35,7 @@ } .blackdg .newwatch{ color : @datagrid-watch-new; - .font-smoothing(@datagrid-watch-new-font-smoothing); + font-smoothing: @datagrid-watch-new-font-smoothing; } .blackdg.ace_tree_focus .newwatch.selected{ color : @datagrid-watch-new-focus !important; diff --git a/plugins/c9.ide.run/style.css b/plugins/c9.ide.run/style.css index 540b5134..1e0f0c3c 100644 --- a/plugins/c9.ide.run/style.css +++ b/plugins/c9.ide.run/style.css @@ -33,7 +33,7 @@ color: @output-textbox-color; margin-top: @output-textbox-margin-top; padding: @output-textbox-padding; - .font-smoothing(@output-font-smoothing); + font-smoothing: @output-font-smoothing; height: 17px; font-family: @general-font-family; font-size: @general-font-size; diff --git a/plugins/c9.ide.tree/style.css b/plugins/c9.ide.tree/style.css index 4deea86a..3a66c73b 100644 --- a/plugins/c9.ide.tree/style.css +++ b/plugins/c9.ide.tree/style.css @@ -2,7 +2,7 @@ background: transparent; border: none; font: 11px Tahoma, Arial; - .font-smoothing(@tree-font-smoothing) + font-smoothing: @tree-font-smoothing } .filetree .tree-row { diff --git a/plugins/c9.ide.ui/widgets.less b/plugins/c9.ide.ui/widgets.less index e67ce81e..67a46d2f 100644 --- a/plugins/c9.ide.ui/widgets.less +++ b/plugins/c9.ide.ui/widgets.less @@ -2,7 +2,7 @@ background: transparent; border: none; // font: @general-font-size @general-font-family; - .font-smoothing(@tree-font-smoothing) + font-smoothing: @tree-font-smoothing } .custom-tree.ace_tree .tree-row { diff --git a/plugins/c9.ide.welcome/style.css b/plugins/c9.ide.welcome/style.css index 624be3c9..b1aa3236 100644 --- a/plugins/c9.ide.welcome/style.css +++ b/plugins/c9.ide.welcome/style.css @@ -7,7 +7,7 @@ bottom: 0; overflow: auto; display: flex; - .font-smoothing(@welcome-font-smoothing); + font-smoothing: @welcome-font-smoothing; background-attachment: local; color: @welcome-color; }