Site Notice
hello, world
Difference between revisions of "MediaWiki:Css-ngnlwiki.cn/blog.css"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
(No difference)
|
Revision as of 23:17, 2 April 2020
/**
*『Wjghj Project Static』
* This _CascadingStyleSheets_ code is from https://common.wjghj.cn
* ☆CC BY-NC-ND
*
* NgnlTheme - Designed by zh.ngnl-team
**/
/** 字体 **/
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
/** 选区样式 **/
::selection {
background: rgba(222, 25, 99, 0.7);
color: #ddd
}
a::selection {
color: #fff;
text-shadow: 0 0 3px #fff;
}
/** 背景 **/
body {
background: #06030c url(https://www.ngnlwiki.cn/wp-content/uploads/2019/12/WikiBackground1.png) 50% -100px / 100vw auto no-repeat fixed !important;
}
.content {
background-color: transparent !important;
padding-top: 20px;
padding-bottom: 24px;
}
.content .post,
.content .page {
background-color: rgba(78,16,38,0.6);
border: 1px solid rgb(78,16,38);
}
body.page .mythemes-page-header h1 {
font-size: 2.8em;
}
.content .page {
padding: 30px;
}
.mythemes-page-header h1,
.post-title,
.post-title a,
.content p,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content ul {
color: #ffffff !important;
}
aside.mythemes-sidebar div.widget {
background: linear-gradient(to right,rgba(000,000,000,0.6),rgba(000,000,000,0.6));
border-radius: 8px;
border: 3px solid #3530ae;
padding: 3px;
width: 100%;
}
aside.mythemes-sidebar div.widget .widget-title {
font-weight: bold;
font-size: 20px;
background: linear-gradient(to right,rgba(000,000,000,0.5), rgba(000,000,000,0.5)),url(https://www.ngnlwiki.cn/wp-content/uploads/2019/12/NgnlTheme.png) center / cover no-repeat fixed !important;
}
/** 评论区 **/
.comments-area {
background: linear-gradient(to right,rgba(000,000,000,0.6),rgba(000,000,000,0.6)),url(https://www.ngnlwiki.cn/wp-content/uploads/2019/12/PreTheme.png) center / cover no-repeat fixed;
border-radius: 8px;
border: 3px solid #3530ae;
width: 100%;
margin: 20px 0 0 0;
padding: 12px;
}
.comments-area p {
margin: 2px 0 2px 0;
}
/** 首页样式 **/
.home .container {
width: 90%;
}
.valign-cell-wrapper {
background: rgba(78,16,38,0.6) !important;
}
.valign-cell .row {
margin: 0;
}
.home .mythemes-blog-identity,
.home .parallax {
display: none;
}
.home .header-headline {
font-weight: 700;
color: #fff !important;
}
.home .header-headline:before {
content: "";
display: block;
background: url(https://www.ngnlwiki.cn/wp-content/uploads/2019/12/6289E2BB-68D0-43C3-887A-2B197CDFC478.png) top left / 340px 80px;
height: 80px;
width: 340px;
margin: 0 auto;
}
.home .header-description {
color: #fff !important;
}
.page h2 {
font-family: "Poiret One";
font-size: 40px;
text-transform: uppercase;
}
.home .row {
width: 100%;
position: relative;
}
.home > .content > .container > .row {
margin: 0 auto 0 !important;
}
.home .project-block .col {
width: 44%;
padding: 0;
margin: 18px 3%;
}
.home .project-block .col .card-image img {
margin-top: -1px;
}
.home .project-block .card > p,
.home .project-block .card > p + div + span {
padding: 15px;
}
.home .wp-block-search {
display: block;
width: 80%;
margin: 0 auto 0;
background: #ffffff;
padding: 10px 20px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.home .wp-block-search__label {
font-size: 1.5rem;
color: #424242;
display: block;
}
.home .wp-block-search__input {
max-width: calc( 100% - 97px );
}
.home .wp-block-search__button {
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
border-radius: 2px;
float: right;
}
.wp-block-latest-posts.alignleft,
.alignleft {
margin-right: 0 !important;
}
.home .wp-block-latest-posts li {
list-style: none;
position: relative;
margin: 1rem .57rem 1rem .57rem;
background-color: #fff;
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
-moz-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
-webkit-transition: -webkit-box-shadow .25s;
-moz-transition: -moz-box-shadow .25s;
-o-transition: -o-box-shadow .25s;
transition: -webkit-box-shadow .25s;
transition: box-shadow .25s;
border-radius: 2px;
padding: 24px;
}
.home .wp-block-latest-posts li > a {
font-size: 24px;
font-weight: 300;
}
.home .wp-block-latest-posts__post-excerpt {
color: #000;
}
.home .wp-block-latest-posts__post-excerpt > a {
display: block;
}
/* 首页移动端优化 */
@media only screen and (max-width: 601px) {
.home .container {
width: 95%;
}
.home h2 {
display: block !important;
clear: both;
}
.home .card-image {
height: 200px !important;
}
.home .wp-block-latest-posts {
margin-right: 0;
}
.home .wp-block-latest-posts li {
width: 100% !important;
margin: .5rem 1rem;
}
.home .wp-block-search {
width: 100% !important;
}
.home .wp-block-search__input {
display: block !important;
width: 100% !important;
max-width: 100% !important;
}
.home .wp-block-search + h2 {
margin-top: 75px
}
}
/** 页眉 **/
.nav-wrapper.container {
position: relative;
}
.mythemes-blog-logo .custom-logo {
max-height: 60px !important;
width: auto;
}
div.nav-wrapper div.not-collapsed-wrapper {
padding: 0 !important;
}
body:not(.home) div.nav-wrapper div.not-collapsed-wrapper {
position: absolute;
right: 0;
bottom: -45px;
}
div.nav-wrapper div.not-collapsed-wrapper li {
margin: 0 !important;
box-shadow: none !important;
}
.mythemes-topper {
background: #4e1026 !important;
}
.mythemes-page-header {
background-color: rgba(78,16,38,0.6);
}
.mythemes-blog-identity {
padding: 20px 0 !important;
display: flex;
border-bottom: none !important;
}
.mythemes-blog-title {
margin: auto 1em;
}
.mythemes-blog-description {
margin: auto 0 !important;
}
.mythemes-topper a,
.mythemes-page-header nav a,
.mythemes-page-header nav li,
.mythemes-page-header nav li:before {
color: #ffffff !important;
text-shadow: none;
}
.nav-wrapper .sub-menu a,
.nav-wrapper .side-nav a {
color: #252525 !important;
}
/** 页脚 **/
.mythemes-footer-sidebars {
background: #002a32;
}
.mythemes-footer-sidebars .mythemes-dark-mask {
background: #13282c;
}
#searchform button {
background: red !important;
}
/** 评论 **/
.mythemes-comments {
background-color: rgba(78,16,38,0.6) !important;
border: 1px solid rgb(78,16,38);
}
.comment cite {
color: rgb(246, 80, 120) !important;
}
.comment-quote {
color: #ffffff !important;
}
/** 博客列表 **/
.category .post-content,
.blog .post-content,
.author .post-content {
max-height: 300px;
overflow-y: auto
}
.author .author-details span,
.category .found-details span {
color: #ffffff !important;
}
article.sticky div.post-content {
background-color: unset;
}
article.sticky .post-title:after {
content: "file_upload置顶";
font-family: "Material Icons";
font-size: 14px;
border: 1px solid white;
padding: 2px 4px;
border-radius: 2px;
}
@media screen and (min-width:1000px) {
.author .author-details,
.category .found-details {
position: absolute;
right: 20px;
}
}
/* 光标样式 Powered by: 机智的小鱼君 */
article div.meta ul.post-categories li a,
article div.meta ul.post-categories li a:hover {
background: rgb(246, 80, 120);
}
body {
cursor: url("https://vignette.wikia.nocookie.net/no-game-no-life/images/0/00/Cursor-default.png/revision/latest?cb=20190616130235&format=original&path-prefix=zh"), auto !important;
color: #eaeaea;
}
a:link,
a:visited,
a:hover
a:active,
button,
input[type=submit],
input[type=checkbox],
input[type=radio],
.footnote_plugin_link,
.footnote_plugin_tooltip_text {
cursor: url("https://vignette.wikia.nocookie.net/no-game-no-life/images/5/57/Cursor-pointer.png/revision/latest?cb=20190616130404&format=original&path-prefix=zh"), pointer !important;
}
textarea,
input {
cursor: url("https://vignette.wikia.nocookie.net/no-game-no-life/images/0/0f/Cursor-text.png/revision/latest?cb=20190616132438&format=original&path-prefix=zh"), text !important;
}
/* 链接样式 */
article a,
aside.mythemes-sidebar div.widget a,
.footnote_plugin_link span,
.footnote_plugin_tooltip_text {
color: rgb(246, 80, 120);
text-shadow: 0 -15px 2.5px transparent, 0 15px 2.5px transparent;
text-decoration: none;
transition: all .08s linear 0s;
}
.post-content a:hover,
aside.mythemes-sidebar div.widget a:hover,
.footnote_plugin_link span:hover {
text-shadow: 0 0 2.5px #fb3061, 0 0 2.5px #fb3061;
color: #e53935 !important;
text-decoration: none;
}
footer aside a,
footer aside a abbr {
color: #00d6d6 !important;
}
/** 引用段落 **/
.wp-block-quote {
clear: both;
border: 1px solid #704051;
margin: 4px 0px;
background: rgba(78, 16, 38, 0.7);
border-radius: 5px;
}
.wp-block-quote:before {
content: "“";
color: #704051;
font-size: 36px;
font-family: 'Times New Roman',serif;
font-weight: bold;
text-align: left;
padding: 10px;
}
.wp-block-quote cite,
.wp-block-quote p {
color: #ffffff;
}
.wp-block-quote p {
font-style: normal !important;
font-size: 18px !important;
}
/** 表格 **/
.wide-table-outer {
max-width: 100%;
overflow-x: auto;
}
/* 页脚注释 */
.footnote-reference-container tr td {
background-color: rgba(78,16,38,0.6);
border: 1px solid rgb(78,16,38);
color: #ffffff;
}
/** 卡片 **/
.card .card-content *,
.card .card-reveal *:not(a) {
color: #252525 !important;
}
.wide-table {
min-width: 1000px;
}
/** 移动优化 **/
@media screen and (max-width:800px) {
.row .col {
width: 100% !important;
}
.home .header-headline::before {
background: none;
height: auto;
width: auto;
}
}
/** 预格式文本 **/
code {
padding: 2px 4px;
}
pre code {
background: none;
padding: 0;
margin: 0;
}
.prettyprint ol,
.prettyprint li {
margin: 0 !important;
}