Skip to content

Commit e0999c1

Browse files
committed
iOS Safariでのクラッシュ対策として:isと:notのネストが深くならないよう修正
1 parent 0fbeba7 commit e0999c1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

css/kunai/site/sidebar.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,24 @@ main[role="main"] .kunai-sidebar.force-legacy {
275275
background: rgba(251, 251, 251, 0.91);
276276
}
277277

278-
&:not(.top):not(.headers):not(.header):not(.category):not(.module):not(.lang):not(.classes):not(.members):not(.class):not(.article):hover {
278+
/* 複数のクラス除外によるホバー効果 */
279+
&:hover {
279280
background-color: $cl-list-hover;
280281
}
282+
283+
/* 特定のクラスを持つ要素からホバー効果を除外 */
284+
&.top:hover,
285+
&.headers:hover,
286+
&.header:hover,
287+
&.category:hover,
288+
&.module:hover,
289+
&.lang:hover,
290+
&.classes:hover,
291+
&.members:hover,
292+
&.class:hover,
293+
&.article:hover {
294+
background-color: inherit;
295+
}
281296
}
282297
}
283298
}

postcss.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ module.exports = ({file, options, env}) => {
4545
}),
4646
require('autoprefixer')({}),
4747
require('postcss-mixins')({}),
48-
require('postcss-nesting')({}),
48+
// iOS Safariのクラッシュ対策:postcss-nestingを無効化し、postcss-nestedのみ使用。
49+
// :is()のネストが深くなる問題への対処。
50+
// require('postcss-nesting')({}),
4951
require('postcss-nested')({}),
5052
require('cssnano')({
5153
preset: ['default', {

0 commit comments

Comments
 (0)