Giter VIP home page Giter VIP logo

Comments (4)

vsdsantos avatar vsdsantos commented on July 17, 2024 3

maybe we can use a styling like this

/* for the fixed header */
table.pluto-table .schema-names th, table.pluto-table .schema-types th:first-child {
    background-color: background_color;
}

/* for the rows numbers */
table.pluto-table tbody th:first-child {
    background-color: background_color;
}
/* for the hovering header*/
table.pluto-table .schema-types th {
    background-color: background_color;
    color: output_color;
}

Here's how it looks like
image

I'm just not sure how to PR this.

from darkmode.

Pocket-titan avatar Pocket-titan commented on July 17, 2024 2

Thanks guys! I've updated the styles to reflect these changes, they should be better now. @zuckberj your suggestions were good! CSS has a keyword called inherit for the things you were going for, and that did the trick. So you'd write background-color: inherit instead of background-color: background-color. I also credited you because your template did most of the heavy lifting :)

from darkmode.

vsdsantos avatar vsdsantos commented on July 17, 2024

Hey @Pocket-titan, thank you so much for the credits, it really feels good to be part of the community 😄

I tested the fix and I think we have a problem.

image

The inherit makes the bg color to be transparent.

Maybe we should use CSS variables to make things more customizable?

I will try to make a PR with this.

from darkmode.

Pocket-titan avatar Pocket-titan commented on July 17, 2024

@zuckberj Haha, no problem! And yes, I thought the table bg was the same color as the cell bg in the light mode, too? Or should they be different (& did I miss that completely 🙃)? You could try experimenting with stuff like hsla(0, 0%, 0%, 0.2) so it overlays, and tune the values a bit until it feels right to you. But css variables also work!

from darkmode.

Related Issues (6)

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.