Changeset 9864 for trunk/src/bp-templates/bp-legacy/css/twentyfourteen.scss
- Timestamp:
- 05/12/2015 03:23:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/css/twentyfourteen.scss
r9861 r9864 103 103 104 104 // BP message boxes 105 @mixin message-box($background, $text-color: inherit) { 105 @mixin message-box($background, $text-color: null) { 106 107 @if($text-color) { 108 // if a param was passed through 109 $text-color: $text-color; 110 } @else { 111 $text-color: darken($background, 50%); 112 } 113 106 114 background: lighten($background, 10%); 107 115 border: 1px solid darken($background, 10%); … … 194 202 */ 195 203 204 // Twentyfourteen adds a generic grouped ruleset of clear:both; 205 // for all heading h# elements this is problematic where floats are concerned 206 // We reset this here under our #buddypress namespace 207 #buddypress { 208 h1, 209 h2, 210 h3, 211 h4, 212 h5, 213 h6 { 214 clear: none; 215 } 216 } 217 196 218 // As BP screens have specific content lets adjust the themes primary elements 197 219 // to maximise the screen real estate for BP pages. … … 502 524 } 503 525 526 .item { 527 margin-left: 0; 528 } 529 504 530 // groups group description 505 531 div.item-desc { … … 509 535 510 536 div.action { 537 clear: both; 538 float: none; 539 margin: 0; 511 540 position: relative; 512 541 text-align: left; 513 top: 0;514 542 515 543 div { … … 540 568 .item { 541 569 float: right; 570 margin-left: 5%; 542 571 width: 80%; 543 572 } 544 573 545 .activity-meta, 546 .action { 574 .activity-meta { 547 575 clear: both; 548 576 … … 558 586 .item { 559 587 float: left; 560 margin-left: 5%;561 588 width: 60%; 562 589 … … 567 594 } 568 595 569 .action {596 div.action { 570 597 clear: none; 571 598 float: right; 599 top: 0; 572 600 width: 25%; 573 601 … … 875 903 *------------------------------------------------------------ 876 904 */ 905 // override BP margins - users/groups manage their own styles later on 906 #buddypress { 907 div#item-header { 908 padding-bottom: $spacing-val-sm; 909 910 img.avatar { 911 margin: 0 $spacing-val-md $spacing-val-sm 0; 912 } 913 914 // Prevent messages block abutting bottom of floats, with padding-top 915 #message { 916 clear: both; 917 margin-bottom: $spacing-val-xs; 918 padding-top: $spacing-val-md; 919 920 p {margin-bottom: 0;} 921 } 922 } 923 } 877 924 878 925 /** … … 930 977 #item-actions { 931 978 float: none; 979 margin: 0 0 0 $spacing-val-md; 932 980 width: auto; 933 981 … … 973 1021 .bp-user #buddypress { 974 1022 #item-header { 975 padding-bottom: $spacing-val-sm;976 1023 977 1024 #item-header-avatar { … … 1097 1144 /** 1098 1145 *------------------------------ 1146 * 6.2.1.2 - Group members list 1147 *------------------------------ 1148 */ 1149 1150 #buddypress { 1151 #members-group-list { 1152 .item-list { 1153 h5 { 1154 display: inline-block; 1155 margin: 0; 1156 } 1157 1158 span.activity { 1159 padding-left: $spacing-val-sm; 1160 } 1161 } 1162 } 1163 } // close #buddypress 1164 1165 #buddypress { 1166 #item-body { 1167 #subnav { 1168 li.groups-members-search:focus, 1169 li.groups-members-search:hover, 1170 li.last:focus, 1171 li.last:hover { 1172 background: none; 1173 } 1174 } 1175 } 1176 } 1177 1178 // Need to target groups members via body classes 1179 .groups.group-members { 1180 #subnav { 1181 1182 ul:before, 1183 ul:after { 1184 content: " "; 1185 display: table; 1186 } 1187 1188 ul:after {clear: both; } 1189 1190 ul { 1191 padding: $spacing-val-xs 0; 1192 } 1193 1194 1195 li { 1196 1197 @media screen and (max-width: 400px) { 1198 background: $content-background; 1199 padding: $spacing-val-sm 0; 1200 width: 100% !important; 1201 } 1202 1203 #search-members-form { 1204 @include box-model(border-box); 1205 float: left; 1206 @media screen and (max-width: 400px) { 1207 margin: 0; 1208 width: 100%; 1209 1210 label { 1211 input[type="text"] {width: 100%;} 1212 } 1213 } 1214 @media screen and (min-width: 783px) { 1215 margin-left: 3px; 1216 } 1217 } 1218 1219 } 1220 1221 } // close #subnav 1222 } // close .groups.group-members 1223 1224 /** 1225 *------------------------------ 1099 1226 * 6.2.1.3 - Groups Send Invites 1100 1227 *------------------------------ … … 1349 1476 #buddypress { 1350 1477 div.dir-search, 1351 div.message-search { 1478 div.message-search, 1479 li.groups-members-search { 1352 1480 clear: both; 1353 1481 float: none; … … 1413 1541 1414 1542 div.message-search { margin: 3px 0 0;} 1543 1544 li.groups-members-search { 1545 form { 1546 label, 1547 input[type='submit'], 1548 input[type='text'] { 1549 width: auto; 1550 } 1551 } 1552 } 1553 1415 1554 } // close @media 1555 1416 1556 } // close #buddypress 1417 1557 … … 1429 1569 *------------------------------------------------------------------------------- 1430 1570 */ 1431 #buddypress { 1571 // message args ($variable-color, text-color) 1572 // Leave text-color undefined to automagically set text color 1573 // to background color darker by 50% 1574 #buddypress { 1575 1432 1576 div#message { 1433 1577 p { … … 1438 1582 &.info { 1439 1583 p { 1440 @include message-box($notice-info , #fff);1584 @include message-box($notice-info); 1441 1585 } 1442 1586 } … … 1444 1588 &.updated { 1445 1589 p { 1446 @include message-box($notice-update , #fff);1590 @include message-box($notice-update); 1447 1591 } 1448 1592 } … … 1452 1596 } // close #buddypress 1453 1597 1454 // Without direct classes on our mes ages ( 'warning' )1598 // Without direct classes on our messages ( 'warning' ) 1455 1599 // we need to use the body classes 1456 // message args ($variable-color, text-color)1457 1600 // todo: If this is class .warning is included in main BP styles remove from here 1458 1601 .delete-group { … … 1460 1603 div#message.info { 1461 1604 p { 1462 @include message-box($notice-warning , #fff);1605 @include message-box($notice-warning); 1463 1606 } 1464 1607 }
Note:
See TracChangeset
for help on using the changeset viewer.