calm-shallow-sea icon indicating copy to clipboard operation
calm-shallow-sea copied to clipboard

Error upon 'rake generate'

Open digen opened this issue 9 years ago • 3 comments

Hey, thanks for the theme ! Get the following after I run rake generate,

# rake generate
## Generating Site with Jekyll
    error sass/styles.scss (Line 1 of sass/_structure.scss: You may not @extend an outer selector from within @media.
You may only @extend selectors within the same directive.
From "@extend .wrapper" on line 136 of /srv/octopress/sass/_structure.scss.
)
Compilation failed in 1 files.
Configuration file: /srv/octopress/_config.yml
            Source: source
       Destination: public
      Generating...
     Build Warning: Layout 'nil' requested in atom.xml does not exist.
                    done.
 Auto-regeneration: disabled. Use --watch to enable.

digen avatar May 13 '15 05:05 digen

Hey digen,

Looks like this is an error as described in the "Limitations" section of this blog post: http://thesassway.com/intermediate/understanding-placeholder-selectors

The inability to use an extend within a @media query for a class outside of that selector. Try replacing the "@extend .wrapper" on line 136 with the actual rules from the appropriate .wrapper class.

alexharris avatar May 13 '15 23:05 alexharris

Hey Alex, Thanks for looking into this. Appreciate it.

After replacing the rules manually instead of the @extend placeholder, getting the following now,

# rake generate
## Generating Site with Jekyll
    write source/stylesheets/screen.css
    error sass/styles.scss (Line 111 of sass/_code.scss: "html .gist .gist-file .gist-meta" failed to @extend ".sans".
The selector ".sans" was not found.
Use "@extend .sans !optional" if the extend should be able to fail.
)
Compilation failed in 1 files.

In sass/_code.scss, .sans block seems to be missing.

digen avatar May 19 '15 07:05 digen

have you tried making the .sans class optional as it suggests?

also, .can you tell me structure of your sass/scss files and folders and what version of jekyll/octopress you are using? I haven't worked on this theme in a few years, so it is very possible that some new scss files have been introduced that expect something to exist that I had removed from the original

alexharris avatar May 19 '15 15:05 alexharris