Changeset 14359
- Timestamp:
- 01/14/2025 09:20:36 PM (2 months ago)
- Location:
- sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php
r14310 r14359 55 55 56 56 // Version of CSS 57 $version = '202 412180001';57 $version = '202501140001'; 58 58 59 59 // Base theme styling -
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/style-trac.css
r14309 r14359 1 1 /* =Trac 2 2 -------------------------------------------------------------- */ 3 4 :root { 5 6 /* Admin Bar */ 7 --bbbase-admin-bar-text-color: #c3c4c7; 8 --bbbase-admin-bar-background-color: #1d2327; 9 --bbbase-admin-bar-item-hover-color: #72aee6; 10 --bbbase-admin-bar-item-hover-background-color: #2c3338; 11 12 /* Commonly Used Trac Colors */ 13 --bbbase-diff-loc-background-color: #eee; 14 --bbbase-code-background-color: #f0f0f0; 15 --bbbase-light-header-background-color: #fafafa; 16 --bbbase-prefs-hover-color: #21759b; 17 18 /* Wrappers */ 19 --bbbase-wrapper-border: 1px solid #ccc; 20 --bbbase-wrapper-background-color: #eee; 21 22 /* Messages */ 23 --bbbase-message-border: 1px solid #aa0; 24 --bbbase-message-background-color: #ffe; 25 } 3 26 4 27 /* Global */ … … 42 65 body.trac input.textwidget, 43 66 body.trac textarea { 44 font: 14px/16px sans-serif;67 font: var(--bbbase-font-input); 45 68 padding: 8px 10px; 46 color: #333;47 border: 1px solid #ccc;69 color: var(--bbbase-darkest-text-color-low-contrast); 70 border: var(--bbbase-wrapper-border); 48 71 } 49 72 … … 90 113 body.trac table.listing thead th { 91 114 font-size: 14px; 92 background: #eee;115 background: var(--bbbase-wrapper-background-color); 93 116 border: none; 94 117 padding: 8px 10px; … … 98 121 body.trac table.listing tbody td { 99 122 font-size: 14px; 100 background: #fff;123 background: var(--bbbase-brightest-white); 101 124 border: none; 102 125 padding: 8px 10px; … … 105 128 106 129 body.trac table.listing code { 107 background-color: #f0f0f0;130 background-color: var(--bbbase-); 108 131 } 109 132 … … 112 135 border: none; 113 136 direction: ltr; 114 color: #c3c4c7;137 color: var(--bbbase-admin-bar-text-color); 115 138 font-size: 13px; 116 139 font-weight: 400; … … 123 146 width: 100%; 124 147 z-index: 99999; 125 background: #1d2327;148 background: var(--bbbase-admin-bar-background-color); 126 149 /* Only visible in Windows High Contrast mode */ 127 150 outline: 1px solid transparent; … … 221 244 body.trac #subnav-inner ul li a { 222 245 text-decoration: none; 223 color: #555; 246 color: #555; /* Not variable */ 224 247 } 225 248 226 249 body.trac #subnav-inner ul li:hover a, 227 250 body.trac #subnav-inner ul li:hover a:focus { 228 background: #2c3338;229 color: #72aee6;251 background: var(--bbbase-admin-bar-item-hover-background-color); 252 color: var(--bbbase-admin-bar-item-hover-color); 230 253 } 231 254 232 255 body.trac #subnav #nav-user:before { 233 font: normal 20px/1 'dashicons';256 font: var(--bbbase-font-dashicons); 234 257 color: rgba(240, 246, 252, .6); /* Not variable */ 235 258 content: '\f120'; … … 246 269 247 270 body.trac #subnav #nav-user a { 248 color: #f0f0f1;271 color: var(--bbbase-code-background-color); 249 272 } 250 273 … … 254 277 255 278 body.trac #subnav #nav-user span.trac-author-user { 256 color: #72aee6;279 color: var(--bbbase-admin-bar-item-hover-color); 257 280 } 258 281 … … 286 309 padding: 0; 287 310 margin: 0; 288 font: 100 16px/1.5 Inter, sans-serif;311 font: var(--bbbase-font-base); 289 312 } 290 313 … … 335 358 } 336 359 337 body.trac #mainnav li.active :link { 360 body.trac #mainnav li.active :link, 361 body.trac #mainnav li.active :visited { 338 362 margin-top: 2px; 339 background-color: #fff;340 color: #000;363 background-color: var(--bbbase-brightest-white); 364 color: var(--bbbase-darkest-black); 341 365 border: 1px solid var(--bbbase-grey-border-color-low-contrast) !important; 342 366 border-bottom-color: transparent !important; … … 344 368 345 369 body.trac #mainnav li:not(.active) :link:hover { 346 background-color: #fafafa;370 background-color: var(--bbbase-light-header-background-color); 347 371 border: 1px solid rgba(0, 0, 0, 0.1) !important; 348 372 border-bottom: 1px solid transparent !important; … … 488 512 flex-direction: column; 489 513 font-size: 16px; 514 overflow-x: auto; 490 515 } 491 516 … … 507 532 padding: 10px 15px; 508 533 border-radius: 0; 509 background-color: #eee;534 background-color: var(--bbbase-wrapper-background-color); 510 535 } 511 536 … … 525 550 526 551 body.trac #content.timeline dt .time { 527 color: #999;552 color: var(--bbbase-light-text-color-low-contrast); 528 553 font-size: 16px; 529 554 width: 50px; … … 554 579 555 580 body.trac #content #prefs { 556 background: #eee;581 background: var(--bbbase-wrapper-background-color); 557 582 border-radius: var(--bbbase-border-radius); 558 583 padding: 20px; … … 560 585 float: none; 561 586 font-size: 15px; 562 border: 1px solid #ccc;587 border: var(--bbbase-wrapper-border); 563 588 order: 2; 589 } 590 591 body.trac #content #prefs input, 592 body.trac #content #prefs select { 593 font: var(--bbbase-font-input); 594 } 595 596 body.trac #content #prefs .choice { 597 float: none; 598 margin: 0 0 30px 0; 599 border: none; 600 } 601 602 body.trac #content #prefs .buttons { 603 margin: 0; 564 604 } 565 605 … … 577 617 578 618 body.trac #content #prefs label:hover { 579 color: #21759b;619 color: var(--bbbase-prefs-hover-color); 580 620 cursor: pointer; 581 621 } … … 593 633 body.trac #content #prefs fieldset { 594 634 border-radius: var(--bbbase-border-radius); 595 border: 1px solid #ccc;635 border: var(--bbbase-wrapper-border); 596 636 padding: 10px 20px 20px 20px; 597 637 margin: 10px 0; … … 615 655 616 656 /* Roadmap */ 617 body.trac #content.roadmap .milestone { 618 margin: 0 0 30px 0; 619 } 620 621 body.trac #content.roadmap .milestone .info h2 { 657 body.trac div.milestone { 658 margin: 0; 659 padding: 30px; 660 } 661 662 body.trac .milestone .info h2 { 622 663 border: none; 623 664 background: none; 624 } 625 626 body.trac #content.roadmap .milestone .info .date, 627 body.trac #content.roadmap .milestone .info .percent, 628 body.trac #content.roadmap .milestone .info .legend { 665 margin: -30px -30px 0 -30px; 666 } 667 668 body.trac .milestone .info .date, 669 body.trac .milestone .info .percent, 670 body.trac .milestone .info .legend { 629 671 font-size: 16px; 630 672 font-style: normal; 631 673 } 632 body.trac #content.roadmap.milestone .info .date {633 color: #888;674 body.trac .milestone .info .date { 675 color: var(--bbbase-light-text-color-low-contrast); 634 676 font-weight: 600; 635 677 margin: 0 20px 10px 20px; 636 678 } 637 679 638 body.trac #content.roadmap.milestone .info .percent,639 body.trac #content.roadmap.milestone .info .legend {680 body.trac .milestone .info .percent, 681 body.trac .milestone .info .legend { 640 682 margin: 10px; 641 683 } 642 684 643 body.trac #content.roadmap.milestone .info .legend {685 body.trac .milestone .info .legend { 644 686 color: var(--bbbase-brightest-white); 645 687 } 646 688 647 body.trac #content.roadmap.milestone .info .legend span {689 body.trac .milestone .info .legend span { 648 690 margin: 0 0 0 10px; 649 691 text-transform: capitalize; 650 692 } 651 693 652 body.trac #content.roadmap .milestone .description { 653 margin: 0 20px; 694 body.trac .milestone .description { 695 margin: 20px 0 0 0; 696 } 697 698 body.trac table.progress { 699 border: var(--bbbase-wrapper-border); 700 margin-right: 20px !important; 654 701 } 655 702 656 703 body.trac table.progress, 657 704 body.trac .trac-groupprogress { 658 border: none;659 705 width: 50%; 660 706 max-width: 50%; 661 margin: 0 15px; 662 background: var(--bbbase-light-background-color-low-contrast); 707 margin: 0 20px; 708 } 709 710 /* Milestone */ 711 body.trac #content.milestone .info .date { 712 font-size: 15px; 713 font-style: normal; 714 } 715 716 body.trac #content.milestone .info { 717 order: 1; 718 } 719 720 body.trac #content.milestone .description { 721 margin: 30px 0; 722 order: 2; 723 } 724 725 body.trac #content.milestone .trac-groupprogress { 726 order: 3; 727 } 728 729 body.trac #content.milestone #attachments { 730 order: 4; 731 } 732 733 body.trac #content.milestone .buttons { 734 order: 5; 735 } 736 737 body.trac #content.milestone #help { 738 order: 6; 739 } 740 741 body.trac table.progress, 742 body.trac .trac-groupprogress, 743 body.trac #stats { 744 background-color: transparent; 745 margin: 0; 746 } 747 748 body.trac .trac-groupprogress, 749 body.trac #stats { 750 border: none; 751 } 752 753 body.trac #stats { 754 margin: 0 0 30px 0; 755 float: none; 756 width: auto; 757 max-width: none 758 } 759 760 body.trac .trac-groupprogress th, 761 body.trac .trac-groupprogress td { 762 font-size: 15px; 663 763 } 664 764 … … 671 771 } 672 772 773 673 774 /* Wiki */ 674 775 body.trac div.trac-content { … … 680 781 body.trac pre.wiki, 681 782 body.trac pre.literal-block { 682 background: #ffe; 683 border: 1px solid #aa0; 684 box-shadow: 0 0 1em #eee; 783 background: var(--bbbase-message-background-color); 784 border: var(--bbbase-message-border); 785 border-radius: var(--bbbase-border-radius); 786 box-shadow: 0 0 1em var(--bbbase-wrapper-background-color); 685 787 font-size: 15px; 686 border-radius: var(--bbbase-border-radius);687 788 margin: 20px 0; 688 789 padding: 15px 20px; … … 704 805 margin: 0; 705 806 border: none; 706 background-color: #eee;807 background-color: var(--bbbase-wrapper-background-color); 707 808 } 708 809 … … 712 813 margin: 0; 713 814 border: none; 714 background-color: #fafafa;815 background-color: var(--bbbase-light-header-background-color); 715 816 } 716 817 … … 734 835 body.trac .wikitoolbar a:active { 735 836 text-decoration: none; 736 border: 1px solid #ccc;837 border: var(--bbbase-wrapper-border); 737 838 } 738 839 … … 814 915 font-size: 12px; 815 916 padding: 6px 10px; 816 color: #999;817 border: 1px solid #999;917 color: var(--bbbase-light-text-color-low-contrast); 918 border: 1px solid var(--bbbase-light-text-color-low-contrast); 818 919 border-radius: 50px; 819 background-color: #eee;920 background-color: var(--bbbase-wrapper-background-color); 820 921 margin-right: 8px; 821 922 } … … 853 954 854 955 body.trac #ticket div.description h3 { 855 border -bottom: 1px solid #ddd;856 color: #666;857 font-size: 18px;858 padding: 15px0;859 margin: 00 30px 0;956 border: none; 957 color: var(--bbbase-darkest-text-color-low-contrast); 958 font-size: 20px; 959 padding: 25px 0 0 0; 960 margin: -10px 0 30px 0; 860 961 font-weight: 600; 861 962 } … … 867 968 body.trac div#ticketchange + div { 868 969 margin-bottom: 30px; 869 border: 1px solid #ccc;970 border: var(--bbbase-wrapper-border); 870 971 border-radius: var(--bbbase-border-radius); 871 972 overflow: hidden; … … 896 997 margin: 0; 897 998 padding: 10px; 898 background-color: #f0f0f0;999 background-color: var(--bbbase-code-background-color); 899 1000 } 900 1001 … … 922 1023 position: relative; 923 1024 border-collapse: collapse; 924 border: 1px solid #ccc;1025 border: var(--bbbase-wrapper-border); 925 1026 width: calc(100% - 2px); 926 1027 } … … 931 1032 932 1033 body.trac #github-prs ul.pull-requests li:not(:last-child) { 933 border-bottom: 1px solid #ccc;1034 border-bottom: var(--bbbase-wrapper-border); 934 1035 } 935 1036 … … 955 1056 956 1057 body.trac #github-prs .button { 957 color: #fff;1058 color: var(--bbbase-brightest-white); 958 1059 white-space: nowrap; 959 1060 font-size: 12px; 960 1061 padding: 5px 8px; 961 background-color: #f0f0f0;962 color: #aaa;963 border: 1px solid #ccc;1062 background-color: var(--bbbase-code-background-color); 1063 color: var(--bbbase-lightest-text-color-low-contrast); 1064 border: var(--bbbase-wrapper-border); 964 1065 border-radius: var(--bbbase-border-radius); 965 1066 } 966 1067 967 1068 @media screen and (max-width: 820px) { 968 body.trac #github-prs ul.pull-requests li div:first-child {1069 body.trac #github-prs ul.pull-requests li:not(.loading) div:first-child { 969 1070 padding-bottom: 0; 970 1071 } … … 988 1089 border-bottom: 1px solid #d7d7d7; 989 1090 box-shadow: none; 990 padding: 10px 0;1091 padding: 10px; 991 1092 margin-bottom: 15px; 992 1093 font-size: 100%; … … 995 1096 996 1097 body.trac div#content.ticket #prefs { 997 border: 1px solid #ccc;998 margin: 0; 999 background: #f0f0f0;1098 border: var(--bbbase-wrapper-border); 1099 margin: 0; 1100 background: var(--bbbase-code-background-color); 1000 1101 } 1001 1102 … … 1005 1106 } 1006 1107 1108 body.trac #content.ticket #ticketchange { 1109 margin: 30px 0; 1110 } 1111 1007 1112 body.trac #trac-edit-warning { 1008 1113 margin: 30px; … … 1019 1124 1020 1125 body.trac div#ticketchange + div { 1021 background: #fafafa;1126 background: var(--bbbase-light-header-background-color); 1022 1127 } 1023 1128 … … 1088 1193 font-family: monospace; 1089 1194 } 1195 1196 body.trac #content.browser #info .props:first-child { 1197 padding-top: 0; 1198 } 1199 1200 body.trac #content.browser #info .props:last-child { 1201 padding-bottom: 0; 1202 } 1203 1090 1204 body.trac #content.browser #info .props li:not(:last-of-type) { 1091 1205 margin-bottom: 20px; 1206 } 1207 1208 body.trac #content.browser table.code th, 1209 body.trac #content.browser table.code td { 1210 font: var(--bbbase-font-code); 1211 padding: 3px; 1212 } 1213 1214 body.trac #content.browser table.code th { 1215 border-bottom: none; 1216 user-select: none; 1217 background-color: var(--bbbase-diff-loc-background-color); 1218 } 1219 1220 body.trac #content.browser table.code thead th.content span.recover { 1221 border: none; 1222 background-color: transparent; 1223 margin: 0; 1224 padding: 0; 1225 } 1226 1227 body.trac #content.browser table.code tbody tr:hover th { 1228 background-color: #ddd; /* Not variable */ 1229 } 1230 1231 body.trac #content.browser table.code tbody tr:hover th :link, 1232 body.trac #content.browser table.code tbody tr:hover th :visited { 1233 color: var(--bbbase-darkest-black); 1092 1234 } 1093 1235 … … 1127 1269 body.trac #main #info tr:first-child th, 1128 1270 body.trac #main #info tr:first-child td { 1129 padding-bottom: 10px;1271 padding-bottom: 0; 1130 1272 } 1131 1273 … … 1133 1275 body.trac #main #info tr:last-child td { 1134 1276 padding-top: 10px; 1277 } 1278 1279 /* Diff */ 1280 body.trac #content.changeset .diff .entries .entry { 1281 padding: 0; 1282 background-color: var(--bbbase-grey-background-color-low-contrast); 1283 } 1284 1285 body.trac #content.changeset table.trac-diff tbody.skipped td, 1286 body.trac #content.changeset .diff table.trac-diff thead td { 1287 background-color: var(--bbbase-grey-background-color-low-contrast); 1288 } 1289 1290 body.trac #content.changeset .diff h2 { 1291 margin: 15px; 1292 padding: 0; 1293 font-size: 16px; 1294 } 1295 1296 body.trac #content.changeset .diff h2 .switch { 1297 padding: 3px; 1298 border-radius: 8px; 1299 background: var(--bbbase-brightest-white); 1300 border: var(--bbbase-wrapper-border); 1301 line-height: 12px; 1302 font-size: 12px; 1303 margin: -6px -6px 0 0; 1304 opacity: 0.7; 1305 } 1306 1307 body.trac #content.changeset .diff h2 .switch:hover { 1308 opacity: 1; 1309 } 1310 1311 body.trac #content.changeset .diff h2 .switch span { 1312 padding: 3px 5px; 1313 margin: 0; 1314 border: 1px solid transparent; 1315 border-radius: 5px; 1316 display: inline-block; 1317 font-weight: 400; 1318 } 1319 1320 body.trac #content.changeset .diff h2 .switch span.active { 1321 background: var(--bbbase-wrapper-background-color); 1322 border: var(--bbbase-wrapper-border); 1323 } 1324 1325 body.trac #content.changeset .diff pre { 1326 border-width: 1px 0 0 0; 1327 padding: 20px; 1328 } 1329 1330 body.trac #content.changeset .diff table.trac-diff { 1331 border: none; 1332 font: var(--bbbase-font-code); 1333 } 1334 1335 body.trac #content.changeset .diff table.trac-diff td, 1336 body.trac #content.changeset .diff table.trac-diff th { 1337 font: var(--bbbase-font-code); 1338 padding: 3px; 1339 } 1340 1341 body.trac #content.changeset .diff table.trac-diff th { 1342 border: none; 1343 text-align: center; 1344 user-select: none; 1345 background-color: var(--bbbase-diff-loc-background-color); 1346 } 1347 1348 body.trac #content.changeset .diff table.trac-diff thead th { 1349 border-bottom: 1px solid #d7d7d7; 1350 } 1351 1352 body.trac #content.changeset .diff table.trac-diff tbody:not(.skipped) tr:hover td { 1353 background-color: var(--bbbase-brightest-white); 1354 } 1355 1356 body.trac #content.changeset .diff table.trac-diff tbody.skipped tr:hover td { 1357 background-color: var(--bbbase-grey-background-color-low-contrast); 1358 } 1359 1360 body.trac #content.changeset .diff table.trac-diff tbody:not(.unmod) tr:hover td.l { 1361 background-color: #fdd; /* Not variable */ 1362 } 1363 1364 body.trac #content.changeset .diff table.trac-diff tbody:not(.unmod) tr:hover td.r { 1365 background-color: #dfd; /* Not variable */ 1366 } 1367 1368 body.trac #content.changeset .diff table.trac-diff tbody.mod tr:hover td del { 1369 background-color: #e99; /* Not variable */ 1370 } 1371 1372 body.trac #content.changeset .diff table.trac-diff tbody.mod tr:hover td ins { 1373 background-color: #9e9; /* Not variable */ 1135 1374 } 1136 1375 … … 1243 1482 margin: 30px auto -30px; 1244 1483 font-size: 16px; 1245 background-color: #ffe;1246 border -color: #e6db55;1484 background-color: var(--bbbase-message-background-color); 1485 border: var(--bbbase-message-border); 1247 1486 border-radius: var(--bbbase-border-radius); 1248 1487 } … … 1260 1499 body.trac #footer { 1261 1500 width: 100%; 1262 background-color: #f4f4f4;1501 background-color: var(--bbbase-light-background-color-low-contrast); 1263 1502 display: flex; 1264 1503 justify-content: center; … … 1328 1567 } 1329 1568 } 1569 @media ( max-width: 960px ) { 1570 #main { 1571 overflow-x: initial; 1572 } 1573 } -
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/style.css
r14310 r14359 90 90 --bbbase-form-field-background-color: rgba(255, 255, 255, 1); 91 91 --bbbase-form-field-outline-color: rgba(102, 128, 189, 1); 92 93 /* Fonts */ 94 --bbbase-font-base: 100 16px/1.5 'Inter', sans-serif; 95 --bbbase-font-code: 400 14px/14px monospace; 96 --bbbase-font-dashicons: 400 20px/1 'dashicons'; 97 --bbbase-font-input: 400 14px/16px sans-serif; 92 98 } 93 99 … … 100 106 } 101 107 body { 102 font: 100 16px/1.5 Inter, sans-serif;103 text-align: left;104 108 background: var(--bbbase-brightest-white); 105 109 color: var(--bbbase-darkest-text-color-low-contrast); 110 font: var(--bbbase-font-base); 111 text-align: left; 106 112 margin: 0; 107 113 } … … 477 483 #bb-menu-icon:before, 478 484 #mobile-menu-button:before { 479 font: normal 16px/1 'dashicons'; 485 font: var(--bbbase-font-dashicons); 486 font-size: 16px; 480 487 color: var(--bbbase-darkest-black); 481 488 content: '\f349'; … … 817 824 border: 1px solid var(--bbbase-grey-border-color-low-contrast); 818 825 border-radius: var(--bbbase-border-radius); 819 font: 14px/16px sans-serif;826 font: var(--bbbase-font-input); 820 827 padding: 5px 10px; 821 828 } … … 884 891 #commentform input, 885 892 #commentform textarea { 886 font: 100 16px/1.5 Inter, sans-serif;893 font: var(--bbbase-font-base); 887 894 } 888 895 .commentlist { … … 1287 1294 #bbpress-forums ul.sticky li.bbp-topic-title:before, 1288 1295 #bbpress-forums ul.super-sticky li.bbp-topic-title:before { 1289 font: normal 20px/20px 'dashicons'; 1296 font: var(--bbbase-font-dashicons); 1297 font-size: 20px; 1298 line-height: 20px; 1290 1299 content: '\f450'; 1291 1300 margin-right: 5px; … … 1635 1644 .sidebar .topic-info li:before, 1636 1645 .sidebar div ul li a:before { 1637 font: normal 16px/23px 'dashicons'; 1646 font: var(--bbbase-font-dashicons); 1647 font-size: 16px; 1648 line-height: 23px; 1638 1649 margin-right: 5px; 1639 1650 color: var(--bbbase-darkest-black);
Note: See TracChangeset
for help on using the changeset viewer.