- Timestamp:
- 06/13/2017 04:38:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/css/twentyfourteen.scss
r11586 r11587 159 159 in your child themes root & either start over or modify the ruelesets. 160 160 161 If you do not require the styles you can dequeue them from the themes functions file. 161 If you do not require the styles you can dequeue them from the themes 162 functions file. 162 163 163 164 Please see this codex article for more information: … … 214 215 // We reset this here under our #buddypress namespace 215 216 #buddypress { 217 216 218 h1, 217 219 h2, … … 269 271 */ 270 272 #buddypress { 273 271 274 .item-list-tabs { 275 272 276 ul { 273 277 … … 277 281 278 282 @media screen and (min-width: 400px) { 283 279 284 li { 280 285 width: 50%; … … 283 288 284 289 @media screen and (min-width: 594px) { 290 285 291 li { 286 292 width: auto; … … 296 302 297 303 .directory #buddypress { 304 298 305 .item-list-tabs { 299 306 … … 314 321 315 322 @media screen and (min-width: 783px) { 323 316 324 ul { 317 325 padding-bottom: 0; … … 320 328 border: 1px solid $border-med; 321 329 border-bottom-color: $content-background; 330 322 331 @include border-top-radius(4px); 323 332 margin-bottom: -1px; … … 333 342 334 343 #subnav { 344 335 345 ul { 336 346 border-bottom: 0; … … 346 356 /* List last filters global */ 347 357 #buddypress { 358 348 359 #subnav { 360 349 361 li#activity-filter-select.last { 350 362 line-height: 2.1; … … 360 372 361 373 #buddypress { 374 362 375 #object-nav { 376 363 377 ul { 364 378 border-bottom: 1px solid $border-med; … … 372 386 373 387 ul { 388 374 389 li { 375 390 width: auto; … … 394 409 .bp-user, 395 410 .single-item.groups { 411 396 412 #buddypress { 397 413 background: lighten($nav-background-border, 10%); … … 406 422 } 407 423 408 #item-body {border-left: 1px solid $nav-background-border;} 424 #item-body { 425 border-left: 1px solid $nav-background-border; 426 } 409 427 410 428 #object-nav { … … 486 504 487 505 #buddypress { 506 488 507 div.pagination { 508 489 509 .pag-count { 490 510 margin-left: 0; … … 499 519 */ 500 520 #buddypress { 521 501 522 .item-list { 523 502 524 .item-title { 503 525 504 526 a { 505 527 display: block; 528 506 529 @include font-size(22); 507 530 text-decoration: none; … … 510 533 span.update, 511 534 span a { 535 512 536 @include font-size(12); 513 537 } … … 521 545 522 546 #buddypress { 547 523 548 ul.item-list { 549 524 550 li { 525 551 overflow: hidden !important; // buddypress styles over specified … … 531 557 532 558 a { 559 533 560 img.avatar { 534 561 float: none; … … 541 568 width: 100%; 542 569 543 > a {text-align: center;} 570 > a { 571 text-align: center; 572 } 544 573 } 545 574 … … 581 610 582 611 @media screen and (min-width: 594px) { 612 583 613 .item-avatar { 584 614 float: left; … … 586 616 } 587 617 588 div.item-title > a {text-align: left;} 618 div.item-title > a { 619 text-align: left; 620 } 589 621 590 622 .item { … … 607 639 608 640 @media screen and (min-width: 783px) { 641 609 642 .item { 610 643 float: left; … … 627 660 628 661 a { 662 629 663 @include box-model(border-box); 630 664 display: block; … … 661 695 */ 662 696 #buddypress { 697 663 698 form#whats-new-form { 664 699 margin: $spacing-val-lg 0; … … 684 719 685 720 #whats-new-content { 721 686 722 @media screen and (max-width: 594px) { 723 687 724 #whats-new-options { 688 725 display: flex; … … 712 749 713 750 @media screen and (min-width: 594px) { 751 714 752 #whats-new-avatar { 715 753 float: left; … … 734 772 735 773 #buddypress { 736 #activity-stream {margin-top: $spacing-val-lg;} 774 775 #activity-stream { 776 margin-top: $spacing-val-lg; 777 } 778 737 779 .activity-list { 738 780 739 781 li.activity-item:not(.mini) { 782 740 783 .activity-avatar { 741 784 float: none; … … 751 794 752 795 li.mini { 796 753 797 .activity-avatar { 798 754 799 img.avatar { 755 800 margin-left: 0; … … 758 803 759 804 .activity-meta { 760 a {@include font-size(12);} 805 806 a { 807 808 @include font-size(12); 809 } 761 810 } 762 811 } … … 780 829 } 781 830 782 .activity-inner {margin: $spacing-val-sm 0;} 831 .activity-inner { 832 margin: $spacing-val-sm 0; 833 } 783 834 } 784 835 785 836 @media screen and (min-width: 594px) { 837 786 838 li.activity-item:not(.mini) { 839 787 840 .activity-avatar { 788 841 float: left; … … 797 850 798 851 li.mini { 852 799 853 .activity-avatar { 800 854 margin: 0 $spacing-val-sm 0 5%; … … 813 867 // Activity Single Item 'Permalink' Page 814 868 body.activity-permalink { 869 815 870 #buddypress { 816 871 // remove user account faux column background … … 818 873 819 874 .activity-list { 875 820 876 li { 877 821 878 @media screen and (max-width: 760px) { 879 822 880 .activity-content, 823 881 .activity-comments { … … 837 895 838 896 #buddypress { 897 839 898 .activity { 899 840 900 .activity-comments { 841 901 margin-left: 0; … … 867 927 // reduce/widen the content margins 868 928 @media screen and (max-width: 400px) { 929 869 930 .acomment-avatar { 870 931 display: block; … … 872 933 873 934 a, 874 img.avatar {display: inline; float: none;} 935 img.avatar { 936 display: inline; 937 float: none; 938 } 875 939 } 876 940 … … 881 945 } 882 946 883 .acomment-content {padding: 0 $spacing-val-sm;} 947 .acomment-content { 948 padding: 0 $spacing-val-sm; 949 } 884 950 } // close @media 885 951 … … 891 957 display: inline-block; 892 958 font-family: inherit; 959 893 960 @include font-size(12); 894 font-weight: normal;961 font-weight: 400; 895 962 line-height: 1.2; 896 963 padding: 4px 10px; … … 922 989 *------------------------------------------------------------ 923 990 */ 924 925 991 926 992 … … 930 996 *------------------------------------------------------------------------------- 931 997 */ 998 932 999 /* groups & user account page entry title */ 933 1000 .single-item.groups, … … 935 1002 936 1003 .entry-title { 1004 937 1005 @include title-background-dark(); 938 1006 @include font-size(22); … … 942 1010 943 1011 @media screen and (min-width: 673px) { 1012 944 1013 .entry-title { 1014 945 1015 @include font-size(28); 946 1016 } … … 948 1018 949 1019 } // close #buddypress 1020 950 1021 /** 951 1022 *------------------------------------------------------------ … … 955 1026 // override BP margins - users/groups manage their own styles later on 956 1027 #buddypress { 1028 957 1029 div#item-header { 958 1030 padding-bottom: $spacing-val-sm; … … 968 1040 padding-top: $spacing-val-sm; 969 1041 970 p {margin-bottom: 0;} 1042 p { 1043 margin-bottom: 0; 1044 } 971 1045 } 972 1046 } … … 979 1053 */ 980 1054 .single-item.groups { 1055 981 1056 #buddypress { 982 1057 983 1058 @media screen and (max-width: 594px) { 1059 984 1060 div#item-header { 985 1061 display: flex; … … 1000 1076 } 1001 1077 1002 #item-header-content {order: 2;} 1078 #item-header-content { 1079 order: 2; 1080 } 1003 1081 1004 1082 #item-actions { … … 1031 1109 1032 1110 h2 { 1111 1033 1112 @include font-size(20); 1034 1113 } … … 1045 1124 1046 1125 @media screen and (min-width: 594px) { 1126 1047 1127 #item-actions { 1048 1128 float: right; … … 1070 1150 1071 1151 .bp-user #buddypress { 1152 1072 1153 #item-header { 1073 1154 … … 1086 1167 1087 1168 @media screen and (max-width: 594px) { 1169 1088 1170 #item-buttons { 1171 1089 1172 div.generic-button { 1090 1173 display: inline-block; … … 1094 1177 1095 1178 a { 1179 1096 1180 @include box-model(); 1097 1181 display: block; … … 1103 1187 1104 1188 @media screen and (min-width: 673px) { 1189 1105 1190 #item-header-avatar { 1106 1191 float: left; … … 1148 1233 1149 1234 .radio { 1235 1150 1236 strong { 1237 1151 1238 @include font-size(18); 1152 1239 } … … 1157 1244 } 1158 1245 1159 #group-creation-previous {margin: $spacing-val-sm 0;} 1246 #group-creation-previous { 1247 margin: $spacing-val-sm 0; 1248 } 1160 1249 } 1161 1250 1162 1251 /* Manage Members */ 1163 1252 .groups.manage-members { 1253 1164 1254 #group-settings-form { 1165 1255 1166 h3 {margin-top: $spacing-val-lg;} 1256 h3 { 1257 margin-top: $spacing-val-lg; 1258 } 1167 1259 1168 1260 .item-list { … … 1173 1265 li { 1174 1266 border-bottom: 1px solid $border-light; 1175 &:last-child {border-bottom: 0;} 1267 1268 &:last-child { 1269 border-bottom: 0; 1270 } 1176 1271 1177 1272 img, … … 1219 1314 1220 1315 #buddypress { 1316 1221 1317 #members-group-list { 1318 1222 1319 .item-list { 1320 1223 1321 h5 { 1224 1322 display: inline-block; … … 1234 1332 1235 1333 #buddypress { 1334 1236 1335 #item-body { 1336 1237 1337 #subnav { 1338 1238 1339 li.groups-members-search:focus, 1239 1340 li.groups-members-search:hover, … … 1248 1349 // Need to target groups members via body classes 1249 1350 .groups.group-members { 1351 1250 1352 #subnav { 1251 1353 … … 1256 1358 } 1257 1359 1258 ul:after {clear: both; } 1360 ul:after { 1361 clear: both; 1362 } 1259 1363 1260 1364 ul { … … 1272 1376 1273 1377 #search-members-form { 1378 1274 1379 @include box-model(border-box); 1275 1380 float: left; … … 1280 1385 1281 1386 label { 1282 input[type="text"] {width: 100%;} 1387 1388 input[type="text"] { 1389 width: 100%; 1390 } 1283 1391 } 1284 1392 } … … 1301 1409 1302 1410 .send-invites { 1411 1303 1412 #buddypress { 1413 1304 1414 #item-body { 1415 1305 1416 @media screen and (min-width: 783px) { 1306 1417 border-top: 1px solid $nav-background-border; … … 1308 1419 1309 1420 @media screen and (max-width: 400px) { 1421 1310 1422 .left-menu { 1311 1423 float: none; … … 1323 1435 1324 1436 li { 1437 1325 1438 img.avatar { 1326 1439 display: block; … … 1341 1454 1342 1455 @media screen and (min-width: 594px) { 1343 #invite-list {width: 160px;} 1344 .main-column {margin-left: 190px;} 1456 1457 #invite-list { 1458 width: 160px; 1459 } 1460 1461 .main-column { 1462 margin-left: 190px; 1463 } 1345 1464 1346 1465 li { 1466 1347 1467 img.avatar { 1348 1468 float: left; … … 1371 1491 1372 1492 #buddypress { 1493 1373 1494 .profile { 1374 1495 1375 1496 .bp-widget { 1497 1376 1498 h2 { 1377 1499 background: $medium-background; … … 1384 1506 1385 1507 #profile-edit-form { 1508 1386 1509 .button-nav:before, 1387 1510 .button-nav:after { … … 1412 1535 background: none; 1413 1536 border: 0; 1414 @include font-size(18) 1537 1538 @include font-size(18); 1415 1539 } 1416 1540 } //.button-nav … … 1418 1542 .field-visibility-settings-toggle, 1419 1543 .field-visibility-settings { 1544 1420 1545 @include font-size(14); 1421 1546 } … … 1457 1582 background: $content-background; 1458 1583 border-right: 0 !important; 1584 1459 1585 @include box-model(border-box); 1460 1586 display: inline-block; … … 1489 1615 td.thread-options { 1490 1616 border-left: 0; 1617 1491 1618 @include calc(width, "100% - 30px"); 1492 1619 margin-left: 0; … … 1503 1630 1504 1631 a { 1632 1505 1633 @include font-size(12); 1506 1634 line-height: 2.2; … … 1519 1647 @media screen and (max-width: 320px) { 1520 1648 clear: both; 1649 1521 1650 @include font-size(11); 1522 1651 width: 100%; … … 1526 1655 1527 1656 tr.unread { 1657 1528 1658 td { 1529 1659 background: lighten($unread, 7%); … … 1556 1686 1557 1687 #message-subject { 1688 1558 1689 @include title-background-dark(); 1559 1690 padding: 0.5em; … … 1561 1692 1562 1693 .message-box { 1694 1563 1695 .message-metadata { 1564 1696 margin-bottom: $spacing-val-sm; … … 1571 1703 } 1572 1704 1573 .bp-tooltip:hover: :after,1574 .bp-tooltip:active: :after,1575 .bp-tooltip:focus: :after {1705 .bp-tooltip:hover:after, 1706 .bp-tooltip:active:after, 1707 .bp-tooltip:focus:after { 1576 1708 right: 40px; 1577 1709 text-align: right; … … 1583 1715 margin: 0; 1584 1716 1585 li {margin-left: 0;} 1717 li { 1718 margin-left: 0; 1719 } 1586 1720 1587 1721 li.friend-tab { … … 1618 1752 1619 1753 #message-threads.sitewide-notices { 1754 1620 1755 td { 1621 1756 width: 100%; 1622 1757 1623 1758 strong { 1759 1624 1760 @include title-background-dark(); 1625 1761 @include font-size(16); … … 1661 1797 } 1662 1798 1663 a:last-child: :after {1799 a:last-child:after { 1664 1800 content: attr(title); 1665 1801 display: block; … … 1672 1808 .messages-notices { 1673 1809 1674 .bp-tooltip:hover: :after,1675 .bp-tooltip:active: :after,1676 .bp-tooltip:focus: :after {1810 .bp-tooltip:hover:after, 1811 .bp-tooltip:active:after, 1812 .bp-tooltip:focus:after { 1677 1813 left: 0; 1678 1814 margin-top: 10px; … … 1693 1829 padding-left: $spacing-val-sm; 1694 1830 1695 ul { margin: 0; } 1831 ul { 1832 margin: 0; 1833 } 1696 1834 1697 1835 li { … … 1714 1852 1715 1853 #buddypress { 1854 1716 1855 #settings-form { 1717 1856 // 'p' = email notification screen sub heading 1718 > p { @include font-size(20); } 1857 > p { 1858 1859 @include font-size(20); 1860 } 1719 1861 } 1720 1862 1721 1863 table.notification-settings { 1864 1722 1865 td.yes, 1723 1866 td.no { … … 1735 1878 1736 1879 @media screen and (min-width: 401px) { 1880 1737 1881 th.field-group-name, 1738 1882 td.field-name { … … 1742 1886 1743 1887 td.field-visibility { 1744 select {width: 100%;} 1888 1889 select { 1890 width: 100%; 1891 } 1745 1892 } 1746 1893 } … … 1766 1913 1767 1914 .standard-form { 1915 1768 1916 input[type="text"], 1769 1917 input[type="email"], … … 1776 1924 1777 1925 // BP :( 1778 #send-reply.standard-form textarea {width: 100%;} 1926 #send-reply.standard-form textarea { 1927 width: 100%; 1928 } 1779 1929 1780 1930 div.activity-comments { 1931 1781 1932 form { 1933 1782 1934 .ac-textarea { 1783 1935 background: $light-background; … … 1814 1966 } 1815 1967 1816 input[type= 'text'] {1968 input[type="text"] { 1817 1969 float: left; 1818 1970 margin: 0; … … 1820 1972 } 1821 1973 1822 input[type= 'text'],1823 input[type= 'submit'] {1974 input[type="text"], 1975 input[type="submit"] { 1824 1976 border: 0; 1977 1825 1978 @include font-size(14); 1826 1979 line-height: inherit; 1827 1980 } 1828 1981 1829 input[type= 'text'] {1982 input[type="text"] { 1830 1983 border-right: 1px solid #ccc; 1831 1984 padding: 0.2em 0 0.2em 0.2em; 1832 1985 } 1833 1986 1834 input[type= 'submit'] {1987 input[type="submit"] { 1835 1988 float: right; 1836 font-weight: normal;1989 font-weight: 400; 1837 1990 padding: 0.2em 1em; 1838 1991 text-align: center; … … 1847 2000 // Shift the search parent to the right and allow to shrinkwrap 1848 2001 @media screen and (min-width: 401px) { 2002 1849 2003 div.dir-search, 1850 2004 div.message-search { … … 1853 2007 1854 2008 form { 2009 1855 2010 label, 1856 input[type= 'submit'],1857 input[type= 'text'] {2011 input[type="submit"], 2012 input[type="text"] { 1858 2013 width: auto; 1859 2014 } … … 1861 2016 } 1862 2017 1863 div.message-search { margin: 3px 0 0;} 2018 div.message-search { 2019 margin: 3px 0 0; 2020 } 1864 2021 1865 2022 li.groups-members-search { 2023 1866 2024 form { 2025 1867 2026 label, 1868 input[type= 'submit'],1869 input[type= 'text'] {2027 input[type="submit"], 2028 input[type="text"] { 1870 2029 width: auto; 1871 2030 } … … 1883 2042 */ 1884 2043 #buddypress { 2044 1885 2045 table { 1886 2046 border-color: $border-med; … … 1891 2051 } 1892 2052 } 2053 1893 2054 /*__ User Account tables __*/ 1894 2055 … … 1904 2065 1905 2066 div#message { 2067 1906 2068 p { 2069 1907 2070 @include font-size(18); 1908 font-weight: bold;2071 font-weight: 700; 1909 2072 } 1910 2073 1911 2074 &.info { 2075 1912 2076 p { 2077 1913 2078 @include message-box($notice-info); 1914 2079 } … … 1916 2081 1917 2082 &.updated { 2083 1918 2084 p { 2085 1919 2086 @include message-box($notice-update); 1920 2087 } … … 1927 2094 // Without direct classes on our messages ( 'warning' ) 1928 2095 // we need to use the body classes 1929 // todo: If thisis class .warning is included in main BP styles remove from here2096 // @todo If this class .warning is included in main BP styles remove from here 1930 2097 .delete-group { 2098 1931 2099 #buddypress { 2100 1932 2101 div#message.info { 2102 1933 2103 p { 2104 1934 2105 @include message-box($notice-warning); 1935 2106 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)