匿名
未登录
创建账号
登录
Mindustry中文wiki
搜索
查看“MediaWiki:Timeless.css”的源代码
来自Mindustry中文wiki
命名空间
系统消息
讨论
更多
更多
页面操作
阅读
查看源代码
历史
←
MediaWiki:Timeless.css
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
管理员
、editor
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* MediaWiki:Timeless.css - Mindustry green header + MkDocs-ish sidebars */ body.skin-timeless { --mdtBrand: #00af89; --mdtBrand2: #00cfa0; --mdtHeaderFg: #ffffff; --mdtText: rgba(0, 0, 0, 0.87); --mdtTextMut: rgba(0, 0, 0, 0.55); --mdtHover: rgba(0, 0, 0, 0.06); --mdtSidebarW: 16rem; --mdtShadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.08), 0 0 0.05rem rgba(0, 0, 0, 0.12); } /* ===== Header (Mindustry green) ===== */ body.skin-timeless #mw-header-container { background: var(--mdtBrand) !important; color: var(--mdtHeaderFg); box-shadow: var(--mdtShadow); border-bottom: 1px solid rgba(0, 0, 0, 0.12); } body.skin-timeless #mw-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; } body.skin-timeless #mw-header .visualClear { display: none; } /* Site title (left) */ body.skin-timeless #p-logo-text { order: 1; flex: 0 0 auto; min-width: 0; max-width: none; position: static !important; text-align: left !important; } body.skin-timeless #p-logo-text #p-banner { display: flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; } /* Hide sidebar logo; show a small icon next to title */ body.skin-timeless #mw-site-navigation #p-logo { display: none !important; } body.skin-timeless #p-logo-text #p-banner::before { content: ''; width: 32px; height: 32px; background: url(/resources/assets/logo.jpg) center / cover no-repeat; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); } /* Search (right, smaller, dark like external wiki) */ body.skin-timeless #p-search { order: 2; margin-left: auto; flex: 0 1 13rem; min-width: 11rem; max-width: 22vw; } body.skin-timeless #p-search h3 { display: none; } body.skin-timeless #p-search form { margin: 0; } body.skin-timeless #mw-header-container #simpleSearch { display: flex; align-items: stretch; height: 2.2rem; width: 100%; background: rgba(0, 0, 0, 0.28) !important; border: 1px solid rgba(255, 255, 255, 0.14) !important; border-radius: 0.35rem !important; box-shadow: none !important; overflow: hidden; } body.skin-timeless #mw-header-container #simpleSearch:focus-within { background: rgba(0, 0, 0, 0.36) !important; border-color: rgba(255, 255, 255, 0.25) !important; } body.skin-timeless #mw-header-container #searchInput-container { flex: 1 1 auto; } body.skin-timeless #mw-header-container #searchInput { height: 100% !important; width: 100% !important; background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--mdtHeaderFg) !important; padding: 0.25rem 0.55rem !important; } body.skin-timeless #mw-header-container #searchInput::placeholder { color: rgba(255, 255, 255, 0.75) !important; } /* Hide both submit buttons (press Enter to search) */ body.skin-timeless #mw-header-container #mw-searchButton, body.skin-timeless #mw-header-container #searchButton { display: none !important; } /* Account area on far right */ body.skin-timeless #user-tools { order: 3; flex: 0 0 auto; white-space: nowrap; } body.skin-timeless #mw-header a, body.skin-timeless #mw-header a:visited { color: var(--mdtHeaderFg); } body.skin-timeless #mw-header .dropdown { color: rgba(0, 0, 0, 0.87); } body.skin-timeless #mw-header .dropdown a, body.skin-timeless #mw-header .dropdown a:visited { color: #0645ad; } /* Header color bar -> solid Mindustry green */ body.skin-timeless #mw-header-hack { background: var(--mdtBrand) !important; } body.skin-timeless #mw-header-hack .color-left, body.skin-timeless #mw-header-hack .color-middle, body.skin-timeless #mw-header-hack .color-right { background: var(--mdtBrand) !important; } /* ===== Sidebars (left + right consistent) ===== */ body.skin-timeless #mw-site-navigation, body.skin-timeless #mw-related-navigation { width: var(--mdtSidebarW) !important; flex: 0 0 var(--mdtSidebarW) !important; } body.skin-timeless #mw-site-navigation .sidebar-chunk, body.skin-timeless #mw-related-navigation .sidebar-chunk { background: transparent; border: 0; box-shadow: none; padding: 0.25rem 0; margin: 0 0 1rem; } body.skin-timeless #mw-site-navigation .sidebar-chunk > h2, body.skin-timeless #mw-related-navigation .sidebar-chunk > h2 { margin: 0.25rem 0.75rem 0.5rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--mdtTextMut); } body.skin-timeless #mw-site-navigation .mw-portlet-body ul, body.skin-timeless #mw-related-navigation .mw-portlet-body ul { list-style: none; margin: 0; padding: 0; } body.skin-timeless #mw-site-navigation .mw-portlet-body a, body.skin-timeless #mw-related-navigation .mw-portlet-body a { display: block; padding: 0.38rem 0.85rem; border-radius: 10px; text-decoration: none; color: var(--mdtText); box-shadow: inset 3px 0 0 transparent; } body.skin-timeless #mw-site-navigation .mw-portlet-body a:hover, body.skin-timeless #mw-related-navigation .mw-portlet-body a:hover { background: var(--mdtHover); box-shadow: inset 3px 0 0 var(--mdtBrand2); } /* Desktop: sticky and scrollable sidebars */ @media (min-width: 1000px) { body.skin-timeless #mw-site-navigation, body.skin-timeless #mw-related-navigation { position: sticky; top: 4rem; align-self: flex-start; max-height: calc(100vh - 4rem); overflow-y: auto; } } /* Thin scrollbar like MkDocs */ body.skin-timeless #mw-site-navigation, body.skin-timeless #mw-related-navigation { scrollbar-width: thin; scrollbar-color: rgba(0, 207, 160, 0.85) transparent; } body.skin-timeless #mw-site-navigation::-webkit-scrollbar, body.skin-timeless #mw-related-navigation::-webkit-scrollbar { width: 6px; } body.skin-timeless #mw-site-navigation::-webkit-scrollbar-track, body.skin-timeless #mw-related-navigation::-webkit-scrollbar-track { background: transparent; } body.skin-timeless #mw-site-navigation::-webkit-scrollbar-thumb, body.skin-timeless #mw-related-navigation::-webkit-scrollbar-thumb { background: rgba(0, 207, 160, 0.85); border-radius: 999px; } /* ===== Collapsible navigation (left) ===== */ body.skin-timeless #mw-site-navigation #p-navigation li.mdtNavGroup { display: grid; grid-template-columns: 1fr 2rem; align-items: center; min-width: 0; } body.skin-timeless #mw-site-navigation #p-navigation li.mdtNavGroup > a { min-width: 0; } body.skin-timeless #mw-site-navigation #p-navigation .mdtNavToggle { width: 2rem; height: 2rem; border: 0; background: transparent; cursor: pointer; color: var(--mdtTextMut); border-radius: 10px; } body.skin-timeless #mw-site-navigation #p-navigation .mdtNavToggle:hover { background: var(--mdtHover); } body.skin-timeless #mw-site-navigation #p-navigation .mdtNavToggle::before { content: '\25B8'; display: block; font-size: 18px; line-height: 1; transition: transform 0.15s ease; } body.skin-timeless #mw-site-navigation #p-navigation li.mdtNavOpen > .mdtNavToggle::before { transform: rotate(90deg); } body.skin-timeless #mw-site-navigation #p-navigation .mdtNavSublist { grid-column: 1 / -1; list-style: none; margin: 0.15rem 0 0.4rem; padding: 0 0 0 0.85rem; border-left: 1px solid rgba(0, 0, 0, 0.08); display: none; } body.skin-timeless #mw-site-navigation #p-navigation li.mdtNavOpen > .mdtNavSublist { display: block; } body.skin-timeless #mw-site-navigation #p-navigation .mdtNavSublist a { font-size: 0.92em; padding: 0.32rem 0.85rem; } body.skin-timeless #mw-site-navigation #p-navigation a.mdtNavActive { color: var(--mdtBrand) !important; background: rgba(0, 175, 137, 0.12) !important; box-shadow: inset 3px 0 0 var(--mdtBrand) !important; } /* Page title underline -> green */ body.skin-timeless .mw-body h1.firstHeading { border-bottom-color: var(--mdtBrand) !important; } /* Small screens: search wraps */ @media (max-width: 720px) { body.skin-timeless #mw-header { flex-wrap: wrap; } body.skin-timeless #p-search { flex: 1 1 100%; max-width: none; margin-left: 0; } } /* ===== Homepage (mdtHome): rounded + Mindustry green accent ===== */ body.skin-timeless .mdtHome { --mdtHomePanel: #242e2d; --mdtHomeCard: #2d4742; --mdtHomeCardHover: #345650; --mdtHomeBorder: rgba(255, 255, 255, 0.12); --mdtHomeText: rgba(255, 255, 255, 0.92); --mdtHomeMut: rgba(255, 255, 255, 0.68); /* Use site theme vars when available */ --mdtHomeAccent: var(--mdtBrand2, #00cfa0); --mdtHomeAccent2: var(--mdtBrand, #00af89); --mdtHomeCardTint: rgba(0, 207, 160, 0.14); --mdtHomeCardTintHover: rgba(0, 207, 160, 0.20); --mdtHomeRadiusPanel: 22px; --mdtHomeRadiusCard: 18px; } /* Panels */ body.skin-timeless .mdtHome .mdtPanel { background: var(--mdtHomePanel) !important; border: 1px solid var(--mdtHomeBorder); border-top: 3px solid rgba(0, 207, 160, 0.35); border-radius: var(--mdtHomeRadiusPanel); color: var(--mdtHomeText); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.22); overflow: hidden; } /* Hero */ body.skin-timeless .mdtHome .mdtHomeHero { padding: 1rem 1.1rem; display: grid; grid-template-columns: 4.75rem 1fr; gap: 1rem; align-items: center; background-image: none !important; } body.skin-timeless .mdtHome .mdtHomeHeroLogo { width: 72px; height: 72px; border-radius: 14px; background: url(/resources/assets/ui/alphaaaa.png) center / contain no-repeat; image-rendering: pixelated; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(0, 207, 160, 0.14); } body.skin-timeless .mdtHome .mdtHomeHeroTitle { color: var(--mdtHomeText); font-weight: 850; font-size: 1.45rem; line-height: 1.1; margin: 0; } body.skin-timeless .mdtHome .mdtHomeHeroSubtitle { color: var(--mdtHomeMut); margin-top: 0.35rem; } body.skin-timeless .mdtHome .mdtHomeHeroLinks { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; } body.skin-timeless .mdtHome .mdtHomeHeroLinks a { display: inline-block; padding: 0.44rem 0.9rem; border-radius: 999px; border: 1px solid rgba(0, 207, 160, 0.28); background: rgba(0, 207, 160, 0.14); color: var(--mdtHomeText) !important; text-decoration: none !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); } body.skin-timeless .mdtHome .mdtHomeHeroLinks a:hover { border-color: rgba(0, 207, 160, 0.65); background: rgba(0, 207, 160, 0.18); } /* Sections */ body.skin-timeless .mdtHome .mdtHomeSection { padding: 1rem 1.1rem; margin-top: 1rem; } body.skin-timeless .mdtHome .mdtHomeSection h2 { margin-top: 0; border-bottom: 1px solid rgba(0, 207, 160, 0.18) !important; color: var(--mdtHomeText); } body.skin-timeless .mdtHome .mdtHomeSection a { color: var(--mdtHomeAccent); } body.skin-timeless .mdtHome .mdtHomeSection a:visited { color: var(--mdtHomeAccent2); } /* Card grid */ body.skin-timeless .mdtHome .mdtHomeGrid { margin-top: 0.85rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; } /* Cards: style the wiki-generated <a> (use [[Page|...]] in wikitext) */ body.skin-timeless .mdtHome .mdtCard > a { position: relative; display: grid; gap: 0.35rem; padding: 1.05rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--mdtHomeRadiusCard); background: linear-gradient(180deg, var(--mdtHomeCardTint), rgba(0, 0, 0, 0) 68%), linear-gradient(90deg, rgba(0, 207, 160, 0.06), rgba(0, 0, 0, 0) 55%), var(--mdtHomeCard) !important; background-color: var(--mdtHomeCard) !important; color: var(--mdtHomeText) !important; text-decoration: none !important; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20); transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease; } body.skin-timeless .mdtHome .mdtCard > a::before { content: ''; position: absolute; left: 0; top: 0.85rem; bottom: 0.85rem; width: 3px; border-radius: 999px; background: linear-gradient( 180deg, rgba(0, 207, 160, 0.85), rgba(0, 175, 137, 0.18) ); opacity: 0.18; pointer-events: none; } body.skin-timeless .mdtHome .mdtCard > a:visited { color: var(--mdtHomeText) !important; } body.skin-timeless .mdtHome .mdtCard > a:hover { transform: translateY(-2px); border-color: rgba(0, 207, 160, 0.55); background: linear-gradient(180deg, var(--mdtHomeCardTintHover), rgba(0, 0, 0, 0) 68%), linear-gradient(90deg, rgba(0, 207, 160, 0.10), rgba(0, 0, 0, 0) 55%), var(--mdtHomeCardHover) !important; background-color: var(--mdtHomeCardHover) !important; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26), 0 0 0 4px rgba(0, 207, 160, 0.12); } body.skin-timeless .mdtHome .mdtCard > a:hover::before { opacity: 0.55; } body.skin-timeless .mdtHome .mdtCard > a:focus-visible { outline: 3px solid rgba(0, 207, 160, 0.35); outline-offset: 3px; } body.skin-timeless .mdtHome .mdtCardTitle { display: block; font-weight: 850; font-size: 1.08rem; line-height: 1.1; letter-spacing: 0.01em; } body.skin-timeless .mdtHome .mdtCardDesc { display: block; color: var(--mdtHomeMut); font-size: 0.93rem; } body.skin-timeless .mdtHome .mdtCard > a:hover .mdtCardTitle { color: rgba(0, 207, 160, 0.95); } @media (max-width: 720px) { body.skin-timeless .mdtHome .mdtHomeHero { grid-template-columns: 1fr; justify-items: start; } } /* 可选:防止站点标题换行导致顶部栏变高、搜索下移 */ body.skin-timeless #p-logo-text { max-width: 42vw; } body.skin-timeless #p-logo-text #p-banner { max-width: 42vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } @media (max-width: 720px) { body.skin-timeless #p-logo-text, body.skin-timeless #p-logo-text #p-banner { max-width: none; overflow: visible; text-overflow: clip; } } /* ===== Homepage (mdtHome): rounded + Mindustry green accent ===== */ body.skin-timeless .mdtHome { --mdtHomePanel: #242e2d; --mdtHomeCard: #2f5a52; --mdtHomeCardHover: #35665d; --mdtHomeBorder: rgba(255, 255, 255, 0.12); --mdtHomeText: rgba(255, 255, 255, 0.92); --mdtHomeMut: rgba(255, 255, 255, 0.68); /* Use site theme vars when available */ --mdtHomeAccent: var(--mdtBrand2, #00cfa0); --mdtHomeAccent2: var(--mdtBrand, #00af89); --mdtHomeCardTint: rgba(0, 207, 160, 0.22); --mdtHomeCardTintHover: rgba(0, 207, 160, 0.30); --mdtHomeRadiusPanel: 22px; --mdtHomeRadiusCard: 18px; } /* Panels */ body.skin-timeless .mdtHome .mdtPanel { background: var(--mdtHomePanel) !important; border: 1px solid var(--mdtHomeBorder); border-top: 3px solid rgba(0, 207, 160, 0.35); border-radius: var(--mdtHomeRadiusPanel); color: var(--mdtHomeText); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.22); overflow: hidden; } /* Hero */ body.skin-timeless .mdtHome .mdtHomeHero { padding: 1rem 1.1rem; display: grid; grid-template-columns: 4.75rem 1fr; gap: 1rem; align-items: center; background-image: none !important; } body.skin-timeless .mdtHome .mdtHomeHeroLogo { width: 72px; height: 72px; border-radius: 14px; background: url(/resources/assets/ui/alphaaaa.png) center / contain no-repeat; image-rendering: pixelated; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(0, 207, 160, 0.14); } body.skin-timeless .mdtHome .mdtHomeHeroTitle { color: var(--mdtHomeText); font-weight: 850; font-size: 1.45rem; line-height: 1.1; margin: 0; } body.skin-timeless .mdtHome .mdtHomeHeroSubtitle { color: var(--mdtHomeMut); margin-top: 0.35rem; } body.skin-timeless .mdtHome .mdtHomeHeroLinks { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; } body.skin-timeless .mdtHome .mdtHomeHeroLinks a { display: inline-block; padding: 0.44rem 0.9rem; border-radius: 999px; border: 1px solid rgba(0, 207, 160, 0.28); background: rgba(0, 207, 160, 0.14); color: var(--mdtHomeText) !important; text-decoration: none !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); } body.skin-timeless .mdtHome .mdtHomeHeroLinks a:hover { border-color: rgba(0, 207, 160, 0.65); background: rgba(0, 207, 160, 0.18); } /* Sections */ body.skin-timeless .mdtHome .mdtHomeSection { padding: 1rem 1.1rem; margin-top: 1rem; } body.skin-timeless .mdtHome .mdtHomeSection h2 { margin-top: 0; border-bottom: 1px solid rgba(0, 207, 160, 0.18) !important; color: var(--mdtHomeText); } body.skin-timeless .mdtHome .mdtHomeSection a { color: var(--mdtHomeAccent); } body.skin-timeless .mdtHome .mdtHomeSection a:visited { color: var(--mdtHomeAccent2); } /* Card grid */ body.skin-timeless .mdtHome .mdtHomeGrid { margin-top: 0.85rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; } /* Cards: style the wiki-generated <a> (use [[Page|...]] in wikitext) */ body.skin-timeless .mdtHome .mdtCard a { position: relative; display: grid; gap: 0.35rem; padding: 1.05rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--mdtHomeRadiusCard); background: linear-gradient(0deg, rgba(0, 207, 160, 0.12), rgba(0, 207, 160, 0.12)), linear-gradient(180deg, var(--mdtHomeCardTint), rgba(0, 0, 0, 0) 68%), linear-gradient(90deg, rgba(0, 207, 160, 0.06), rgba(0, 0, 0, 0) 55%), var(--mdtHomeCard) !important; background-color: var(--mdtHomeCard) !important; color: var(--mdtHomeText) !important; text-decoration: none !important; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20); transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease; } body.skin-timeless .mdtHome .mdtCard a::before { content: ''; position: absolute; left: 0; top: 0.85rem; bottom: 0.85rem; width: 3px; border-radius: 999px; background: linear-gradient( 180deg, rgba(0, 207, 160, 0.85), rgba(0, 175, 137, 0.18) ); opacity: 0.18; pointer-events: none; } body.skin-timeless .mdtHome .mdtCard a:visited { color: var(--mdtHomeText) !important; } body.skin-timeless .mdtHome .mdtCard a:hover { transform: translateY(-2px); border-color: rgba(0, 207, 160, 0.55); background: linear-gradient(0deg, rgba(0, 207, 160, 0.16), rgba(0, 207, 160, 0.16)), linear-gradient(180deg, var(--mdtHomeCardTintHover), rgba(0, 0, 0, 0) 68%), linear-gradient(90deg, rgba(0, 207, 160, 0.10), rgba(0, 0, 0, 0) 55%), var(--mdtHomeCardHover) !important; background-color: var(--mdtHomeCardHover) !important; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26), 0 0 0 4px rgba(0, 207, 160, 0.12); } body.skin-timeless .mdtHome .mdtCard a:hover::before { opacity: 0.55; } body.skin-timeless .mdtHome .mdtCard a:focus-visible { outline: 3px solid rgba(0, 207, 160, 0.35); outline-offset: 3px; } body.skin-timeless .mdtHome .mdtCardTitle { display: block; font-weight: 850; font-size: 1.08rem; line-height: 1.1; letter-spacing: 0.01em; } body.skin-timeless .mdtHome .mdtCardDesc { display: block; color: var(--mdtHomeMut); font-size: 0.93rem; } body.skin-timeless .mdtHome .mdtCard a:hover .mdtCardTitle { color: rgba(0, 207, 160, 0.95); } @media (max-width: 720px) { body.skin-timeless .mdtHome .mdtHomeHero { grid-template-columns: 1fr; justify-items: start; } } /* 中间正文栏做成白色卡片(适用于所有页面) */ body.skin-timeless #mw-content{ background: rgba(255, 255, 255, 0.92) !important; border: 1px solid rgba(0,0,0,0.08) !important; border-radius: 18px !important; box-shadow: 0 18px 44px rgba(0,0,0,0.12) !important; padding: 1.2rem 1.3rem !important; overflow: hidden; /* 让圆角真正生效 */ } /* 给中间栏留点“悬浮感”间距(可按喜好调小/删掉) */ body.skin-timeless #mw-content-container{ padding: 1rem 0.75rem !important; } * 首页卡片按钮(快速入口/资源网站)背景色 */ body.skin-timeless .mdtHome{ /* 卡片底色:改成你想要的颜色 */ --mdtHomeCard: #ffffff; --mdtHomeCardHover: #ffffff; } body.skin-timeless .mdtHome .mdtCard > a{ background: #ffffff !important; } /* 首页白底后,把文字改回黑色 */ body.skin-timeless .mdtHome{ --mdtHomeText: rgba(0,0,0,0.88); --mdtHomeMut: rgba(0,0,0,0.55); } body.skin-timeless .mdtHome{ --mdtHomeCard: rgba(255,255,255,0.88); --mdtHomeCardHover: rgba(255,255,255,0.95); --mdtHomeCardTint: rgba(0,0,0,0); --mdtHomeCardTintHover: rgba(0,0,0,0.02); } /* Mindustry 字体:只覆盖英文/数字/常用符号 */ @font-face { font-family: "MindustryUI"; src: url("/resources/assets/fronts/mindustry-ui.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; } @font-face { font-family: "MindustryMono"; src: url("/resources/assets/fronts/mindustry-mono.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; } /* 全站正文:英文/数字走 MindustryUI,中文自动回退到微软雅黑等 */ body.skin-timeless, body.skin-timeless .mw-body, body.skin-timeless .mw-body-content { font-family: "MindustryUI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif !important; } /* 左上角站点标题字体 */ body.skin-timeless #p-logo-text #p-banner, body.skin-timeless #p-logo-text #p-banner * { font-family: "MindustryUI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif !important; } /* 首页模块标题的字体 */ body.skin-timeless .mdtHome .mdtHomeSection h2, body.skin-timeless .mdtHome .mdtHomeSection h2 .mw-headline { font-family: "MindustryUI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif !important; font-weight: 800; /* 可按喜好改 600/700/800 */ } /* 图标+文字:整齐网格,手机不乱行 */ body.skin-timeless .mdtIconGrid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.75rem 1rem; margin: 0.75rem 0; } body.skin-timeless .mdtIconGridItem > a{ display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 14px; background: rgba(255,255,255,0.90); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 10px 22px rgba(0,0,0,0.08); text-decoration: none !important; color: rgba(0,0,0,0.88) !important; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease; } body.skin-timeless .mdtIconGridItem > a:hover{ background: rgba(0,175,137,0.08); border-color: rgba(0,175,137,0.30); transform: translateY(-1px); box-shadow: 0 14px 26px rgba(0,0,0,0.10); } body.skin-timeless .mdtIconGridItem img{ width: 26px; height: 26px; flex: 0 0 auto; image-rendering: pixelated; } /* 默认:单行省略,保持整齐 */ body.skin-timeless .mdtIconGridText{ flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 手机:两列;再小就一列;文字允许两行但不乱 */ @media (max-width: 720px){ body.skin-timeless .mdtIconGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } body.skin-timeless .mdtIconGridText{ white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } } @media (max-width: 420px){ body.skin-timeless .mdtIconGrid{ grid-template-columns: 1fr; } } /* ===== Icon Grid: aligned + responsive ===== */ body.skin-timeless .mdtIconGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.75rem 1rem; margin: 0.75rem 0; } body.skin-timeless .mdtIconGridItem { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 14px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(0, 0, 0, 0.06); color: var(--mdtText, rgba(0, 0, 0, 0.87)); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08); transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease; } body.skin-timeless .mdtIconGridItem:hover { background: rgba(0, 175, 137, 0.08); border-color: rgba(0, 175, 137, 0.3); transform: translateY(-1px); box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1); } body.skin-timeless a.mdtIconGridItem, body.skin-timeless .mdtIconGridItem a { text-decoration: none !important; color: inherit !important; min-width: 0; } body.skin-timeless .mdtIconGridItem a:last-child { flex: 1 1 auto; } body.skin-timeless .mdtIconGridItem img { width: 18px; height: 18px; flex: 0 0 auto; image-rendering: pixelated; } body.skin-timeless .mdtIconGridText { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @media (max-width: 720px) { body.skin-timeless .mdtIconGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } body.skin-timeless .mdtIconGridText { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } } @media (max-width: 420px) { body.skin-timeless .mdtIconGrid { grid-template-columns: 1fr; } } /* 去掉首页卡片外层灰色框(只影响首页卡片) */ body.skin-timeless #mw-content-text .mdtHome .mdtHomeGrid .mdtCard{ background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; outline: 0 !important; } /* 让“== 地图 == / == Research ==”这类标题用同一字体 */ body.skin-timeless .mw-parser-output h2, body.skin-timeless .mw-parser-output h2 .mw-headline, body.skin-timeless .mw-parser-output h3, body.skin-timeless .mw-parser-output h3 .mw-headline { font-family: MindustryFont, sans-serif !important; font-weight: 800; } /* 如果你的页面用了两栏布局 <div class="mdtLayout"> ... */ body.skin-timeless .mw-parser-output .mdtLayout { /* 原来多半是 ... 240px; 这里调大/调小即可 */ grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); }
返回
MediaWiki:Timeless.css
。
导航
导航
塞普罗
-- 战役区块
-- 物品
-- 流体
-- 建筑
-- 单位
埃里克尔
-- 战役区块
-- 物品
-- 流体
-- 建筑
-- 单位
隐藏
-- 物品
-- 液体
-- 建筑
-- 地块介绍
其他
-- 状态效果
-- 天气
-- 星球
教程中心
编辑者
-- 编辑指导
-- 语法指南
-- 表格语法
最近更改
随机页面
MediaWiki帮助
wiki工具
wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志