This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instructions on how to get the body field in the content region to have multiple columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This file will hold styles for the mobile version of your website (mobile first). */ | |
/* This also can include ANY global CSS that applies site-wide. Unless overwritten by a more specific style rule, CSS declarations in global.css will apply site-wide. */ | |
div#page{ | |
background: url('/sites/default/files/images/main_bg.jpg') no-repeat; | |
background-attachment: fixed; | |
background-position: center top; | |
background-color: #153c63; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CSS3MultiColumn - a javascript implementation of the CSS3 multi-column module | |
// v1.02 beta - Jan 08 2008 | |
// Copyright (c) 2005 Cdric Savarese <pro@4213miles.com> | |
// Copyright (c) 2012 Gabriel Saldana <gabriel@gabrielsaldana.org> | |
// This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/> | |
// For additional information, see : http://www.csscripting.com/ | |
// Supported Properties: | |
// column-count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hook_css_alter(&$css) { | |
if ('[your theme name]' == $GLOBALS['theme'] && ($theme = alpha_get_theme()) && $theme->settings['responsive']) { | |
$request_session = request_session_get(); // This is my internal api. tells me parameters about current widget request. namely what size it wants to be in this request... narrow or wide. | |
$old_grid = $theme->grid; | |
$layouts = $theme->grids['[your custom layout name]']; | |
$size_selector = [some selector criteria/request]; | |
switch ($size_selector) { | |
case '1': | |
$layouts['layouts']['narrow']['enabled'] = FALSE; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ---------------- | |
; Generated makefile from http://drushmake.me | |
; Permanent URL: http://drushmake.me/file.php?token=91cec1b91cbf | |
; ---------------- | |
; | |
; This is a working makefile - try it! Any line starting with a `;` is a comment. | |
; Core version | |
; ------------ | |
; Each makefile should begin by declaring the core version of Drupal that all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Found the answer in http://drupal.org/node/1299286#comment-5412342 (thanks @bc and @himerus) | |
You can bind to the jQuery global event 'responsivelayout': | |
jQuery('body').bind('responsivelayout', function() { /* handle event */ } ); | |
The global event is defined in omega-mediaqueries.js with $.event.trigger. Because it's global, you can bind a listener to any object in the DOM. | |
So my custom code should look like: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://drupal.org/node/1508452 Add ie conditional classes out of the box |
OlderNewer