From eb0cc530fd3fcc16fe5e74bdba8f449120193d57 Mon Sep 17 00:00:00 2001 From: simurai Date: Wed, 29 Jun 2016 13:15:20 +0900 Subject: [PATCH 1/2] :fire: Remove -webkit prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit that aren’t needed anymore. --- static/linux.less | 2 +- static/panes.less | 22 +++++++++++----------- static/syntax.less | 8 ++++---- static/text-editor-light.less | 6 +++--- static/text-editor-shadow.less | 4 ++-- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/static/linux.less b/static/linux.less index 183353821..7a48e7fcf 100644 --- a/static/linux.less +++ b/static/linux.less @@ -8,6 +8,6 @@ } ::-webkit-scrollbar-thumb { - -webkit-border-radius: 2px; + border-radius: 2px; background: rgba(150, 150, 150, .33); } diff --git a/static/panes.less b/static/panes.less index 418027772..a49e11fd6 100644 --- a/static/panes.less +++ b/static/panes.less @@ -5,13 +5,13 @@ // editor resource with a tab. atom-pane-container { position: relative; - display: -webkit-flex; - -webkit-flex: 1; + display: flex; + flex: 1; min-width: 0; atom-pane-axis { - display: -webkit-flex; - -webkit-flex: 1; + display: flex; + flex: 1; min-width: 0; & > atom-pane-resize-handle { @@ -21,7 +21,7 @@ atom-pane-container { } atom-pane-axis.vertical { - -webkit-flex-direction: column; + flex-direction: column; & > atom-pane-resize-handle { width: 100%; @@ -33,7 +33,7 @@ atom-pane-container { } atom-pane-axis.horizontal { - -webkit-flex-direction: row; + flex-direction: row; & > atom-pane-resize-handle { width: 8px; @@ -46,15 +46,15 @@ atom-pane-container { atom-pane { position: relative; - display: -webkit-flex; - -webkit-flex: 1; - -webkit-flex-direction: column; + display: flex; + flex: 1; + flex-direction: column; overflow: visible; min-width: 0; .item-views { - -webkit-flex: 1; - display: -webkit-flex; + flex: 1; + display: flex; min-height: 0; min-width: 0; position: relative; diff --git a/static/syntax.less b/static/syntax.less index 657947793..601d09fd7 100644 --- a/static/syntax.less +++ b/static/syntax.less @@ -23,13 +23,13 @@ atom-text-editor { .define-selection-flash-color-if-not-defined() { @syntax-selection-flash-color: rgba(100, 255, 100, 0.7); } .define-selection-flash-color-if-not-defined(); -@-webkit-keyframes flash { +@keyframes flash { from { background-color: @syntax-selection-flash-color; } to { background-color: null; } } atom-text-editor .flash.selection .region { - -webkit-animation-name: flash; - -webkit-animation-duration: .5s; - -webkit-animation-iteration-count: 1; + animation-name: flash; + animation-duration: .5s; + animation-iteration-count: 1; } diff --git a/static/text-editor-light.less b/static/text-editor-light.less index f5429fd7f..bc699e698 100644 --- a/static/text-editor-light.less +++ b/static/text-editor-light.less @@ -22,13 +22,13 @@ atom-overlay { // TODO: Remove the following styles when the editor shadow DOM can no longer be disabled atom-text-editor { - display: -webkit-flex; + display: flex; .editor-contents { width: 100%; overflow: hidden; cursor: text; - display: -webkit-flex; + display: flex; -webkit-user-select: none; position: relative; } @@ -96,7 +96,7 @@ atom-text-editor { z-index: 0; overflow: hidden; - -webkit-flex: 1; + flex: 1; min-width: 0; } diff --git a/static/text-editor-shadow.less b/static/text-editor-shadow.less index e481d11b8..f49377ad6 100644 --- a/static/text-editor-shadow.less +++ b/static/text-editor-shadow.less @@ -10,7 +10,7 @@ .editor-contents--private { width: 100%; cursor: text; - display: -webkit-flex; + display: flex; -webkit-user-select: none; position: relative; } @@ -79,7 +79,7 @@ z-index: 0; overflow: hidden; - -webkit-flex: 1; + flex: 1; min-width: 0; } From b9515ea4772c1c92332bb9ec881b8c19bb0f31a3 Mon Sep 17 00:00:00 2001 From: simurai Date: Wed, 29 Jun 2016 13:20:02 +0900 Subject: [PATCH 2/2] Add min-width to atom-workspace-axis.horizontal This is just a precaution against https://github.com/atom/atom/pull/11866 --- static/workspace-view.less | 1 + 1 file changed, 1 insertion(+) diff --git a/static/workspace-view.less b/static/workspace-view.less index 372c89814..6d272a018 100644 --- a/static/workspace-view.less +++ b/static/workspace-view.less @@ -17,6 +17,7 @@ atom-workspace { atom-workspace-axis.horizontal { display: flex; flex: 1; + min-width: 0; } atom-workspace-axis.vertical {