- Timestamp:
- 06/16/2018 09:20:13 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_widgets.scss
r12082 r12171 1 1 // BP Widgets 2 // @version 3.0.02 // @version 4.0.0 3 3 4 4 .buddypress.widget { … … 6 6 .item-options { 7 7 8 @include font-size(14); 8 @include font-size(12); 9 10 margin: 0 0 1em; 11 padding: 1em 0; 12 } 13 14 .bp-login-widget-user-avatar { 15 float: left; 16 } 17 18 .bp-login-widget-user-links { 19 margin-left: 70px; 9 20 } 10 21 11 22 ul.item-list { 12 13 @include flex-box-dir($flex-dir: column);14 15 @include medium-small-up() {16 17 @include flex-box-dir($flex-dir: row, $flex-wrap: wrap);18 }19 20 23 list-style: none; 21 margin: $marg-sml -2%; 22 overflow: hidden; 23 24 li { 25 border: 1px solid $bp-border-color; 26 27 @include flex-align(); 28 @include box-item-size($grow: 1, $basis: 46%); 29 30 @include large-up() { 31 32 @include box-item-size($grow: 0, $basis: 20%); 33 } 34 35 margin: 2%; 36 37 .item-avatar { 38 padding: $pad-sml; 39 text-align: center; 40 41 .avatar { 42 width: 60%; 43 } 44 } 45 46 .item { 47 padding: 0 $pad-sml $pad-sml; 48 49 50 .item-meta { 51 52 @include font-size(12); 53 overflow-wrap: break-word; 54 } 55 } 56 } // close li 24 margin: $marg-sml 0; 57 25 } 58 26 59 .activity-list { 27 ul.activity-list { 28 60 29 padding: 0; 61 30 … … 69 38 margin-bottom: 0.5em; 70 39 } 40 41 li { 42 border-bottom: 1px solid $primary-grey; 43 margin-bottom: 1em; 44 45 .activity-header p { 46 margin-bottom: 0.5em; 47 } 48 49 &:last-child { 50 border-bottom: 0; 51 } 52 } 71 53 } 72 54 … … 76 58 77 59 img { 60 margin: 0.5em; 61 } 62 } 63 64 ul#friends-list, 65 ul#groups-list, 66 ul#members-list { 67 68 @include clearfix-element("li"); 69 70 li { 71 78 72 margin-bottom: 1em; 79 margin-right: 1em; 73 74 .item-avatar { 75 float: left; 76 width: 60px; 77 } 78 79 .item { 80 margin-left: 70px; 81 } 80 82 } 81 83 } 82 84 } 83 85 86 // BP Widgets in Main content area. 87 // User's and Group's widgetized default home pages. 84 88 85 // Are we in a main site sidebar? 86 // while hard to tell width assume that 87 // at large width it's narrow & 88 // adjust the li widths & margins to % 89 // & flex basis to auto for large up. 90 // @todo this may need reviewing & adjusting. 91 92 // WP default themes use the class '.widget-area' 93 // as a naming convention for the main sidebar 94 // this is the best we can know & style on this class 95 .widget-area { 89 .buddypress-wrap { 96 90 97 91 .buddypress.widget { 98 92 99 ul.item-list { 93 ul#friends-list, 94 ul#groups-list, 95 ul#members-list { 96 97 @include flex-box-dir($flex-dir: column); 98 99 @include medium-small-up() { 100 101 @include flex-box-dir($flex-dir: row, $flex-wrap: wrap); 102 } 103 100 104 101 105 li { 106 border: 1px solid $bp-border-color; 102 107 103 @include box-item-size($grow: 0, $basis: 46%);104 margin: 2% 2% 10px;108 @include flex-align(); 109 @include box-item-size($grow: 1, $basis: 46%); 105 110 106 @include large-up {111 @include large-up() { 107 112 108 .avatar { 109 width: 100%; 113 @include box-item-size($grow: 0, $basis: 20%); 114 } 115 116 margin: 2%; 117 118 .item-avatar { 119 padding: $pad-sml; 120 text-align: center; 121 } 122 123 .item { 124 padding: $pad-sml; 125 126 127 .item-meta { 128 129 @include font-size(12); 130 overflow-wrap: break-word; 110 131 } 111 132 } 112 } 113 } 133 } // close li 114 134 115 @include large-up() {135 @include large-up() { 116 136 117 ul.item-list {118 137 margin: $marg-sml -2%; 119 138 width: 100%; … … 127 146 } 128 147 } 148 149 blockquote { 150 margin: 0 0 1.5em; 151 overflow: visible; 152 padding: 0 0 0.75em 0.75em; 153 } 129 154 } 130 155 }
Note: See TracChangeset
for help on using the changeset viewer.