| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066 |
- 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;
- }
- /* #00ee00 was a maximum-saturation neon green; a field of 96px squares of it
- was hard to look at. #28a745 is the theme's own success green (btn-success,
- text-success), so AC also stops being an arbitrary one-off colour.
- WA stays Vivid on purpose: failures should be the thing that stands out. */
- .uoj-test-rect-ac {
- background-color: #28a745;
- border-color: #1e7e34;
- 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: #28a745;
- }
- .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;
- }
- /* ==========================================================================
- Blog pages: list titles/cards, shared sidebar, activity heatmap.
- Self-contained; nothing here restyles global typography, buttons or cards.
- ========================================================================== */
- /* -- list titles: a list headline, not an article headline ---------------- */
- .blog-title.wyoj-blog-list-title {
- font-size: 1.25rem;
- font-weight: 600;
- color: #1d1d1f;
- line-height: 1.4;
- margin: 0 0 0.75rem;
- }
- .blog-title.wyoj-blog-list-title a {
- color: inherit;
- text-decoration: none;
- }
- .blog-title.wyoj-blog-list-title a:hover {
- color: #007bff;
- }
- /* -- post detail title: clearly larger than the list headline ------------ */
- .blog-title.wyoj-blog-detail-title {
- font-size: 1.5rem;
- font-weight: 600;
- line-height: 1.3;
- /* .blog-title carries `margin: 1rem 0 1.5rem`. Inside a card body that 1rem
- stacked on the card's own 20px padding and pushed the title 37px off the
- top edge; the card padding is inset enough on its own. */
- margin-top: 0;
- }
- /* -- compact author/date/zan meta line ----------------------------------- */
- .wyoj-blog-meta {
- font-size: 0.85rem;
- line-height: 1.2;
- }
- .wyoj-blog-meta-avatar {
- width: 24px;
- height: 24px;
- object-fit: cover;
- }
- /* -- list summary: clamp the real rendered HTML; click to expand ---------- */
- .blog-list .blog-content-orig {
- display: -webkit-box;
- -webkit-line-clamp: 6;
- -webkit-box-orient: vertical;
- overflow: hidden;
- /* safety cap: -webkit-line-clamp treats an embedded table/JSON block as a
- single box, so bound the height as well (~6 lines + paragraph gaps). */
- max-height: 14rem;
- }
- .blog-list .blog-content:not(.uoj-clamp-open) {
- cursor: pointer;
- }
- .blog-list .blog-content.uoj-clamp-open .blog-content-orig {
- display: block;
- overflow: visible;
- max-height: none;
- }
- /* -- infinite feed status ------------------------------------------------ */
- .wyoj-blog-feed-loading {
- font-size: 0.9rem;
- }
- .wyoj-blog-feed-loading .spinner-border {
- width: 1rem;
- height: 1rem;
- border-width: 0.15em;
- }
- /* -- shared sidebar: sticky on wide screens only ------------------------- */
- .wyoj-blog-owner-card .card-body {
- text-align: center;
- }
- .wyoj-blog-owner-avatar {
- width: 80px;
- height: 80px;
- object-fit: cover;
- border-radius: 8px;
- }
- .wyoj-blog-owner-name {
- margin-top: 0.5rem;
- font-weight: 600;
- }
- .wyoj-blog-owner-motto {
- margin-top: 0.25rem;
- font-size: 0.85rem;
- word-break: break-word;
- }
- @media (min-width: 992px) {
- .wyoj-blog-sidebar {
- position: sticky;
- top: 12px;
- max-height: calc(100vh - 24px);
- overflow-y: auto;
- }
- }
- /* -- GitHub-style activity heatmap --------------------------------------- */
- /* Mini preview in the sidebar: full 53 weeks at 3px, no labels, no legend and
- no horizontal scroll. minmax(2px,3px) lets the tracks shrink instead of
- overflowing when col-lg-3 is at its narrowest (992-1200px container). */
- .wyoj-heatmap-card {
- cursor: pointer;
- transition: box-shadow 0.15s ease;
- }
- .wyoj-heatmap-card:hover {
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- }
- /* Keep the header's 20px inset so the grid lines up with the 活跃度 label, but
- pull the bottom in: the default 20px left the card ending in a band of empty
- space under the 查看全年 hint. */
- .wyoj-heatmap-card .card-body {
- padding-bottom: 10px;
- }
- .wyoj-heatmap-mini {
- width: 100%;
- }
- .wyoj-heatmap-grid-mini {
- display: grid;
- grid-auto-flow: column;
- grid-template-columns: repeat(53, minmax(2px, 3px));
- grid-template-rows: repeat(7, 3px);
- gap: 1px;
- justify-content: space-between;
- }
- .wyoj-heatmap-hint {
- margin-top: 8px;
- font-size: 12px;
- text-align: center;
- }
- .wyoj-heatmap-card:hover .wyoj-heatmap-hint {
- color: #007bff !important;
- }
- /* Shared cells. The grid tracks own the size; the base rule must not impose
- width/height or the cells would not shrink to fit. */
- .wyoj-heatmap-grid .wyoj-heatmap-cell {
- display: block;
- width: auto;
- height: auto;
- border-radius: 1px;
- }
- .wyoj-heatmap-cell[data-level="0"] { background-color: #ebedf0; }
- .wyoj-heatmap-cell[data-level="1"] { background-color: #9be9a8; }
- .wyoj-heatmap-cell[data-level="2"] { background-color: #40c463; }
- .wyoj-heatmap-cell[data-level="3"] { background-color: #30a14e; }
- .wyoj-heatmap-cell[data-level="4"] { background-color: #216e39; }
- .wyoj-heatmap-cell-future {
- visibility: hidden;
- }
- /* Enlarged grid inside the reusable .uoj-modal component. */
- .wyoj-heatmap-modal .uoj-modal-window {
- height: auto;
- width: min(1040px, 94vw);
- }
- .wyoj-heatmap-modal-head {
- padding-right: 28px;
- margin-bottom: 10px;
- }
- .wyoj-heatmap-modal-title {
- font-size: 1.1rem;
- font-weight: 700;
- margin-right: 8px;
- }
- .wyoj-heatmap-lg-wrap {
- overflow-x: auto;
- padding-bottom: 4px;
- }
- .wyoj-heatmap-lg {
- display: grid;
- grid-template-columns: auto auto;
- grid-template-rows: auto auto;
- column-gap: 6px;
- row-gap: 4px;
- width: max-content;
- }
- .wyoj-heatmap-lg-corner {
- grid-column: 1;
- grid-row: 1;
- }
- .wyoj-heatmap-lg .wyoj-heatmap-months {
- grid-column: 2;
- grid-row: 1;
- }
- .wyoj-heatmap-lg-days {
- grid-column: 1;
- grid-row: 2;
- display: grid;
- grid-template-rows: repeat(7, 14px);
- gap: 3px;
- font-size: 11px;
- line-height: 14px;
- color: #586069;
- text-align: right;
- }
- .wyoj-heatmap-lg .wyoj-heatmap-grid {
- grid-column: 2;
- grid-row: 2;
- }
- .wyoj-heatmap-months {
- display: grid;
- height: 14px;
- font-size: 10px;
- line-height: 1;
- color: #586069;
- }
- .wyoj-heatmap-months > span {
- white-space: nowrap;
- }
- .wyoj-heatmap-months-lg {
- grid-template-columns: repeat(53, 14px);
- column-gap: 3px;
- height: 16px;
- font-size: 11px;
- }
- .wyoj-heatmap-grid-lg {
- display: grid;
- grid-auto-flow: column;
- grid-template-columns: repeat(53, 14px);
- grid-template-rows: repeat(7, 14px);
- gap: 3px;
- }
- .wyoj-heatmap-grid-lg .wyoj-heatmap-cell {
- border-radius: 3px;
- }
- .wyoj-heatmap-legend {
- display: flex;
- align-items: center;
- margin-top: 10px;
- font-size: 11px;
- color: #586069;
- }
- .wyoj-heatmap-legend > span {
- margin-right: 4px;
- }
- .wyoj-heatmap-legend-label {
- white-space: nowrap;
- }
- .wyoj-heatmap-legend .wyoj-heatmap-cell {
- display: inline-block;
- width: 5px;
- height: 5px;
- border-radius: 1px;
- margin-right: 3px;
- vertical-align: middle;
- }
- .wyoj-heatmap-legend-lg .wyoj-heatmap-cell {
- width: 14px;
- height: 14px;
- border-radius: 2px;
- }
|