I want only 960 grid system on my theme...

Comments

Sinan Erdem’s picture

Unfortunately responsive behavior is embeeded into one style file (layout.css) in Basic theme. It should have been divided into different stylesheets for different screen sizes, in my opinion.

You can find and change (or remove) the lines in layout.css about responsive behavior. Example:

@media screen and (max-width: 768px) {
  /* line 24, ../sass/layout.sass */
  .no-sidebars #content {
    display: block;
    float: left;
    margin-right: 3.22581%;
    width: 100%;
  }
SteveK’s picture

If you comment out line 19, 20, 21 and recompile your SASS, your grid will remain fixed width on browser resize.

SteveK’s picture

Status: Active » Fixed

I've added a boolean in the _config.sass file called $responsive. You can set this to "False" to disable the layout responsiveness. It will be set to True by default.

Sinan Erdem’s picture

Great. Thank you.

Status: Fixed » Closed (fixed)

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

rafaesteller’s picture

Hi SteveK,

please, could you let me know how to re-compile the sass file?. I've tried it using the instructions given on the docs at: http://sass-lang.com/documentation/file.SASS_REFERENCE.html

I've installed all the modules required to compile Sass, and I managed to transform the .sass to .scss
(sass-convert style.sass style.scss)

After that, using "sass style.scss style.css" I get a compilation error like this:

style.scss:2: Invalid CSS after " margin:": expected pseudoclass or pseudoelement, was " 0" (Sass::SyntaxError)
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:1148:in `expected'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:1084:in `expected'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:1066:in `expr!'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:793:in `pseudo'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:677:in `simple_selector_sequence'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:645:in `_selector'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:618:in `selector'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:602:in `selector_sequence'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:527:in `ruleset'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:552:in `block_child'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:542:in `block_contents'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:82:in `stylesheet'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/scss/parser.rb:27:in `parse'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/engine.rb:342:in `_to_tree'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/engine.rb:315:in `_render'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/engine.rb:262:in `render'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/exec.rb:349:in `process_result'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/exec.rb:41:in `parse'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/../lib/sass/../sass/exec.rb:21:in `parse!'
from /var/lib/gems/1.8/gems/sass-3.2.12/bin/sass:9
from /usr/local/bin/sass:19:in `load'
from /usr/local/bin/sass:19

Any idea of what could be wrong with it?

Thanks!
Rafa
Any