メニューを切り替える
個人設定メニューを切り替える
個人メニューを切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

「テンプレート:ジャンル一覧/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行目:
   ジャンル一覧
   ジャンル一覧
======================================== */
======================================== */
.genre-list {
.list {
   margin: 2em 0;
   margin: 2em 0;
}
}


.genre-list a,
.list a,
.genre-list a:link,
.list a:link,
.genre-list a:visited,
.list a:visited,
.genre-list a:hover,
.list a:hover,
.genre-list a:active {
.list a:active {
   color: inherit;
   color: inherit;
   text-decoration: none;
   text-decoration: none;
}
}


.genre-list ul {
.list ul {
   list-style: none;
   list-style: none;
   padding: 0;
   padding: 0;
24行目: 24行目:
}
}


.genre-list li {
.list li {
   margin: 0;
   margin: 0;
}
}


.genre-list a {
.list a {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
44行目: 44行目:
}
}


.genre-list a::before {
.list a::before {
   content: '›';
   content: '›';
   position: absolute;
   position: absolute;
53行目: 53行目:
}
}


.genre-list a:hover {
.list a:hover {
   background: #fef3c7;
   background: #fef3c7;
   border-color: #f59e0b;
   border-color: #f59e0b;
60行目: 60行目:
}
}


.genre-list a:hover::before {
.list a:hover::before {
   color: #f59e0b;
   color: #f59e0b;
   transform: translateX(4px);
   transform: translateX(4px);
}
}


.genre-list a:active {
.list a:active {
   transform: translateX(2px);
   transform: translateX(2px);
}
}
72行目: 72行目:
   ダークモード
   ダークモード
======================================== */
======================================== */
.skin-theme-clientpref-night .genre-list a {
html.skin-theme-clientpref-night .list a {
   border-color: #3a3a3a;
   border-color: #3a3a3a;
   background: #2a2a2a;
   background: #2a2a2a;
78行目: 78行目:
}
}


.skin-theme-clientpref-night .genre-list a::before {
html.skin-theme-clientpref-night .list a::before {
   color: #6b7280;
   color: #6b7280;
}
}


.skin-theme-clientpref-night .genre-list a:hover {
html.skin-theme-clientpref-night .list a:hover {
   background: #374151;
   background: #374151;
   border-color: #f59e0b;
   border-color: #f59e0b;
}
}


.skin-theme-clientpref-night .genre-list a:hover::before {
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 .genre-list a {
   html.skin-theme-clientpref-os .list a {
     border-color: #3a3a3a;
     border-color: #3a3a3a;
     background: #2a2a2a;
     background: #2a2a2a;
101行目: 101行目:
   }
   }
    
    
   .skin-theme-clientpref-os .genre-list a::before {
   html.skin-theme-clientpref-os .list a::before {
     color: #6b7280;
     color: #6b7280;
   }
   }
    
    
   .skin-theme-clientpref-os .genre-list a:hover {
   html.skin-theme-clientpref-os .list a:hover {
     background: #374151;
     background: #374151;
     border-color: #f59e0b;
     border-color: #f59e0b;
   }
   }
    
    
   .skin-theme-clientpref-os .genre-list a:hover::before {
   html.skin-theme-clientpref-os .list a:hover::before {
     color: #fbbf24;
     color: #fbbf24;
   }
   }
119行目: 119行目:
======================================== */
======================================== */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .genre-list ul {
   .list ul {
     grid-template-columns: 1fr;
     grid-template-columns: 1fr;
   }
   }
    
    
   .genre-list a {
   .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;
  }
}