A
A
Alexey Demin2015-03-06 16:52:25
Drupal
Alexey Demin, 2015-03-06 16:52:25

Why is layout floating in zen, drupal?

Got a theme that needs to be made adaptive. I edit via scss.
I have the following:

* The layout when there is only one sidebar, the right one.
   */
  .sidebar-second {
    /* Span 4 columns, starting in 1st column from left. */
    #content {
      @include zen-grid-item(4, 1);
    }

    /* Span 1 column, starting in 5th column from left. */
    .region-sidebar-second {
      @include zen-grid-item(1, 5);
    }
  }

After compas watch I get this:
.sidebar-second #content {
  float: left;
  width: 400%;
  margin-left: 0%;
  margin-right: -400%;

.sidebar-second .region-sidebar-second {
  float: left;
  width: 100%;
  margin-left: 400%;
  margin-right: -500%;

Although I suspect it should be:
.sidebar-second #content {
  float: left;
  width: 80%;
  margin-left: 0%;
  margin-right: -80%;

.sidebar-second .region-sidebar-second {
  float: left;
  width: 20%;
  margin-left: 80%;
  margin-right: -100%;

What went wrong and where? put a clean theme (drush zen) and after processing the compass the same turbidity.
Is something not connected? maybe you need to add something?
Thanks in advance for your replies!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Demin, 2015-03-06
@alexd73

Question removed. It's about the compass .. if anything, here is the solution https://www.drupal.org/node/2188263#comment-9105325

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question