「MediaWiki:Common.css」の版間の差分

提供: トラwiki
トラwikiモダンUIスタイルの実装
スタイルを元に戻す
タグ: 置換
 
(同じ利用者による、間の2版が非表示)
1行目: 1行目:
/* ==========================================================================
/* CSSなし */
  トラwiki (tora22.com) - Custom Theme & Modern UI Styles
  ========================================================================== */
 
:root {
  --tw-primary: #2563eb;
  --tw-primary-dark: #1d4ed8;
  --tw-primary-light: #3b82f6;
  --tw-primary-subtle: #eff6ff;
  --tw-accent-gold: #f59e0b;
  --tw-accent-green: #10b981;
  --tw-text-main: #1e293b;
  --tw-text-muted: #64748b;
  --tw-bg-card: #ffffff;
  --tw-bg-soft: #f8fafc;
  --tw-border: #e2e8f0;
  --tw-border-hover: #cbd5e1;
  --tw-radius-sm: 8px;
  --tw-radius-md: 12px;
  --tw-radius-lg: 16px;
  --tw-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --tw-shadow-md: 0 4px 14px -2px rgba(37, 99, 235, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --tw-shadow-lg: 0 10px 25px -3px rgba(37, 99, 235, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}
 
body.skin-timeless {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--tw-text-main);
  background-color: #f1f5f9;
}
 
#mw-header-container {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
 
#mw-header a, #mw-header .mw-wiki-title {
  color: #ffffff !important;
  font-weight: 700;
}
 
#mw-content-container {
  background: transparent;
}
 
#content.mw-body {
  border-radius: var(--tw-radius-md);
  box-shadow: var(--tw-shadow-sm);
  border: 1px solid var(--tw-border);
  padding: 24px 32px;
  background: #ffffff;
}
 
/* Hero Section */
.tw-hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #38bdf8 100%);
  border-radius: var(--tw-radius-lg);
  padding: 32px 30px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: var(--tw-shadow-lg);
  position: relative;
  overflow: hidden;
}
 
.tw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
 
.tw-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff !important;
  border: none !important;
  padding: 0 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
 
.tw-hero p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 18px 0;
  color: #e0f2fe;
}
 
.tw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
 
.tw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--tw-primary-dark) !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--tw-radius-md);
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}
 
.tw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  background: #f8fafc;
}
 
.tw-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #ffffff !important;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--tw-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none !important;
  transition: all 0.2s ease;
}
 
.tw-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
 
/* Quick Article Creator Box */
.tw-create-box {
  background: linear-gradient(to right, #ffffff, #f8fafc);
  border: 2px dashed var(--tw-primary-light);
  border-radius: var(--tw-radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--tw-shadow-sm);
}
 
.tw-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
 
.tw-create-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tw-primary-dark);
}
 
.tw-create-box .createbox {
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
 
.tw-create-box .createboxInput {
  flex: 1;
  min-width: 240px;
  padding: 10px 16px !important;
  border: 1.5px solid var(--tw-border) !important;
  border-radius: var(--tw-radius-sm) !important;
  font-size: 0.95rem !important;
  outline: none !important;
  background: #ffffff !important;
}
 
.tw-create-box .createboxInput:focus {
  border-color: var(--tw-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
 
.tw-create-box .createboxButton {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark)) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: var(--tw-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
}
 
.tw-create-box .createboxButton:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}
 
.tw-create-hint {
  font-size: 0.85rem;
  color: var(--tw-text-muted);
  margin-top: 8px;
}
 
/* Dashboard Grid */
.tw-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
 
.tw-col-2 {
  grid-column: span 2;
}
 
@media (max-width: 900px) {
  .tw-col-2 {
    grid-column: span 1;
  }
}
 
/* Card */
.tw-card {
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-md);
  box-shadow: var(--tw-shadow-sm);
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
 
.tw-card:hover {
  box-shadow: var(--tw-shadow-md);
  border-color: var(--tw-border-hover);
}
 
.tw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tw-primary-subtle);
}
 
.tw-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tw-text-main);
  margin: 0;
}
 
.tw-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--tw-primary-subtle);
  color: var(--tw-primary);
  text-decoration: none !important;
}
 
.tw-card-badge:hover {
  background: var(--tw-primary);
  color: #ffffff !important;
}
 
/* Ranking List */
.tw-ranking-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.tw-ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--tw-bg-soft);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-sm);
  transition: all 0.2s ease;
  text-decoration: none !important;
}
 
.tw-ranking-item:hover {
  background: #ffffff;
  border-color: var(--tw-primary-light);
  transform: translateX(4px);
  box-shadow: var(--tw-shadow-sm);
}
 
.tw-rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
 
.tw-rank-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #ffffff; }
.tw-rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #ffffff; }
.tw-rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #ffffff; }
.tw-rank-other { background: #e2e8f0; color: #64748b; }
 
.tw-rank-content {
  flex: 1;
  min-width: 0;
}
 
.tw-rank-title {
  font-weight: 700;
  color: var(--tw-primary-dark);
  font-size: 0.95rem;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.tw-rank-desc {
  font-size: 0.8rem;
  color: var(--tw-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
/* Recent Updates */
.tw-updates-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.tw-update-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--tw-border);
  transition: background 0.15s ease;
}
 
.tw-update-item:last-child {
  border-bottom: none;
}
 
.tw-update-item:hover {
  background: var(--tw-primary-subtle);
  border-radius: var(--tw-radius-sm);
}
 
.tw-update-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
 
.tw-update-title a {
  font-weight: 700;
  color: var(--tw-primary-dark) !important;
  text-decoration: none;
  font-size: 0.92rem;
}
 
.tw-update-title a:hover {
  text-decoration: underline;
}
 
.tw-update-meta {
  font-size: 0.78rem;
  color: var(--tw-text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
 
.tw-update-user {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}
 
.tw-update-time {
  font-size: 0.78rem;
  color: var(--tw-text-muted);
  white-space: nowrap;
}
 
.tw-live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--tw-accent-green);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-green 2s infinite;
}
 
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
 
/* Category Grid */
.tw-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
 
.tw-cat-card {
  background: var(--tw-bg-soft);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-md);
  padding: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.tw-cat-card:hover {
  border-color: var(--tw-primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-md);
}
 
.tw-cat-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}
 
.tw-cat-name {
  font-weight: 700;
  color: var(--tw-primary-dark);
  font-size: 0.95rem;
}
 
.tw-cat-desc {
  font-size: 0.78rem;
  color: var(--tw-text-muted);
  line-height: 1.35;
}
 
/* Server IP & Official Links */
.tw-server-ip-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--tw-radius-md);
  padding: 16px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
 
.tw-server-ip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
 
.tw-server-ip-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
.tw-server-ip-code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8;
}
 
.tw-copy-btn {
  background: #2563eb;
  color: #ffffff !important;
  border: none;
  padding: 8px 16px;
  border-radius: var(--tw-radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
 
.tw-copy-btn:hover {
  background: #3b82f6;
  transform: scale(1.02);
}
 
.tw-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
 
.tw-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--tw-bg-soft);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--tw-text-main) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
 
.tw-link-btn:hover {
  background: var(--tw-primary-subtle);
  border-color: var(--tw-primary-light);
  color: var(--tw-primary-dark) !important;
}
 
/* Sidebar action button */
.tw-sidebar-create-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}
 
.tw-sidebar-create-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
}

2026年8月26日 (水) 15:55時点における最新版

/* CSSなし */