github.com/ngocphuongnb/tetua@v0.0.7-alpha/app/themes/default/assets/css/style.css (about) 1 pre code.hljs { 2 display: block; 3 overflow-x: auto; 4 padding: 1em; 5 } 6 code.hljs { 7 padding: 3px 5px; 8 } /*!Theme: GitHub | Description: Light theme as seen on github.com | Author: github.com | Maintainer: @Hirse | Updated: 2021-05-15 | Outdated base version: https://github.com/primer/github-syntax-light | Current colors taken from GitHub's CSS*/ 9 .hljs { 10 color: #24292e; 11 background: #fff; 12 } 13 .hljs-doctag, 14 .hljs-keyword, 15 .hljs-meta .hljs-keyword, 16 .hljs-template-tag, 17 .hljs-template-variable, 18 .hljs-type, 19 .hljs-variable.language_ { 20 color: #d73a49; 21 } 22 .hljs-title, 23 .hljs-title.class_, 24 .hljs-title.class_.inherited__, 25 .hljs-title.function_ { 26 color: #6f42c1; 27 } 28 .hljs-attr, 29 .hljs-attribute, 30 .hljs-literal, 31 .hljs-meta, 32 .hljs-number, 33 .hljs-operator, 34 .hljs-selector-attr, 35 .hljs-selector-class, 36 .hljs-selector-id, 37 .hljs-variable { 38 color: #005cc5; 39 } 40 .hljs-meta .hljs-string, 41 .hljs-regexp, 42 .hljs-string { 43 color: #032f62; 44 } 45 .hljs-built_in, 46 .hljs-symbol { 47 color: #e36209; 48 } 49 .hljs-code, 50 .hljs-comment, 51 .hljs-formula { 52 color: #6a737d; 53 } 54 .hljs-name, 55 .hljs-quote, 56 .hljs-selector-pseudo, 57 .hljs-selector-tag { 58 color: #22863a; 59 } 60 .hljs-subst { 61 color: #24292e; 62 } 63 .hljs-section { 64 color: #005cc5; 65 font-weight: 700; 66 } 67 .hljs-bullet { 68 color: #735c0f; 69 } 70 .hljs-emphasis { 71 color: #24292e; 72 font-style: italic; 73 } 74 .hljs-strong { 75 color: #24292e; 76 font-weight: 700; 77 } 78 .hljs-addition { 79 color: #22863a; 80 background-color: #f0fff4; 81 } 82 .hljs-deletion { 83 color: #b31d28; 84 background-color: #ffeef0; 85 } 86 :root { 87 --b-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 88 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 89 --b-font-mono: Consolas, Monaco, monospace; 90 91 --b-txt: #475569; 92 --b-bg-1: #f5f5f5; 93 --b-bg-2: #eceff4; 94 --b-line: #eceff4; 95 --b-link: #164e63; 96 --b-link-hover: #0e7490; 97 --b-btn-bg: #242933; 98 --b-btn-txt: #fff; 99 --b-focus: #0e7490; 100 101 --layout-gap: 20px; 102 } 103 body { 104 max-width: 100vw; 105 margin: 0; 106 padding: 0; 107 min-height: 100vh; 108 display: flex; 109 flex-direction: column; 110 overflow-y: scroll; 111 } 112 body.show-menu { 113 overflow: hidden; 114 } 115 body.show-menu .mobile-menu, 116 body.show-menu div.overlay { 117 display: flex; 118 } 119 120 /** Layout **/ 121 .wrapper { 122 flex: 1 auto; 123 } 124 .container { 125 width: 1100px; 126 margin: 0 auto; 127 max-width: 100%; 128 } 129 .layout { 130 display: grid; 131 grid-template-columns: 240px 2fr 1fr; 132 grid-gap: var(--layout-gap); 133 } 134 .layout > * { 135 padding: var(--layout-gap) 0 0; 136 } 137 138 .layout.single { 139 display: block; 140 max-width: 800px; 141 margin: auto; 142 } 143 .layout.two-right { 144 grid-template-columns: minmax(0, 2fr) 320px; 145 } 146 .layout.two-left { 147 grid-template-columns: 240px 2fr; 148 } 149 150 .layout .fixed-sidebar { 151 position: sticky; 152 top: Calc(59px + var(--layout-gap)); 153 } 154 155 /** Common **/ 156 .text-center { 157 text-align: center; 158 } 159 .flex { 160 display: flex; 161 gap: var(--layout-gap); 162 } 163 164 a:focus { 165 box-shadow: none; 166 } 167 a:hover { 168 color: var(--b-link-hover); 169 } 170 button { 171 line-height: 1; 172 } 173 input, 174 select, 175 textarea { 176 line-height: 1.5; 177 background: #f8fafc; 178 } 179 .scroll, 180 .detail pre code { 181 overflow: auto; 182 } 183 .scroll::-webkit-scrollbar-track, 184 .detail pre code::-webkit-scrollbar-track { 185 border-radius: 10px; 186 background-color: transparent; 187 } 188 .scroll::-webkit-scrollbar-thumb, 189 .detail pre code::-webkit-scrollbar-thumb { 190 border-radius: 10px; 191 background-color: #ccc; 192 } 193 .scroll::-webkit-scrollbar-corner, 194 .detail pre code::-webkit-scrollbar-corner { 195 background-color: transparent; 196 border-color: transparent; 197 } 198 .scroll::-webkit-scrollbar, 199 .detail pre code::-webkit-scrollbar { 200 width: 10px; 201 height: 10px; 202 background-color: transparent; 203 } 204 205 .btn { 206 margin: 0; 207 padding: 0.5rem 0.75rem; 208 max-width: 100%; 209 background: var(--b-bg-2); 210 border: 0; 211 border-radius: 0.25rem; 212 font: inherit; 213 line-height: 1.125; 214 color: var(--b-txt); 215 -webkit-appearance: button; 216 display: inline-block; 217 text-align: center; 218 white-space: nowrap; 219 background: var(--b-btn-bg); 220 color: var(--b-btn-txt); 221 border: 0; 222 cursor: pointer; 223 transition: opacity 0.25s; 224 } 225 .btn:hover { 226 opacity: 0.75; 227 } 228 a.btn:hover { 229 color: var(--b-btn-txt); 230 text-decoration: none; 231 } 232 233 .btn.danger, 234 button.danger { 235 background: rgb(213 33 50); 236 } 237 .link-icon { 238 display: flex; 239 } 240 .link-icon svg { 241 margin-right: 5px; 242 } 243 .box { 244 border-radius: 0.25rem; 245 background: #fff; 246 padding: var(--layout-gap); 247 border: 1px solid var(--b-line); 248 margin-bottom: var(--layout-gap); 249 } 250 .box.full { 251 padding: 0; 252 overflow: hidden; 253 } 254 .box .head { 255 line-height: 1; 256 margin-bottom: 1rem; 257 } 258 .box-content { 259 padding: var(--layout-gap); 260 } 261 .box-content > *:last-child { 262 margin-bottom: 0; 263 } 264 265 .box > * { 266 margin-top: 0; 267 margin-bottom: var(--layout-gap); 268 } 269 .box > *:last-child { 270 margin-bottom: 0; 271 } 272 .box .header { 273 margin: 0 0 20px 0; 274 } 275 .page-desc { 276 margin-top: var(--layout-gap); 277 } 278 .multi-checkbox { 279 background: #f6f8fa; 280 border-radius: 0.25rem; 281 padding: 0; 282 margin-top: 5px; 283 max-height: 230px; 284 border: 15px solid #f6f8fa; 285 border-right-width: 5px; 286 } 287 .multi-checkbox .name { 288 display: inline-block; 289 margin-left: 10px; 290 } 291 label.required:after { 292 content: "*"; 293 display: inline-block; 294 margin-left: 5px; 295 color: red; 296 } 297 298 /** Main nav **/ 299 a.logo { 300 width: 48px; 301 height: 48px; 302 margin-right: 10px; 303 display: flex; 304 } 305 header { 306 background: #fff; 307 border-bottom: 1px solid var(--b-line); 308 position: sticky; 309 top: 0; 310 z-index: 9; 311 } 312 footer { 313 background: #fff; 314 padding: var(--layout-gap); 315 text-align: center; 316 } 317 footer p { 318 margin: 20px 0 0; 319 text-align: center; 320 } 321 nav.main { 322 display: flex; 323 align-items: center; 324 padding: 0; 325 } 326 nav.main ul { 327 list-style: none; 328 padding: 0; 329 flex-grow: 1; 330 display: flex; 331 margin: 0; 332 justify-content: flex-end; 333 } 334 nav.main ul li { 335 display: inline-block; 336 position: relative; 337 } 338 nav.main ul li a { 339 display: inline-block; 340 padding: 16px 20px; 341 342 font-weight: 600; 343 } 344 345 nav.main ul li a:hover { 346 text-decoration: none; 347 color: var(--b-link-hover); 348 } 349 nav.main ul li ul.sub { 350 position: absolute; 351 background: #fff; 352 right: 0; 353 z-index: 9; 354 display: none; 355 top: 50px; 356 width: 200px; 357 border-radius: 0.25rem; 358 box-shadow: 0 0 2px 0 rgb(34 47 62 / 20%), 0 4px 8px 0 rgb(34 47 62 / 15%); 359 overflow: hidden; 360 } 361 nav.main ul li ul.sub li { 362 display: block; 363 } 364 nav.main ul li ul.sub li a { 365 padding: 6px 15px; 366 height: inherit !important; 367 font-weight: 400; 368 display: block; 369 } 370 nav.main ul li:hover ul.sub { 371 display: flex; 372 flex-direction: column; 373 } 374 nav.main ul li ul.sub li a:hover { 375 background: #242933; 376 color: #fff; 377 } 378 nav.main .user-menu { 379 display: flex; 380 justify-content: space-between; 381 position: relative; 382 } 383 nav.main .user-menu svg { 384 width: 16px; 385 cursor: pointer; 386 padding: 16px 0; 387 } 388 389 nav.main ul li .user-menu a { 390 padding-right: 0; 391 display: block; 392 padding-left: 5px; 393 } 394 nav.main .user-menu .avatar { 395 width: 26px; 396 height: 26px; 397 border-radius: 50%; 398 display: block; 399 } 400 nav.main .user-menu .avatar.none svg { 401 padding: 0; 402 width: 24px; 403 } 404 nav.main ul.sub li a { 405 padding: 5px 10px; 406 } 407 .menu-trigger { 408 justify-content: center; 409 align-items: center; 410 margin-left: 10px; 411 display: none; 412 margin-bottom: 0; 413 } 414 415 .menu-trigger svg { 416 width: 32px; 417 } 418 419 .mobile-menu { 420 width: 320px; 421 position: fixed; 422 top: 0; 423 right: 0; 424 background: #fff; 425 bottom: 0; 426 flex-direction: column; 427 padding: var(--layout-gap); 428 z-index: 10; 429 display: none; 430 gap: 10px; 431 overflow: auto; 432 padding-top: 0; 433 } 434 .mobile-menu h2 { 435 margin: 0; 436 font-size: 1.2rem; 437 } 438 .menu-topics { 439 display: flex; 440 flex-direction: column; 441 padding-left: 0; 442 gap: 5px; 443 } 444 445 div.overlay { 446 position: fixed; 447 top: 0; 448 left: 0; 449 right: 0; 450 bottom: 0; 451 background: rgb(0 0 0 / 68%); 452 z-index: 9; 453 display: none; 454 } 455 456 .menu-head { 457 position: sticky; 458 top: 0; 459 font-weight: 700; 460 font-size: 1.6rem; 461 z-index: 11; 462 background: #fff; 463 padding: 10px 0; 464 color: var(--b-link); 465 } 466 467 label.menu-close { 468 position: absolute; 469 right: 0; 470 top: 15px; 471 margin: 0; 472 } 473 474 nav.main ul li.search-mobile { 475 display: none; 476 } 477 478 /** Search form **/ 479 .search-form { 480 display: flex; 481 background: var(--b-bg-2); 482 color: var(--b-txt); 483 border-radius: 0.25rem; 484 width: 330px; 485 height: 38px; 486 overflow: hidden; 487 } 488 .search-form:focus-within { 489 box-shadow: 0 0 0 2px var(--b-focus); 490 } 491 .search-form input:focus { 492 box-shadow: none; 493 } 494 .search-form > * { 495 background: transparent; 496 color: inherit; 497 box-shadow: none; 498 transition: background 0.1s; 499 } 500 501 .search-form button:hover, 502 .search-form select:hover { 503 /* background-color: var(--b-focus); */ 504 border-radius: 0; 505 } 506 507 /** Message **/ 508 ul.messages { 509 margin: 0; 510 list-style: none; 511 padding: 0; 512 margin-bottom: var(--layout-gap); 513 } 514 ul.messages li { 515 background: rgb(243, 242, 241); 516 color: rgb(50, 49, 48); 517 margin-bottom: 10px; 518 padding: 5px 10px; 519 border-radius: 0.25rem; 520 font-size: 0.9rem; 521 } 522 ul.messages li:last-child { 523 margin-bottom: 0; 524 } 525 ul.messages .success { 526 background: rgb(223, 246, 221); 527 } 528 ul.messages .warn { 529 background: rgb(255, 244, 206); 530 } 531 ul.messages .danger { 532 background: rgb(254, 217, 204); 533 } 534 ul.messages .error { 535 background: rgb(253, 231, 233); 536 } 537 538 /** Switch **/ 539 .switch { 540 position: relative; 541 display: inline-block; 542 font-size: 0.7rem; 543 font-weight: 700; 544 } 545 546 .switch input { 547 opacity: 0; 548 width: 0; 549 height: 0; 550 } 551 552 .switch .slider { 553 position: relative; 554 cursor: pointer; 555 bottom: 0; 556 background-color: #ccc; 557 -webkit-transition: 0.4s; 558 transition: 0.4s; 559 border-radius: 34px; 560 width: 44px; 561 height: 24px; 562 padding: 3px; 563 display: inline-block; 564 } 565 566 .switch .slider:before { 567 -webkit-transition: 0.4s; 568 transition: 0.4s; 569 border-radius: 50%; 570 width: 50%; 571 height: 100%; 572 position: relative; 573 display: block; 574 content: ""; 575 width: 50%; 576 height: 100%; 577 left: 0; 578 border-radius: 50%; 579 background: #fff; 580 transition: left 0.1s ease; 581 } 582 583 .switch input:checked + .slider { 584 background-color: #2196f3; 585 } 586 587 .switch input:focus + .slider { 588 box-shadow: 0 0 1px #2196f3; 589 } 590 591 .switch input:checked + .slider:before { 592 left: 50%; 593 } 594 595 .switch { 596 display: flex !important; 597 align-items: center; 598 } 599 600 /** Post compose **/ 601 .save-actions { 602 align-items: center; 603 display: flex; 604 flex: 0 0 auto; 605 flex-wrap: wrap; 606 justify-content: space-between; 607 } 608 609 .save-actions > label { 610 line-height: 34px; 611 height: 34px; 612 } 613 614 /** Login */ 615 .login { 616 display: grid; 617 grid-template-columns: 1fr; 618 grid-gap: var(--layout-gap); 619 } 620 621 .login h1 { 622 margin: 0; 623 } 624 625 .login ul.socials { 626 list-style: none; 627 padding: 0; 628 display: grid; 629 gap: 10px; 630 } 631 .login ul.socials li a { 632 display: block; 633 634 text-decoration: none; 635 } 636 .login ul.socials li a:hover { 637 color: #fff; 638 } 639 640 .login ul.socials li a svg { 641 display: inline-block; 642 vertical-align: middle; 643 margin-right: 10px; 644 width: 24px; 645 position: relative; 646 } 647 648 /** Post detail **/ 649 .detail .post-name { 650 margin: 1rem 0; 651 font-size: 2.5rem; 652 font-weight: 800; 653 } 654 .detail img { 655 margin: auto; 656 display: block; 657 } 658 .detail img.featured-image { 659 position: absolute; 660 top: 0; 661 left: 0; 662 right: 0; 663 bottom: 0; 664 object-fit: cover; 665 width: 100%; 666 height: 100%; 667 } 668 669 .detail pre { 670 background: #f6f8fa; 671 overflow: hidden; 672 max-width: 100%; 673 position: relative; 674 } 675 .detail > *:last-child { 676 margin-bottom: 0; 677 } 678 .detail pre code[data-language] { 679 display: block; 680 position: relative; 681 background: transparent; 682 padding: 0.5rem 0; 683 } 684 .detail pre[data-language]:before { 685 content: attr(data-language); 686 position: absolute; 687 right: 0; 688 top: 0; 689 display: inline-block; 690 border-radius: 0.25rem; 691 background: var(--b-bg-2); 692 padding: 3px 6px 5px; 693 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 694 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 695 font-size: 0.9rem; 696 line-height: 1.125; 697 color: var(--b-txt); 698 } 699 700 /** Page detail **/ 701 article.page-detail .meta { 702 font-size: 0.96rem; 703 } 704 article.page-detail h1 { 705 margin-top: 1rem; 706 } 707 708 /** Manage **/ 709 ul.manage-features { 710 list-style: none; 711 margin: 0; 712 padding: 0; 713 } 714 715 ul.manage-features li a { 716 display: flex; 717 text-decoration: none; 718 width: 100%; 719 padding: 10px 0; 720 } 721 ul.manage-features li a svg { 722 width: 24px; 723 margin-right: 10px; 724 } 725 726 /** Node list **/ 727 .nodes-list { 728 list-style: none; 729 margin: 0; 730 padding: 0; 731 } 732 .nodes-list li:nth-child(2n + 1) { 733 background: #f5f5f5; 734 } 735 736 .nodes-list li { 737 padding: 10px 15px; 738 border-radius: 0.25rem; 739 display: flex; 740 741 gap: var(--layout-gap); 742 } 743 .nodes-list li .name { 744 flex-grow: 1; 745 width: Calc(100% - 168px); 746 } 747 .nodes-list li .name .date { 748 font-size: 0.9rem; 749 } 750 751 .nodes-list li > .info { 752 text-align: left; 753 font-size: 0.9rem; 754 min-width: 120px; 755 word-break: keep-all; 756 flex-grow: 1; 757 } 758 .nodes-list li > .info .author { 759 overflow: hidden; 760 text-overflow: ellipsis; 761 display: -webkit-box; 762 -webkit-line-clamp: 1; 763 -webkit-box-orient: vertical; 764 } 765 .nodes-list .status { 766 background: #ccc; 767 font-size: 0.8rem; 768 display: inline-block; 769 padding: 0 5px 1px; 770 border-radius: 0.25rem; 771 margin: 0; 772 color: rgb(50, 49, 48); 773 } 774 .nodes-list .status.error { 775 background: rgb(253, 231, 233); 776 } 777 .nodes-list .status.success { 778 background: rgb(223, 246, 221); 779 } 780 781 /** Image upload **/ 782 input.image-input[type="file"] { 783 display: none; 784 } 785 .image-upload-previewer { 786 background: #f6f8fa; 787 margin-top: 5px; 788 background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23eceff4" d="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z" /></svg>'); 789 justify-content: center; 790 align-items: center; 791 display: flex; 792 background-position: center; 793 background-repeat: no-repeat; 794 background-size: 40%; 795 cursor: pointer; 796 position: relative; 797 height: 200px; 798 } 799 .image-upload-previewer img { 800 object-fit: contain; 801 max-width: 100%; 802 max-height: 100%; 803 } 804 .image-upload-previewer img[src=""] { 805 display: none; 806 } 807 808 /** Paginate **/ 809 ul.paginate { 810 margin: var(--layout-gap) 0; 811 padding: 0; 812 list-style: none; 813 display: flex; 814 gap: 10px; 815 } 816 817 ul.paginate a { 818 width: 32px; 819 height: 32px; 820 text-decoration: none; 821 display: flex; 822 align-items: center; 823 text-align: center; 824 justify-content: center; 825 border-radius: 0.25rem; 826 border: 2px solid var(--b-bg-2); 827 } 828 829 ul.paginate a.active, 830 ul.paginate a:hover { 831 background: var(--b-bg-2); 832 } 833 834 /** Article list **/ 835 .article-list article { 836 margin-bottom: var(--layout-gap); 837 position: relative; 838 padding: 0; 839 overflow: hidden; 840 border: none; 841 } 842 843 .article-list article * { 844 margin: 0; 845 } 846 847 .article-list article h3 { 848 font-size: 1.4rem; 849 margin-bottom: 1rem; 850 } 851 852 .article-list article a.overlay { 853 position: absolute; 854 left: 0; 855 top: 0; 856 right: 0; 857 bottom: 0; 858 opacity: 0; 859 margin: 0; 860 z-index: 1; 861 } 862 .article-list article:focus-within, 863 .article-list article:hover { 864 outline: 2px solid var(--b-link-hover); 865 } 866 article .bg { 867 display: block; 868 width: 100%; 869 height: auto; 870 padding-bottom: 42%; 871 background-size: cover; 872 background-position: center center; 873 text-indent: -999999999999px; 874 margin-bottom: 0; 875 position: relative; 876 } 877 article a { 878 position: relative; 879 z-index: 2; 880 } 881 .meta { 882 font-size: 0.8rem; 883 line-height: 1.4; 884 gap: 10px; 885 } 886 .meta .views { 887 background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23475569" d="M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z"></path></svg>'); 888 background-repeat: no-repeat; 889 background-size: 12px; 890 background-position: 0 3px; 891 padding-left: 15px; 892 } 893 .meta .comment { 894 background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23475569" d="M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M20 16H5.2L4 17.2V4H20V16Z"></path></svg>'); 895 background-repeat: no-repeat; 896 background-size: 12px; 897 background-position: 0 4px; 898 padding-left: 15px; 899 } 900 .avatar { 901 display: block; 902 width: 32px; 903 } 904 .avatar img { 905 border-radius: 50%; 906 margin-top: 2px; 907 } 908 .avatar.none { 909 background-position: center; 910 background-repeat: no-repeat; 911 background-size: contain; 912 background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23eceff4" d="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z" /></svg>'); 913 } 914 .profile .avatar { 915 width: 100px; 916 height: 100px; 917 display: block; 918 margin: 0 auto 20px; 919 } 920 .author { 921 font-weight: 500; 922 } 923 article a:hover { 924 text-decoration: none; 925 } 926 article .info { 927 margin: 0.5rem 42px 0; 928 } 929 .tags a { 930 display: inline-block; 931 padding: 3px 5px; 932 background: #f8fafc; 933 font-size: 0.8rem; 934 border-radius: 0.25rem; 935 } 936 .tags a:hover { 937 background: #f1f5f9; 938 } 939 .tags { 940 display: flex; 941 gap: 10px; 942 } 943 article.detail .tags { 944 margin-bottom: 20px; 945 } 946 article .actions { 947 margin-top: 12px; 948 } 949 article .stat { 950 gap: 10px; 951 } 952 article .stat svg { 953 width: 12px; 954 position: relative; 955 top: 1px; 956 } 957 article .stat > * { 958 display: flex; 959 gap: 4px; 960 align-items: center; 961 justify-content: center; 962 } 963 article h4 { 964 margin: 0 0 0.5rem; 965 } 966 967 .posts-list > article { 968 margin-bottom: var(--layout-gap); 969 } 970 .posts-list.manage > article { 971 border-bottom: 1px solid var(--b-bg-2); 972 padding-bottom: var(--layout-gap); 973 } 974 .posts-list > article:last-child { 975 margin-bottom: 0; 976 padding-bottom: 0; 977 border-bottom: none; 978 } 979 article .pos { 980 display: inline-block; 981 margin-right: 5px; 982 background: var(--b-bg-1); 983 padding: 0px 6px; 984 border-radius: 0.25rem; 985 } 986 987 /** Topics **/ 988 .topics { 989 margin: 0; 990 padding: 0; 991 list-style: none; 992 display: flex; 993 flex-direction: column; 994 gap: 10px; 995 } 996 997 .topics a { 998 display: block; 999 } 1000 1001 /** Tetua block **/ 1002 ul.tetua { 1003 list-style: none; 1004 padding: 0; 1005 display: flex; 1006 gap: 10px; 1007 flex-direction: column; 1008 } 1009 1010 ul.tetua li a { 1011 display: flex; 1012 align-items: unset; 1013 gap: 10px; 1014 } 1015 1016 ul.tetua li a svg { 1017 width: 20px !important; 1018 } 1019 1020 /** Comment **/ 1021 .comments { 1022 margin: var(--layout-gap) 0; 1023 } 1024 .comments > div > div { 1025 width: 100%; 1026 } 1027 .comments > div .avatar { 1028 width: 30px; 1029 flex: none; 1030 height: 30px; 1031 } 1032 .comments > .comment { 1033 gap: 10px; 1034 border-bottom: 1px solid var(--b-bg-1); 1035 padding: 10px; 1036 margin-top: var(--layout-gap); 1037 } 1038 .comments .content { 1039 margin-top: 10px; 1040 } 1041 .comments > .comment form, 1042 .comments > .comment.editing .content { 1043 display: none; 1044 } 1045 .comments > .comment.editing form { 1046 display: block; 1047 margin-top: 10px; 1048 } 1049 .comments .content > *:last-child { 1050 margin-bottom: 0; 1051 } 1052 .comments .author { 1053 font-weight: 700; 1054 } 1055 .comments .actions { 1056 margin-top: 10px; 1057 } 1058 .comments button { 1059 margin-top: 10px; 1060 } 1061 1062 /** Profile **/ 1063 .user-attrs { 1064 justify-content: center; 1065 align-items: center; 1066 } 1067 .user-attrs > span { 1068 display: flex; 1069 gap: 5px; 1070 justify-content: center; 1071 align-items: center; 1072 } 1073 .user-attrs > span svg { 1074 width: 22px; 1075 height: 22px; 1076 } 1077 .bio { 1078 max-width: 500px; 1079 margin: auto; 1080 text-align: center; 1081 } 1082 .bio p { 1083 margin-bottom: 0; 1084 } 1085 1086 /** File list **/ 1087 .files-list { 1088 display: grid; 1089 grid-template-columns: 1fr 1fr 1fr 1fr; 1090 grid-gap: 20px; 1091 } 1092 1093 .files-list > div { 1094 background: var(--b-bg-2); 1095 border-radius: 0.25rem; 1096 overflow: hidden; 1097 background-size: contain; 1098 background-position: center; 1099 background-repeat: no-repeat; 1100 display: flex; 1101 position: relative; 1102 } 1103 .files-list > div > a { 1104 display: flex; 1105 justify-content: center; 1106 align-items: center; 1107 text-align: center; 1108 } 1109 1110 .files-list > div .actions { 1111 padding: 5px 10px; 1112 position: absolute; 1113 bottom: 0; 1114 z-index: 9; 1115 width: 100%; 1116 background: #eceff4; 1117 } 1118 1119 @media (max-width: 992px) { 1120 .container { 1121 padding: 0 20px; 1122 } 1123 .left { 1124 display: none; 1125 } 1126 .layout.two-left .left { 1127 display: block; 1128 } 1129 .layout { 1130 grid-template-columns: 2fr 320px; 1131 } 1132 nav.main { 1133 padding: 0 20px; 1134 } 1135 .menu-trigger { 1136 display: flex; 1137 margin-left: 0; 1138 } 1139 .user-attrs { 1140 flex-direction: column; 1141 gap: 10px; 1142 } 1143 } 1144 1145 @media (max-width: 768px) { 1146 .layout { 1147 display: block; 1148 } 1149 .search-form { 1150 max-width: 280px; 1151 width: auto; 1152 } 1153 .layout.two-left .left { 1154 display: none; 1155 } 1156 } 1157 @media (max-width: 576px) { 1158 nav.main .search-form { 1159 display: none; 1160 } 1161 .search-form { 1162 margin: auto; 1163 } 1164 .user-menu { 1165 margin-right: 10px; 1166 } 1167 .user-menu svg { 1168 display: none; 1169 } 1170 nav.main ul li a { 1171 padding: 16px 10px; 1172 } 1173 nav.main ul li.search-mobile { 1174 display: flex; 1175 } 1176 nav.main ul li.search-mobile a { 1177 display: flex; 1178 justify-content: center; 1179 align-items: center; 1180 } 1181 }