feat: improve browser compatibility for TypeIt and object-fit (#293)

* object-fit polyfill
* TypeIt 7.0.3 -> 6.5.1
This commit is contained in:
Dillon
2020-04-30 23:21:52 +08:00
committed by GitHub
parent 3096ff6235
commit 3040ffa107
27 changed files with 65 additions and 31 deletions

View File

@@ -41,13 +41,14 @@ body {
}
}
@import "../_partial/mask";
@include ms;
@include link(true, true);
@import "../_partial/mask";
@import "../_partial/icon";
@import "../_partial/details";
@import "../_partial/fixed-button";
a {
text-decoration: none;
img {
@include object-fit(contain);
}

View File

@@ -96,3 +96,15 @@
-ms-line-break: $value;
line-break: $value;
}
@mixin ms {
input::-ms-clear {
display: none;
}
}
@mixin object-fit($value) {
-o-object-fit: $value;
object-fit: $value;
font-family: 'object-fit: #{$value};';
}

View File

@@ -1,5 +1,7 @@
@mixin link($light, $dark) {
a, a::before, a::after {
text-decoration: none;
color: if($light, $global-link-color, $single-link-color);
[theme=dark] & {

View File

@@ -23,7 +23,7 @@
height: 100%;
left: 0;
top: 0;
object-fit: cover;
@include object-fit(cover);
}
&:hover {

View File

@@ -234,7 +234,7 @@
}
.lazyloading {
object-fit: none;
@include object-fit(none);
}
blockquote {