Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want only 960 grid system on my theme...
I want only 960 grid system on my theme...
Comments
Comment #1
Sinan Erdem CreditAttribution: Sinan Erdem commentedUnfortunately 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:
Comment #2
SteveK CreditAttribution: SteveK commentedIf you comment out line 19, 20, 21 and recompile your SASS, your grid will remain fixed width on browser resize.
Comment #3
SteveK CreditAttribution: SteveK commentedI'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.
Comment #4
Sinan Erdem CreditAttribution: Sinan Erdem commentedGreat. Thank you.
Comment #6
rafaesteller CreditAttribution: rafaesteller commentedHi 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