1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 01:46:35 +02:00

chore: remove unneeded CSS vendor prefixes

This commit is contained in:
David Wheatley
2021-12-24 13:47:18 +01:00
parent dc661bf144
commit ec0c233d15
7 changed files with 46 additions and 53 deletions

View File

@@ -50,7 +50,6 @@
color: var(--muted-color); color: var(--muted-color);
} }
thead th { thead th {
position: -webkit-sticky;
position: sticky; position: sticky;
top: 0; top: 0;
padding-bottom: 10px; padding-bottom: 10px;
@@ -74,7 +73,6 @@
} }
tbody { tbody {
th { th {
position: -webkit-sticky;
position: sticky; position: sticky;
left: 0; left: 0;
padding-right: 50px; padding-right: 50px;

View File

@@ -27,13 +27,16 @@
box-shadow: 0 2px 6px var(--shadow-color); box-shadow: 0 2px 6px var(--shadow-color);
} }
} }
.App-primaryControl, .App-titleControl, .App-backControl { .App-primaryControl,
.App-titleControl,
.App-backControl {
position: absolute !important; position: absolute !important;
z-index: calc(~"var(--zindex-header) + 1"); z-index: calc(~"var(--zindex-header) + 1");
top: 0 !important; top: 0 !important;
margin: 0; margin: 0;
.App.affix &, .Composer & { .App.affix &,
.Composer & {
position: fixed !important; position: fixed !important;
} }
@@ -59,15 +62,18 @@
right: 0; right: 0;
&.Dropdown { &.Dropdown {
.Button, .Button-caret { .Button,
.Button-caret {
display: none !important; display: none !important;
} }
.Dropdown-toggle, .Button-icon { .Dropdown-toggle,
.Button-icon {
display: block !important; display: block !important;
} }
} }
} }
.App-primaryControl, .App-backControl { .App-primaryControl,
.App-backControl {
margin: 0 !important; margin: 0 !important;
> .Button { > .Button {
@@ -90,7 +96,8 @@
text-align: center; text-align: center;
color: var(--header-color) !important; color: var(--header-color) !important;
&, > .Button { &,
> .Button {
font-size: 16px; font-size: 16px;
} }
> .Button { > .Button {
@@ -142,7 +149,6 @@
z-index: var(--zindex-modal); z-index: var(--zindex-modal);
.drawerOpen & { .drawerOpen & {
-webkit-transform: none !important;
transform: none !important; transform: none !important;
} }
} }
@@ -200,12 +206,15 @@
> li { > li {
padding: 0 10px 0; padding: 0 10px 0;
} }
.FormControl, .ButtonGroup, .Button { .FormControl,
.ButtonGroup,
.Button {
width: 100%; width: 100%;
text-align: left; text-align: left;
} }
.Dropdown-menu { .Dropdown-menu {
.ButtonGroup, .Button { .ButtonGroup,
.Button {
width: auto; width: auto;
} }
} }
@@ -221,7 +230,7 @@
@media @phone { @media @phone {
.App-drawer { .App-drawer {
& when (@config-colored-header = true) { & when (@config-colored-header = true) {
.light-contents(@name: 'header-colored'); .light-contents(@name: "header-colored");
} }
} }
} }
@@ -245,7 +254,7 @@
} }
& when (@config-colored-header = true) { & when (@config-colored-header = true) {
.light-contents(@name: 'header-colored'); .light-contents(@name: "header-colored");
} }
} }
@@ -254,7 +263,8 @@
margin-right: 25px; margin-right: 25px;
} }
.Header-controls { .Header-controls {
&, > li { &,
> li {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }

View File

@@ -24,7 +24,9 @@
} }
> li { > li {
> a, > button, > span { > a,
> button,
> span {
padding: 8px 15px; padding: 8px 15px;
display: block; display: block;
width: 100%; width: 100%;
@@ -59,13 +61,15 @@
background: none !important; background: none !important;
} }
} }
> a, > button { > a,
> button {
&:hover { &:hover {
background: var(--control-bg); background: var(--control-bg);
} }
} }
&.active { &.active {
> a, > button { > a,
> button {
background: var(--control-bg); background: var(--control-bg);
} }
} }
@@ -100,7 +104,6 @@
height: 1px; height: 1px;
} }
.dropdown-backdrop { .dropdown-backdrop {
position: fixed; position: fixed;
left: 0; left: 0;
@@ -110,7 +113,6 @@
z-index: calc(~"var(--zindex-dropdown) - 10"); z-index: calc(~"var(--zindex-dropdown) - 10");
} }
.Dropdown--split { .Dropdown--split {
.Dropdown-toggle .Button-icon { .Dropdown-toggle .Button-icon {
display: none; display: none;
@@ -131,7 +133,8 @@
@media @tablet-up { @media @tablet-up {
.Dropdown-menu li:first-child { .Dropdown-menu li:first-child {
&, + li.Dropdown-separator { &,
+ li.Dropdown-separator {
display: none; display: none;
} }
} }
@@ -156,7 +159,6 @@
} }
} }
@media @phone { @media @phone {
.Dropdown.open { .Dropdown.open {
z-index: var(--zindex-modal); z-index: var(--zindex-modal);
@@ -177,12 +179,12 @@
box-shadow: 0 2px 6px var(--shadow-color); box-shadow: 0 2px 6px var(--shadow-color);
visibility: hidden; visibility: hidden;
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch;
transform: translate(0, 70vh); transform: translate(0, 70vh);
transition: transform 0.3s, visibility 0s 0.3s; transition: transform 0.3s, visibility 0s 0.3s;
> li { > li {
> a, > button { > a,
> button {
background: var(--body-bg); background: var(--body-bg);
font-size: 16px; font-size: 16px;
padding: 15px 20px; padding: 15px 20px;
@@ -200,15 +202,16 @@
} }
} }
> .active { > .active {
> a, > button { > a,
&, &:hover { > button {
&,
&:hover {
background: var(--primary-color) !important; background: var(--primary-color) !important;
color: #fff !important; color: #fff !important;
} }
} }
} }
.open& { .open& {
-webkit-transform: none;
transform: none; transform: none;
visibility: visible; visibility: visible;
transition-delay: 0s; transition-delay: 0s;

View File

@@ -33,7 +33,6 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: var(--zindex-modal); z-index: var(--zindex-modal);
-webkit-overflow-scrolling: touch;
// When fading in the modal, animate it to slide down // When fading in the modal, animate it to slide down
.Modal { .Modal {
@@ -143,7 +142,6 @@
transform: translate(0, 100vh); transform: translate(0, 100vh);
&.in { &.in {
-webkit-transform: none !important;
transform: none !important; transform: none !important;
} }
&:before { &:before {
@@ -155,7 +153,6 @@
.Modal { .Modal {
max-width: 100%; max-width: 100%;
margin: 0; margin: 0;
-webkit-transform: none !important;
transform: none !important; transform: none !important;
} }
.Modal-content { .Modal-content {
@@ -183,7 +180,6 @@
z-index: 1; z-index: 1;
} }
.Modal-content { .Modal-content {
border: 0; border: 0;
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: 0 7px 15px var(--shadow-color); box-shadow: 0 7px 15px var(--shadow-color);

View File

@@ -65,11 +65,7 @@
// CSS3 Content Columns // CSS3 Content Columns
/** @deprecated */ /** @deprecated */
.content-columns(@column-count; @column-gap: @grid-gutter-width) { .content-columns(@column-count; @column-gap: @grid-gutter-width) {
// Safari
-webkit-column-count: @column-count;
column-count: @column-count; column-count: @column-count;
// Safari
-webkit-column-gap: @column-gap;
column-gap: @column-gap; column-gap: @column-gap;
} }
@@ -85,7 +81,6 @@
// Placeholder text // Placeholder text
.placeholder(@color) { .placeholder(@color) {
// Safari // Safari
&::-webkit-input-placeholder,
&::placeholder { &::placeholder {
color: @color; color: @color;
} }
@@ -176,7 +171,7 @@
// User select // User select
// For selecting text on the page // For selecting text on the page
.user-select(@select) { .user-select(@select) {
// Safari + MS Edge // Safari
-webkit-user-select: @select; -webkit-user-select: @select;
user-select: @select; user-select: @select;
} }

View File

@@ -60,7 +60,8 @@
flex-shrink: 0; flex-shrink: 0;
margin-right: 50px; margin-right: 50px;
&, > ul { &,
> ul {
width: 190px; width: 190px;
} }
> ul { > ul {
@@ -80,7 +81,6 @@
padding: 15px 0; padding: 15px 0;
white-space: nowrap; white-space: nowrap;
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch;
&:after { &:after {
content: " "; content: " ";
@@ -91,7 +91,8 @@
border-bottom: 1px solid var(--control-bg); border-bottom: 1px solid var(--control-bg);
} }
> ul > li, .Dropdown-menu > li { > ul > li,
.Dropdown-menu > li {
display: inline-block; display: inline-block;
margin: 0 20px 0 0; margin: 0 20px 0 0;
vertical-align: top; vertical-align: top;

View File

@@ -107,25 +107,15 @@
} }
.animated { .animated {
-webkit-animation-fill-mode: both;
animation-fill-mode: both; animation-fill-mode: both;
-webkit-animation-duration: 0.5s;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-delay: 1.7s; animation-delay: 1.7s;
-webkit-animation-delay: 1.7s;
}
@-webkit-keyframes fadeIn {
0% {opacity: 0}
100% {opacity: 1}
} }
@keyframes fadeIn { @keyframes fadeIn {
0% {opacity: 0} 0% {opacity: 0}
100% {opacity: 1} 100% {opacity: 1}
} }
.fadeIn { .fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn; animation-name: fadeIn;
} }