Ticket #7314: 7314-css-fix-commented.patch
File 7314-css-fix-commented.patch, 1.9 KB (added by , 8 years ago) |
---|
-
src/bp-templates/bp-legacy/css/twentysixteen.css
58 58 * @section 1.0 - Theme - Structural Elements. overrides, Globals 59 59 *------------------------------------------------------------------------------- 60 60 */ 61 /** 62 * Corrective measure to deal with 2016 / BP handling of no-js 63 * classes - hide menu if BP still showing 'no-js'. 64 */ 65 @media screen and (max-width: 905px) { 66 html.js body.no-js .site-header-menu { 67 display: none; 68 } 69 } 70 61 71 .buddypress div.clear { 62 72 display: none; 63 73 } -
src/bp-templates/bp-legacy/css/twentysixteen.scss
235 235 *------------------------------------------------------------------------------- 236 236 */ 237 237 238 // A conflict between BP's body.no-js being removed only 239 // when the DOM is fully loaded & Twentysixteens hardcoded 240 // class on the html el & scripting in head at start of DOM 241 // causes mobile menu to stay opened too long. 242 // This ruleset hides menu if html.js (2016 JS has kicked in) but BP still 243 // rendering body.no-js before it's own JS removal kicks in. 244 // See trac ticket https://buddypress.trac.wordpress.org/ticket/7314 238 245 246 /** 247 * Corrective measure to deal with 2016 / BP handling of no-js 248 * classes - hide menu if BP still showing 'no-js'. 249 */ 239 250 251 @media screen and (max-width: 905px) { 252 253 html.js { 254 255 body.no-js { 256 257 .site-header-menu { 258 display: none; 259 } 260 } 261 } 262 } 263 240 264 .buddypress { 241 265 // Remove any empty clearing elements, CSS provides clearing. 242 266 div.clear {display: none;}