Changeset 9859 for trunk/src/bp-templates/bp-legacy/css/twentyfifteen.scss
- Timestamp:
- 05/09/2015 06:54:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/css/twentyfifteen.scss
r9852 r9859 36 36 } 37 37 38 // To allow mixins to pass VendorPrefix scss-lint tests we disable lint-test 39 // for specific blocks / rulesets 40 // until such time as exemption lists can be built for the scss-lint.yml? 41 // Any vendor prefix properties / mixins need to be in this block 42 // scss-lint:disable VendorPrefix 43 38 44 // Border border-radius mixins 39 // To allow mixins to pass cscc-lint tests we will not provide vendor prefix40 // until such time as exemption lists can be built for the scss-lint.yml41 42 45 @mixin border-radius($radius) { 43 //-webkit-border-radius: $radius;44 //-moz-border-radius: $radius;45 //-ms-border-radius: $radius;46 -webkit-border-radius: $radius; 47 -moz-border-radius: $radius; 48 -ms-border-radius: $radius; 46 49 border-radius: $radius; 47 50 background-clip: padding-box; … … 49 52 50 53 @mixin border-top-radius($radius) { 51 //-webkit-border-top-right-radius: $radius;54 -webkit-border-top-right-radius: $radius; 52 55 border-top-right-radius: $radius; 53 //-webkit-border-top-left-radius: $radius;56 -webkit-border-top-left-radius: $radius; 54 57 border-top-left-radius: $radius; 55 58 background-clip: padding-box; … … 57 60 58 61 @mixin border-right-radius($radius) { 59 //-webkit-border-bottom-right-radius: $radius;62 -webkit-border-bottom-right-radius: $radius; 60 63 border-bottom-right-radius: $radius; 61 //-webkit-border-top-right-radius: $radius;64 -webkit-border-top-right-radius: $radius; 62 65 border-top-right-radius: $radius; 63 66 background-clip: padding-box; … … 65 68 66 69 @mixin border-bottom-radius($radius) { 67 //-webkit-border-bottom-right-radius: $radius;70 -webkit-border-bottom-right-radius: $radius; 68 71 border-bottom-right-radius: $radius; 69 //-webkit-border-bottom-left-radius: $radius;72 -webkit-border-bottom-left-radius: $radius; 70 73 border-bottom-left-radius: $radius; 71 74 background-clip: padding-box; … … 73 76 74 77 @mixin border-left-radius($radius) { 75 //-webkit-border-bottom-left-radius: $radius;78 -webkit-border-bottom-left-radius: $radius; 76 79 border-bottom-left-radius: $radius; 77 //-webkit-border-top-left-radius: $radius;80 -webkit-border-top-left-radius: $radius; 78 81 border-top-left-radius: $radius; 79 82 background-clip: padding-box; … … 82 85 // Box sizing 83 86 @mixin box-model($box-model) { 84 //-webkit-box-sizing: $box-model;85 //-moz-box-sizing: $box-model;87 -webkit-box-sizing: $box-model; 88 -moz-box-sizing: $box-model; 86 89 box-sizing: $box-model; 87 90 } 91 92 // Calc 93 @mixin calc($property, $expression) { 94 #{$property}: -webkit-calc(#{$expression}); 95 #{$property}: -moz-calc(#{$expression}); 96 #{$property}: calc(#{$expression}); 97 } 98 99 // Re-enable the VendorPrefix lint test 100 // scss-lint:enable VendorPrefix 88 101 89 102 // BP message boxes … … 94 107 } 95 108 96 // Variabals: color definitions 109 // 2015 font family 110 @mixin default-font-sans() { 111 font-family: "Noto Sans", sans-serif; 112 } 113 114 @mixin default-font-serif() { 115 font-family: "Noto Serif", serif; 116 } 117 118 // Variables: color definitions 97 119 $content-background: #fff; 98 120 $light-background: #f7f7f7; 99 121 $medium-background: #ccc; 100 122 $dark-background: #555; 101 $border-color: #999; // border color is varied using rgba123 $border-color: #999; // border color is varied using rgba 102 124 $border-light: #eaeaea; // BP dividers 103 125 $border-med: #ddd; 104 $body-text: #333; // 2015 body text color126 $body-text: #333; // 2015 body text color 105 127 $bp-button-hover: #ededed; // this is the default BP button hover background 106 128 $notice-error: #c85a6e; … … 110 132 $stripe-odd: #ebf0ff; 111 133 $stripe-even: #dbe5ff; 112 $unread: # cddaff;134 $unread: #dce5ff; 113 135 114 136 /*-------------------------------------------------------------- … … 214 236 .entry-header, 215 237 .entry-content { 216 padding: 0 2rem 2rem;238 padding: 0 3rem 3rem 3rem; 217 239 } 218 240 … … 289 311 ul { 290 312 background-color: $light-background; 291 border-bottom: 1px solid rgba($border-color, 0.4); 313 border-bottom: 1px solid rgba($border-light, 0.9); 314 border-top: 1px solid rgba($border-light, 0.9); 292 315 overflow: hidden; 293 316 padding: $spacing-val-xs 0; … … 303 326 /*__ Horizontal menus __*/ 304 327 #object-nav { 328 305 329 ul { 306 330 overflow: hidden; … … 314 338 float: left; 315 339 } 316 // li:nth-child(1n+7) {clear: left;}317 340 } 318 341 } … … 407 430 408 431 span { 432 background: $content-background; 409 433 border-radius: 10%; 410 434 float: right; 411 margin-right: 15px;435 margin-right: 2px; 412 436 } 413 437 } … … 418 442 border-left: 1px solid $border-med; 419 443 overflow: hidden; 420 padding: 0 $spacing-val-sm;444 padding: 0 0 0 $spacing-val-md; 421 445 width: auto; 422 446 423 447 #subnav { 424 margin: 0 (-$spacing-val-sm);448 margin: 0 0 0 (-$spacing-val-md); 425 449 } 426 450 } … … 477 501 */ 478 502 503 // Adjusts Meta items and various elements to match 2015 font-family 504 #buddypress { 505 .item-list { 506 .activity-header, 507 .activity-meta { 508 @include default-font-sans(); 509 } 510 } 511 } 512 479 513 // Trying to position the action div absolute has bad consequences where 480 514 // aditional items are displayed, floating is an alternative that … … 482 516 // This block: 483 517 // * Manages li items, Stacks them small screen, floated left at wider screens. 484 // * Adjusts display of action buttons at small screen 485 // mobile up.518 // * Adjusts display of action buttons at small screen mobile up. 519 // Adjusts Meta items to match 2015 font-family 486 520 487 521 #buddypress { … … 489 523 li { 490 524 overflow: hidden !important; 525 491 526 // Undo BP floats to center avatars initially mobile up 492 527 .item-avatar { … … 672 707 #buddypress { 673 708 674 .activity-list { 675 676 // re-size activity avatars 709 #activity-stream { 710 711 // re-size activity avatars and stack small screen 712 // refactor main elements positioning medium up. 677 713 li { 714 padding: 25px 0 15px; 715 678 716 .activity-avatar { 717 float: none; 718 text-align: center; 719 679 720 a { 721 display: inline-block; 722 680 723 img.avatar { 724 display: inline; 725 float: none; 681 726 height: 60px; 727 margin-bottom: $spacing-val-md; 682 728 margin-left: 0; 683 729 width: 60px; 684 730 } 685 731 } 686 } 687 } 732 } // close .activity-avatar 733 734 .activity-content { 735 margin-left: 0; 736 737 .activity-header { 738 @include font-size(14); 739 } 740 } 741 742 @media screen and (min-width: 46.25em) { 743 744 .activity-avatar { 745 float: left; 746 margin-right: $spacing-val-sm; 747 text-align: left; 748 a {border-bottom: 0;} 749 } 750 751 .activity-content { 752 margin: 0; 753 overflow: hidden; 754 755 .activity-header { 756 @include font-size(16); 757 } 758 } 759 760 } // close @media 761 762 } // close li 688 763 689 764 li.mini { … … 709 784 710 785 .activity-header { 711 @include font-size(16);712 786 line-height: inherit; 713 787 margin-right: 0; … … 724 798 } 725 799 } // close .activity-header 800 726 801 .activity-meta { 727 802 a { … … 737 812 } // close .activity-content 738 813 739 .load-more a {display: block;} 740 741 } // close .activity-list 814 .load-more { 815 background: $light-background; 816 border: 1px solid transparent; 817 padding: $spacing-val-sm; 818 819 &:focus, 820 &:hover { 821 background: darken($light-background, 1%); 822 border: 1px solid rgba(#9fd1e2, 0.3); 823 a { font-style: italic; } 824 } 825 826 a { 827 display: block; 828 } 829 } 830 831 } // close #activity-stream 742 832 } // close #buddypress 833 834 /* Single activity view - activity permalink */ 835 836 .activity-permalink { 837 #buddypress { 838 #activity-stream { 839 840 li.activity-item { 841 padding: $spacing-val-md; 842 } 843 844 li.mini { 845 .activity-header { 846 @include font-size(16); 847 @media screen and (min-width: 46.25em) { 848 @include font-size(20); 849 } 850 margin-bottom: $spacing-val-lg; 851 p {padding: $spacing-val-md;} 852 } 853 } 854 } 855 } 856 } 743 857 744 858 /** … … 748 862 */ 749 863 #buddypress { 750 .activity { 864 865 #activity-stream { 751 866 .activity-comments { 752 867 border-left: 1px solid $border-light; … … 755 870 ul { 756 871 background: rgba($light-background, 0.6); 757 margin: 30px 0 0 2px;872 margin: 15px 0 0 2px; 758 873 } 759 874 … … 828 943 */ 829 944 945 .bp-user, 946 .single-item.groups { 947 @media screen and (max-width: 46.25em) { 948 main { 949 header.entry-header { 950 padding-bottom: 1rem; 951 } 952 } 953 } 954 955 @media screen and (max-width: 38.75em) { 956 h1, 957 #item-header-content { 958 text-align: center; 959 } 960 } 961 962 #buddypress { 963 @media screen and (max-width: 46.25em) { 964 #item-header { 965 .generic-button { 966 float: none; 967 margin: 1.5em 0 0 0; 968 } 969 } 970 } 971 972 @media screen and (max-width: 38.75em) { 973 h1 { 974 margin-bottom: 0; 975 } 976 977 #item-header-avatar { 978 img.avatar { 979 margin-right: 0; 980 } 981 } 982 983 #item-header-content { 984 width: 100%; 985 } 986 } 987 } 988 } 989 830 990 /** 831 991 *----------------------------------------------------- … … 838 998 .single-item.groups { 839 999 #buddypress { 1000 @media screen and (max-width: 46.25em) { 1001 #item-header { 1002 #item-meta { 1003 margin-bottom: $spacing-val-md; 1004 } 1005 } 1006 } 840 1007 841 1008 // Move visual flow of avatar & item-actions at narrow width, … … 1101 1268 li { 1102 1269 @media screen and (max-width: 38.75em) { 1103 background: #fff;1270 background: $content-background; 1104 1271 padding: $spacing-val-md 0; 1105 1272 } … … 1324 1491 position: static; 1325 1492 } 1326 } 1493 } // close .message-meta 1327 1494 1328 1495 .message-content { … … 1332 1499 padding: 0.3em; 1333 1500 } 1334 } 1335 1336 table#message-threads { 1337 1338 .bulk-select-check, 1339 .thread-star { 1340 width: 10%; 1341 } 1342 1343 .thread-star a { 1344 outline: none; 1345 } 1346 1347 .thread-from, 1348 .thread-info { 1349 width: 30%; 1350 } 1351 1352 .thread-options { 1353 width: 20%; 1501 1502 #send-reply { 1503 .message-content { 1504 background: $content-background; 1505 border: 0; 1506 } 1507 } 1508 1509 .alt { 1510 background: $content-background; 1511 } 1512 1513 } // close message-thread Singular view! 1514 1515 #message-threads { 1516 display: block; 1517 1518 thead { 1519 tr { 1520 background: lighten($dark-background, 10%); 1521 } 1354 1522 } 1355 1523 1356 1524 tr { 1357 1358 1525 td { 1359 background: $stripe-odd; 1360 } 1361 } 1362 1363 tr.alt { 1364 td { 1365 background: $stripe-even; 1526 background: $content-background; 1527 display: inline-block; 1528 float: left; 1529 } 1530 1531 td.thread-star, 1532 td.thread-options { 1533 border-bottom-color: $medium-background; 1534 border-bottom-width: 2px; 1535 height: 2.4em; 1536 padding-bottom: 0.2em; 1537 padding-top: 0.2em; 1538 1539 @media screen and (max-width: 46.25em) { 1540 padding-top: 0; 1541 } 1542 } 1543 1544 td.bulk-select-check, 1545 td.thread-from { 1546 height: 2.6em; 1547 @media screen and (max-width: 38.75em) { 1548 height: 5.2em; 1549 } 1550 } 1551 1552 td.thread-from, 1553 td.thread-options { 1554 border-left: 0 !important; 1555 @include calc(width, "100% - 30px"); 1556 margin-left: 0; 1557 } 1558 1559 td.thread-info { 1560 padding-left: 41px; 1561 width: 100%; 1562 1563 a::after { 1564 content: " \2013 \00a0"attr(title); 1565 @include font-size(12); 1566 } 1567 } 1568 1569 td.thread-options { 1570 text-align: right; 1571 1572 a { 1573 @include font-size(12); 1574 line-height: 2.2; 1575 } 1576 } 1577 1578 span.from { 1579 display: none; 1580 } 1581 1582 span.activity { 1583 display: block; 1584 float: right; 1585 line-height: 2; 1586 @media screen and (max-width: 38.75em) { 1587 clear: both; 1588 @include font-size(11); 1589 width: 100%; 1590 } 1366 1591 } 1367 1592 } … … 1370 1595 td { 1371 1596 background: $unread; 1372 border-bottom: 1px solid #e4cdff; 1373 border-top: 1px solid #e4cdff; 1374 } 1375 } 1376 1377 tr.read { 1378 td { 1379 background: $light-background; 1380 } 1597 border-color: $border-color; 1598 } 1599 } 1600 1601 th { 1602 display: none; 1603 } 1604 1605 th.bulk-select-all { 1606 border-bottom: 0; 1607 display: inline-block; 1608 text-align: left; 1609 } 1610 1611 th.bulk-select-all, 1612 td.bulk-select-check, 1613 td.thread-star { 1614 border-right: 0; 1615 width: 30px; 1381 1616 } 1382 1617 }
Note: See TracChangeset
for help on using the changeset viewer.