/*
由 SwitzerCandy 修改
*/
/* 字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Long+Cang&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC&display=swap');
:root {
/* 版头 */
--header-title: "Socialism Nationarea";
--header-subtitle: "全世界无产者,联合起来!";
/* 页面颜色配置:White Monochrome */
/* 这会影响:Darkblock 的文字颜色 */
--white-monochrome: 255, 255, 255;
/* 页面颜色配置:Swatch Background */
/* 这会影响:页面背景的颜色 */
--swatch-background: 249, 249, 225;
/* 版头主题色 */
--upbar: 255, 0, 0;
/* 主题色 */
--nationarea-monochrome: 237, 28, 36;
/* 第二主题色 */
--pale-gray-monochrome: 255, 255, 255;
/* 第三主题色 */
--light-gray-monochrome: 240, 15, 15;
/* 顶栏主题色 */
--gray-monochrome: 190, 0, 0;
/* 黑 */
--black-monochrome: 25, 20, 16;
--dark-block-color: 175, 0, 0;
/* 页面颜色配置:Swatch Menubg Dark Color */
/* 这会影响:顶栏块出现时的背景颜色 */
/* 特别致谢:Liurd */
--swatch-menubg-dark-color: 125, 0, 0;
/* 版头彩点 */
--medium-accent: 255, 0, 0;
--dark-accent: 255, 0, 0;
--pale-accent: 255, 0, 0;
--bright-accent: 255, 0, 0;
--swatch-topmenu-border-color: 190, 0, 0;
/* 链接颜色 */
--link-color: 255, 0, 0;
/* 死链接的颜色 */
--hover-link-color: 100, 100, 100;
/* 曾访问的连接颜色 */
--visited-link-color: 180, 0, 0;
--a-logo-image: url("http://nationarea.wikidot.com/local--files/theme:socialism-daylight/left2");
/* 版头 */
--background-gradient-distance: 0rem;
--gradient-header: linear-gradient(to top, rgba(var(--upbar)) 0%, rgba(var(--medium-accent), 0.90) 100%);
--diagonal-stripes: linear-gradient(transparent 0);
}
#side-bar .side-block div a img {
filter: grayscale(100%);
}
#container {
background-image: radial-gradient(circle, transparent 50%, transparent 0);
background-size: 0.25em 0.25em;
background-repeat: repeat;
background-attachment: fixed;
}
div#page-options-bottom-2>a,
div#page-options-bottom>a {
border-radius: 0em;
-moz-border-radius: 0em;
border: none;
}
div#page-options-bottom-2>a:active,
div#page-options-bottom-2>a:hover,
div#page-options-bottom>a:active,
div#page-options-bottom>a:hover {
border: none;
}
#header,
#top-bar {
background-attachment: scroll;
}
#header::before {
content: "";
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
background-size: auto 16rem;
background-position: center;
background-repeat: no-repeat;
opacity: 0.4;
background-image: var(--a-logo-image);
}
#header h1,
#header h1 a {
position: absolute;
top: 1rem;
margin: 0;
width: 100%;
display: flex;
justify-content: center;
z-index: 0;
}
#header h2,
#header h2 span,
#header h2 span::before {
position: absolute;
top: 2rem;
margin: 0;
width: 100%;
display: flex;
justify-content: center;
}
#header h1 a::before,
#header h2 span::before {
text-shadow: .063rem 0.1rem 0.1rem #0c0c0c;
}
a.newpage {
background: transparent;
text-decoration: none
}
a.newpage {
color: rgb(var(--newpage-color))
}
/* div块 */
blockquote {
box-shadow: 0.05rem 0.1rem 0.3rem rgba(0, 0, 0, .25);
}
/* 有特色的div块 */
.styled-quote {
background-color: rgb(var(--pale-gray-monochrome));
border-left: 0.5rem solid rgba(var(--nationarea-monochrome));
padding: 0.1rem 1rem;
margin: 0.5rem 0 0.5rem 0.25rem;
box-shadow: 0.05rem 0.1rem 0.3rem rgba(0, 0, 0, .25);
}
/* 暗色div块 */
.dark-styled-quote {
background-color: rgb(var(--dark-block-color));
border-left: 0.5rem solid rgba(var(--pale-gray-monochrome));
color: rgb(var(--white-monochrome));
padding: 0.1rem 1rem;
margin: 0.5rem 0 0.5rem 0.25rem;
box-shadow: 0.05rem 0.1rem 0.3rem rgba(0, 0, 0, .25);
}
.dark-styled-quote a {
color: rgb(var(--dark-block-color));
}
.lightblock {
background-color: rgb(var(--white-monochrome));
padding: 0.01rem 1rem;
margin: 0.5rem 0 0.5rem 0.25rem;
box-shadow: 0 0.2rem 0.3rem rgba(0, 0, 0, .25);
}
.darkblock {
background-color: rgb(var(--dark-block-color));
color: rgb(var(--white-monochrome));
padding: 0.01rem 1rem;
margin: 0.5rem 0 0.5rem 0.25rem;
box-shadow: 0 0.2rem 0.3rem rgba(0, 0, 0, .25);
}
.darkblock a {
color: rgb(var(--swatch-menubg-medium-color));
}
#side-bar {
direction: rtl;
left: 2rem;
padding-left: 0;
top: 0;
}
#side-bar div.side-block {
direction: ltr;
border-right: var(--sidebar-internal-border-thickness) solid rgba(var(--swatch-border-color), .08);
}
#side-bar div.side-block,
#side-bar div.side-block .heading {
margin-top: 0;
}
#side-bar div.menu-item.small a {
justify-content: center;
width: auto;
padding: 0 0.25em;
text-indent: 0;
white-space: nowrap;
}
#side-bar div.menu-item a {
justify-content: flex-start;
padding: 0 0 0 calc(var(--base-font-size)*.93333);
}
#side-bar div.menu-item,
#side-bar div.menu-item>p {
display: flex;
flex-shrink: 0;
flex-basis: 100%;
flex-flow: row wrap;
align-items: center;
justify-content: flex-start;
height: 1.5rem;
min-height: 1.5rem;
margin: 0;
padding: 0;
box-shadow: inset 0 calc(var(--sidebar-internal-border-thickness)*-1) 0 0 rgba(var(--sidebar-border-color));
font-size: 0;
}
#side-bar div.menu-item>:last-child {
flex-grow: 2;
}
#side-bar div.menu-item a:not(a:first-child) {
border-left: var(--sidebar-internal-border-thickness) solid rgba(var(--swatch-border-color), .08)
}
#side-bar div.menu-item a::before {
left: 0;
transform: translateX(calc(-100%));
width: calc(100% + 6rem);
}
#side-bar div.menu-item a:hover::before {
transform: translateX(calc(0rem));
}
#side-bar div.scpnet-interwiki-wrapper {
min-height: 220px;
transform: translate(0, 0);
}
div.scpnet-interwiki-wrapper {
margin: 0;
width: auto;
}
iframe.scpnet-interwiki-frame {
border: inherit;
width: 100%;
height: 220px;
}
@media only screen and (min-width: 768px) {
div.scpnet-interwiki-wrapper,
iframe.scpnet-interwiki-frame {
width: 100%;
}
}
@media only screen and (max-width: 768px) {
#side-bar {
left: calc(var(--sidebar-width-on-mobile)*-1);
}
#side-bar:target,
#skrollr-body:target #side-bar {
left: -0.5rem;
}
#side-bar .heading p,
#side-bar .side-block>.collapsible-block .collapsible-block-link {
letter-spacing: 0.016em;
}
#side-bar div.scpnet-interwiki-wrapper {
width: calc(var(--sidebar-width-on-mobile) - 0.5rem);
max-width: calc(80vw + var(--base-font-size)*.5);
}
#side-bar:target .close-menu,
#skrollr-body:target .close-menu {
margin-left: calc(var(--sidebar-width-on-mobile) - 0.5rem);
width: calc(100% - var(--sidebar-width-on-mobile) + 0.5rem);
}
}
/* Content Warning */
#page-content div#u-adult-warning {
width: fit-content;
margin: 0 auto 1.25rem;
padding: 0.5rem 1rem;
border: 3px solid #333;
background: #e4e4e4;
color: #333;
text-align: center;
font-weight: bold;
}
#page-content div#u-adult-warning>div#u-adult-header {
font-size: 300%;
text-shadow: 1px 2px 3px rgba(0, 0, 0, .5);
color: #901;
}
#page-content div#u-adult-warning>div#u-adult-header p {
margin: 0;
}
#page-content div#u-adult-warning>.error-block {
color: unset;
padding: unset;
margin: unset;
border: unset;
margin-bottom: 1em;
}
/* 去除用户信息中头像白边 */
#odialog-container .owindow>div.modal-body>img[style*="padding: 2px 8px;"]:first-child {
background-color: initial !important;
}
/* 搜索框修改 */
#search-top-box-input {
display: none;
}
@media only screen and (max-width: 768px) {
#search-top-box:not(:focus-within):before {
top: calc(var(--header-height-on-mobile)/2 + 0.5em);
}
}
/* 论坛样式修改 */
.thread-container .post .long .content .image:not(.collapsible-block .image) {
object-fit: cover;
max-height: 2em;
width: 100%;
transition: max-height 0.5s;
}
.thread-container .post .long .content .image:hover:not(.collapsible-block .image) {
max-height: 100em;
}
:root {
--thread-accent-color: 227, 223, 213;
}
.thread-container>.options {
display: none;
}
.thread-container .post-container {
background-color: rgb(var(--thread-accent-color));
}
#thread-container-posts>.post-container {
border: 1px solid rgb(var(--dark-accent));
}
#recent-posts-container>.thread-container .post {
border: 1px solid rgb(var(--dark-accent));
background-color: rgb(var(--thread-accent-color));
margin-bottom: 1rem;
}
#thread-container-posts>.post-container>.post-container>.post-container>.post-container>.post-container>.post-container {
border-right: 1px solid rgb(var(--dark-accent));
}
.thread-container .post {
padding: 0;
width: 100%;
border-radius: 3px;
padding: 0 0 12px 0;
}
.thread-container #thread-container-posts>.post-container {
margin: 0 0 12px 0;
padding: 12px;
}
.thread-container .post-container .post~.post-container {
border-top: 1px solid rgb(var(--dark-accent));
}
.thread-container .post .long {
position: relative;
border: none;
}
.thread-container .post .head {
padding: 0 0 18px 0;
background: none;
box-shadow: none;
border-radius: 0;
}
.thread-container .post .head .options {
display: none;
}
.thread-container .post .head .title {
position: relative;
overflow: hidden;
}
#page-content .post .head .title {
word-break: break-all;
}
.thread-container .post .head .title::after {
content: "";
position: absolute;
bottom: 1px;
left: 0;
height: 1px;
width: 100%;
background-color: rgb(var(--nationarea-monochrome));
}
.thread-container .post .head .info {
display: grid;
align-items: center;
padding: 4px 0 0 0;
grid-template-areas:
"username username date date date"
"forum forum forum thread thread";
grid-template-columns: max-content max-content max-content 1fr;
grid-template-rows: 1fr max-content;
font-size: 0;
}
.thread-container .post .head .info>* {
font-size: initial;
}
.thread-container .post .head .info .printuser {
display: flex;
align-items: center;
justify-content: flex-start;
grid-area: username;
}
.thread-container .post .head .info .printuser::after {
content: "·";
padding: 0 6px;
}
.thread-container .post .head .info .odate {
grid-area: date;
display: flex !important;
pointer-events: none;
}
.thread-container .post .head .info br {
grid-area: br;
width: 100%;
}
.thread-container .post .head .info>a {
font-size: 14px;
max-width: fit-content;
}
.thread-container .post .head .info>a:nth-of-type(1) {
grid-area: forum;
height: 100%;
margin-right: 0.5em;
}
.thread-container .post .head .info>a:nth-of-type(2) {
grid-area: thread;
}
.thread-container .post .head .info>a:nth-of-type(2)::before {
content: "»";
margin-right: 0.5em;
}
@media (min-width: 768px) {
.thread-container .post .head .info>a:nth-of-type(2) {
display: flex;
}
}
@media (max-width: 768px) {
.thread-container .post .head .info {
grid-template-areas:
"username username date date date"
"forum forum forum forum forum"
"thread thread thread thread thread";
grid-template-columns: max-content max-content max-content 1fr;
grid-template-rows: 1fr max-content max-content;
}
.thread-container .post .head .info>a:nth-of-type(2)::before {
margin: 0 0.5em 0 0;
}
}
.thread-container .post .head .info .printuser a:first-of-type,
.thread-container .post .head .info .printuser.deleted img {
margin-right: 0;
}
.thread-container .post .head .info .printuser a:first-of-type img,
.thread-container .post .head .info .printuser.deleted img {
box-sizing: border-box;
width: 30px;
height: 30px;
background-image: none !important;
padding: 0;
border: 2px solid rgb(var(--nationarea-monochrome));
border-radius: 50%;
margin-right: 12px;
}
.thread-container .post .long .content {
padding: 0;
}
.thread-container .post .long .content>p:first-of-type:not(*+p) {
margin-top: 0;
}
.thread-container .post-container .post-container {
position: relative;
left: 4px;
margin: 0;
padding: 12px 0 0 12px;
}
.thread-container .post-container .post-container .post::before {
content: "";
height: calc(100% - 36px);
width: 3px;
position: absolute;
background-color: rgb(var(--dark-accent));
left: 0;
}
.thread-container .post .long .changes>a[onclick*=showHistory] {
display: inline-flex;
}
.thread-container .post .long .changes>a[onclick*=showHistory] .icon-plus::before {
content: "+";
font-style: initial;
}
.thread-container .post .long .revisions {
padding-top: 0;
}
.thread-container .post .long .revisions table {
border-spacing: 0;
display: flex;
flex-direction: column;
align-content: flex-end;
}
.thread-container .post .long .revisions a {
color: #77a;
}
.thread-container .post .long .revisions table tbody {
display: contents;
}
.thread-container .post .long .revisions table tr {
display: flex;
justify-content: flex-end;
}
.thread-container .post .long .revisions table tr td:first-of-type,
.thread-container .post .long .revisions table tr td:nth-of-type(2) {
padding-right: 7px;
}
.thread-container .post .long .revisions table tr.active td {
background-color: rgba(var(--light-gray-monochrome), 0.3);
}
.thread-container .post .long .revisions table tr.active::before {
content: ">";
margin-right: 5px;
}
#page-content>div.forum-thread-box>div.options a,
.thread-container div.post div.long .options a {
border: initial;
background-color: initial;
color: #77a;
font-size: 90%;
--wght: 500;
padding: 0 0.25em;
margin: 0 0.1rem;
transition: text-decoration-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
#page-content>div.forum-thread-box>div.options a:hover,
.thread-container div.post div.long .options a:hover {
text-decoration: underline;
color: #77a;
}
#page-content>div.forum-thread-box>div.options {
margin: .2em 0;
}
.forum-thread-box .description-block {
background-color: rgb(var(--thread-accent-color));
box-shadow: none;
border-radius: 0;
border: 1px solid rgb(var(--dark-accent));
margin: 1em 0;
}
#main-content .paper {
box-shadow: 0.05rem 0.15rem 0.38rem rgba(0,0,0,.3);
padding: 2em;
background: #fff;
min-height: 42em;
position: relative;
margin: 1em auto
}
.paper-group {
counter-reset: paper
}
.paper::after {
content: counter(paper);
display: block;
text-align: center;
color: #aaa;
position: absolute;
bottom: 1em;
left: 0;
right: 0;
font-weight: bolder
}
@media screen and (min-width: 56.25rem) {
.paper { width: 65%; padding: 2em }
}
.paper h1 {
font-size: 180%;
border-bottom: 2px solid #aaa
}
/* 虚线div块 */
div.classic-blockquote {
border: dashed 0.0625rem rgba(var(--nationarea-monochrome), 0.75);
box-shadow: none;
}
/* 共产主义 div块 */
.logoblock{
padding: 0.01rem 1rem;
box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
color:rgb(0,0,0);
margin: 0.5rem 0 0.5rem 0.25rem;
display: block;
position: relative;
background-color:white;
border: none;
}
.logoblock::after{
content: "";
float: center;
border: solid 2px #0000;
opacity: 0.25;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: 1;
}
.border-logoblock{
padding: 0.01rem 1rem;
box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
margin: 0.5rem 0 0.5rem 0.25rem;
display: block;
color: white;
position: relative;
background-color:rgba(var(--light-gray-monochrome),.6);
background-image:
radial-gradient(circle, rgb(70,70,70) 50%, transparent 0);
border: solid 2px rgb(var(--medium-accent));
background-size: 0.25em 0.25em;
}
.border-logoblock::after{
content: "";
float: center;
border: solid 2px #0000;
center/18% no-repeat;
filter: brightness(0%) invert(100%);
opacity: 0.35;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: 1;
}
.bblock:hover{
color: rgb(121,137,143);
}