DJK

您現在最好給我停下來

本頁面內包含基金會維基內部使用的模板

嚴禁任何人員在未經網站行政人員
之授權下修訂本頁面


評分: +2+x

這個是幹什麼的

把側欄預設成隱藏並能以位於角落的按鈕切換,有點像網站的移動版那樣。

以鼠標懸停運作的可摺疉側欄比以鼠標點擊運作的切換側欄稍微較顯眼一些。


怎樣使用

1. 複製下面的代碼。

2. 把它貼上到黑色標記筆或是任何其他include了的外觀主題後面

[[include :scp-zh-tr:component:toggle-sidebar-bhl]]

3. (可選)如果你使用了外觀主題,重新設計切換按鈕。

這裏有五個CSS變項可在你需要時重新設計按鈕用。
在顏色方面,非常建議你使用能在這裏找到的可用黑標顏色變項。

:root {
--toggle-button-bg: hex/rgb/hsl color;
--toggle-border-color: hex/rgb/hsl color;
--toggle-border-width: px/rem/em;
--toggle-icon-color: hex/rgb/hsl color;
--toggle-roundness: percentage;
}


這個組件是ACS標題的加載動畫。

使用方法:

把這段放在你的文章中的任意位置:

[[include :scp-zh-tr:component:acs-animation]]

便大功告成了!

例子: scp-5935


說明:

- 變項--timeScale--timeDelay,二者控制了動畫播放的時間,舉例來說:

[[module CSS]]
:root {
--timeScale: 2;
--timeDelay: 0.5s;
}
[[/module]]

--timeScale會把整個動畫放慢2倍,而--timeDelay會把動畫開始時間延後半秒。預設值分別是 1 和 0s 。

把上面的代碼放在[[include]]的後面,便可以更改預設值。如果ACS標題不是內文的第一個元素,又或者你想把這個連接上其他動畫模組的話(參照淡入。),這就建議你更改一下--timeDelay

- 很可能和其他的ACS標題不相容*。

*要使用PeppersGhostPeppersGhostACS精簡版的話,把下面的補釘加在 [[include]]的後面:

[[module CSS]]
/*-- ACS Lite Animation Compatibility Patch --*/
.anom-bar > .bottom-box::before { display: none; }
.anom-bar > .bottom-box { box-shadow: none!important; }
div.diamond-part { clip-path: none; animation: none; box-shadow: none!important; }
@media (max-width: 480px) {
div.top-right-box { clip-path: polygon(0% -30%, 100% -30%, 100% 130%, 0% 130%); }
}
[[/module]]

- 由AnAnomalousWriterAnAnomalousWriter啟發。


原始碼:

:root {
    --timeScale: 1;
    --timeDelay: 0s;
}
 
/* Converting middle divider from box-shadow to ::before pseudo-element */
.anom-bar > .bottom-box { box-shadow: none!important; }
.anom-bar > .bottom-box::before {
    position: absolute;
    content: " ";
    width: 100%;
    height: 0.5rem;
    background-color: rgb(var(--black-monochrome, 12, 12, 12));
    transform: translateY(-0.74rem);
}
 
/* DIVIDER */
.anom-bar > .bottom-box::before {
    animation-name: divider;
    animation-duration: calc(0.74s * var(--timeScale));
    animation-delay: calc(0.1s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.32,.38,.39,.94);
    animation-fill-mode: backwards;
}
 
/* CLASSIFIED LEVEL BARS */
div.top-center-box  > * {
    animation-name: bar;
    animation-duration: calc(0.45s * var(--timeScale));
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-fill-mode: backwards;
}
div.top-center-box > :nth-child(1) { animation-delay: calc(0.2s * var(--timeScale) + var(--timeDelay)); }
div.top-center-box > :nth-child(2) { animation-delay: calc(0.32s * var(--timeScale) + var(--timeDelay)); }
div.top-center-box > :nth-child(3) { animation-delay: calc(0.45s * var(--timeScale) + var(--timeDelay)); }
div.top-center-box > :nth-child(4) { animation-delay: calc(0.61s * var(--timeScale) + var(--timeDelay)); }
div.top-center-box > :nth-child(5) { animation-delay: calc(0.75s * var(--timeScale) + var(--timeDelay)); }
div.top-center-box > :nth-child(6) { animation-delay: calc(0.95s * var(--timeScale) + var(--timeDelay)); }
 
