跳到正文

剪贴板

剪贴板 nnwdpw3i

原文
剪贴板信息

剪贴板信息

收录
更新
CSS
/* ==UserStyle==
@name                 ex-ts
@version              202410000.0.00
@namespace            keatsli
@author               keatsli
@preprocessor         stylus
@var                  checkbox dark-mode "深色模式" 0
@var                  text chs-bg-color "主题颜色"'#3c4858'
@var                  text acry-color "亚克力背景色(浅色模式下生效)" '#ffffff'
@var                  text main-background-light "自定义浅色背景" "url(https://sy.hhwdd.com/RequireFile.do?fid=Qrk6x6pm)"
@var                  text main-background-dark "自定义深色背景" "url(https://sy.hhwdd.com/RequireFile.do?fid=og3zeucW)"
@var                  text opacity-acrylic-main "亚克力效果的不透明度" '0.7'
@var                  text button-hover-color "按钮悬浮颜色" '#5e6a7a'
@var                  text opacity-button "按钮透明度" '0.5'
==/UserStyle== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Noto+Sans+SC:wght@100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

/* 自定义配置部分 ---------*/

/* 调色板*/
if dark-mode
    /* // 全局颜色 */
    body_bg_color = chs-bg-color // 全局背景色
    text_color = #f3f3f3 // 全局字体色
    sec_text_color = #a7a9ad // 次级字体色(摘要、简介等位置)
    acrylic_bg_color = chs-bg-color // 亚克力背景色
    // 代码高亮配色:
    codeblock_bg_color = #0d1117
    hljs_keyword_color = #ff7b72
    hljs_function_color = #d2a8ff
    hljs_variable_color = #79c0ff
    hljs_string_color = #b5e6ff
    hljs_comment_color = #8b949e

else
    body_bg_color = #eee
    text_color = chs-bg-color
    sec_text_color = #718096
    acrylic_bg_color = acry-color
// ! 配置部分结束 ---------

main-background-dark = body_bg_color unless main-background-dark
main-background-light = body_bg_color unless main-background-light

/* // https://stackoverflow.com/questions/44522299/css-only-acrylic-material-from-fluent-design-system
// 直接修改背景的亚克力实现,不需要修改 z-index, 不会对 border-radius 造成影响,但可能造成层叠混乱 */

acrylic-bg(arc-opacity=opacity-acrylic-main,blur-radius=10px,no_shadow=false,akk_color=acrylic_bg_color)
    acr-bgcolor = rgba(akk_color, arc-opacity)
    background acr-bgcolor !important
    backdrop-filter blur(blur-radius) !important unless blur-radius == 0
    box-shadow    0 10px    30px    rgba(0, 0, 0, 0.1),
                0 1px    8px        rgba(0, 0, 0, 0.2) unless no_shadow !important
    transform: translateZ(0);
    z-index: 1;

