Hộp Sập Kiểu Đen Tô Đậm

LƯU Ý:

Đây là trang component được sử dụng nội bộ bởi Wiki SCP-VN. Trang này được tạo để sử dụng và thêm vào các trang khác.

đánh giá: 0+x
Tự giải thích.
Cho ai thật sự muốn thanh bên tối từ O.G. BHL trong bài biết.
Chỉ cần thêm cái này SAU BHL include:
[[include :scp-vn:component:bhl-dark-sidebar]]

đánh giá: 0+x

Bao gồm

Bất kỳ wiki nào:

[[iftags -component-backend]]
[[module css]]
/* BHL styled collapsibles with fancy-schamncy animations! By Monkatraz */
/* #page-content is shoved everywhere to make sure it's the most specific thingy */
/* Styling! */
#page-content .collapsible-block-folded, #page-content .collapsible-block-unfolded-link {
    margin-top: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: rgb(128, 128, 128) 0px 0px 3px 0px;
    /* Animated things */
    transition: background 0.2s linear;
    background: rgb(66, 66, 72);
    /* Technical bits */
    width: min-content;
    white-space: nowrap;
    overflow: hidden;
}
/* The Clicky Text */
#page-content .collapsible-block-link {
    color: white;
    font-weight: bold;
}
/* Gets rid of the underline when hovering over the collapsible */
#page-content .collapsible-block-link:hover {
    text-decoration: none
}
/* Collapsible content */
#page-content .collapsible-block-content {
    border-bottom: solid 3px rgb(66,66,72);
    /* Animated things */
    transition: border-top-color 0.2s linear;
    border-top: solid rgb(66, 66, 72) 5px;
}
/* End of addendum tag */
#page-content .collapsible-block-content::after {
    content:"KẾT THÚC PHỤ LỤC";
    font-weight: bold;
    font-size: 95%;
    color:white;
    background: rgb(66, 66, 72);
    width: 150px;
    border-radius: 3px;
    /* Technical bits */
    display: block;
    text-align: center;
    margin:auto;
    margin-bottom: -3px;
}
/* Folded blocks are animated, unfolded ones are not */
#page-content .collapsible-block-folded {
    transition: max-width 0.2s linear;
    max-width: 10.5em;
}
#page-content .collapsible-block-unfolded-link{
    width: min-content;
}
/* Addendum counter */
#page-content {
    counter-reset: collapse;
}
#page-content .collapsible-block, #page-content .unfolded-collapse, #page-content .centered-unfolded-collapse{
    counter-increment: collapse;
}

/* Addendum prefixes */
#page-content .collapsible-block-folded .collapsible-block-link::before {
    content: "▷ PHỤ LỤC XXXX." counter(collapse);
    border-right: dotted 0.25em;
    padding-right: 1rem;
    margin-right: 1rem;
    font-weight: normal;
    font-family: var(--mono-font);
}
#page-content .collapsible-block-unfolded .collapsible-block-link::before {
    content: "▽ PHỤ LỤC XXXX." counter(collapse);
    border-right: dotted 0.25em;
    padding-right: 1rem;
    margin-right: 1rem;
    font-weight: normal;
    font-family: var(--mono-font);
}
/* Hovering effects */
#page-content .collapsible-block-folded:hover, #page-content .collapsible-block-unfolded-link:hover{
    background: rgb(100, 46, 44);
    max-width: 100%;
}
/* Top of the collapsible border - because it looks prettier this way */
#page-content .collapsible-block-unfolded-link:hover + .collapsible-block-content{
    border-top-color: rgb(100, 46, 44);
}
/* Accent flash when clicking, also forces the collapsible to expand */
#page-content .collapsible-block-folded:active, #page-content .collapsible-block-unfolded-link:active{
    transition: background 0s, max-width 0s;
    background: rgb(133, 0, 5);
    max-width: 100%;
}
/* Done with normal collapsibles, now we do all the variations */
/* Unfolded collapsible */
#page-content .unfolded-collapse{
    margin-top: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: rgb(128, 128, 128) 0px 0px 3px 0px;
    background: rgb(66, 66, 72);
    /* Text */
    color: white;
    font-weight: bold;
    /* Technical bits */
    width: min-content;
    white-space: nowrap;
    overflow: hidden;
}
/* Addendum prefix */
#page-content .unfolded-collapse::before {
    content: "▽ PHỤ LỤC XXXX." counter(collapse);
    border-right: dotted 0.25em;
    padding-right: 1rem;
    margin-right: 1rem;
    font-weight: normal;
    font-family: var(--mono-font);
}
/* Bottom border */
#page-content .unfolded-collapse-border {
    display: block;
    width: 700px;
    border-top: solid rgb(66, 66, 72) 5px;
}
/* Centering, very simple */
#page-content .center-collapse .collapsible-block-folded, #page-content .center-collapse .collapsible-block-unfolded-link, #page-content .center-collapse .unfolded-collapse{
    margin:auto;
    margin-top: 10px;
}
/* Removing the slick animation and addendum number because you're a monster */
/* Set back the max width and just ignore the transition screwyness */
#page-content .no-addendum .collapsible-block-folded {
    max-width: auto;
}
/* Prefixes */
#page-content .no-addendum .collapsible-block-unfolded .collapsible-block-link::before, #page-content .no-addendum .unfolded-collapse::before {
    content: "▽";
    border-right: none;
    padding-right: 0rem;
}
#page-content .no-addendum .collapsible-block-folded .collapsible-block-link::before {
    content: "▷";
    border-right: none;
    padding-right: 0rem;
}
/* Kill the automatic footer because you haven no trouble figuring out where your addendums end */
#page-content .no-footer .collapsible-block-content{
    border-bottom: none;
}
#page-content .no-footer .collapsible-block-content::after{
    display:none;
}
/* Fittingly, we finish with the footer object */
/* The footer is actually the giant bottom border object because larger -> smaller works better */
#page-content .addendumfooter{
    display: block;
    border-bottom: solid 3px rgb(66,66,72);
    margin:auto;
    text-align: center;
}
/* Texty bits */
#page-content .addendumfooter::after{
    content: "KẾT THÚC PHỤ LỤC";
    font-weight: bold;
    font-size: 95%;
    color:white;
    background: rgb(66, 66, 72);
    width: 150px;
    border-radius: 3px;
    /* Technical bits */
    display: block;
    text-align: center;
    margin:auto;
    margin-bottom: -3px;
}
/* Ayer's info-bar patch */
#page-content .info-container .collapsible-block {
    counter-increment: none;
}
#page-content .info-container .collapsible-block-folded, #page-content .info-container .collapsible-block-unfolded-link  {
    transition: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    background: var(--barColour);
}
#page-content .info-container .collapsible-block-folded::before, #page-content .info-container .collapsible-block-unfolded-link::before  {
    content: "";
    display: none;
}
#page-content .info-container .collapsible-block-content {
    border-bottom: none;
    transition: none;
    border-top: none;
}
#page-content .info-container .collapsible-block-content::after {
    display: none;
}

