Git Product home page Git Product logo

Comments (4)

ralyodio avatar ralyodio commented on June 21, 2024

you could use a data attribute data-suffix="{{suffix}}" or just class="mw-editor mw-{{suffix}}"

from ng-markdown.

balthazar avatar balthazar commented on June 21, 2024

Be able to get the good css and the link with the other elements only with one class was cool to me, but seems a little tricky after when we have to change the stylish.

Will go for a general class to apply the css, but I'm not sure with the suffix attribute, that was okay since it was also used to suffix the class, but now I don't think it's really appropriate.

from ng-markdown.

staxmanade avatar staxmanade commented on June 21, 2024

Would be nice if there was an easier way to override the css background color - on a white background page the dark background markdown control is less than ideal.

I'm using the following to override the colors, but would be interested in a cleaner implementation.

Any thoughts?

/* override ng-markdown background colors */
[class^="wmd-input"], [class*=" wmd-input"] {
  background: white;
}
[class^="wmd-prompt-dialog"], [class*=" wmd-prompt-dialog"] {
  background-color: white;
}

from ng-markdown.

balthazar avatar balthazar commented on June 21, 2024

Yep, that's not very clean when you want to override every editor, I give you that.

I thing we will keep the current usage to target the editors, previews and bars but add some global classes like wmd-preview, wmd-input; and maybe some pre-configured themes would be great too

from ng-markdown.

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.