uoj-theme.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. html {
  2. font-size: 16px
  3. }
  4. body {
  5. padding-top: 10px;
  6. padding-bottom: 10px;
  7. background-color: #efefef;
  8. }
  9. .uoj-content {
  10. min-height: 250px;
  11. }
  12. .uoj-footer {
  13. text-align: center;
  14. margin-top: 20px;
  15. padding-top: 20px;
  16. color: gray;
  17. border-top: 1px solid #e5e5e5;
  18. line-height: 10px;
  19. }
  20. .uoj-footer a {
  21. color: gray;
  22. }
  23. h1.page-header {
  24. font-size: 2em;
  25. }
  26. .page-header {
  27. padding-bottom: 9px;
  28. margin: 40px 0 20px;
  29. border-bottom: 1px solid #eee;
  30. }
  31. a.header-a {
  32. color: #333;
  33. }
  34. a sup {
  35. text-decoration: none;
  36. display: inline-block;
  37. }
  38. a sub {
  39. text-decoration: none;
  40. display: inline-block;
  41. }
  42. .indent2 {
  43. text-indent: 2em;
  44. }
  45. .markdown-editor-out p {
  46. text-indent: 2em;
  47. word-break: break-all;
  48. }
  49. article img {
  50. vertical-align: baseline;
  51. max-width: 100%;
  52. height: auto;
  53. }
  54. article h1 {
  55. font-size: 1.75em;
  56. font-weight: 700;
  57. }
  58. article h2 {
  59. font-size: 1.5em;
  60. font-weight: 700;
  61. margin: 1.2rem 0 1rem;
  62. }
  63. article h3 {
  64. font-size: 1.25em;
  65. font-weight: 700;
  66. margin: 1.2rem 0 1rem;
  67. }
  68. article code {
  69. font-family: monospace;
  70. }
  71. .blog-title {
  72. font-size: 2.125rem;
  73. font-weight: 700;
  74. margin: 1rem 0 1.5rem;
  75. }
  76. pre {
  77. -moz-tab-size: 4;
  78. -o-tab-size: 4;
  79. tab-size: 4;
  80. padding: 9.5px;
  81. margin: 0 0 10px;
  82. background-color: #f5f5f5;
  83. border: 1px solid #ccc;
  84. border-radius: 4px;
  85. }
  86. .uoj-username {
  87. font-weight: 800;
  88. }
  89. .uoj-honor {
  90. font-weight: 800;
  91. }
  92. .uoj-score {
  93. font-weight: 700;
  94. }
  95. .table-text-center>thead>tr>th {
  96. text-align: center;
  97. }
  98. .table-text-center>tbody>tr>td {
  99. text-align: center;
  100. }
  101. .table-vertical-middle>thead>tr>th {
  102. vertical-align: middle;
  103. }
  104. .table-vertical-middle>tbody>tr>td {
  105. vertical-align: middle;
  106. }
  107. .top-buffer-no {
  108. margin-top: 0px;
  109. }
  110. .top-buffer-xs {
  111. margin-top: 3px;
  112. }
  113. .top-buffer-sm {
  114. margin-top: 5px;
  115. }
  116. .top-buffer-md {
  117. margin-top: 10px;
  118. }
  119. .top-buffer-lg {
  120. margin-top: 30px;
  121. }
  122. .bot-buffer-no {
  123. margin-bottom: 0px;
  124. }
  125. .bot-buffer-xs {
  126. margin-bottom: 3px;
  127. }
  128. .bot-buffer-sm {
  129. margin-bottom: 5px;
  130. }
  131. .bot-buffer-md {
  132. margin-bottom: 10px;
  133. }
  134. .bot-buffer-lg {
  135. margin-bottom: 30px;
  136. }
  137. .glyphicon-ok, .glyphicon-ok-sign {
  138. color: green;
  139. }
  140. .glyphicon-remove, .glyphicon-remove-sign {
  141. color: red;
  142. }
  143. .comt {
  144. }
  145. .comtposterbox {
  146. text-align:center;
  147. }
  148. .comtbox {
  149. width: 100%;
  150. }
  151. .comtbox1 {
  152. white-space: pre-wrap;
  153. word-break: break-all;
  154. min-height: 80px;
  155. margin-top: 10px;
  156. margin-bottom: 10px;
  157. }
  158. .comtbox2 {
  159. text-align: right;
  160. }
  161. .comtbox3 {
  162. display: inline-block;
  163. margin-right: 5px;
  164. }
  165. .comtbox4 {
  166. display: inline-block;
  167. }
  168. .comtbox5 {
  169. background-image: -webkit-linear-gradient(top, #f5f5f5 0, #fafafa 100%);
  170. background-image: -o-linear-gradient(top, #f5f5f5 0, #fafafa 100%);
  171. background-image: linear-gradient(to bottom, #f5f5f5 0, #fafafa 100%);
  172. background-repeat: repeat-x;
  173. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fffafafa', GradientType=0);
  174. border-color: #dcdcdc;
  175. -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
  176. box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
  177. padding: 9px;
  178. border-radius: 3px;
  179. min-height: 20px;
  180. margin-bottom: 20px;
  181. border: 1px solid #e3e3e3;
  182. margin-top: 10px;
  183. }
  184. .comtbox6 {
  185. white-space: pre-wrap;
  186. word-break: break-all;
  187. }
  188. .comtbox7 {
  189. background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #fafafa 100%);
  190. background-image: -o-linear-gradient(top, #f5f5f5 0%, #fafafa 100%);
  191. background-image: linear-gradient(to bottom, #f5f5f5 0%, #fafafa 100%);
  192. background-repeat: repeat-x;
  193. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fffafafa', GradientType=0);
  194. border-color: #dcdcdc;
  195. -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
  196. box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
  197. border-radius: 3px;
  198. margin-left: 50px;
  199. margin-top: 10px;
  200. margin-bottom: 2px;
  201. padding-left: 10px;
  202. padding-right: 10px;
  203. padding-top:10px;
  204. white-space: nowrap;
  205. padding-bottom: 10px;
  206. border: 1px solid #e3e3e3;
  207. text-align: left;
  208. }
  209. .comtbox8 {
  210. background-image: -webkit-linear-gradient(top, #ffffff 100%, #fafafa 0%);
  211. background-image: -o-linear-gradient(top, #ffffff 100%, #fafafa 0%);
  212. background-image: linear-gradient(to bottom, #ffffff 100%, #fafafa 0%);
  213. background-repeat: repeat-x;
  214. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fffafafa', GradientType=0);
  215. border-color: #dcdcdc;
  216. -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
  217. box-shadow: inset 0 1px 3px rgba(0,0,0,0.05),0 1px 0 rgba(255,255,255,0.1);
  218. border-radius: 3px;
  219. margin-left: 50px;
  220. margin-top: 10px;
  221. margin-bottom: 2px;
  222. padding-left: 10px;
  223. padding-right: 10px;
  224. padding-top:10px;
  225. white-space: nowrap;
  226. padding-bottom: 10px;
  227. border: 1px solid #e3e3e3;
  228. text-align: left;
  229. }
  230. .question-content {
  231. max-height: 100px;
  232. white-space: pre-wrap;
  233. word-wrap: break-word;
  234. word-break: break-all;
  235. }
  236. .uoj-click-zan-block {
  237. display: inline-block;
  238. min-width: 140px;
  239. text-align: left;
  240. }
  241. .uoj-click-zan-up, .uoj-click-zan-down, .uoj-click-zan-cnt {
  242. margin-left: 5px;
  243. margin-right: 5px;
  244. }
  245. .uoj-click-zan-block-cur-up .uoj-click-zan-up {
  246. color: green;
  247. font-weight: 700;
  248. }
  249. .uoj-click-zan-block-cur-down .uoj-click-zan-down {
  250. color: red;
  251. font-weight: 700;
  252. }
  253. .uoj-click-zan-block-cur-down .uoj-click-zan-up, .uoj-click-zan-block-cur-up .uoj-click-zan-down {
  254. color: gray;
  255. }
  256. .uoj-click-zan-block-positive .uoj-click-zan-cnt {
  257. color: green;
  258. }
  259. .uoj-click-zan-block-neutral .uoj-click-zan-cnt {
  260. color: gray;
  261. }
  262. .uoj-click-zan-block-negative .uoj-click-zan-cnt {
  263. color: red;
  264. }
  265. .uoj-problem-tag {
  266. margin-left: 5px;
  267. margin-right: 5px;
  268. }
  269. .uoj-blog-tag {
  270. margin-left: 5px;
  271. margin-right: 5px;
  272. }
  273. .uoj-status-details-img-div {
  274. display:inline-block;
  275. width:50%;
  276. padding-right:10px;
  277. text-align:right;
  278. }
  279. .uoj-status-details-text-div {
  280. display:inline-block;
  281. width:50%;
  282. padding-left:10px;
  283. text-align:left;
  284. }
  285. .uoj-certs {
  286. display: inline-block;
  287. border-radius: 3px;
  288. padding: 3px 5px;
  289. color: white;
  290. font-weight: bold;
  291. font-size: 12px;
  292. margin: 0px 5px;
  293. }
  294. .uoj-certs:hover {
  295. }
  296. .uoj-avatar {
  297. width: 100px;
  298. height: 100px;
  299. }
  300. .uoj-certs-red { background-color: #c41e3a; }
  301. .uoj-certs-blue { background-color: #3498db; }
  302. .uoj-certs-green { background-color: #228b22; }
  303. .uoj-certs-purple { background-color: #8e44ad; }
  304. .uoj-certs-pink { background-color: #da70d6; }
  305. .uoj-certs-deepblue { background-color: #0000cd; }
  306. .uoj-certs-olive { background-color: #808000; }
  307. @keyframes sideBlue {
  308. 0% { background-position: 0% 50%; }
  309. 50% { background-position: 100% 50%; }
  310. 100% { background-position: 0% 50%; }
  311. }
  312. .uoj-certs-pro { background: linear-gradient(90deg, #8a00ff, #ff0000); }
  313. .uoj-certs-max { background: linear-gradient(90deg, #000000, #ff0000); }
  314. .uoj-certs-ultra {
  315. background: linear-gradient(90deg, #9589fe, #0484e2, #980ecc);
  316. background-size: 300% 100%;
  317. animation: sideBlue 4s ease-in-out infinite;
  318. }
  319. .uoj-certs-promax {
  320. background: linear-gradient(90deg, #000000, #ff0000);
  321. background-size: 300% 100%;
  322. animation: sideBlue 4s ease-in-out infinite;
  323. }
  324. .table {
  325. margin-bottom: 0;
  326. }
  327. .wyoj-topcard {
  328. background: #f8f9fa;
  329. border-radius: 12px;
  330. overflow: hidden;
  331. }
  332. /* ===== 首页服务器数据看板 ===== */
  333. .stat-card {
  334. border: 1px solid #e3e3e3;
  335. border-radius: 6px;
  336. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  337. transition: box-shadow 0.2s ease, transform 0.1s ease;
  338. }
  339. .stat-card:hover {
  340. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  341. transform: translateY(-2px);
  342. }
  343. .stat-icon {
  344. font-size: 1.3rem;
  345. color: #6c757d;
  346. margin-bottom: 4px;
  347. }
  348. .stat-num {
  349. font-size: 1.3rem;
  350. font-weight: 800;
  351. color: #343a40;
  352. line-height: 1.2;
  353. }
  354. .stat-label {
  355. font-size: 0.8rem;
  356. color: #6c757d;
  357. margin-top: 2px;
  358. }
  359. /* ===== 首页最近比赛 ===== */
  360. .contest-table {
  361. margin-bottom: 0;
  362. }
  363. .contest-table td {
  364. vertical-align: middle;
  365. padding: 12px 12px;
  366. border-top: 1px dashed #e9ecef;
  367. }
  368. .contest-table tbody tr:first-child td {
  369. border-top: none;
  370. }
  371. .contest-table .contest-name {
  372. white-space: nowrap;
  373. }
  374. .contest-table .contest-name a {
  375. font-size: 1rem;
  376. font-weight: 700;
  377. color: #212529;
  378. }
  379. .contest-table .contest-info {
  380. font-size: 0.95rem;
  381. color: #343a40;
  382. white-space: nowrap;
  383. }
  384. .contest-table .contest-info .glyphicon {
  385. font-size: 0.85rem;
  386. margin-right: 2px;
  387. color: #495057;
  388. }
  389. .contest-table .contest-countdown {
  390. font-size: 0.95rem;
  391. margin-left: 6px;
  392. color: #e67e22;
  393. }
  394. .contest-table .contest-countdown span {
  395. font-size: 0.95rem !important;
  396. }
  397. /* ===== 题目详情页 ===== */
  398. .problem-title-bar {
  399. margin-bottom: 8px;
  400. }
  401. .problem-statement {
  402. background: #ffffff;
  403. border: 1px solid #e3e3e3;
  404. border-radius: 6px;
  405. padding: 24px 28px;
  406. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  407. line-height: 1.7;
  408. overflow-wrap: break-word;
  409. }
  410. .problem-sidebar {
  411. position: sticky;
  412. top: 12px;
  413. }
  414. .problem-meta-card {
  415. border: 1px solid #e3e3e3;
  416. border-radius: 6px;
  417. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  418. margin-bottom: 16px;
  419. }
  420. .problem-meta-card .card-header {
  421. background: #f8f9fa;
  422. border-bottom: 1px solid #e3e3e3;
  423. font-weight: 700;
  424. color: #495057;
  425. padding: 10px 16px;
  426. font-size: 0.95rem;
  427. }
  428. .problem-meta-card .card-body {
  429. padding: 0;
  430. }
  431. .problem-meta-card .card-body ul li {
  432. padding: 9px 16px;
  433. border-bottom: 1px dashed #e9ecef;
  434. font-size: 0.9rem;
  435. }
  436. .problem-meta-card .card-body ul li:last-child {
  437. border-bottom: none;
  438. }
  439. .problem-meta-card .meta-label {
  440. color: #6c757d;
  441. }
  442. .problem-meta-card .badge-danger {
  443. background-color: #dc3545;
  444. }
  445. .blog-content.collapsed {
  446. max-height: 300px;
  447. overflow: hidden;
  448. transition: max-height 0.3s ease;
  449. transition: box-shadow 0.2ease, transform 0.1s ease;
  450. cursor: pointer;
  451. }
  452. .blog-content.collapsed:hover {
  453. box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  454. }
  455. .blog-content.expanded {
  456. max-height: none;
  457. }
  458. /* --- submission details: test-point squares + detail/code modal dialog --- */
  459. .uoj-test-grid {
  460. display: flex;
  461. flex-direction: column;
  462. gap: 10px;
  463. }
  464. .uoj-test-group {
  465. display: flex;
  466. flex-wrap: wrap;
  467. gap: 8px;
  468. }
  469. .uoj-test-group-subtask {
  470. display: block;
  471. padding-bottom: 8px;
  472. border-bottom: 1px solid #e9ecef;
  473. }
  474. .uoj-test-group-subtask:last-child {
  475. border-bottom: none;
  476. padding-bottom: 0;
  477. }
  478. .uoj-test-subtask-head {
  479. font-size: 0.85rem;
  480. color: #495057;
  481. margin-bottom: 6px;
  482. }
  483. .uoj-test-rects {
  484. display: flex;
  485. flex-wrap: wrap;
  486. gap: 8px;
  487. }
  488. .uoj-test-rect {
  489. box-sizing: border-box;
  490. width: 96px;
  491. height: 96px;
  492. padding: 6px 4px;
  493. border: 1px solid rgba(0, 0, 0, 0.12);
  494. border-radius: 4px;
  495. display: flex;
  496. flex-direction: column;
  497. align-items: center;
  498. justify-content: center;
  499. gap: 1px;
  500. line-height: 1.1;
  501. text-align: center;
  502. overflow: hidden;
  503. cursor: pointer;
  504. -webkit-user-select: none;
  505. user-select: none;
  506. }
  507. .uoj-test-rect-index {
  508. font-size: 12px;
  509. opacity: 0.8;
  510. white-space: nowrap;
  511. }
  512. .uoj-test-rect-verdict {
  513. font-size: 18px;
  514. font-weight: 700;
  515. line-height: 1.1;
  516. white-space: nowrap;
  517. }
  518. .uoj-test-rect-meta {
  519. font-size: 10px;
  520. opacity: 0.9;
  521. white-space: nowrap;
  522. }
  523. .uoj-test-rect-ac {
  524. background-color: #00ee00;
  525. border-color: #2bff4f;
  526. color: #fff;
  527. }
  528. .uoj-test-rect-wa {
  529. background-color: #dd0000;
  530. border-color: #ff0000;
  531. color: #fff;
  532. }
  533. .uoj-test-rect-other {
  534. background-color: #e6e61e;
  535. border-color: #ffff2b;
  536. color: #333;
  537. }
  538. .uoj-test-rect[data-target]:hover {
  539. filter: brightness(1.08);
  540. }
  541. .uoj-test-rect.is-disabled {
  542. cursor: default;
  543. opacity: 0.75;
  544. }
  545. .uoj-test-rect.is-selected {
  546. outline: 2px solid #333;
  547. outline-offset: 1px;
  548. }
  549. .uoj-test-rect-ac.is-selected {
  550. outline-color: #00ee00;
  551. }
  552. .uoj-test-rect-wa.is-selected {
  553. outline-color: #dd0000;
  554. }
  555. .uoj-test-rect-other.is-selected {
  556. outline-color: #e6e61e;
  557. }
  558. .uoj-test-body>h4 {
  559. font-size: 1rem;
  560. margin-top: 8px;
  561. }
  562. .uoj-details-error>pre {
  563. margin-top: 8px;
  564. }
  565. .uoj-code-toggle {
  566. margin-bottom: 2px;
  567. }
  568. .uoj-code-meta {
  569. margin-bottom: 8px;
  570. font-size: 0.85rem;
  571. }
  572. .uoj-modal {
  573. position: fixed;
  574. top: 0;
  575. left: 0;
  576. right: 0;
  577. bottom: 0;
  578. z-index: 1060;
  579. display: flex;
  580. align-items: center;
  581. justify-content: center;
  582. padding: 16px;
  583. background-color: rgba(0, 0, 0, 0.5);
  584. overflow: auto;
  585. }
  586. .uoj-modal[hidden] {
  587. display: none;
  588. }
  589. .uoj-modal-backdrop {
  590. position: absolute;
  591. top: 0;
  592. left: 0;
  593. right: 0;
  594. bottom: 0;
  595. }
  596. .uoj-modal-window {
  597. position: relative;
  598. z-index: 1;
  599. width: min(1100px, 88vw);
  600. height: min(900px, 80vh);
  601. max-width: 100%;
  602. max-height: 100%;
  603. display: flex;
  604. flex-direction: column;
  605. background-color: #fff;
  606. border: 1px solid #dee2e6;
  607. border-radius: 4px;
  608. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  609. overflow: hidden;
  610. }
  611. .uoj-modal-body {
  612. flex: 1 1 auto;
  613. overflow: auto;
  614. padding: 12px 14px;
  615. }
  616. .uoj-modal-close {
  617. position: absolute;
  618. top: 6px;
  619. right: 8px;
  620. z-index: 2;
  621. width: 30px;
  622. height: 30px;
  623. padding: 0;
  624. border: 0;
  625. border-radius: 4px;
  626. background-color: transparent;
  627. color: #495057;
  628. font-size: 22px;
  629. line-height: 1;
  630. cursor: pointer;
  631. }
  632. .uoj-modal-close:hover {
  633. background-color: #f1f3f5;
  634. color: #000;
  635. }
  636. body.uoj-modal-open {
  637. overflow: hidden;
  638. }
  639. @media (max-width: 480px) {
  640. .uoj-test-group,
  641. .uoj-test-rects {
  642. gap: 6px;
  643. }
  644. .uoj-test-rect {
  645. width: 80px;
  646. height: 80px;
  647. padding: 4px 2px;
  648. }
  649. .uoj-test-rect-index {
  650. font-size: 11px;
  651. }
  652. .uoj-test-rect-verdict {
  653. font-size: 16px;
  654. }
  655. .uoj-test-rect-meta {
  656. font-size: 9px;
  657. }
  658. }
  659. /* ==========================================================================
  660. Quiet section header
  661. --------------------------------------------------------------------------
  662. The card-header is a *label*, not a banner: light surface, hairline, dark
  663. grey small type. Colour on this site is reserved for meaning (red = rating,
  664. green/red/yellow = verdict), so a saturated header competes with it.
  665. This is the same treatment `.problem-meta-card .card-header` already used.
  666. Judge-status headers (.card-uoj-*) and `bg-*` utility headers are more
  667. specific, so they keep their own colours.
  668. ========================================================================== */
  669. .card-header {
  670. background: #f8f9fa;
  671. border-bottom: 1px solid #e3e3e3;
  672. color: #495057;
  673. font-size: 0.95rem;
  674. font-weight: 700;
  675. }
  676. /* the markup mixes <h4>/<h5>/<div> inside headers -- normalise them all */
  677. .card-header > h1, .card-header > h2, .card-header > h3,
  678. .card-header > h4, .card-header > h5, .card-header > h6,
  679. .card-header > .card-title {
  680. color: inherit;
  681. font-size: 0.95rem;
  682. font-weight: 700;
  683. line-height: 1.4;
  684. margin: 0;
  685. }
  686. .card-header .card-title > small,
  687. .card-header > small {
  688. font-weight: 400;
  689. }