fix: fallback for browsers which doesn't support for calc()

See #13

release 2.6.4
This commit is contained in:
olOwOlo 2017-10-13 21:43:30 +08:00
parent 22515fb8c0
commit 758f15746a
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6
6 changed files with 8 additions and 5 deletions

View file

@ -57,7 +57,7 @@
{{- end }}
<!-- Styles -->
<link href="{{ "dist/even.min.css?v=2.6.3" | relURL }}" rel="stylesheet">
<link href="{{ "dist/even.min.css?v=2.6.4" | relURL }}" rel="stylesheet">
{{ if .Site.Params.bootcdn -}}
{{ if .Site.Params.fancybox }}<link href="https://cdn.bootcss.com/fancybox/3.1.20/jquery.fancybox.min.css" rel="stylesheet" crossorigin="anonymous">{{ end }}
{{- else if .Site.Params.publicCDN.enable -}}

View file

@ -13,7 +13,7 @@
<script type="text/javascript" src="{{ "lib/slideout/slideout-1.0.1.min.js" | relURL }}"></script>
{{ if .Site.Params.fancybox }}<script type="text/javascript" src="{{ "lib/fancybox/jquery.fancybox-3.1.20.min.js" | relURL }}"></script>{{ end }}
{{- end }}
<script type="text/javascript" src="{{ "dist/even.min.js?v=2.6.3" | relURL }}"></script>
<script type="text/javascript" src="{{ "dist/even.min.js?v=2.6.4" | relURL }}"></script>
{{- if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) }}
<script type="text/javascript">

View file

@ -96,6 +96,9 @@
span {
position: absolute;
/* fallback for browsers which still doesn't support for `calc()` */
left: 15px;
top: 25px;
left: calc((100% - 20px) / 2);
top: calc((100% - 1px) / 2);
width: 20px;

View file

@ -1,6 +1,6 @@
{
"name": "even-src",
"version": "2.6.3",
"version": "2.6.4",
"description": "even source file",
"main": "index.js",
"scripts": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long