Code Monkey home page Code Monkey logo

Comments (7)

matt-bailey avatar matt-bailey commented on June 12, 2024

Hi, I've just noticed this as well. I'm just wondering if the Opera '3/2' pixel ratio in the media query should in fact be '1.5'? I assume it's the '/' that's causing the syntax error anyway...

from 320andup.

stareat avatar stareat commented on June 12, 2024

Youre right and there are some errors more e.g. in line 302 (missing a bracket):

Replace: .font-size(12; with: .font-size(12);

from 320andup.

matt-bailey avatar matt-bailey commented on June 12, 2024

Thanks, I think I spotted that as well although it wasn't throwing up an error. All in all I'm loving 320andup though, fantastic resource!

from 320andup.

matt-bailey avatar matt-bailey commented on June 12, 2024

Sorry, spoke too soon - I changed it back to '3/2' and I'm getting the LESS compiler error again.

As a test I started with a clean .less file with the following code:

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) {}

This code returned the following error:

ParseError: Syntax Error on line 1 in ... style.less:1:0 1 @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) {}[0m

Any ideas?

from 320andup.

stareat avatar stareat commented on June 12, 2024

You're right, but its an issue with LESS choking on @media only screen and (-o-min-device-pixel-ratio: 3/2) {} and it's mentioned already in an issue: less/less.js#578

I'll add a comment also!

from 320andup.

matt-bailey avatar matt-bailey commented on June 12, 2024

Thanks for pointing that out. Fingers crossed for a fix...

from 320andup.

malarkey avatar malarkey commented on June 12, 2024

Thanks. Yes, this is a LESS issue. Personally, I simply remove the Opera line from my own sites. Not perfect, but hey.

from 320andup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.