From 8bd5d800d0d113de0b0052274192fc8892246af2 Mon Sep 17 00:00:00 2001 From: Gilles Gauthier Date: Tue, 20 Sep 2016 21:26:22 -0700 Subject: [PATCH 1/2] Fixing display: flex for iOS 8 --- client/css/style.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/css/style.css b/client/css/style.css index a209e3bb..a733e5e0 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -551,7 +551,9 @@ button { position: absolute; right: 5px; top: 4px; + display: -webkit-flex; display: flex; + -webkit-flex-direction: column; flex-direction: column; } @@ -666,13 +668,16 @@ button { } #windows #chat-container.active { + display: -webkit-flex; display: flex; + -webkit-flex-direction: column; flex-direction: column; } #chat { position: relative; overflow: hidden; + -webkit-flex: 1; flex: 1; } @@ -1196,6 +1201,7 @@ button { #form { background: #eee; border-top: 1px solid #ddd; + -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 5px; } @@ -1207,7 +1213,9 @@ button { margin: 0; padding: 0; background: white; + display: -webkit-flex; display: flex; + -webkit-align-items: flex-end; align-items: flex-end; } @@ -1225,6 +1233,7 @@ button { -moz-user-select: none; -ms-user-select: none; user-select: none; + -webkit-flex: 0 0 auto; flex: 0 0 auto; } @@ -1248,6 +1257,7 @@ button { margin: 5px; padding: 0; resize: none; + -webkit-flex: 1 0 auto; flex: 1 0 auto; align-self: center; } @@ -1258,6 +1268,7 @@ button { height: 32px; transition: opacity .2s; width: 32px; + -webkit-flex: 0 0 auto; flex: 0 0 auto; } From 4439303f90bbb7d9d3241d8fe2397921182a8fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Wed, 21 Sep 2016 01:14:42 -0400 Subject: [PATCH 2/2] Ignore consecutive duplicates in stylelint for prefixed values This is already necessary globally and will become even more so as we are adding flexbox pieces to the UI. See http://stylelint.io/user-guide/rules/declaration-block-no-duplicate-properties/. --- .stylelintrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.stylelintrc b/.stylelintrc index d346c411..3351866c 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -55,7 +55,9 @@ "number-leading-zero": "never", "number-no-trailing-zeros": true, "length-zero-no-unit": true, - "declaration-block-no-duplicate-properties": true, + "declaration-block-no-duplicate-properties": [true, { + "ignore": ["consecutive-duplicates"] + }], "declaration-block-no-shorthand-property-overrides": true, "rule-non-nested-empty-line-before": ["always-multi-line", { "ignore": ["after-comment"]