/* TOP TEXT */
div.top-left-box, div.top-right-box {
    clip-path: polygon( 0% -50%, 150% -50%, 150% 100%, 0% 100%);
}
 
div.top-left-box > *, div.top-right-box > * {
    position: relative;
    animation-name: bottomup;
    animation-duration: calc(0.65s * var(--timeScale));
    animation-delay: calc(0.5s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-fill-mode: backwards;
}
 
/* CONTAINMENT, DISRUPTION, RISK CLASSES */
div.text-part > * {
    clip-path: polygon( 0% 0%, 100% 0%, 100% 100%, 0% 100%);
    animation-name: expand2;
    animation-duration: calc(0.5s * var(--timeScale));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.12,.41,.27,.99);
    animation-fill-mode: backwards;
}
div.text-part > :nth-child(1) {
    animation-name: expand1;
}
div.text-part > :nth-child(1) { animation-delay: calc(0.6s * var(--timeScale) + var(--timeDelay)); }
div.text-part > :nth-child(2) { animation-delay: calc(0.75s * var(--timeScale) + var(--timeDelay)); }
div.text-part > :nth-child(3) { animation-delay: calc(0.86s * var(--timeScale) + var(--timeDelay)); }
 
div.main-class::before, div.main-class::after {
    animation-name: iconslide;
    animation-duration: calc(0.45s * var(--timeScale));
    animation-delay: calc(0.8s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.12,.41,.27,.99);
    animation-fill-mode: backwards;
}
 /* BOTTOM TEXT */
div.main-class > *,  div.disrupt-class > *, div.risk-class > * {
    animation-name: flowIn;
    animation-duration: calc(0.42s * var(--timeScale));
    animation-delay: calc(0.75s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-fill-mode: backwards;
}
 
/* DIAMOND */
div.arrows {
    animation-name: arrowspin;
    animation-duration: calc(0.7s * var(--timeScale));
    animation-delay: calc(0.6s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.12,.41,.27,.99);
    animation-fill-mode: backwards;
}
 
div.quadrants > * {
    animation-name: fade;
    animation-duration: calc(0.3s * var(--timeScale));
    animation-delay: calc(1.4s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.12,.41,.27,.99);
    animation-fill-mode: backwards;
}
 
div.top-icon, div.right-icon, div.left-icon, div.bottom-icon {
    animation-name: nodegrow;
    animation-duration: calc(0.4s * var(--timeScale));
    animation-delay: calc(1.4s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.12,.41,.27,.99);
    animation-fill-mode: backwards;
}
div.diamond-part {
    clip-path: polygon( -10% 0.37%, 120% 0.37%, 120% 100%, -10% 100%);
    animation-name: diamondBorder;
    animation-duration: calc(0.8s * var(--timeScale));
    animation-delay: calc(0.5s * var(--timeScale) + var(--timeDelay));
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.32,.38,.39,.94);
    animation-fill-mode: backwards;
}
 
/* MOBILE QUERY */
@media (max-width: 480px ) {
    .anom-bar > .bottom-box::before {
        display:none;
    }
    .anom-bar > .bottom-box {
        box-shadow: 0 -0.5rem 0 0 rgb(var(--black-monochrome, 12, 12, 12))!important;
    }
    div.top-center-box  > * {
        animation-name: bar-mobile;
        animation-duration: calc(0.9s * var(--timeScale));
    }
    div.top-center-box > :nth-child(1) { animation-delay: calc(0.1s * var(--timeScale) + var(--timeDelay)); }
    div.top-center-box > :nth-child(2) { animation-delay: calc(0.2s * var(--timeScale) + var(--timeDelay)); }
    div.top-center-box > :nth-child(3) { animation-delay: calc(0.3s * var(--timeScale) + var(--timeDelay)); }
    div.top-center-box > :nth-child(4) { animation-delay: calc(0.4s * var(--timeScale) + var(--timeDelay)); }
    div.top-center-box > :nth-child(5) { animation-delay: calc(0.5s * var(--timeScale) + var(--timeDelay)); }
    div.top-center-box > :nth-child(6) { animation-delay: calc(0.6s * var(--timeScale) + var(--timeDelay)); }
 
}
 
/*-------------------------*/
 
