「MediaWiki:Citizen.css」の版間の差分
MediaWikiインターフェイスページ
その他の操作
編集の要約なし |
編集の要約なし |
||
| (同じ利用者による、間の20版が非表示) | |||
| 1行目: | 1行目: | ||
/* | /* University eSports Wiki - Home Page Specific Styles */ | ||
/* | /* Scope everything under .uw-home to avoid affecting other pages */ | ||
.page-Home .mw- | /* Home page full width */ | ||
body.page-Home .mw-body { | |||
max-width: none !important; | |||
padding-left: 0 !important; | |||
padding-right: 0 !important; | |||
} | } | ||
.page-Home .mw- | body.page-Home .mw-content-container { | ||
max-width: none !important; | |||
} | |||
/* ============================================================ | |||
Star Citizen Wiki Style Refinement | |||
============================================================ */ | |||
:root { | |||
--uw-color-cyan: #00f2ff; | |||
--uw-color-cyan-dim: rgba(0, 242, 255, 0.15); | |||
--uw-glass-bg: rgba(255, 255, 255, 0.03); | |||
--uw-glass-border: rgba(255, 255, 255, 0.08); | |||
} | } | ||
/* ===== | /* Home Page Base */ | ||
.uw-home { | |||
font-family: 'Inter', -apple-system, sans-serif; | |||
color: #eee; | |||
} | |||
/* Hero Section (Centered) */ | |||
.uw-home-hero { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
justify-content: center; | |||
text-align: center; | |||
padding: 100px 20px 80px; | |||
background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%); | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
.uw-home-hero-welcome { | |||
font-size: 0.9rem; | |||
color: var(--uw-color-cyan); | |||
margin-bottom: 1rem; | |||
letter-spacing: 2px; | |||
text-transform: uppercase; | |||
} | |||
.uw-home-hero h1 { | |||
font-size: clamp(3rem, 10vw, 5rem); | |||
font-weight: 900; | |||
margin: 0 0 1rem; | |||
letter-spacing: -1px; | |||
color: #fff; | |||
border: none; | |||
} | |||
.uw-home-hero-subtitle { | |||
font-size: 1.1rem; | |||
color: #888; | |||
max-width: 600px; | |||
margin-bottom: 3rem; | |||
line-height: 1.6; | |||
} | |||
/* Search Bar (Extension:InputBox compatible) */ | |||
.uw-search-container { | |||
width: 100%; | |||
max-width: 600px; | |||
margin: 0 auto; | |||
position: relative; | |||
} | |||
/* Target InputBox's generated elements */ | |||
.uw-search-container .mw-inputbox-centered { | |||
border: none !important; | |||
background: none !important; | |||
} | |||
.uw-search-container input.mw-ui-input { | |||
width: 100% !important; | |||
padding: 1.1rem 1.5rem 1.1rem 3.5rem !important; | |||
background: rgba(255, 255, 255, 0.05) !important; | |||
border: 1px solid var(--uw-glass-border) !important; | |||
border-radius: 50px !important; | |||
color: #fff !important; | |||
font-size: 1rem !important; | |||
transition: all 0.3s ease !important; | |||
backdrop-filter: blur(10px) !important; | |||
box-sizing: border-box !important; | |||
} | |||
.uw-search-container input.mw-ui-input:focus { | |||
border-color: var(--uw-color-cyan) !important; | |||
background: rgba(255, 255, 255, 0.08) !important; | |||
box-shadow: 0 0 20px rgba(0, 242, 255, 0.2) !important; | |||
} | |||
/* Hide InputBox's default Go button if possible, or style it */ | |||
.uw-search-container .mw-ui-button { | |||
display: none !important; | |||
} | |||
.uw-search-container::before { | |||
content: '🔍'; | |||
position: absolute; | |||
left: 1.5rem; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
color: #888; | |||
font-size: 1.1rem; | |||
z-index: 2; | |||
pointer-events: none; | |||
} | |||
.uw-search-container::after { | |||
content: '/'; | |||
position: absolute; | |||
right: 1.5rem; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
color: #444; | |||
font-weight: 300; | |||
pointer-events: none; | |||
} | |||
/* Action Cards Grid (Horizontal Style) */ | |||
.uw-action-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); | |||
gap: 0.6rem; | |||
max-width: 1400px; | |||
margin: -40px auto 4rem; | |||
padding: 0 2rem; | |||
position: relative; | |||
z-index: 2; | |||
} | |||
.uw-action-card { | |||
height: 80px; | |||
background-size: cover; | |||
background-position: center; | |||
border-radius: 6px; | |||
overflow: hidden; | |||
position: relative; | |||
text-decoration: none !important; | |||
transition: transform 0.2s ease, filter 0.2s ease; | |||
border: 1px solid rgba(255, 255, 255, 0.1); | |||
} | |||
.uw-action-card:hover { | |||
transform: translateY(-2px); | |||
filter: brightness(1.2); | |||
} | |||
.uw-action-card::before { | |||
content: ''; | |||
position: absolute; | |||
inset: 0; | |||
background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)); | |||
} | |||
.uw-action-card-title { | |||
position: absolute; | |||
left: 1rem; | |||
bottom: 0.8rem; | |||
color: #fff; | |||
font-weight: 700; | |||
font-size: 0.95rem; | |||
z-index: 1; | |||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); | |||
} | |||
/* Feature & Stats Section */ | |||
.uw-body-grid { | |||
display: grid; | |||
grid-template-columns: 1.5fr 1fr; | |||
gap: 1.5rem; | |||
max-width: 1400px; | |||
margin: 0 auto; | |||
padding: 0 2rem 6rem; | |||
} | |||
.uw-glass-box { | |||
background: var(--uw-glass-bg); | |||
border: 1px solid var(--uw-glass-border); | |||
border-radius: 12px; | |||
padding: 2rem; | |||
} | |||
.uw-section-title { | |||
font-size: 0.8rem; | |||
font-weight: 700; | |||
text-transform: uppercase; | |||
letter-spacing: 1px; | |||
color: var(--uw-color-cyan); | |||
margin-bottom: 2rem; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
} | |||
/* Stats Styling */ | |||
.uw-stat-grid { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 1rem; | |||
margin-top: 1rem; | |||
} | |||
.uw-stat-item { | |||
text-align: center; | |||
} | |||
.uw-stat-value { | |||
font-size: 2rem; | |||
font-weight: 800; | |||
color: #fff; | |||
} | |||
.uw-stat-label { | |||
font-size: 0.75rem; | |||
color: #666; | |||
text-transform: uppercase; | |||
} | |||
/* Button & Links */ | |||
.uw-discord-btn { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 0.8rem; | |||
background: #5865F2; | |||
color: #fff !important; | |||
padding: 1rem; | |||
border-radius: 8px; | |||
font-weight: 700; | |||
text-decoration: none !important; | |||
margin-bottom: 1rem; | |||
} | |||
.uw-patreon-btn { | |||
background: #FF424D; | |||
/* same as discord style... */ | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 0.8rem; | |||
color: #fff !important; | |||
padding: 1rem; | |||
border-radius: 8px; | |||
font-weight: 700; | |||
text-decoration: none !important; | |||
} | |||
/* Responsive */ | |||
@media (max-width: 1024px) { | |||
.uw-body-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* タイトル上部のタブも消す */ | |||
body.page-Home .page-actions { | |||
display: none; | |||
} | |||
/* 余白調整(上が詰まるので) */ | |||
body.page-Home .mw-body { | |||
margin-top: 0; | |||
padding-top: 0; | |||
} | |||
body.page-Home .mw-body { | |||
max-width: 100% !important; | |||
} | |||
/* ===== Homeページのタイトルを非表示 ===== */ | |||
body.page-Home .mw-first-heading { | |||
display: none; | |||
} | |||
body.page-Home .mw-indicators { | |||
display: none; | |||
} | |||
/* サブタイトル(提供: ○○)を非表示 */ | |||
#siteSub { | |||
display: none; | |||
} | } | ||
.page-Home . | /* ===== サイドバー/ナビゲーションの表示を保証 ===== */ | ||
body.page-Home .citizen-drawer, | |||
body.page-Home #citizen-section-nav, | |||
body.page-Home .citizen-sidebar { | |||
display: block !important; | |||
} | } | ||
.page-Home . | /* スクロール時に出現する固定ヘッダー(スティッキーヘッダー)を非表示 */ | ||
body.page-Home .citizen-header--sticky, | |||
body.page-Home .citizen-sticky-header { | |||
display: none !important; | |||
} | } | ||
.page-Home . | /* 最終更新、著作権情報、アイコンなどを非表示 */ | ||
body.page-Home #footer-info, | |||
body.page-Home #footer-info-lastmod, | |||
body.page-Home #footer-info-copyright, | |||
body.page-Home #footer-icons, | |||
body.page-Home .citizen-footer__info { | |||
display: none !important; | |||
} | } | ||
2026年2月15日 (日) 23:47時点における最新版
/* University eSports Wiki - Home Page Specific Styles */
/* Scope everything under .uw-home to avoid affecting other pages */
/* Home page full width */
body.page-Home .mw-body {
max-width: none !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
body.page-Home .mw-content-container {
max-width: none !important;
}
/* ============================================================
Star Citizen Wiki Style Refinement
============================================================ */
:root {
--uw-color-cyan: #00f2ff;
--uw-color-cyan-dim: rgba(0, 242, 255, 0.15);
--uw-glass-bg: rgba(255, 255, 255, 0.03);
--uw-glass-border: rgba(255, 255, 255, 0.08);
}
/* Home Page Base */
.uw-home {
font-family: 'Inter', -apple-system, sans-serif;
color: #eee;
}
/* Hero Section (Centered) */
.uw-home-hero {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 100px 20px 80px;
background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
position: relative;
overflow: hidden;
}
.uw-home-hero-welcome {
font-size: 0.9rem;
color: var(--uw-color-cyan);
margin-bottom: 1rem;
letter-spacing: 2px;
text-transform: uppercase;
}
.uw-home-hero h1 {
font-size: clamp(3rem, 10vw, 5rem);
font-weight: 900;
margin: 0 0 1rem;
letter-spacing: -1px;
color: #fff;
border: none;
}
.uw-home-hero-subtitle {
font-size: 1.1rem;
color: #888;
max-width: 600px;
margin-bottom: 3rem;
line-height: 1.6;
}
/* Search Bar (Extension:InputBox compatible) */
.uw-search-container {
width: 100%;
max-width: 600px;
margin: 0 auto;
position: relative;
}
/* Target InputBox's generated elements */
.uw-search-container .mw-inputbox-centered {
border: none !important;
background: none !important;
}
.uw-search-container input.mw-ui-input {
width: 100% !important;
padding: 1.1rem 1.5rem 1.1rem 3.5rem !important;
background: rgba(255, 255, 255, 0.05) !important;
border: 1px solid var(--uw-glass-border) !important;
border-radius: 50px !important;
color: #fff !important;
font-size: 1rem !important;
transition: all 0.3s ease !important;
backdrop-filter: blur(10px) !important;
box-sizing: border-box !important;
}
.uw-search-container input.mw-ui-input:focus {
border-color: var(--uw-color-cyan) !important;
background: rgba(255, 255, 255, 0.08) !important;
box-shadow: 0 0 20px rgba(0, 242, 255, 0.2) !important;
}
/* Hide InputBox's default Go button if possible, or style it */
.uw-search-container .mw-ui-button {
display: none !important;
}
.uw-search-container::before {
content: '🔍';
position: absolute;
left: 1.5rem;
top: 50%;
transform: translateY(-50%);
color: #888;
font-size: 1.1rem;
z-index: 2;
pointer-events: none;
}
.uw-search-container::after {
content: '/';
position: absolute;
right: 1.5rem;
top: 50%;
transform: translateY(-50%);
color: #444;
font-weight: 300;
pointer-events: none;
}
/* Action Cards Grid (Horizontal Style) */
.uw-action-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.6rem;
max-width: 1400px;
margin: -40px auto 4rem;
padding: 0 2rem;
position: relative;
z-index: 2;
}
.uw-action-card {
height: 80px;
background-size: cover;
background-position: center;
border-radius: 6px;
overflow: hidden;
position: relative;
text-decoration: none !important;
transition: transform 0.2s ease, filter 0.2s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.uw-action-card:hover {
transform: translateY(-2px);
filter: brightness(1.2);
}
.uw-action-card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}
.uw-action-card-title {
position: absolute;
left: 1rem;
bottom: 0.8rem;
color: #fff;
font-weight: 700;
font-size: 0.95rem;
z-index: 1;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* Feature & Stats Section */
.uw-body-grid {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 1.5rem;
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem 6rem;
}
.uw-glass-box {
background: var(--uw-glass-bg);
border: 1px solid var(--uw-glass-border);
border-radius: 12px;
padding: 2rem;
}
.uw-section-title {
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--uw-color-cyan);
margin-bottom: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
/* Stats Styling */
.uw-stat-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-top: 1rem;
}
.uw-stat-item {
text-align: center;
}
.uw-stat-value {
font-size: 2rem;
font-weight: 800;
color: #fff;
}
.uw-stat-label {
font-size: 0.75rem;
color: #666;
text-transform: uppercase;
}
/* Button & Links */
.uw-discord-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.8rem;
background: #5865F2;
color: #fff !important;
padding: 1rem;
border-radius: 8px;
font-weight: 700;
text-decoration: none !important;
margin-bottom: 1rem;
}
.uw-patreon-btn {
background: #FF424D;
/* same as discord style... */
display: flex;
align-items: center;
justify-content: center;
gap: 0.8rem;
color: #fff !important;
padding: 1rem;
border-radius: 8px;
font-weight: 700;
text-decoration: none !important;
}
/* Responsive */
@media (max-width: 1024px) {
.uw-body-grid {
grid-template-columns: 1fr;
}
}
/* タイトル上部のタブも消す */
body.page-Home .page-actions {
display: none;
}
/* 余白調整(上が詰まるので) */
body.page-Home .mw-body {
margin-top: 0;
padding-top: 0;
}
body.page-Home .mw-body {
max-width: 100% !important;
}
/* ===== Homeページのタイトルを非表示 ===== */
body.page-Home .mw-first-heading {
display: none;
}
body.page-Home .mw-indicators {
display: none;
}
/* サブタイトル(提供: ○○)を非表示 */
#siteSub {
display: none;
}
/* ===== サイドバー/ナビゲーションの表示を保証 ===== */
body.page-Home .citizen-drawer,
body.page-Home #citizen-section-nav,
body.page-Home .citizen-sidebar {
display: block !important;
}
/* スクロール時に出現する固定ヘッダー(スティッキーヘッダー)を非表示 */
body.page-Home .citizen-header--sticky,
body.page-Home .citizen-sticky-header {
display: none !important;
}
/* 最終更新、著作権情報、アイコンなどを非表示 */
body.page-Home #footer-info,
body.page-Home #footer-info-lastmod,
body.page-Home #footer-info-copyright,
body.page-Home #footer-icons,
body.page-Home .citizen-footer__info {
display: none !important;
}