「テンプレート:ジャンル一覧/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 {…」 |
編集の要約なし |
||
| (同じ利用者による、間の1版が非表示) | |||
| 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; | ||
position: relative; | |||
} | } | ||
. | .list a { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 12px; | |||
padding: 18px 20px; | padding: 18px 50px 18px 20px; | ||
border-radius: 12px; | border-radius: 12px; | ||
border: 2px solid #e5e7eb; | border: 2px solid #e5e7eb; | ||
| 44行目: | 45行目: | ||
} | } | ||
. | /* アイコン表示エリア */ | ||
.list a::before { | |||
content: attr(data-icon); | |||
font-size: 28px; | |||
line-height: 1; | |||
flex-shrink: 0; | |||
transition: transform 0.2s ease; | |||
} | |||
/* 右矢印 */ | |||
.list a::after { | |||
content: '›'; | content: '›'; | ||
position: absolute; | position: absolute; | ||
| 53行目: | 64行目: | ||
} | } | ||
. | .list a:hover { | ||
background: #fef3c7; | background: #fef3c7; | ||
border-color: #f59e0b; | border-color: #f59e0b; | ||
| 60行目: | 71行目: | ||
} | } | ||
. | .list a:hover::before { | ||
transform: scale(1.1); | |||
} | |||
.list a:hover::after { | |||
color: #f59e0b; | color: #f59e0b; | ||
transform: translateX(4px); | transform: translateX(4px); | ||
} | } | ||
. | .list a:active { | ||
transform: translateX(2px); | transform: translateX(2px); | ||
} | } | ||
| 72行目: | 87行目: | ||
ダークモード | ダークモード | ||
======================================== */ | ======================================== */ | ||
.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .list a { | ||
border-color: #3a3a3a; | border-color: #3a3a3a; | ||
background: #2a2a2a; | background: #2a2a2a; | ||
| 78行目: | 93行目: | ||
} | } | ||
.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .list a::after { | ||
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::after { | ||
color: #fbbf24; | color: #fbbf24; | ||
} | } | ||
| 95行目: | 110行目: | ||
======================================== */ | ======================================== */ | ||
@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行目: | 116行目: | ||
} | } | ||
.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .list a::after { | ||
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::after { | ||
color: #fbbf24; | color: #fbbf24; | ||
} | } | ||
| 119行目: | 134行目: | ||
======================================== */ | ======================================== */ | ||
@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 50px 16px 18px; | ||
font-size: 14px; | font-size: 14px; | ||
} | |||
.list a::before { | |||
font-size: 24px; | |||
} | } | ||
} | } | ||
2026年1月23日 (金) 12:36時点における最新版
/* ========================================
ジャンル一覧
======================================== */
.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;
position: relative;
}
.list a {
display: flex;
align-items: center;
gap: 12px;
padding: 18px 50px 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: attr(data-icon);
font-size: 28px;
line-height: 1;
flex-shrink: 0;
transition: transform 0.2s ease;
}
/* 右矢印 */
.list a::after {
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 {
transform: scale(1.1);
}
.list a:hover::after {
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::after {
color: #6b7280;
}
html.skin-theme-clientpref-night .list a:hover {
background: #374151;
border-color: #f59e0b;
}
html.skin-theme-clientpref-night .list a:hover::after {
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::after {
color: #6b7280;
}
html.skin-theme-clientpref-os .list a:hover {
background: #374151;
border-color: #f59e0b;
}
html.skin-theme-clientpref-os .list a:hover::after {
color: #fbbf24;
}
}
/* ========================================
レスポンシブ
======================================== */
@media (max-width: 768px) {
.list ul {
grid-template-columns: 1fr;
}
.list a {
padding: 16px 50px 16px 18px;
font-size: 14px;
}
.list a::before {
font-size: 24px;
}
}