@keyframes divider {
    from { max-width: 0%;  }
    to { max-width: 100%; }
}
 
@keyframes bar {
    from { max-width: 0%; }
    to { max-width: 100%; }
}
@keyframes bar-mobile {
    from { max-height: 0%; }
    to { max-height: 100%; }
}
 
@keyframes bottomup {
    from { top: 100px; }
    to { top: 0; }
}
 
@keyframes expand1 {
    from { opacity: 0; clip-path: inset(0 calc(100% - 0.75rem) 0 0);}
    to { opacity: 1; clip-path: inset(0);}
}
@keyframes iconslide {
    from { opacity: 0; transform: translateX(-5rem);}
    to { opacity: 1; transform: translateX(0);}
}
 
@keyframes expand2 {
    from { opacity: 0; max-width: 1%;}
    to { opacity: 1; max-width: 100%;}
}
@keyframes fade {
    from { opacity: 0;}
    to { opacity: 1;}
}
 
@keyframes flowIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
 
@keyframes arrowspin {
    from { clip-path: circle(0%); transform: rotate(135deg); }
    to { clip-path: circle(75%); transform: rotate(0deg); }
}
@keyframes nodegrow {
    from { transform: scale(0);}
    to {  transform: scale(1);}
}
@keyframes diamondBorder {
    from { box-shadow: -0.5rem -20rem 0 0 rgb(var(--black-monochrome, 12, 12, 12)); }
    to { box-shadow: -0.5rem 0 0 0 rgb(var(--black-monochrome, 12, 12, 12)); }
}

評分: +2+x

這個是幹什麼的

把側欄預設成隱藏並能以位於角落的按鈕切換,有點像網站的移動版那樣。

以鼠標懸停運作的可摺疉側欄比以鼠標點擊運作的切換側欄稍微較顯眼一些。


怎樣使用

1. 複製下面的代碼。

2. 把它貼上到黑色標記筆或是任何其他include了的外觀主題後面

[[include :scp-zh-tr:component:toggle-sidebar-bhl]]

3. (可選)如果你使用了外觀主題,重新設計切換按鈕。

這裏有五個CSS變項可在你需要時重新設計按鈕用。
在顏色方面,非常建議你使用能在這裏找到的可用黑標顏色變項。

:root {
--toggle-button-bg: hex/rgb/hsl color;
--toggle-border-color: hex/rgb/hsl color;
--toggle-border-width: px/rem/em;
--toggle-icon-color: hex/rgb/hsl color;
--toggle-roundness: percentage;
}


評分: +2+x

這個是幹什麼的

把版頭重新排列來使標題和logo置中


怎樣使用

1. 複製下面的代碼。

2. 把它貼上到黑色標記筆或是任何其他include了的外觀主題後面

[[include :scp-zh-tr:component:centered-header-bhl]]



評分: +2+x

在任何wiki上添加以下代碼:

[[include :scp-zh-tr:component:djk]]

哈囉大家好,我是djkaktus。這是個我自己的個人組件,用來減輕Elenee FishTruckElenee FishTruck他組件的痛苦。時至今日,每當我把我的標準版式更新成我喜歡的內容時,它就會孜孜不倦地為我更新我超過140頁的頁面。這樣一來,我就能從一個地方來同時編輯它們了。

以下是這個組件所做的一些事情:

1) 為頁面添加黑色標記筆(願榮光歸於我們的Woed)
2) 用BHL的半影主題修改黑色標記筆(抱歉啦Estrella)
3) 透過一堆配色上的調整來把BHL半影修改成一個我超哈的復古配色變體
4) 為了配合半影的調整而添加可自定義ACS
5) 添加淡入、可折疊側欄跟ACS動畫組件
6) 允許我可以因為一時衝動就來調整任何部分

我一直在致力於找到一個最具代表性的主題來代表我大多數的作品。這有效地讓我離這個夢想更靠近一步,而不需要我每改一次東西就要更新上百個頁面。