@-moz-document regexp("^((http://172.16.41.199)|(http://172.16.42.199)|(http://172.16.43.199)|(http://172.16.44.199)|(http://172.16.45.199)|(https://sy.hhwdd.com)|(https://syp.hhwdd.com)).*")
    body
        if dark-mode
            background: main-background-dark !important;
        else
            background: main-background-light !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        //background-position: center !important; 鼠标悬浮到右上角名字会造成背景抖动
        background-attachment: fixed !important;

    .mainmenu{
        acrylic-bg(opacity-acrylic-main)
    }
    .main{
        background: none;
        z-index: 0;
        position: relative;
    }
    .panel{
        acrylic-bg(opacity-acrylic-main)
    }
    .prlist-container.well{
        acrylic-bg(0)
        padding-top 10px !important
        padding-bottom 10px !important
        border-radius 7px !important
    }
    .btn-default{
        color: text_color;
        acrylic-bg(opacity-button)
    }
    .toolbox input{
        acrylic-bg(opacity-button)
    }
    .form-control{
        acrylic-bg(opacity-button)
    }
    .form-control.domainfrom-sel{
        background #ffffff00 !important;
        background-color: #ffffff00 !important;
    }
    option{
        background #ffffff00 !important;
        background-color: #ffffff00 !important;
    }
    select{
        background #ffffff00 !important;
        background-color: #ffffff00 !important;
    }
    div#TSINSEN_WATERMARK{
        display: none;
    }
    .panel-body.problemshow-metainfo{
        background #ffffff00 !important;
    }
    code,.pddata{
        background-color: #ffffff00 !important;
    }
    p{
        color: text_color !important;
    }
    pre.language-data{
        background-color: #ffffff00 !important;
    }
    .panel-footer.noprint.problemshow-pastesubmit{
        background-color: #ffffff00 !important;
    }
    .well{
        acrylic-bg(opacity-button);
    }
    .CodeMirror-scroll{
        acrylic-bg(opacity-button);
    }
    .CodeMirror{
        background-color: #ffffff00 !important;
    }
    .CodeMirror-gutter,.CodeMirror-gutters{
        background-color: #ffffff00 !important;
    }
    .panel-footer{
        background-color: #ffffff00 !important;
    }
    ul.sol-meta.pagination{
        background-color: #ffffff00 !important;
    }
    .pagination .current{
        background-color: #ffffff00 !important;
    }
    .container{
        background-color: #ffffff00 !important;
    }
    .footer{
        background-color: #ffffff00 !important;
    }
    .pddata{
        background-color: #ffffff00 !important;
    }
    .panel-body.problemshow-files-div.noprint{
        background-color: #ffffff00 !important;
    }
    .alert.alert-danger{
        acrylic-bg(opacity-button,10px,false,#a94442);
    }
    .tbody{
        background-color: #ffffff00 !important;
    }
    tr{
        background-color: #ffffff00 !important;
    }
    .pagination > li > a, .pagination > li > span{
        background-color: #ffffff00 !important;
    }
    .alert.alert-success{
        acrylic-bg(opacity-button,10px,false,#dff0d8);
    }
    .table > tbody > tr.success > td, .table > tbody > tr.success > th, .table > tbody > tr > td.success, .table > tbody > tr > th.success, .table > tfoot > tr.success > td, .table > tfoot > tr.success > th, .table > tfoot > tr > td.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > thead > tr.success > th, .table > thead > tr > td.success, .table > thead > tr > th.success{
        background-color: #ffffff00 !important;
    }
    .alert.alert-info{
        acrylic-bg(opacity-button,10px,false,#d9edf7);
    }
    ol{
        background-color: #ffffff00 !important;
        color: sec_text_color;
    }
    .btn-primary{
        color: text_color;
        acrylic-bg(opacity-button,10px,false,#286090);
    }
    .mainmenu .container > ul > li ul{
        acrylic-bg(opacity-acrylic-main*2/3,10px,false,#5bc0de);
        border-top: 10px;
        border-bottom: 10px;
        border-left: 10px;
        border-right: 10px;
        border-radius: 7px;
    }
    .nav > li > a{
        color: #337ab7;
        background-color: #0000;
    }
    .nav > li > a:active{
        color: #337ab7;
        background-color: #0000;
    }
    .btn-success{
        color: text_color;
        acrylic-bg(opacity-button,10px,false,#449d44);
    }
    .btn-success:hover{
        color: button-hover-color !important;
    }
    mainmenu .container > ul > li:hover > a{
        acrylic-bg(0.8,10px,false,#337ab7);
    }
    .mainmenu .container > ul > li li a{
        color: text_color;
    }
    .mainmenu .container > ul > li li a:hover{
        acrylic-bg(0.8,10px,false,#337ab7);
    }
    .btn-info{
        color: text_color;
        acrylic-bg(opacity-button,10px,false,#46b8da);
    }
    .btn-warning{
        color: text_color;
        acrylic-bg(opacity-button,10px,false,#eea236);
    }
    .btn-info:hover,.btn-warning:hover{
        color: button-hover-color !important;
    }
    .pagination > li:first-child > a, .pagination > li:first-child > span,.pagination > li > a, .pagination > li > span{
        color: text_color;
    }
    span{
        color: text_color;
    }
    th,td,ul{
        color: text_color;
    }
    .toolbox{
        color: text_color;
    }
    if dark-mode
        .gcolor{
            color: lightgreen;
        }
    h1,h2,h3,h4,h5,h6{
        color: text_color !important;
    }
    label{
        color: text_color;
    }
    if dark-mode
        .CodeMirror-code > .CodeMirror-activeline > .CodeMirror-line{
            background-color: acrylic_bg_color !important;
        }
    b{
        color: text_color;
    }
    .noprint{
        color: text_color;
    }
    div div div div{
        color: text_color;
    }
    if dark-mode
        .pcolor{
            color: #ffccff;
        }
    .pdsec,.pdcont{
        color: text_color;
    }
    .btn-default:hover,.pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover{
        color: button-hover-color !important;
    }
    .input-group-addon,.delete,.note-toolbar.panel-heading{
        background-color: #ffffff00 !important;
        color: text_color !important;
    }
    .form-control,.bare.math-single,.panel-body.tsinsen-problem-add,.sec_header{
        color: text_color;
    }
    code,.pddata
        color: text_color;
        border-radius 5px
        color hljs_base_color !important
        box-shadow none !important

        .hljs-doctag,
        .hljs-keyword,
        .hljs-meta .hljs-keyword,
        .hljs-template-tag,
        .hljs-template-variable,
        .hljs-type,
        .hljs-variable.language_
            color hljs_keyword_color if hljs_keyword_color
        .hljs-title,
        .hljs-title.class_,
        .hljs-title.class_.inherited__,
        .hljs-title.function_
            color hljs_function_color if hljs_function_color
        .hljs-attr,
        .hljs-attribute,
        .hljs-literal,
        .hljs-meta,
        .hljs-number,
        .hljs-operator,
        .hljs-selector-attr,
        .hljs-selector-class,
        .hljs-selector-id,
        .hljs-variable
            color hljs_variable_color if hljs_variable_color
        .hljs-meta .hljs-string,
        .hljs-regexp,
        .hljs-string
            color hljs_string_color if hljs_string_color
        .hljs-built_in,
        .hljs-symbol
            color hljs_symbol_color if hljs_symbol_color
        .hljs-code,
        .hljs-comment,
        .hljs-formula
            color hljs_comment_color if hljs_comment_color
        .hljs-name,
        .hljs-quote,
        .hljs-selector-pseudo,
        .hljs-selector-tag
            color hljs_tag_color if hljs_tag_color
        .hljs-subst
            color hljs_subst_color if hljs_subst_color
        .hljs-section
            color hljs_section_color if hljs_section_color
            font-weight 700
        .hljs-bullet
            color hljs_bullet_color if hljs_bullet_color
        .hljs-emphasis
            color hljs_emphasis_color if hljs_emphasis_color
            font-style italic
        .hljs-strong
            color hljs_strong_color if hljs_strong_color
            font-weight 700
        .hljs-addition
            color hljs_addition_color if hljs_addition_color
            background-color hljs_addition_bg_color if hljs_addition_bg_color
        .hljs-deletion
            color hljs_deletion_color if hljs_deletion_color
            background-color hljs_deletion_bg_color if hljs_deletion_bg_color
    if dark-mode
        :not(pre) > code[class*="language-"], pre[class*="language-"]{
            background-color: #0d1117
        }
    small{
        color: text_color;
    }
    .noprint.warning{
        background-color: #ffffff00 !important;
    }
    code[class*="language-"], pre[class*="language-"]{
        color: text_color;
        text-shadow: none;
    }
    if dark-mode
        .CodeMirror {
            font-family: monospace;
            height: 100%;
            color: white !important;
            direction: ltr;
        }
        .CodeMirror-gutters {
            border-right: 1px solid #ddd;
            background-color: #ffffff00 !important;
            white-space: nowrap;
        }
        .CodeMirror-linenumber {
            padding: 0 3px 0 5px;
            min-width: 20px;
            text-align: right;
            color: text_color !important;
            white-space: nowrap;
        }
        .cm-keyword {
            color: hljs_keyword_color !important;
        }
        .cm-number {
            color: text_color !important;
        }
        .cm-def {
            color: hljs_function_color !important;
        }
        .cm-variable{
            color: #44ccff !important;
        }
        .cm-variable-3,.cm-type {
            color: #ffccff !important;
        }
        .cm-comment {
            color: text_color !important;
        }
        .cm-string,.cm-string-2 {
            color: hljs_string_color !important;
        }
        .cm-meta {
            color: lightgreen !important;
        }
        .CodeMirror-selected {
            background: #a8a8a8 !important;
        }
        .CodeMirror-focused .CodeMirror-selected {
            background: #a8a8a8 !important;
        }
        .CodeMirror-line::selection,
        .CodeMirror-line > span::selection,
        .CodeMirror-line > span > span::selection {
            background: #a8a8a8 !important;
        }
        .CodeMirror-line::-moz-selection,
        .CodeMirror-line > span::-moz-selection,
        .CodeMirror-line > span > span::-moz-selection {
            background: #a8a8a8 !important;
        }
    .tsinsen-prob-sel-list{
        acrylic-bg(opacity-button)
    }
    code:not(.language-data){
        background-color: codeblock_bg_color !important;
    }
    span.label.label-info{
        padding-bottom: 0 !important;
    }
    .btn-primary:hover{
        color: button-hover-color !important;
    }
    .btn-danger{
        acrylic-bg(opacity-button,10px,false,#d9534f);
        color: text_color;
    }
    .btn-danger:hover{
        color: button-hover-color !important;
    }
    .btn.btn-user.btn-info.btn-sm.gcolor{
        color: text_color;
    }