Giter Club home page Giter Club logo

Comments (3)

mtsweir avatar mtsweir commented on July 2, 2024 1

For the content bg colour:
https://github.com/kazzkiq/balloon.css/blob/master/balloon.css#L24

The arrow head is a data image, so you'll need to recreate one yourself to match the intended colour. There are plenty of sites out there that can convert your image to a data image also, e.g https://www.base64-image.de/. Or maybe give it a go in CSS, but haven't tried that myself.

Hope that helps.

from balloon.css.

kazzkiq avatar kazzkiq commented on July 2, 2024 1

Complementary to what @mtsweir said, you can also try a "Find & Replace", searching for this string: rgba(17, 17, 17, 0.9) replacing it with the color you want. This would also replace the arrow's color without the need to re-generate the entire Base64 SVG.

Alternatively, if you're using preprocessors (like SASS), you can import balloon.scss and simply edit the highlighted variable here.

from balloon.css.

rmkane avatar rmkane commented on July 2, 2024 1

If anyone is interested, here is how you can override the foreground/background in native CSS:

/** foreground-color : #024 | background-color : #DEF */
[aria-label][data-balloon-pos]:after { color : #024; background: #DEF; }
[aria-label][data-balloon-pos]:before { border-top-color: #DEF; }
[aria-label][data-balloon-pos][data-balloon-pos="down"]:before { border-bottom-color: #DEF; }
[aria-label][data-balloon-pos][data-balloon-pos="down-left"]:before { border-bottom-color: #DEF; }
[aria-label][data-balloon-pos][data-balloon-pos="down-right"]:before { border-bottom-color: #DEF; }
[aria-label][data-balloon-pos][data-balloon-pos="left"]:before { border-left-color: #DEF; }
[aria-label][data-balloon-pos][data-balloon-pos="right"]:before { border-right-color: #DEF; }

from balloon.css.

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.