sup {
vertical-align: top; position: relative; top: -0.5em;
}
:root:lang(zh){
--header-title: "THE FOUNDATION";
--header-subtitle: "收容部門";
--lgurl: url(https://scp-wiki.wdfiles.com/local--files/component%3Adjk/scpnewlogo.png);
--white-monochrome: 15, 15, 15 ;
--pale-gray-monochrome: 35, 35, 35 ;
--light-pale-gray-monochrome: 35, 35, 35 ;
--very-light-gray-monochrome: 60, 60, 60 ;
--light-gray-monochrome: 160, 160, 160 ;
--gray-monochrome: 200, 200, 200 ;
--dark-gray-monochrome: 220, 220, 220 ;
--black-monochrome: 245, 245, 245 ;
--accentColor: 83, 49, 49 ;
--background-gradient-color: var(--light-gray-monochrome);
--five-color: 83, 49, 49 ;
--four-color: 83, 49, 49 ;
--three-color: 83, 49, 49 ;
--two-color: 83, 49, 49 ;
--one-color: 83, 49, 49 ;
--swatch-menubg-dark-color: var(--very-light-gray-monochrome);
}
#header h1 a::before {
-webkit-text-stroke: initial;
}
#header h2 span::before {
  content: none;
}
 
#page-content .info-container {
    --link-color: 0, 0, 0 ;
}
 
#page-content .info-container .translation_block {
    display: none;
}
 
#page-content .info-container .collapsible-block-link,
#page-content .info-container:hover .collapsible-block-link {
    line-height: 1.6em;
}
 
#page-content .info-container .collapsible-block-folded,
#page-content .info-container .collapsible-block-unfolded-link {
    display: grid;
background: #533131;
}
 
#page-content .info-container .collapsible-block-folded .collapsible-block-link,
#page-content .info-container .collapsible-block-link {
    -webkit-mask: unset;
            mask: unset;
    background: transparent;
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
}
 
#page-content .info-container .collapsible-block-folded::before,
#page-content .info-container .collapsible-block-unfolded-link::before {
    --wght: 800;
    content: "DJK";
    color: #fff;
    font-family: Inter, Arimo, Verdana, Geneva, "Helvetica Neue", "Helvetica", Arial, sans-serif;;
    display: block;
    pointer-events: none;
    grid-column: 1;
    grid-row: 1;
}
#page-content div.warning-top-box>h1 {
color: rgb(var(--black-monochrome));
}
#page-content .collapsible-block-folded, #page-content .collapsible-block-unfolded-link {
margin: 0;
background: transparent;
}
#footer a, #footer a:visited {
    color: rgb(var(--black-monochrome));
}
#side-bar iframe.scpnet-interwiki-frame:not(:lang(cn)) {
  filter: none;
}
#page-content table.wiki-content-table th {
color: rgb(var(--black-monochrome));
}
#license-area {
    color: rgb(var(--black-monochrome));
}
#license-area a, #license-area a:visited {
color: rgb(var(--black-monochrome));
}
table.page-files th {
color: rgb(var(--black-monochrome));
}
.top-right-box > .level {
line-height: 0;
}
.scp-image-block {
        border: solid 0.5rem rgb(var(--pale-gray-monochrome));
        border-bottom: solid 0rem rgb(var(--pale-gray-monochrome));
        box-shadow: 0rem 0.26rem 0rem 0rem rgb(var(--accentColor));
        box-sizing: border-box;
    }
 
    .scp-image-block .scp-image-caption {
        background-color: rgb(var(--pale-gray-monochrome));
        border: solid 0.25rem rgb(var(--pale-gray-monochrome));
        color: rgb(var(--black-monochrome));
        font-size: 0.84rem;
}
div[id*=page-options-bottom]>a:after {
    background-color: rgb(var(--black-monochrome));
}
div.menu-item a:hover {
color: rgb(var(--black-monochrome)) !important;
}
.bibitems .title, .footnotes-footer .title {
color: rgb(var(--black-monochrome)) !important;
}
#header div[class*=top-bar]>ul>li>ul {
    background: rgba(var(--gray-monochrome));
}
.code pre, .code p, .code {
    background-color: rgb(var(--pale-gray-monochrome));
    color: rgb(var(--black-monochrome));
}
 
/* 翻譯後修正 */
#header h2 {
    top:1rem;
}
@media screen and (min-width: 480px ) {
.top-right-box > .level {
top:-1rem;
}
}
 
@media screen and (max-width: 480px ) {
.top-right-box > .level {
    top:0.5rem;
}
.top-right-box > .clearance {
    top:1.5rem;
}
}
除非特別註明,本頁內容採用以下授權方式: Creative Commons Attribution-ShareAlike 3.0 License