「テンプレート:ジャンル一覧/styles.css」の版間の差分
提供: 川西図鑑
その他の操作
ページの作成:「→======================================== ジャンル一覧 ========================================: .genre-list { margin: 2em 0; } .genre-list a, .genre-list a:link, .genre-list a:visited, .genre-list a:hover, .genre-list a:active { color: inherit; text-decoration: none; } .genre-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .genre-list li {…」 |
編集の要約なし |
||
| 2行目: | 2行目: | ||
ジャンル一覧 | ジャンル一覧 | ||
======================================== */ | ======================================== */ | ||
. | .list { | ||
margin: 2em 0; | margin: 2em 0; | ||
} | } | ||
. | .list a, | ||
. | .list a:link, | ||
. | .list a:visited, | ||
. | .list a:hover, | ||
. | .list a:active { | ||
color: inherit; | color: inherit; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
. | .list ul { | ||
list-style: none; | list-style: none; | ||
padding: 0; | padding: 0; | ||
| 24行目: | 24行目: | ||
} | } | ||
. | .list li { | ||
margin: 0; | margin: 0; | ||
} | } | ||
. | .list a { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| 44行目: | 44行目: | ||
} | } | ||
. | .list a::before { | ||
content: '›'; | content: '›'; | ||
position: absolute; | position: absolute; | ||
| 53行目: | 53行目: | ||
} | } | ||
. | .list a:hover { | ||
background: #fef3c7; | background: #fef3c7; | ||
border-color: #f59e0b; | border-color: #f59e0b; | ||
| 60行目: | 60行目: | ||
} | } | ||
. | .list a:hover::before { | ||
color: #f59e0b; | color: #f59e0b; | ||
transform: translateX(4px); | transform: translateX(4px); | ||
} | } | ||
. | .list a:active { | ||
transform: translateX(2px); | transform: translateX(2px); | ||
} | } | ||
| 72行目: | 72行目: | ||
ダークモード | ダークモード | ||
======================================== */ | ======================================== */ | ||
.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .list a { | ||
border-color: #3a3a3a; | border-color: #3a3a3a; | ||
background: #2a2a2a; | background: #2a2a2a; | ||
| 78行目: | 78行目: | ||
} | } | ||
.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .list a::before { | ||
color: #6b7280; | color: #6b7280; | ||
} | } | ||
.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .list a:hover { | ||
background: #374151; | background: #374151; | ||
border-color: #f59e0b; | border-color: #f59e0b; | ||
} | } | ||
.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .list a:hover::before { | ||
color: #fbbf24; | color: #fbbf24; | ||
} | } | ||
| 95行目: | 95行目: | ||
======================================== */ | ======================================== */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .list a { | ||
border-color: #3a3a3a; | border-color: #3a3a3a; | ||
background: #2a2a2a; | background: #2a2a2a; | ||
| 101行目: | 101行目: | ||
} | } | ||
.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .list a::before { | ||
color: #6b7280; | color: #6b7280; | ||
} | } | ||
.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .list a:hover { | ||
background: #374151; | background: #374151; | ||
border-color: #f59e0b; | border-color: #f59e0b; | ||
} | } | ||
.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .list a:hover::before { | ||
color: #fbbf24; | color: #fbbf24; | ||
} | } | ||
| 119行目: | 119行目: | ||
======================================== */ | ======================================== */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | .list ul { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
. | .list a { | ||
padding: 16px 18px; | padding: 16px 18px; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
} | } | ||
2026年1月23日 (金) 12:31時点における版
/* ========================================
ジャンル一覧
======================================== */
.list {
margin: 2em 0;
}
.list a,
.list a:link,
.list a:visited,
.list a:hover,
.list a:active {
color: inherit;
text-decoration: none;
}
.list ul {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
.list li {
margin: 0;
}
.list a {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px;
border-radius: 12px;
border: 2px solid #e5e7eb;
background: #fff;
font-weight: 600;
font-size: 15px;
transition: all 0.2s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}
.list a::before {
content: '›';
position: absolute;
right: 20px;
font-size: 24px;
color: #9ca3af;
transition: all 0.2s ease;
}
.list a:hover {
background: #fef3c7;
border-color: #f59e0b;
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.list a:hover::before {
color: #f59e0b;
transform: translateX(4px);
}
.list a:active {
transform: translateX(2px);
}
/* ========================================
ダークモード
======================================== */
html.skin-theme-clientpref-night .list a {
border-color: #3a3a3a;
background: #2a2a2a;
color: #e5e7eb;
}
html.skin-theme-clientpref-night .list a::before {
color: #6b7280;
}
html.skin-theme-clientpref-night .list a:hover {
background: #374151;
border-color: #f59e0b;
}
html.skin-theme-clientpref-night .list a:hover::before {
color: #fbbf24;
}
/* ========================================
ダークモード(自動)
======================================== */
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .list a {
border-color: #3a3a3a;
background: #2a2a2a;
color: #e5e7eb;
}
html.skin-theme-clientpref-os .list a::before {
color: #6b7280;
}
html.skin-theme-clientpref-os .list a:hover {
background: #374151;
border-color: #f59e0b;
}
html.skin-theme-clientpref-os .list a:hover::before {
color: #fbbf24;
}
}
/* ========================================
レスポンシブ
======================================== */
@media (max-width: 768px) {
.list ul {
grid-template-columns: 1fr;
}
.list a {
padding: 16px 18px;
font-size: 14px;
}
}