#14 new
Mark Robinson

Stylesheets not handled correctly

Reported by Mark Robinson | September 14th, 2010 @ 05:11 PM

The stylesheets helper outputs print and screen stylesheets in wrong order without appropriate media statement. Specifying media and sheet order doesn't work because .scss aren't handled when specifying sheets.

lib/staticmatic/helpers.rb

Comments and changes to this ticket

  • Mark Robinson

    Mark Robinson September 14th, 2010 @ 08:14 PM

    I just hacked it to work by adding this line around line 61:

    File.exist?(File.join(@staticmatic.src_dir, 'stylesheets', "#{file}.scss"))

  • Stephen Bartholomew

    Stephen Bartholomew September 22nd, 2010 @ 08:18 PM

    This should be working in the pre-release. Can you try and let me know?

    If it's still not working, can you post code samples?

    Cheers!

  • Mark Robinson

    Mark Robinson September 29th, 2010 @ 09:07 PM

    I just tried with the latest pre-release 0.11.0 and still not working.

    in layout I have
    = stylesheets :ie

    that produces:

    <link href="/stylesheets/screen.css" media="all" rel="stylesheet" type="text/css"/><link href="/stylesheets/ie.css" media="all" rel="stylesheet" type="text/css"/><link href="/stylesheets/print.css" media="all" rel="stylesheet" type="text/css"/>
    

    What I would like is:

    <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css"/>
    <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css"/>
    <!--[if lt IE 8]>
      <link href="/stylesheets/ie.css" media="all" rel="stylesheet" type="text/css"/>
    <![endif]-->
    
  • Mark Robinson

    Mark Robinson September 29th, 2010 @ 09:11 PM

    Sorry, just reread that. There shouldn't be :ie after =stylesheets

    And yes, you've fixed the bit I suggested in my first comment but not the problem above if you want to take a look at it.

    Thanks

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Light-weight static site framework

Shared Ticket Bins

People watching this ticket

Tags

Pages