/* License Box Patch */
#page-content .licensebox .collapsible-block-link {
    color: inherit;
}
#page-content .licensebox .collapsible-block-link:hover {
    text-decoration: underline;
}
#page-content .licensebox .collapsible-block {
    counter-increment: none;
}
#page-content .licensebox  .collapsible-block-folded,
#page-content .licensebox  .collapsible-block-unfolded-link  {
    transition: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    background: none;
}
#page-content .licensebox .collapsible-block-folded::before,
#page-content .licensebox .collapsible-block-unfolded-link::before  {
    content: "";
    display: none;
}
#page-content .licensebox .collapsible-block-content {
    border-bottom: none;
    transition: none;
    border-top: none;
}
#page-content .licensebox .collapsible-block-folded .collapsible-block-link::before,
#page-content .licensebox .collapsible-block-unfolded .collapsible-block-link::before,
#page-content .licensebox .unfolded-collapse::before {
    display: none;
}
#page-content .licensebox .collapsible-block-content::after {
    display: none;
}
[[/module]]
[[/iftags]]
[[iftags +component-backend]]
[http://scp-vn.wikidot.com/component:bhl-style-collapse Click vô tui]
[[/iftags]]

Nếu bạn không sử dụng Theme Đen Tô Đậm trong bài viết, chèn CSS module này sau dòng dưới đây:


Đây là gì

Đây là component Theme Đen Tô Đậm không chính thức có thêm BHL-style thanh đóng hộp chuyển động trong bài viết của bạn. Nó ảnh hưởng tới [collapsible] có sẵn. Bài viết của bạn chỉ cần chỉnh sửa chút là phù hợp.


Usage

Collapsible

Normal:
This component modifies the standard collapsible, so this is entirely the same. Heavily recommended that you make the 'show' and 'hide' fields the same.

Note: The "ADDENDUM XXXX.N" is automatically added and incremented based on the number of previous collapsibles. It can be removed, see below.


Always Unfolded:
To be clear, this is literally just an "in-place" decorative element. You aren't actually putting any of your article inside of this "collapsible."

Note: The "ADDENDUM XXXX.N" counter is still incremented by these collapsibles.

COOL THING
[[div_ class="unfolded-collapse"]]
COOL THING
[[/div]]
[[div_ class="unfolded-collapse-border]]
[[/div]]

Modifiers

Centering:

COOL THING
[[div_ class="center-collapse"]]
[[div_ class="unfolded-collapse"]]
COOL THING
[[/div]]
[[div_ class="unfolded-collapse-border]]
[[/div]]
[[/div]]

Remove "Addendum" and Animation:
Note: The "ADDENDUM XXXX.N" counter is still incremented by these collapsibles.

COOL THING
[[div_ class="no-addendum"]]
[[div_ class="unfolded-collapse"]]
COOL THING
[[/div]]
[[div_ class="unfolded-collapse-border]]
[[/div]]
[[/div]]

Remove Footer:



Footer
[[div_ class="addendumfooter"]]
[[/div]]

Credit:

  • MonkatrazMonkatraz
  • Khoảng 1500 người trên Google
Nếu không có ngoại lệ được nêu, nội dung của trang này được xuất bản dưới giấy phép Creative Commons Attribution-ShareAlike 3.0 License