Coder Social home page Coder Social logo

Comments (6)

hakanersu avatar hakanersu commented on June 29, 2024

You can change via css;

.amaran-close:before {
    color:#000;
}

from amaranjs.

KrishnaPG avatar KrishnaPG commented on June 29, 2024

Thanks for the fast response. But for some unknown reason, it is getting overwritten as shown in the screen capture below:
image

I was able to customize mytheme etc. fine - but for this one my customization are getting overwritten.

from amaranjs.

hakanersu avatar hakanersu commented on June 29, 2024

Can you provide any example link? or try to add !important

.amaran-close:before {
    color:#000 !important;
}

from amaranjs.

KrishnaPG avatar KrishnaPG commented on June 29, 2024

Thanks - looks like this !important is retaining my selected color and not overwriting. Just wondering why ":before" was used though. Usually I think thats more like a JS trick to insert elements and not a CSS trick, right?

from amaranjs.

hakanersu avatar hakanersu commented on June 29, 2024

Actually i usally use js to do it but for this situation :before is very useful.You can use custom font type icons like fontawesome's close button,

.amaran-close {
   font:normal normal normal 14px/1 FontAwesome
}
.amaran-close:before {
  content: "\f00d";
}

from amaranjs.

KrishnaPG avatar KrishnaPG commented on June 29, 2024

Ok - that make sense. Thanks.

from amaranjs.

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.