Git Product home page Git Product logo

Comments (5)

straker avatar straker commented on September 13, 2024

I decided to use shady DOM because shadow DOM isn't supported in FireFox, Safari, and IE/Edge. So to get a cross browser experience, using shady DOM will reveal problems in Chrome that might get ignored in the other browsers if shadow DOM was on.

As for the styling issues, I'm not sure what would be going on. The local file should still be using shady DOM and have all the comments at the top of the page. The div should be getting the styles for height/width (it looks like it partially is?). Is there a link you can give me that I can look at the end result for myself?

from livingcss.

IORoot avatar IORoot commented on September 13, 2024

Hmm, it's very strange. I'm starting to look into the possibility that it could be that multiple local versions of gulp are installed around the server and that there is some global/local caching cross over mix going on with the plugin... However, that's just a hunch.

I've installed it twice from scratch on my local machine and only the original seems to work properly so far. I'm trying to discern any differences between that original and any new installations, but I really can't see any.

You can see the server version of the messed-up results here: http://livingcss.rekeep.com/molecules.html

from livingcss.

straker avatar straker commented on September 13, 2024

So there does seem to be a bug in the web component that prevents styling correctly. Every element in the example should have the class livingcss-example appended to it, but for some reason your inner rk-swatch-col div doesn't. I'll take a look and see what happened.

from livingcss.

IORoot avatar IORoot commented on September 13, 2024

Much appreciated, thanks!
Now you've mentioned it, I've just checked the page code and it seems that class/ID reference in the CSS is missing the dot or hash.

 .livingcss__section {
    margin-top: 1.625rem;
  }

  livingcss-example {
    border: 1px solid #B6B6B6;
    padding: 1rem;
    border-radius: .25rem .25rem 0 0;
    display: block;
  }

from livingcss.

straker avatar straker commented on September 13, 2024

That is actually correct. The polymer element is called livingcss-example, so I'm able to style it directly using an element selector.

from livingcss.

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.