hexo-theme-shokax 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/layout/_mixin/comment.pug +1 -2
- package/layout/_partials/layout.pug +23 -23
- package/package.json +10 -10
- package/scripts/generaters/script.js +1 -6
- package/scripts/helpers/summary_ai.js +0 -1
- package/scripts/plugin/index.js +2 -2
- package/source/css/_common/scaffolding/normalize.styl +165 -180
- package/source/js/_app/globals/handles.js +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
# 📣 公告
|
|
2
|
+
* [ShokaX 正在寻找社区维护者](https://github.com/theme-shoka-x/hexo-theme-shokaX/discussions/137)
|
|
3
|
+
|
|
1
4
|
# hexo-theme-shokaX
|
|
2
5
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fzkz098%2Fhexo-theme-shokaX?ref=badge_shield)
|
|
3
6
|

|
|
@@ -47,6 +50,13 @@ github仓库建议通过右边的 releases 下载,步骤为:
|
|
|
47
50
|
- 下载 Assets 中的 `Source code(zip)`
|
|
48
51
|
- 解压即可作为主题使用
|
|
49
52
|
|
|
53
|
+
## 📚子项目
|
|
54
|
+
- [ShokaX docs](https://github.com/theme-shoka-x/shokaX-docs) ShokaX 主题文档 (正在编写中,欢迎加入!)
|
|
55
|
+
- [HRMNMI](https://github.com/theme-shoka-x/hexo-renderer-multi-next-markdown-it) ShokaX 正在使用的 markdown 渲染器 (等待重构)
|
|
56
|
+
- [ShokaX CLI](https://github.com/theme-shoka-x/shokaX-CLI) ShokaX 命令行安装程序
|
|
57
|
+
- [ShokaX Pjax](https://github.com/theme-shoka-x/theme-shokax-pjax) ShokaX 提供的高效 Pjax 实现
|
|
58
|
+
- [ShokaX Anime](https://github.com/theme-shoka-x/theme-shokax-anime) ShokaX 提供的精简版 Anime.js 实现
|
|
59
|
+
|
|
50
60
|
## 🛠️二次开发
|
|
51
61
|
[ShokaX官方开发文档](https://docs.kaitaku.xyz/develop/basic/)
|
|
52
62
|
|
|
@@ -58,8 +68,7 @@ github仓库建议通过右边的 releases 下载,步骤为:
|
|
|
58
68
|
- [Easy hexo](https://easyhexo.com/)
|
|
59
69
|
|
|
60
70
|
# 许可证
|
|
61
|
-
许可证: AGPL 3 or later
|
|
62
|
-
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fzkz098%2Fhexo-theme-shokaX?ref=badge_large)
|
|
71
|
+
许可证: AGPL 3 or later
|
|
63
72
|
|
|
64
73
|
## 特别说明
|
|
65
74
|
AGPL许可证主要目的是限制修改后的分发行为,避免未经许可的二次修改封装商业行为 \
|
|
@@ -21,7 +21,6 @@ mixin CommentRender()
|
|
|
21
21
|
script(type="module" data-pjax).
|
|
22
22
|
import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs';
|
|
23
23
|
|
|
24
|
-
const path = document.getElementById("twikoo_visitors").getAttribute("data-path");
|
|
25
24
|
setTimeout(function () {
|
|
26
25
|
init({
|
|
27
26
|
el: '#wcomments',
|
|
@@ -34,7 +33,7 @@ mixin CommentRender()
|
|
|
34
33
|
wordLimit: #{theme.waline.wordLimit},
|
|
35
34
|
pageSize: #{theme.waline.pageSize},
|
|
36
35
|
pageview: #{theme.waline.pageview},
|
|
37
|
-
path:
|
|
36
|
+
path: window.location.pathname,
|
|
38
37
|
dark: 'html[data-theme="dark"]'
|
|
39
38
|
});
|
|
40
39
|
}, 1000)
|
|
@@ -73,17 +73,17 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
|
|
|
73
73
|
- var ccText = theme.creative_commons.license.toUpperCase()
|
|
74
74
|
script(data-config type="text/javascript").
|
|
75
75
|
var LOCAL = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
path: `#{_permapath(page.path)}`,
|
|
77
|
+
favicon: {
|
|
78
|
+
show: `#{__('favicon.show')}`,
|
|
79
|
+
hide: `#{__('favicon.hide')}`
|
|
80
|
+
},
|
|
81
|
+
search: {
|
|
82
|
+
placeholder: "!{__('search.placeholder')}",
|
|
83
|
+
empty: "!{__('search.empty')}",
|
|
84
|
+
stats: "!{__('search.stats')}"
|
|
85
|
+
},
|
|
86
|
+
valine: #{page.valine ? _safedump(page.valine) : true},
|
|
87
87
|
chart: #{!!page.chart},
|
|
88
88
|
copy_tex: #{!!page.math},
|
|
89
89
|
katex: #{!!page.math},
|
|
@@ -94,18 +94,18 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
|
|
|
94
94
|
outime: #{page.outime !== false},
|
|
95
95
|
template: `#{__('outime.template')}`,
|
|
96
96
|
quiz: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
97
|
+
choice: `#{__('quiz.choice')}`,
|
|
98
|
+
multiple: `#{__('quiz.multiple')}`,
|
|
99
|
+
true_false: `#{__('quiz.true_false')}`,
|
|
100
|
+
essay: `#{__('quiz.essay')}`,
|
|
101
|
+
gap_fill: `#{__('quiz.gap_fill')}`,
|
|
102
|
+
mistake: `#{__('quiz.mistake')}`
|
|
103
|
+
},
|
|
104
|
+
ignores: [
|
|
105
|
+
(uri) => uri.includes('#'),
|
|
106
|
+
(uri) => new RegExp(LOCAL.path + '$').test(uri),
|
|
107
|
+
!{JSON.stringify(ignores)}
|
|
108
|
+
]
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
if theme.polyfill.enable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hexo-theme-shokax",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "a hexo theme based on shoka",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
"@types/jquery": "^3.5.16",
|
|
17
17
|
"@types/js-yaml": "^4.0.5",
|
|
18
18
|
"@types/lozad": "^1.16.1",
|
|
19
|
-
"@types/node": "^20.
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
21
|
-
"@typescript-eslint/parser": "^
|
|
22
|
-
"eslint": "^8.
|
|
19
|
+
"@types/node": "^20.4.4",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
|
21
|
+
"@typescript-eslint/parser": "^6.2.0",
|
|
22
|
+
"eslint": "^8.45.0",
|
|
23
23
|
"eslint-config-standard": "*",
|
|
24
24
|
"eslint-plugin-import": "^2.27.5",
|
|
25
|
-
"eslint-plugin-n": "^16.0.
|
|
25
|
+
"eslint-plugin-n": "^16.0.1",
|
|
26
26
|
"eslint-plugin-promise": "^6.1.1",
|
|
27
|
-
"eslint-plugin-vue": "^9.
|
|
27
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
28
28
|
"hexo-fs": "^4.1.1",
|
|
29
|
-
"hexo-util": "^3.0
|
|
30
|
-
"instantsearch.js": "^4.56.
|
|
29
|
+
"hexo-util": "^3.1.0",
|
|
30
|
+
"instantsearch.js": "^4.56.7",
|
|
31
31
|
"theme-shokax-anime": "^0.0.4",
|
|
32
32
|
"theme-shokax-pjax": "^0.0.2",
|
|
33
|
-
"typescript": "^5.
|
|
33
|
+
"typescript": "^5.1.6",
|
|
34
34
|
"vue": "^3.3.4"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -7,16 +7,13 @@ const package_json_1 = __importDefault(require("../../package.json"));
|
|
|
7
7
|
const fs = require("hexo-fs");
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
function findJsFile(path) {
|
|
10
|
-
console.log(path);
|
|
11
10
|
let result = [];
|
|
12
11
|
fs.readdirSync(path).forEach((item) => {
|
|
13
|
-
console.log(item);
|
|
14
12
|
if (!item.endsWith('js')) {
|
|
15
13
|
result = result.concat(findJsFile(node_path_1.default.join(path, item)));
|
|
16
14
|
}
|
|
17
15
|
else {
|
|
18
16
|
if (item.indexOf('player') === -1 && item.indexOf('fireworks') === -1) {
|
|
19
|
-
console.log('push');
|
|
20
17
|
result.push(node_path_1.default.join(path, item));
|
|
21
18
|
}
|
|
22
19
|
}
|
|
@@ -24,7 +21,6 @@ function findJsFile(path) {
|
|
|
24
21
|
return result;
|
|
25
22
|
}
|
|
26
23
|
hexo.extend.generator.register('script', function (locals) {
|
|
27
|
-
const log = hexo.log || console.log;
|
|
28
24
|
const config = hexo.config;
|
|
29
25
|
const theme = hexo.theme.config;
|
|
30
26
|
const siteConfig = {
|
|
@@ -77,7 +73,7 @@ hexo.extend.generator.register('script', function (locals) {
|
|
|
77
73
|
siteConfig.audio = theme.audio;
|
|
78
74
|
}
|
|
79
75
|
let text = '';
|
|
80
|
-
let path
|
|
76
|
+
let path;
|
|
81
77
|
if (fs.existsSync('themes/shokaX/source/js/_app/library/dom.js')) {
|
|
82
78
|
path = 'themes/shokaX/source/js/_app';
|
|
83
79
|
}
|
|
@@ -89,7 +85,6 @@ hexo.extend.generator.register('script', function (locals) {
|
|
|
89
85
|
files = files.concat(findJsFile(node_path_1.default.join(path, 'page')));
|
|
90
86
|
files = files.concat(findJsFile(node_path_1.default.join(path, 'pjax')));
|
|
91
87
|
files = files.concat(findJsFile(node_path_1.default.join(path, 'components')));
|
|
92
|
-
console.log(files);
|
|
93
88
|
files.forEach(function (item) {
|
|
94
89
|
text += fs.readFileSync(item).toString();
|
|
95
90
|
});
|
package/scripts/plugin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*!
|
|
3
|
-
index.js in next-theme/hexo-theme-next by theme
|
|
4
|
-
under GNU AFFERO GENERAL PUBLIC LICENSE v3.0
|
|
3
|
+
index.js in next-theme/hexo-theme-next by next-theme
|
|
4
|
+
under GNU AFFERO GENERAL PUBLIC LICENSE v3.0 OR LATER
|
|
5
5
|
https://github.com/next-theme/hexo-theme-next/blob/master/LICENSE.md
|
|
6
6
|
*/
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,108 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Document
|
|
5
|
+
========
|
|
6
|
+
*/
|
|
7
|
+
|
|
4
8
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
Use a better box model (opinionated).
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
*,
|
|
13
|
+
::before,
|
|
14
|
+
::after {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
html {
|
|
9
|
-
|
|
10
|
-
-
|
|
19
|
+
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
|
|
20
|
+
font-family:
|
|
21
|
+
system-ui,
|
|
22
|
+
'Segoe UI',
|
|
23
|
+
Roboto,
|
|
24
|
+
Helvetica,
|
|
25
|
+
Arial,
|
|
26
|
+
sans-serif,
|
|
27
|
+
'Apple Color Emoji',
|
|
28
|
+
'Segoe UI Emoji';
|
|
29
|
+
line-height: 1.15; /* 1. Correct the line height in all browsers. */
|
|
30
|
+
-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
|
|
31
|
+
-moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
|
|
32
|
+
tab-size: 4; /* 3 */
|
|
11
33
|
}
|
|
12
34
|
|
|
13
|
-
/*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
35
|
+
/*
|
|
36
|
+
Sections
|
|
37
|
+
========
|
|
38
|
+
*/
|
|
39
|
+
|
|
18
40
|
body {
|
|
19
|
-
margin: 0;
|
|
41
|
+
margin: 0; /* Remove the margin in all browsers. */
|
|
20
42
|
}
|
|
21
43
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
display: block;
|
|
27
|
-
}
|
|
44
|
+
/*
|
|
45
|
+
Grouping content
|
|
46
|
+
================
|
|
47
|
+
*/
|
|
28
48
|
|
|
29
49
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
h1 {
|
|
34
|
-
font-size: 2em;
|
|
35
|
-
margin: .67em 0;
|
|
36
|
-
}
|
|
50
|
+
1. Add the correct height in Firefox.
|
|
51
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
52
|
+
*/
|
|
37
53
|
|
|
38
|
-
/* Grouping content
|
|
39
|
-
========================================================================== */
|
|
40
|
-
/**
|
|
41
|
-
* 1. Add the correct box sizing in Firefox.
|
|
42
|
-
* 2. Show the overflow in Edge and IE.
|
|
43
|
-
*/
|
|
44
54
|
hr {
|
|
45
|
-
box-sizing: content-box; /* 1 */
|
|
46
55
|
height: 0; /* 1 */
|
|
47
|
-
|
|
56
|
+
color: inherit; /* 2 */
|
|
48
57
|
}
|
|
49
58
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
pre {
|
|
55
|
-
font-family: monospace, monospace; /* 1 */
|
|
56
|
-
font-size: 1em; /* 2 */
|
|
57
|
-
}
|
|
59
|
+
/*
|
|
60
|
+
Text-level semantics
|
|
61
|
+
====================
|
|
62
|
+
*/
|
|
58
63
|
|
|
59
|
-
/* Text-level semantics
|
|
60
|
-
========================================================================== */
|
|
61
64
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
a {
|
|
65
|
-
background: transparent;
|
|
66
|
-
}
|
|
65
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
66
|
+
*/
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* 1. Remove the bottom border in Chrome 57-
|
|
70
|
-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
71
|
-
*/
|
|
72
68
|
abbr[title] {
|
|
73
|
-
|
|
74
|
-
text-decoration: underline; /* 2 */
|
|
75
|
-
//text-decoration: underline dotted; /* 2 */
|
|
69
|
+
text-decoration: underline dotted;
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
Add the correct font weight in Edge and Safari.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
b,
|
|
77
|
+
strong {
|
|
82
78
|
font-weight: bolder;
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
83
|
+
2. Correct the odd 'em' font sizing in all browsers.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
code,
|
|
87
|
+
kbd,
|
|
88
|
+
samp,
|
|
89
|
+
pre {
|
|
90
|
+
font-family:
|
|
91
|
+
ui-monospace,
|
|
92
|
+
SFMono-Regular,
|
|
93
|
+
Consolas,
|
|
94
|
+
'Liberation Mono',
|
|
95
|
+
Menlo,
|
|
96
|
+
monospace; /* 1 */
|
|
91
97
|
font-size: 1em; /* 2 */
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
Add the correct font size in all browsers.
|
|
102
|
+
*/
|
|
103
|
+
|
|
97
104
|
small {
|
|
98
105
|
font-size: 80%;
|
|
99
106
|
}
|
|
100
107
|
|
|
101
108
|
/**
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
sub,
|
|
109
|
+
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
sub,
|
|
113
|
+
sup {
|
|
106
114
|
font-size: 75%;
|
|
107
115
|
line-height: 0;
|
|
108
116
|
position: relative;
|
|
@@ -110,29 +118,43 @@ sub, sup {
|
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
sub {
|
|
113
|
-
bottom:
|
|
121
|
+
bottom: -0.25em;
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
sup {
|
|
117
|
-
top:
|
|
125
|
+
top: -0.5em;
|
|
118
126
|
}
|
|
119
127
|
|
|
120
|
-
/*
|
|
121
|
-
|
|
128
|
+
/*
|
|
129
|
+
Tabular data
|
|
130
|
+
============
|
|
131
|
+
*/
|
|
132
|
+
|
|
122
133
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
134
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
135
|
+
2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
table {
|
|
139
|
+
text-indent: 0; /* 1 */
|
|
140
|
+
border-color: inherit; /* 2 */
|
|
127
141
|
}
|
|
128
142
|
|
|
129
|
-
/*
|
|
130
|
-
|
|
143
|
+
/*
|
|
144
|
+
Forms
|
|
145
|
+
=====
|
|
146
|
+
*/
|
|
147
|
+
|
|
131
148
|
/**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
149
|
+
1. Change the font styles in all browsers.
|
|
150
|
+
2. Remove the margin in Firefox and Safari.
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
button,
|
|
154
|
+
input,
|
|
155
|
+
optgroup,
|
|
156
|
+
select,
|
|
157
|
+
textarea {
|
|
136
158
|
font-family: inherit; /* 1 */
|
|
137
159
|
font-size: 100%; /* 1 */
|
|
138
160
|
line-height: 1.15; /* 1 */
|
|
@@ -140,150 +162,113 @@ button, input, optgroup, select, textarea {
|
|
|
140
162
|
}
|
|
141
163
|
|
|
142
164
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
*/
|
|
146
|
-
button, input {
|
|
147
|
-
/* 1 */
|
|
148
|
-
overflow: visible;
|
|
149
|
-
}
|
|
165
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
|
166
|
+
*/
|
|
150
167
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
|
154
|
-
*/
|
|
155
|
-
button, select {
|
|
156
|
-
/* 1 */
|
|
168
|
+
button,
|
|
169
|
+
select {
|
|
157
170
|
text-transform: none;
|
|
158
171
|
}
|
|
159
172
|
|
|
160
173
|
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
174
|
+
Correct the inability to style clickable types in iOS and Safari.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
button,
|
|
178
|
+
[type='button'],
|
|
179
|
+
[type='reset'],
|
|
180
|
+
[type='submit'] {
|
|
164
181
|
-webkit-appearance: button;
|
|
165
182
|
}
|
|
166
183
|
|
|
167
184
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
185
|
+
Remove the inner border and padding in Firefox.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
::-moz-focus-inner {
|
|
171
189
|
border-style: none;
|
|
172
190
|
padding: 0;
|
|
173
191
|
}
|
|
174
192
|
|
|
175
193
|
/**
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
194
|
+
Restore the focus styles unset by the previous rule.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
:-moz-focusring {
|
|
198
|
+
outline: 1px dotted ButtonText;
|
|
180
199
|
}
|
|
181
200
|
|
|
182
201
|
/**
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
202
|
+
Remove the additional ':invalid' styles in Firefox.
|
|
203
|
+
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
:-moz-ui-invalid {
|
|
207
|
+
box-shadow: none;
|
|
187
208
|
}
|
|
188
209
|
|
|
189
210
|
/**
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
* `fieldset` elements in all browsers.
|
|
194
|
-
*/
|
|
211
|
+
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
|
|
212
|
+
*/
|
|
213
|
+
|
|
195
214
|
legend {
|
|
196
|
-
|
|
197
|
-
color: inherit; /* 2 */
|
|
198
|
-
display: table; /* 1 */
|
|
199
|
-
max-width: 100%; /* 1 */
|
|
200
|
-
padding: 0; /* 3 */
|
|
201
|
-
white-space: normal; /* 1 */
|
|
215
|
+
padding: 0;
|
|
202
216
|
}
|
|
203
217
|
|
|
204
218
|
/**
|
|
205
|
-
|
|
206
|
-
|
|
219
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
220
|
+
*/
|
|
221
|
+
|
|
207
222
|
progress {
|
|
208
223
|
vertical-align: baseline;
|
|
209
224
|
}
|
|
210
225
|
|
|
211
226
|
/**
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
textarea {
|
|
215
|
-
overflow: auto;
|
|
216
|
-
}
|
|
227
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
228
|
+
*/
|
|
217
229
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
* 2. Remove the padding in IE 1.
|
|
221
|
-
*/
|
|
222
|
-
[type='checkbox'], [type='radio'] {
|
|
223
|
-
box-sizing: border-box; /* 1 */
|
|
224
|
-
padding: 0; /* 2 */
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
229
|
-
*/
|
|
230
|
-
[type='number']::-webkit-inner-spin-button, [type='number']::-webkit-outer-spin-button {
|
|
230
|
+
::-webkit-inner-spin-button,
|
|
231
|
+
::-webkit-outer-spin-button {
|
|
231
232
|
height: auto;
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
/**
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
237
|
+
2. Correct the outline style in Safari.
|
|
238
|
+
*/
|
|
239
|
+
|
|
238
240
|
[type='search'] {
|
|
239
|
-
outline-offset: -.125rem; /* 2 */
|
|
240
241
|
-webkit-appearance: textfield; /* 1 */
|
|
242
|
+
outline-offset: -2px; /* 2 */
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
/**
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
::-webkit-search-decoration {
|
|
247
250
|
-webkit-appearance: none;
|
|
248
251
|
}
|
|
249
252
|
|
|
250
253
|
/**
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
255
|
+
2. Change font properties to 'inherit' in Safari.
|
|
256
|
+
*/
|
|
257
|
+
|
|
254
258
|
::-webkit-file-upload-button {
|
|
255
|
-
font: inherit; /* 2 */
|
|
256
259
|
-webkit-appearance: button; /* 1 */
|
|
260
|
+
font: inherit; /* 2 */
|
|
257
261
|
}
|
|
258
262
|
|
|
259
|
-
/* Interactive
|
|
260
|
-
========================================================================== */
|
|
261
263
|
/*
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
display: block;
|
|
266
|
-
}
|
|
264
|
+
Interactive
|
|
265
|
+
===========
|
|
266
|
+
*/
|
|
267
267
|
|
|
268
268
|
/*
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
Add the correct display in Chrome and Safari.
|
|
270
|
+
*/
|
|
271
|
+
|
|
271
272
|
summary {
|
|
272
273
|
display: list-item;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/* Misc
|
|
276
|
-
========================================================================== */
|
|
277
|
-
/**
|
|
278
|
-
* Add the correct display in IE 10+.
|
|
279
|
-
*/
|
|
280
|
-
template {
|
|
281
|
-
display: none;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Add the correct display in IE 1.
|
|
286
|
-
*/
|
|
287
|
-
[hidden] {
|
|
288
|
-
display: none;
|
|
289
|
-
}
|
|
274
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const resizeHandle = (
|
|
1
|
+
const resizeHandle = () => {
|
|
2
2
|
siteNavHeight = siteNav.changeOrGetHeight();
|
|
3
3
|
headerHightInner = siteHeader.changeOrGetHeight();
|
|
4
4
|
headerHight = headerHightInner + $dom('#waves').changeOrGetHeight();
|
|
@@ -8,7 +8,7 @@ const resizeHandle = (event) => {
|
|
|
8
8
|
oWinHeight = window.innerHeight;
|
|
9
9
|
oWinWidth = window.innerWidth;
|
|
10
10
|
};
|
|
11
|
-
const scrollHandle = (
|
|
11
|
+
const scrollHandle = () => {
|
|
12
12
|
const winHeight = window.innerHeight;
|
|
13
13
|
const docHeight = getDocHeight();
|
|
14
14
|
const contentVisibilityHeight = docHeight > winHeight ? docHeight - winHeight : document.body.scrollHeight - winHeight;
|