Code Monkey home page Code Monkey logo

Comments (2)

mojavelinux avatar mojavelinux commented on June 3, 2024

the stylesheet can control the looks btn_before and btn_after

I think these classes are too fine-grained. I think the uniform class name "enclosure" (or "envelope") would be sufficient.

Otherwise, 👍

from asciidoctor-epub3.

mojavelinux avatar mojavelinux commented on June 3, 2024

Hmm, now that I think about it, if the user wanted to use different opening and closing delimiters, then it might be convenient to have two classes (though it still could be achieved with CSS selectors using a single class).

I'm actually thinking that "before" and "after" are sufficient in that case. Underscores are problematic in HTML output because they could end up getting matched as formatting, so we want to avoid them.

<b class="button"><span class="before">[</span><span class="label">button text</span><span class="after">]</span></b>

Then CSS can use b.button > .before and b.button > .after to control these styles. I prefer this proposal over my previous one.

from asciidoctor-epub3.

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.