| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806 |
- html {
- font-size: 16px
- }
- body {
- padding-top: 10px;
- padding-bottom: 10px;
- background-color: #efefef;
- }
- .uoj-content {
- min-height: 250px;
- }
- .uoj-footer {
- text-align: center;
- margin-top: 20px;
- padding-top: 20px;
- color: gray;
- border-top: 1px solid #e5e5e5;
- line-height: 10px;
- }
- .uoj-footer a {
- color: gray;
- }
- h1.page-header {
- font-size: 2em;
- }
- .page-header {
- padding-bottom: 9px;
- margin: 40px 0 20px;
- border-bottom: 1px solid #eee;
- }
- a.header-a {
- color: #333;
- }
- a sup {
- text-decoration: none;
- display: inline-block;
- }
- a sub {
- text-decoration: none;
- display: inline-block;
- }
- .indent2 {
- text-indent: 2em;
- }
- .markdown-editor-out p {
- text-indent: 2em;
- word-break: break-all;
- }
- article img {
- vertical-align: baseline;
- max-width: 100%;
- height: auto;
- }
- article h1 {
- font-size: 1.75em;
- font-weight: 700;
- }
- article h2 {
- font-size: 1.5em;
- font-weight: 700;
- margin: 1.2rem 0 1rem;
- }
- article h3 {
- font-size: 1.25em;
- font-weight: 700;
- margin: 1.2rem 0 1rem;
- }
- article code {
- font-family: monospace;
- }
- .blog-title {
- font-size: 2.125rem;
- font-weight: 700;
- margin: 1rem 0 1.5rem;
- }
- pre {
- -moz-tab-size: 4;
- -o-tab-size: 4;
- tab-size: 4;
- padding: 9.5px;
- margin: 0 0 10px;
- background-color: #f5f5f5;
- border: 1px solid #ccc;
- border-radius: 4px;
- }
- .uoj-username {
- font-weight: 800;
- }
- .uoj-honor {
- font-weight: 800;
- }
- .uoj-score {
- font-weight: 700;
- }
- .table-text-center>thead>tr>th {
- text-align: center;
- }
- .table-text-center>tbody>tr>td {
- text-align: center;
- }
- .table-vertical-middle>thead>tr>th {
- vertical-align: middle;
- }
- .table-vertical-middle>tbody>tr>td {
- vertical-align: middle;
- }
- .top-buffer-no {
- margin-top: 0px;
- }
- .top-buffer-xs {
- margin-top: 3px;
- }
- .top-buffer-sm {
- margin-top: 5px;
- }
- .top-buffer-md {
- margin-top: 10px;
- }
- .top-buffer-lg {
- margin-top: 30px;
- }
- .bot-buffer-no {
- margin-bottom: 0px;
- }
- .bot-buffer-xs {
- margin-bottom: 3px;
- }
- .bot-buffer-sm {
- margin-bottom: 5px;
- }
- .bot-buffer-md {
- margin-bottom: 10px;
- }
- .bot-buffer-lg {
- margin-bottom: 30px;
- }
- .glyphicon-ok, .glyphicon-ok-sign {
- color: green;
- }
- .glyphicon-remove, .glyphicon-remove-sign {
- color: red;
- }
- .comt {
- }
- .comtposterbox {
- text-align:center;
- }
- .comtbox {
- width: 100%;
- }
- .comtbox1 {
- white-space: pre-wrap;
- word-break: break-all;
- min-height: 80px;
- margin-top: 10px;
- margin-bottom: 10px;
- }
- .comtbox2 {
- text-align: right;
- }
- .comtbox3 {
- display: inline-block;
- margin-right: 5px;
- }
- .comtbox4 {
- display: inline-block;
- }
- .comtbox5 {
- background-image: -webkit-linear-gradient(top, #f5f5f5 0, #fafafa 100%);
- background-image: -o-linear-gradient(top, #f5f5f5 0, #fafafa 100%);
- background-image: linear-gradient(to bottom, #f5f5f5 0, #fafafa 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fffafafa', GradientType=0);
- border-color: #dcdcdc;
- -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
- box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
- padding: 9px;
- border-radius: 3px;
-
- min-height: 20px;
- margin-bottom: 20px;
- border: 1px solid #e3e3e3;
- margin-top: 10px;
- }
- .comtbox6 {
- white-space: pre-wrap;
- word-break: break-all;
- }
- .comtbox7 {
- background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #fafafa 100%);
- background-image: -o-linear-gradient(top, #f5f5f5 0%, #fafafa 100%);
- background-image: linear-gradient(to bottom, #f5f5f5 0%, #fafafa 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fffafafa', GradientType=0);
- border-color: #dcdcdc;
- -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
- box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
- border-radius: 3px;
-
- margin-left: 50px;
- margin-top: 10px;
- margin-bottom: 2px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top:10px;
- white-space: nowrap;
- padding-bottom: 10px;
- border: 1px solid #e3e3e3;
-
- text-align: left;
- }
- .comtbox8 {
- background-image: -webkit-linear-gradient(top, #ffffff 100%, #fafafa 0%);
- background-image: -o-linear-gradient(top, #ffffff 100%, #fafafa 0%);
- background-image: linear-gradient(to bottom, #ffffff 100%, #fafafa 0%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fffafafa', GradientType=0);
- border-color: #dcdcdc;
- -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
- box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
- border-radius: 3px;
-
- margin-left: 50px;
- margin-top: 10px;
- margin-bottom: 2px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top:10px;
- white-space: nowrap;
- padding-bottom: 10px;
- border: 1px solid #e3e3e3;
-
- text-align: left;
- }
- .question-content {
- max-height: 100px;
- white-space: pre-wrap;
- word-wrap: break-word;
- word-break: break-all;
- }
- .uoj-click-zan-block {
- display: inline-block;
- min-width: 140px;
- text-align: left;
- }
- .uoj-click-zan-up, .uoj-click-zan-down, .uoj-click-zan-cnt {
- margin-left: 5px;
- margin-right: 5px;
- }
- .uoj-click-zan-block-cur-up .uoj-click-zan-up {
- color: green;
- font-weight: 700;
- }
- .uoj-click-zan-block-cur-down .uoj-click-zan-down {
- color: red;
- font-weight: 700;
- }
- .uoj-click-zan-block-cur-down .uoj-click-zan-up, .uoj-click-zan-block-cur-up .uoj-click-zan-down {
- color: gray;
- }
- .uoj-click-zan-block-positive .uoj-click-zan-cnt {
- color: green;
- }
- .uoj-click-zan-block-neutral .uoj-click-zan-cnt {
- color: gray;
- }
- .uoj-click-zan-block-negative .uoj-click-zan-cnt {
- color: red;
- }
- .uoj-problem-tag {
- margin-left: 5px;
- margin-right: 5px;
- }
- .uoj-blog-tag {
- margin-left: 5px;
- margin-right: 5px;
- }
- .uoj-status-details-img-div {
- display:inline-block;
- width:50%;
- padding-right:10px;
- text-align:right;
- }
- .uoj-status-details-text-div {
- display:inline-block;
- width:50%;
- padding-left:10px;
- text-align:left;
- }
- .uoj-certs {
- display: inline-block;
- border-radius: 3px;
- padding: 3px 5px;
- color: white;
- font-weight: bold;
- font-size: 12px;
- margin: 0px 5px;
- }
- .uoj-certs:hover {
- }
- .uoj-avatar {
- width: 100px;
- height: 100px;
- }
- .uoj-certs-red { background-color: #c41e3a; }
- .uoj-certs-blue { background-color: #3498db; }
- .uoj-certs-green { background-color: #228b22; }
- .uoj-certs-purple { background-color: #8e44ad; }
- .uoj-certs-pink { background-color: #da70d6; }
- .uoj-certs-deepblue { background-color: #0000cd; }
- .uoj-certs-olive { background-color: #808000; }
- @keyframes sideBlue {
- 0% { background-position: 0% 50%; }
- 50% { background-position: 100% 50%; }
- 100% { background-position: 0% 50%; }
- }
- .uoj-certs-pro { background: linear-gradient(90deg, #8a00ff, #ff0000); }
- .uoj-certs-max { background: linear-gradient(90deg, #000000, #ff0000); }
- .uoj-certs-ultra {
- background: linear-gradient(90deg, #9589fe, #0484e2, #980ecc);
- background-size: 300% 100%;
- animation: sideBlue 4s ease-in-out infinite;
- }
- .uoj-certs-promax {
- background: linear-gradient(90deg, #000000, #ff0000);
- background-size: 300% 100%;
- animation: sideBlue 4s ease-in-out infinite;
- }
- .table {
- margin-bottom: 0;
- }
- .wyoj-topcard {
- background: #f8f9fa;
- border-radius: 12px;
- overflow: hidden;
- }
- /* ===== 首页服务器数据看板 ===== */
- .stat-card {
- border: 1px solid #e3e3e3;
- border-radius: 6px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
- transition: box-shadow 0.2s ease, transform 0.1s ease;
- }
- .stat-card:hover {
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
- transform: translateY(-2px);
- }
- .stat-icon {
- font-size: 1.3rem;
- color: #6c757d;
- margin-bottom: 4px;
- }
- .stat-num {
- font-size: 1.3rem;
- font-weight: 800;
- color: #343a40;
- line-height: 1.2;
- }
- .stat-label {
- font-size: 0.8rem;
- color: #6c757d;
- margin-top: 2px;
- }
- /* ===== 首页最近比赛 ===== */
- .contest-table {
- margin-bottom: 0;
- }
- .contest-table td {
- vertical-align: middle;
- padding: 12px 12px;
- border-top: 1px dashed #e9ecef;
- }
- .contest-table tbody tr:first-child td {
- border-top: none;
- }
- .contest-table .contest-name {
- white-space: nowrap;
- }
- .contest-table .contest-name a {
- font-size: 1rem;
- font-weight: 700;
- color: #212529;
- }
- .contest-table .contest-info {
- font-size: 0.95rem;
- color: #343a40;
- white-space: nowrap;
- }
- .contest-table .contest-info .glyphicon {
- font-size: 0.85rem;
- margin-right: 2px;
- color: #495057;
- }
- .contest-table .contest-countdown {
- font-size: 0.95rem;
- margin-left: 6px;
- color: #e67e22;
- }
- .contest-table .contest-countdown span {
- font-size: 0.95rem !important;
- }
- /* ===== 题目详情页 ===== */
- .problem-title-bar {
- margin-bottom: 8px;
- }
- .problem-statement {
- background: #ffffff;
- border: 1px solid #e3e3e3;
- border-radius: 6px;
- padding: 24px 28px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
- line-height: 1.7;
- overflow-wrap: break-word;
- }
- .problem-sidebar {
- position: sticky;
- top: 12px;
- }
- .problem-meta-card {
- border: 1px solid #e3e3e3;
- border-radius: 6px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
- margin-bottom: 16px;
- }
- .problem-meta-card .card-header {
- background: #f8f9fa;
- border-bottom: 1px solid #e3e3e3;
- font-weight: 700;
- color: #495057;
- padding: 10px 16px;
- font-size: 0.95rem;
- }
- .problem-meta-card .card-body {
- padding: 0;
- }
- .problem-meta-card .card-body ul li {
- padding: 9px 16px;
- border-bottom: 1px dashed #e9ecef;
- font-size: 0.9rem;
- }
- .problem-meta-card .card-body ul li:last-child {
- border-bottom: none;
- }
- .problem-meta-card .meta-label {
- color: #6c757d;
- }
- .problem-meta-card .badge-danger {
- background-color: #dc3545;
- }
- .blog-content.collapsed {
- max-height: 300px;
- overflow: hidden;
- transition: max-height 0.3s ease;
- transition: box-shadow 0.2ease, transform 0.1s ease;
- cursor: pointer;
- }
- .blog-content.collapsed:hover {
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
- }
- .blog-content.expanded {
- max-height: none;
- }
- /* --- submission details: test-point squares + detail/code modal dialog --- */
- .uoj-test-grid {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .uoj-test-group {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .uoj-test-group-subtask {
- display: block;
- padding-bottom: 8px;
- border-bottom: 1px solid #e9ecef;
- }
- .uoj-test-group-subtask:last-child {
- border-bottom: none;
- padding-bottom: 0;
- }
- .uoj-test-subtask-head {
- font-size: 0.85rem;
- color: #495057;
- margin-bottom: 6px;
- }
- .uoj-test-rects {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .uoj-test-rect {
- box-sizing: border-box;
- width: 96px;
- height: 96px;
- padding: 6px 4px;
- border: 1px solid rgba(0, 0, 0, 0.12);
- border-radius: 4px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 1px;
- line-height: 1.1;
- text-align: center;
- overflow: hidden;
- cursor: pointer;
- -webkit-user-select: none;
- user-select: none;
- }
- .uoj-test-rect-index {
- font-size: 12px;
- opacity: 0.8;
- white-space: nowrap;
- }
- .uoj-test-rect-verdict {
- font-size: 18px;
- font-weight: 700;
- line-height: 1.1;
- white-space: nowrap;
- }
- .uoj-test-rect-meta {
- font-size: 10px;
- opacity: 0.9;
- white-space: nowrap;
- }
- .uoj-test-rect-ac {
- background-color: #00ee00;
- border-color: #2bff4f;
- color: #fff;
- }
- .uoj-test-rect-wa {
- background-color: #dd0000;
- border-color: #ff0000;
- color: #fff;
- }
- .uoj-test-rect-other {
- background-color: #e6e61e;
- border-color: #ffff2b;
- color: #333;
- }
- .uoj-test-rect[data-target]:hover {
- filter: brightness(1.08);
- }
- .uoj-test-rect.is-disabled {
- cursor: default;
- opacity: 0.75;
- }
- .uoj-test-rect.is-selected {
- outline: 2px solid #333;
- outline-offset: 1px;
- }
- .uoj-test-rect-ac.is-selected {
- outline-color: #00ee00;
- }
- .uoj-test-rect-wa.is-selected {
- outline-color: #dd0000;
- }
- .uoj-test-rect-other.is-selected {
- outline-color: #e6e61e;
- }
- .uoj-test-body>h4 {
- font-size: 1rem;
- margin-top: 8px;
- }
- .uoj-details-error>pre {
- margin-top: 8px;
- }
- .uoj-code-toggle {
- margin-bottom: 2px;
- }
- .uoj-code-meta {
- margin-bottom: 8px;
- font-size: 0.85rem;
- }
- .uoj-modal {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1060;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 16px;
- background-color: rgba(0, 0, 0, 0.5);
- overflow: auto;
- }
- .uoj-modal[hidden] {
- display: none;
- }
- .uoj-modal-backdrop {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
- .uoj-modal-window {
- position: relative;
- z-index: 1;
- width: min(1100px, 88vw);
- height: min(900px, 80vh);
- max-width: 100%;
- max-height: 100%;
- display: flex;
- flex-direction: column;
- background-color: #fff;
- border: 1px solid #dee2e6;
- border-radius: 4px;
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
- overflow: hidden;
- }
- .uoj-modal-body {
- flex: 1 1 auto;
- overflow: auto;
- padding: 12px 14px;
- }
- .uoj-modal-close {
- position: absolute;
- top: 6px;
- right: 8px;
- z-index: 2;
- width: 30px;
- height: 30px;
- padding: 0;
- border: 0;
- border-radius: 4px;
- background-color: transparent;
- color: #495057;
- font-size: 22px;
- line-height: 1;
- cursor: pointer;
- }
- .uoj-modal-close:hover {
- background-color: #f1f3f5;
- color: #000;
- }
- body.uoj-modal-open {
- overflow: hidden;
- }
- @media (max-width: 480px) {
- .uoj-test-group,
- .uoj-test-rects {
- gap: 6px;
- }
- .uoj-test-rect {
- width: 80px;
- height: 80px;
- padding: 4px 2px;
- }
- .uoj-test-rect-index {
- font-size: 11px;
- }
- .uoj-test-rect-verdict {
- font-size: 16px;
- }
- .uoj-test-rect-meta {
- font-size: 9px;
- }
- }
- /* ==========================================================================
- Quiet section header
- --------------------------------------------------------------------------
- The card-header is a *label*, not a banner: light surface, hairline, dark
- grey small type. Colour on this site is reserved for meaning (red = rating,
- green/red/yellow = verdict), so a saturated header competes with it.
- This is the same treatment `.problem-meta-card .card-header` already used.
- Judge-status headers (.card-uoj-*) and `bg-*` utility headers are more
- specific, so they keep their own colours.
- ========================================================================== */
- .card-header {
- background: #f8f9fa;
- border-bottom: 1px solid #e3e3e3;
- color: #495057;
- font-size: 0.95rem;
- font-weight: 700;
- }
- /* the markup mixes <h4>/<h5>/<div> inside headers -- normalise them all */
- .card-header > h1, .card-header > h2, .card-header > h3,
- .card-header > h4, .card-header > h5, .card-header > h6,
- .card-header > .card-title {
- color: inherit;
- font-size: 0.95rem;
- font-weight: 700;
- line-height: 1.4;
- margin: 0;
- }
- .card-header .card-title > small,
- .card-header > small {
- font-weight: 400;
- }
|