Diskuze: scss - eror
V předchozím kvízu, Online test znalostí HTML a CSS, jsme si ověřili nabyté zkušenosti z kurzu.


Michal Žůrek - misaz:15.11.2014 18:56
Protože background požaduje 3 vlastnost, barvu, obrázek a další. Udáváš jen barvu.
div.profil
{
background-color: red;
}
Neaktivní uživatel:15.11.2014 19:19
Odkedy mám SASS ani neviem, čo je background-color Mne sa to kompiluje
bezproblémovo aj bez ďalších vlastností.
Honza Bittner:15.11.2014 19:26
To přeci nemusíš, zadávat přímo background-color. Samotné background
by mělo stačit.
TomasGlawaty Zkoušel jsem to a mě to žádnou chybu nevypisuje. Máš nejnovější verzi sassu?
Michal Žůrek - misaz:15.11.2014 19:28
já vím, prohlížeč to přechroustá, ale jestli píšeš jednu vlastnost, měl bys ji napsat k tomu čemu patří. Píše mu to i té chyba. Byla očekávána další vlastnost, zadaný byl středník...
Všechny soubory jsem smazal a vytvořil znova
teď už to chybu v .css souboru nepíše, ale v souboru compact se mi objevilo
tohle:
/*
Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.
on line 37 of compact
32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'
33: C:/Ruby21-x64/bin/scss:23:in `load'
34: C:/Ruby21-x64/bin/scss:23:in `<main>'
35: *\/
36: body:before {
37: white-space: pre;
38: font-family: monospace;
39: content: "Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: *\/\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: *\/\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: *\/\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: *\/\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: *\/\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: *\/\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 41 of compact\A \A 36: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 37: C:/Ruby21-x64/bin/scss:23:in `load'\A 38: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 39: *\/\A 40: body:before {\A 41: white-space: pre;\A 42: font-family: monospace;\A 43: content: \\\\\\\"Error: Invalid property: \\\\\\\\"Backtrace:\\\\\\\\" (no value).\A on line 4 of compact\A \A 1: /*\A 2: Errno::ENOENT: No such file or directory @ rb_sysopen - compact\A 3: \A 4: Backtrace:\A 5: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:481:in `read'\A 6: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:481:in `update_stylesheet'\A 7: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'\A 8: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:209:in `each'\A 9: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'\\\\\\\"; }\\\\\\"; }\\\\\"; }\\\\"; }\\\"; }\\"; }\"; }"; }
Backtrace:
compact:37
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:473:in `block in tabulate'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:431:in `each'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:431:in `each_with_index'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:431:in `tabulate'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:396:in `_to_tree'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:368:in `_render_with_sourcemap'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/engine.rb:285:in `render_with_sourcemap'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:489:in `update_stylesheet'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:209:in `each'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin.rb:82:in `update_stylesheets'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/exec/sass_scss.rb:350:in `watch_or_update'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/exec/sass_scss.rb:50:in `process_result'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/exec/base.rb:52:in `parse'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/exec/base.rb:19:in `parse!'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'
C:/Ruby21-x64/bin/scss:23:in `load'
C:/Ruby21-x64/bin/scss:23:in `<main>'
*/
body:before {
white-space: pre;
font-family: monospace;
content: "Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 37 of compact\A \A 32: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 33: C:/Ruby21-x64/bin/scss:23:in `load'\A 34: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 35: */\A 36: body:before {\A 37: white-space: pre;\A 38: font-family: monospace;\A 39: content: \\\\\\\"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A on line 41 of compact\A \A 36: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/bin/scss:13:in `<top (required)>'\A 37: C:/Ruby21-x64/bin/scss:23:in `load'\A 38: C:/Ruby21-x64/bin/scss:23:in `<main>'\A 39: */\A 40: body:before {\A 41: white-space: pre;\A 42: font-family: monospace;\A 43: content: \\\\\\\\"Error: Invalid property: \\\\\\\\\"Backtrace:\\\\\\\\\" (no value).\A on line 4 of compact\A \A 1: /*\A 2: Errno::ENOENT: No such file or directory @ rb_sysopen - compact\A 3: \A 4: Backtrace:\A 5: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:481:in `read'\A 6: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:481:in `update_stylesheet'\A 7: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'\A 8: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:209:in `each'\A 9: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.7/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'\\\\\\\\"; }\\\\\\\"; }\\\\\\"; }\\\\\"; }\\\\"; }\\\"; }\\"; }\"; }"; }
Zobrazeno 6 zpráv z 6.