For the grid, do you think we should just lead with the initial "col-md-" or also add in the other breakpoints by default of "col-sm-" and "col-lg-"?

Patch which follows has changes for md + sm, also with the change from the fluid row class to just row. New features have been mentioned in #1840980: [meta] Bootstrap 3.0, what did you have in mind?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heylookalive’s picture

Attaching patch.

heylookalive’s picture

Argh! Caught up the screenshot change in the diff. Btw not sure how to supply a patch for an image file change, in any case the subtheme screenshot image is old and needs to be replaced with the one from the base theme.

markhalliwell’s picture

Status: Active » Needs work
  1. +++ b/includes/form.inc
    @@ -28,7 +28,8 @@ function bootstrap_form_search_form_alter(&$form, &$form_state) {
    +  $form['basic']['keys']['#attributes']['class'][] = 'col-sm-2';
    
    @@ -49,7 +50,8 @@ function bootstrap_form_search_block_form_alter(&$form, &$form_state) {
    +  $form['search_block_form']['#attributes']['class'][] = 'col-sm-2';
    
    +++ b/template.php
    @@ -274,22 +274,22 @@ function bootstrap_process_block(&$variables, $hook) {
    +      $classes = 'col-sm-12 col-md-12';
    ...
    +      $classes = 'col-sm-9 col-md-9';
    ...
    +      $classes = 'col-sm-6 col-md-6';
    
    +++ b/templates/page.tpl.php
    @@ -49,15 +49,15 @@
    +      <aside class="col-sm-3 col-md-3" role="complementary">
    
    @@ -82,7 +82,7 @@
    +      <aside class="col-sm-3 col-md-3" role="complementary">
    

    According to Bootstrap 2.x -> 3.0 migration, these should just be col-md-*. The extra col-sm-* is unnecessary ATM.

  2. +++ b/template.php
    @@ -274,22 +274,22 @@ function bootstrap_process_block(&$variables, $hook) {
       $class = FALSE;
    ...
    -  return $class;
    +  return $classes;
    

    The beginning $class = FALSE wasn't changed. Also, I'm not entirely thrilled that there are multiple classes here. This function is a help function to return one class for the number of columns.

  3. +++ b/templates/page.tpl.php
    @@ -49,15 +49,15 @@
    +    <section class="<?php print _bootstrap_content_col($columns); ?>">  ¶
    

    Extra whitespace at EOL.

heylookalive’s picture

Status: Needs work » Needs review
FileSize
3.7 KB

Misunderstoof that classes flow up so no more multiple classes. I've gotten rid of the function that works out the content columns class as this should be in the page_preprocess anyway and means we can remove a function call from a template.

All columns on xs go full width, then from there sm has values set and flow up to md and lg.

markhalliwell’s picture

I'll be able to properly review this once #2071683: CDN Change for Bootstrap 3.0 is in.

markhalliwell’s picture

Status: Needs review » Fixed

@heylookalive thanks!

Committed 294952d.

heylookalive’s picture

Awesome! Thanks for the git attribution btw :)

markhalliwell’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

markhalliwell’s picture

Version: 7.x-3.x-dev » 7.x-3.0-beta1