匿名
未登录
中文(简体)
登录
Dhamma.cn
搜索
有觉性 以安住且中立的心 照见身心的实相
查看“︁MediaWiki:Common.css”︁的源代码
来自Dhamma.cn
命名空间
系统消息
讨论
更多
更多
页面操作
阅读
查看源代码
历史
刷新
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ /* 隐藏非登录用户的工具箱特定项目 */ body:not(.user-logged-in) #t-whatlinkshere, /* 链入页面 */ body:not(.user-logged-in) #t-recentchangeslinked, /* 相关更改 */ body:not(.user-logged-in) #t-permalink, /* 固定链接 */ body:not(.user-logged-in) #t-info, /* 页面信息 */ body:not(.user-logged-in) #t-log { /* 页面日志 */ display: none !important; } /* 这里放置的CSS将应用于所有皮肤 */ body.page-Main_Page li#ca-talk { display: none !important; } #ca-talk { display:none!important; } #ca-viewsource { display:none!important; } #ca-view { display:none!important; } /*#ca-move { display:none!important; }*/ #ca-delete { display:none!important; } #ca-history { display:none!important; } #ca-nstab-main { display:none!important; } ##ca-watch { display:none!important; } ##li#ca-edit { display: none; } ## 要只在用户按下F11时隐藏 左侧的导航栏 document.onkeydown = function( e ) { if( e == null ) e = event if( testKey( e, 122 ) ) { //F11 appendCSS('#column-content {margin: 0 0 .6em 0;} #content {margin: 2.8em 0 0 0;} #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {display:none;} #p-cactions {left: .1em;} #footer {display:none;}'); return false; } } function testKey( e, intKeyCode ) { if( window.createPopup ) return e.keyCode == intKeyCode else return e.which == intKeyCode } ##如何去除"关于此IP地址的讨论"按钮 #p-personal #pt-anonuserpage { display: none; } /*隐藏首页标题*/ /*.page-首页 #firstHeading{display:none;}*/ /*body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }*/ /*Back to top buttom*/ <div id="BackToTop" class="noprint" style="background-color:#DDEFDD; position:fixed; bottom:32px; left:2%; z-index:9999; padding:0; margin:0;"><span style="color:blue; font-size:8pt; font-face:verdana,sans-serif; border:0.2em outset #ceebf7; padding:0.1em; font-weight:bolder; -moz-border-radius:8px; "> [[#top| Back to the Top ]]</span></div> .catlinks { display: none; } body { font-size: 16px; line-height: 1.6em; } /* =================================================== 1. 视频容器:800px 居中(已移除破坏编辑器的 div[style*="width"]) =================================================== */ .embedvideo, .embedvideo-container, .mediaContainer, .thumbinner { width: 100% !important; max-width: 800px !important; /* 最大播放宽度 */ margin: 15px auto !important; float: none !important; } /* 2. 覆盖所有视频标签 */ .embedvideo video, .mediaContainer video, .thumbinner video, video.mw-file-element, video { width: 100% !important; height: auto !important; display: block !important; } /* =================================================== 2. MediaWiki EmbedVideo 插件:去除视频文字/标题遮罩 =================================================== */ .embedvideo-overlay, .embedvideo-consent-overlay, .embedvideo-header, .embedvideo-title, .embedvideo-service { display: none !important; } /* =================================================== 页脚全新重构:传统左文右图布局(手机/PC 端保持一致) =================================================== */ /* 1. 页脚主容器:网格布局(左侧自适应文字,右侧固定图标) */ #footer, .mw-footer { display: grid !important; grid-template-columns: 1fr auto !important; /* 左侧占据剩余空间,右侧匹配图标宽度 */ align-items: stretch !important; /* 左右两侧等高拉伸 */ gap: 10px 24px !important; /* 行间距与列间距 */ padding: 20px 24px !important; max-width: 1200px !important; margin: 0 auto !important; box-sizing: border-box !important; } /* --------------------------------------------------- 左侧:文字区块(靠左对齐) --------------------------------------------------- */ /* 第一层:编辑时间 & 访问次数(占左侧第 1 行) */ #footer-info { grid-column: 1 !important; grid-row: 1 !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 6px !important; text-align: left !important; list-style: none !important; margin: 0 !important; padding: 0 !important; } #footer-info li { font-size: 13px !important; line-height: 1.4 !important; color: rgba(255, 255, 255, 0.85) !important; margin: 0 !important; } /* 第二层:条款与声明链接(占左侧第 2 行) */ #footer-places { grid-column: 1 !important; grid-row: 2 !important; display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; gap: 16px !important; text-align: left !important; list-style: none !important; margin: 0 !important; padding: 0 !important; } #footer-places li { display: inline-block !important; margin: 0 !important; } #footer-places a { font-size: 14px !important; color: #ffffff !important; text-decoration: none !important; } #footer-places a:hover { text-decoration: underline !important; } /* --------------------------------------------------- 右侧:三个图标(垂直堆叠,高度与左侧整体对齐) --------------------------------------------------- */ #footer-icons, .footer-icons, #f-poweredbyico { grid-column: 2 !important; grid-row: 1 / span 2 !important; /* 👈 跨越左侧两行文字的整体高度 */ display: flex !important; flex-direction: column !important; /* 👈 垂直堆叠 */ justify-content: space-between !important; /* 👈 上下对齐,使图标总高度自动契合左侧文字高度 */ align-items: flex-end !important; margin: 0 !important; padding: 0 !important; list-style: none !important; } /* 剥离列表容器外边距 */ #footer-icons li, #footer-icons a, .footer-icons li, .footer-icons a, #f-poweredbyico li, #f-poweredbyico a { display: inline-flex !important; margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important; } /* 图标样式:保留圆角与纯白背景 */ #footer-icons img, #f-poweredbyico img, .footer-icons img, #footer-poweredbyico img { height: 26px !important; /* 单个图标的高度 */ padding: 3px 8px !important; /* 内边距 */ background-color: #ffffff !important; /* 纯白背景 */ border-radius: 6px !important; /* 保持 6px 圆角 */ box-sizing: border-box !important; object-fit: contain !important; display: block !important; }
返回
MediaWiki:Common.css
。
导航
导航
首页
随机页面
wiki工具
wiki工具
上传文件
特殊页面
获取短链接
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志