打开/关闭搜索
搜索
打开/关闭菜单
1
40
1
326
末世录
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
末世录
角色
国家
教派
我想嗦牛子
嗦塞尔达牛子
嗦萨图恩牛子
嗦奥利奥头牛子
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ /* USERNAME */ $( function() { if ( mw.user.isNamed() ) { $( '.insertusername' ).text( mw.user.getName() ); } else { $( '.insertusername' ).text( '访客' ); } } ); /* INFOBOX */ $('.infobox').hide(); /* 首字下沉 */ .dropCap::first-letter { float: left; font-size: 3.2em !important; line-height: 0.85em !important; margin-right: 0.1em !important; font-weight: bold; color: #000; } /* --- Bookshelf Component Styles --- */ /* 组件的顶级包裹器,用于限定所有样式的范围 */ .bookshelf-component-wrapper { /* 可以在这里添加组件外围的边距等 */ } /* 书架容器 */ .bookshelf-component-wrapper .bookshelf { display: flex; align-items: flex-end; gap: 10px; width: 80vw; max-width: 900px; padding: 20px 20px 15px 20px; /* 底部增加padding以容纳滑动条(即使隐藏) */ border-bottom: 10px solid #8d6e63; box-sizing: border-box; overflow-x: auto; -ms-overflow-style: none; /* IE/Edge */ scrollbar-width: none; /* Firefox */ } .bookshelf-component-wrapper .bookshelf::-webkit-scrollbar { display: none; /* Chrome/Safari */ } /* 单本书的容器 */ .bookshelf-component-wrapper .book { position: relative; display: block; color: white; z-index: 1; transition: transform 0.3s ease-out, z-index 0s 0.3s; cursor: pointer; } .bookshelf-component-wrapper .book:hover { transform: translateY(-15px); z-index: 10; transition: transform 0.3s ease-out, z-index 0s; } /* 书脊 */ .bookshelf-component-wrapper .book-spine { width: 45px; height: 240px; background-color: #a1887f; /* 默认颜色 */ border-radius: 4px 4px 0 0; box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; text-orientation: mixed; font-size: 16px; font-weight: 600; letter-spacing: 1px; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); transition: background-color 0.3s ease; } /* 弹出的信息卡片 */ .bookshelf-component-wrapper .book-info { position: absolute; left: 100%; bottom: 20px; width: 250px; background-color: #fff; color: #424242; padding: 20px; border-radius: 0 6px 6px 0; box-shadow: 5px 5px 20px rgba(0,0,0,0.1); border: 1px solid #eee; box-sizing: border-box; opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s; } .bookshelf-component-wrapper .book:hover .book-info { opacity: 1; transform: translateX(0); } .bookshelf-component-wrapper .book-info h3 { margin: 0 0 10px 0; font-size: 1.1em; color: #37474f; } .bookshelf-component-wrapper .book-info p { margin: 0; font-size: 0.9em; line-height: 1.6; } .bookshelf-component-wrapper .book:nth-child(1) .book-spine { background-color: #78909c; } .bookshelf-component-wrapper .book:nth-child(2) .book-spine { background-color: #8d6e63; } .bookshelf-component-wrapper .book:nth-child(3) .book-spine { background-color: #66bb6a; } .bookshelf-component-wrapper .book:nth-child(4) .book-spine { background-color: #5c6bc0; } .bookshelf-component-wrapper .book:nth-child(5) .book-spine { background-color: #f06292; } .bookshelf-component-wrapper .book:nth-child(6) .book-spine { background-color: #FFFAFA; } .bookshelf-component-wrapper .book:nth-child(7) .book-spine { background-color: #FFE4C4; } .bookshelf-component-wrapper .book:nth-child(8) .book-spine { background-color: #6495ED; } .bookshelf-component-wrapper .book:nth-child(9) .book-spine { background-color: #B0E0E6; } .bookshelf-component-wrapper .book:nth-child(10) .book-spine { background-color: #00FF7F; } .bookshelf-component-wrapper .book:nth-child(11) .book-spine { background-color: #DEB887; } .bookshelf-component-wrapper .book:nth-child(12) .book-spine { background-color: #FF6347; } .bookshelf-component-wrapper .book:nth-child(13) .book-spine { background-color: #66bb6a; } .bookshelf-component-wrapper .book:nth-child(14) .book-spine { background-color: #5c6bc0; } .bookshelf-component-wrapper .book:nth-child(15) .book-spine { background-color: #f06292; } /* 移动端适配 */ @media (max-width: 600px) { .bookshelf-component-wrapper .bookshelf { width: 100%; padding-left: 15px; padding-right: 15px; justify-content: flex-start; gap: 8px; } .bookshelf-component-wrapper .book-spine { width: 40px; height: 200px; font-size: 14px; } .bookshelf-component-wrapper .book:hover { transform: translateY(-10px); } .bookshelf-component-wrapper .book-info { width: 200px; bottom: 10px; padding: 15px; } .bookshelf-component-wrapper .book-info h3 { font-size: 1em; } .bookshelf-component-wrapper .book-info p { font-size: 0.85em; } } .bookshelf-component-wrapper a:link { color: white; } .bookshelf-component-wrapper a:visited { color: lightgray; } .bookshelf-component-wrapper a:hover { color: #ffffff; text-decoration: underline; } .bookshelf-component-wrapper a.new { color: red; } .JieYueDengJi a:link { color: white; } .JieYueDengJi a:visited { color: white; } .JieYueDengJi a:hover { color: #ffffff; /* 鼠标悬停时颜色 */ }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面