Merge pull request #5005 from hanakin/ticket/15404

[ticket/15404] autoprefix browser compatibility
This commit is contained in:
Marc Alexander 2017-11-04 14:46:30 +01:00 committed by GitHub
commit 9448cb07c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 97 additions and 14 deletions

View file

@ -16,9 +16,9 @@
padding: 2px 8px; padding: 2px 8px;
cursor: pointer; cursor: pointer;
touch-action: manipulation; touch-action: manipulation;
-webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
-webkit-user-select: none;
user-select: none; user-select: none;
} }

View file

@ -97,15 +97,15 @@ th a:hover {
.headerbar, .headerbar,
.forumbg { .forumbg {
background-color: #13a4ec; background-color: #13a4ec;
background-image: -webkit-linear-gradient(top, #80d5ff 0%, #0077b3 2px, #13a4ec 92px, #13a4ec 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#80d5ff), color-stop(0.1%, #0077b3), color-stop(30%, #13a4ec), to(#13a4ec));
background-image: linear-gradient(to bottom, #80d5ff 0%, #0077b3 2px, #13a4ec 92px, #13a4ec 100%); background-image: linear-gradient(to bottom, #80d5ff 0%, #0077b3 0.1%, #13a4ec 30%, #13a4ec 100%);
background-repeat: repeat-x; background-repeat: repeat-x;
} }
.forabg { .forabg {
background-color: #0077b3; background-color: #0077b3;
background-image: -webkit-linear-gradient(top, #80d5ff 0%, #13a4ec 2px, #0077b3 92px, #0077b3 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#80d5ff), color-stop(0.1%, #13a4ec), color-stop(30%, #0077b3), to(#0077b3));
background-image: linear-gradient(to bottom, #80d5ff 0%, #13a4ec 2px, #0077b3 92px, #0077b3 100%); background-image: linear-gradient(to bottom, #80d5ff 0%, #13a4ec 0.1%, #0077b3 30%, #0077b3 100%);
background-repeat: repeat-x; background-repeat: repeat-x;
} }
@ -317,7 +317,7 @@ p.post-notice {
/* colours and backgrounds for content.css */ /* colours and backgrounds for content.css */
ul.forums { ul.forums {
background-color: #edf4f7; background-color: #edf4f7;
background-image: -webkit-linear-gradient(top, #b8d3e0 0%, #edf4f7 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#b8d3e0), to(#edf4f7));
background-image: linear-gradient(to bottom, #b8d3e0 0%, #edf4f7 100%); background-image: linear-gradient(to bottom, #b8d3e0 0%, #edf4f7 100%);
} }
@ -591,16 +591,17 @@ dd.profile-warnings {
/* colours and backgrounds for buttons.css */ /* colours and backgrounds for buttons.css */
.button { .button {
background-color: #e0e0e0; background-color: #e0e0e0;
background-image: -webkit-linear-gradient(top, #ffffff 0%, #e0e0e0 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e0e0e0));
background-image: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%); background-image: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
border-color: #bdbdbd; border-color: #bdbdbd;
-webkit-box-shadow: 0 0 0 1px #ffffff inset;
box-shadow: 0 0 0 1px #ffffff inset; box-shadow: 0 0 0 1px #ffffff inset;
color: #d41142; color: #d41142;
} }
.button:hover, .button:hover,
.button:focus { .button:focus {
background-image: -webkit-linear-gradient(top, #e0e0e0 0%, #ffffff 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#e0e0e0), to(#ffffff));
background-image: linear-gradient(to bottom, #e0e0e0 0%, #ffffff 100%); background-image: linear-gradient(to bottom, #e0e0e0 0%, #ffffff 100%);
border-color: #0077b3; border-color: #0077b3;
text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, -1px -1px 0 rgba(189, 40, 77, 0.2); text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, -1px -1px 0 rgba(189, 40, 77, 0.2);
@ -615,6 +616,7 @@ dd.profile-warnings {
.button-form, .button-form,
.button-form-bold { .button-form-bold {
border-color: #757575; border-color: #757575;
-webkit-box-shadow: none;
box-shadow: none; box-shadow: none;
color: #212121; color: #212121;
} }
@ -663,6 +665,7 @@ dd.profile-warnings {
-webkit-filter: none; -webkit-filter: none;
filter: none; filter: none;
border-color: #bdbdbd; border-color: #bdbdbd;
-webkit-box-shadow: none;
box-shadow: none; box-shadow: none;
color: #9e9e9e; color: #9e9e9e;
} }
@ -696,6 +699,7 @@ dd.profile-warnings {
} }
.search-header { .search-header {
-webkit-box-shadow: 0 0 10px #0077b3;
box-shadow: 0 0 10px #0077b3; box-shadow: 0 0 10px #0077b3;
} }
@ -822,9 +826,10 @@ ul.cplist {
.tabs .activetab > a, .tabs .activetab > a,
.tabs .activetab > a:hover { .tabs .activetab > a:hover {
background-color: #c9dee8; background-color: #c9dee8;
background-image: -webkit-linear-gradient(top, #e6f7ff 0%, #c9dee8 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#e6f7ff), to(#c9dee8));
background-image: linear-gradient(to bottom, #e6f7ff 0%, #c9dee8 100%); background-image: linear-gradient(to bottom, #e6f7ff 0%, #c9dee8 100%);
border-color: #c9dee8; border-color: #c9dee8;
-webkit-box-shadow: 0 1px 1px #e6f7ff inset;
box-shadow: 0 1px 1px #e6f7ff inset; box-shadow: 0 1px 1px #e6f7ff inset;
color: #212121; color: #212121;
} }
@ -845,14 +850,14 @@ ul.cplist {
/* link styles for the sub-section links */ /* link styles for the sub-section links */
.navigation a { .navigation a {
background: #c0d3dd; background: #c0d3dd;
background-image: -webkit-linear-gradient(left, #aab9c0 50%, #c0d3dd 100%); background-image: -webkit-gradient(linear, left top, right top, color-stop(50%, #aab9c0), to(#c0d3dd));
background-image: linear-gradient(to right, #aab9c0 50%, #c0d3dd 100%); background-image: linear-gradient(to right, #aab9c0 50%, #c0d3dd 100%);
color: #212121; color: #212121;
} }
.rtl .navigation a { .rtl .navigation a {
background: #afc5cf; background: #afc5cf;
background-image: -webkit-linear-gradient(left, #c0d3dd 50%, #aab9c0 100%); background-image: -webkit-gradient(linear, left top, right top, color-stop(50%, #c0d3dd), to(#aab9c0));
background-image: linear-gradient(to right, #c0d3dd 50%, #aab9c0 100%); background-image: linear-gradient(to right, #c0d3dd 50%, #aab9c0 100%);
} }
@ -1020,6 +1025,33 @@ input.disabled {
background-color: #000000; background-color: #000000;
} }
/* stylelint-disable at-rule-no-vendor-prefix */
@-webkit-keyframes colors {
0% {
stroke: #4285f4;
}
25% {
stroke: #de3e35;
}
50% {
stroke: #f7c223;
}
75% {
stroke: #1b9a59;
}
100% {
stroke: #4285f4;
}
}
/* stylelint-enable at-rule-no-vendor-prefix */
@keyframes colors { @keyframes colors {
0% { 0% {
stroke: #4285f4; stroke: #4285f4;
@ -1068,7 +1100,7 @@ input.disabled {
.dropdown-extended .header { .dropdown-extended .header {
background-color: #e6f7ff; background-color: #e6f7ff;
background-image: -webkit-linear-gradient(top, #e6f7ff 0%, #c9dee8 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#e6f7ff), to(#c9dee8));
background-image: linear-gradient(to bottom, #e6f7ff 0%, #c9dee8 100%); background-image: linear-gradient(to bottom, #e6f7ff 0%, #c9dee8 100%);
} }
@ -1087,10 +1119,12 @@ input.disabled {
.dropdown .dropdown-contents { .dropdown .dropdown-contents {
background: #ffffff; background: #ffffff;
border-color: #bdbdbd; border-color: #bdbdbd;
-webkit-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2);
box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2); box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2);
} }
.dropdown-up .dropdown-contents { .dropdown-up .dropdown-contents {
-webkit-box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2);
box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2); box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2);
} }

View file

@ -450,6 +450,7 @@ a.header-avatar span:after {
width: 0; width: 0;
height: 0; height: 0;
-webkit-transform: rotate(360deg); /* better anti-aliasing in webkit */ -webkit-transform: rotate(360deg); /* better anti-aliasing in webkit */
transform: rotate(360deg);
} }
.dropdown-up .pointer, .dropdown-up .pointer,
@ -1046,43 +1047,82 @@ fieldset.fields1 dl.pmlist dd.recipients {
} }
.spinner { .spinner {
-webkit-animation: rotator 1s linear infinite;
animation: rotator 1s linear infinite; animation: rotator 1s linear infinite;
} }
/* stylelint-disable no-unknown-animations */ /* stylelint-disable no-unknown-animations */
.spinner-path { .spinner-path {
-webkit-transform-origin: center;
transform-origin: center; transform-origin: center;
-webkit-animation: dash 1s ease-in-out infinite, colors 4s ease-in-out infinite;
animation: dash 1s ease-in-out infinite, colors 4s ease-in-out infinite; animation: dash 1s ease-in-out infinite, colors 4s ease-in-out infinite;
stroke-dasharray: 187; stroke-dasharray: 187;
stroke-dashoffset: 0; stroke-dashoffset: 0;
} }
/* stylelint-enable no-unknown-animations */ /* stylelint-enable no-unknown-animations */
@keyframes rotator { /* stylelint-disable at-rule-no-vendor-prefix */
@-webkit-keyframes rotator {
0% { 0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg); transform: rotate(270deg);
} }
} }
@keyframes rotator {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
}
@-webkit-keyframes dash {
0% {
stroke-dashoffset: 187;
}
50% {
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
stroke-dashoffset: 46.75;
}
100% {
-webkit-transform: rotate(450deg);
transform: rotate(450deg);
stroke-dashoffset: 187;
}
}
@keyframes dash { @keyframes dash {
0% { 0% {
stroke-dashoffset: 187; stroke-dashoffset: 187;
} }
50% { 50% {
-webkit-transform: rotate(135deg);
transform: rotate(135deg); transform: rotate(135deg);
stroke-dashoffset: 46.75; stroke-dashoffset: 46.75;
} }
100% { 100% {
-webkit-transform: rotate(450deg);
transform: rotate(450deg); transform: rotate(450deg);
stroke-dashoffset: 187; stroke-dashoffset: 187;
} }
} }
/* stylelint-enable at-rule-no-vendor-prefix */
/* Miscellaneous styles /* Miscellaneous styles

View file

@ -69,6 +69,7 @@ ul.topiclist.two-columns dt .list-inner {
ul.topiclist dd { ul.topiclist dd {
border-left: 1px solid transparent; border-left: 1px solid transparent;
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
padding: 4px 0; padding: 4px 0;
} }
@ -135,6 +136,7 @@ li.header dt .list-inner {
} }
li.header dd { li.header dd {
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
padding-left: 1px; padding-left: 1px;
} }
@ -308,6 +310,7 @@ dd.option {
} }
.postbody img.postimage { .postbody img.postimage {
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
max-width: 100%; max-width: 100%;
} }
@ -567,6 +570,7 @@ blockquote .codebox {
border: 1px dashed transparent; border: 1px dashed transparent;
float: left; float: left;
clear: left; clear: left;
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
width: auto; width: auto;
max-width: 100%; max-width: 100%;
@ -646,6 +650,7 @@ dl.file dd {
dl.thumbnail img { dl.thumbnail img {
border: 1px solid transparent; border: 1px solid transparent;
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
padding: 3px; padding: 3px;
} }

View file

@ -84,7 +84,6 @@ fieldset dd {
margin-left: 41%; margin-left: 41%;
} }
fieldset.fields1 div { fieldset.fields1 div {
margin-bottom: 3px; margin-bottom: 3px;
} }
@ -270,6 +269,7 @@ fieldset.submit-buttons input {
max-width: 100%; max-width: 100%;
height: 270px; height: 270px;
resize: vertical; resize: vertical;
-webkit-transition: all 0.5s ease, height 1ms linear;
transition: all 0.5s ease, height 1ms linear; transition: all 0.5s ease, height 1ms linear;
} }
@ -326,6 +326,7 @@ input[type="number"] {
input[type="search"] { input[type="search"] {
-webkit-box-sizing: content-box; -webkit-box-sizing: content-box;
box-sizing: content-box;
-webkit-appearance: textfield; -webkit-appearance: textfield;
} }
@ -361,6 +362,7 @@ input.disabled {
border-right-width: 0; border-right-width: 0;
border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px;
float: left; float: left;
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
height: 24px; height: 24px;
padding: 3px; padding: 3px;

View file

@ -45,6 +45,7 @@ th a:hover {
top: 50%; top: 50%;
right: 0; right: 0;
display: none; display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
margin-top: -20px; margin-top: -20px;
} }

View file

@ -420,6 +420,7 @@
textarea, textarea,
dd textarea, dd textarea,
.message-box textarea { .message-box textarea {
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
} }