Skip to content

Releases: nextbitlabs/Rapido

v3.2.0

22 Mar 23:24
Compare
Choose a tag to compare

Allow full-width images, tables and code snippets

The <img> element, within or not the <figure> element, has a width of 600px on large screens. Authors may want to show images of different width, this is a style change and Rapido does not introduce different styles for the same semantic element. CSS classes are out of scope, therefore authors must opt for a customisation.

Rapido can, and should, simplify customisations as much as possible. Authors may assign a custom width to tables, code snippets, images and videos in the article sections, header and footer with <img src="..." style="width: 100%">.

<section>
  ...
  <figure>
    <img src="..." style="width: 100%">
    <figcaption>
      ...
    </figcaption>
  </figure>
  ...
</section>
<section>
  ...
  <img src="..." style="width: 100%">
  ...
</section>

The previous snippets work also in the header and footer.

Force the use of the <article> element

There was an inconsistency in the file rapido.css: some rules started with .rapido and others with article.rapido. We replaced .rapido occurrences with article.rapido and fixed some issues coming from the different specificity between the old rule and the new one. Now authors must assign class rapido to the <article> element.

<article class="rapido">
  <section>
    <h1>...</h1>
    <p>...</p>
  </section>
</article>

Docs update

Docs now points to a specific version of rapido.css, this prevents to introduce breaking changes of major releases. Users should switch to a new major release carefully, reading release notes and looking at the final result on their published documents.

In the docs, we used the semver range https://unpkg.com/@nextbitlabs/rapido@^3/rapido.css for targeting versions >=3.0.0 <4.0.0. Moreover, we mentioned how to install Rapido with npm.

Commits

  • close #126 | describe how to install with npm cbf9dea
  • close #127 | point to a specific version of Rapido in the documentation 3c86792
  • close #130 | force the use of the article element e9899a0
  • close #132 | bug with avatar image 539d1a7
  • close #135 | review header text 908d085
  • close #128 | mention why CSS classes are out of scope b8d6fa5
  • close #124 | add style for h3 headings 702d1ee
  • close #116 | encourage to explicitly wrap sections in elements a105da3
  • close #123 | remove images no longer used in the documentation cae81ef
  • close #3 | add section customisation a18fd87
  • close #120 | Allow full width images, tables and code snippets. 3ed6431
  • close #27 | use the img element as child of the section element 05714e9

v3.1.0...v3.2.0

v3.1.0

06 Mar 21:01
Compare
Choose a tag to compare

This release adds the article footer, a place at the end of the article where to insert footnotes, references, acknowledgements, etc. The chosen style takes heavy inspiration from https://distill.pub/, for example, look at the end of this article.

<article>
  ...
  <footer>
    <section>
      <h1>...</h1>
      <p>...</p>
    </section>
    <section>
      ...
    </section>
  </footer>
</article>

v3.0.1...v3.1.0

v3.0.1

03 Mar 17:50
Compare
Choose a tag to compare
  • close #110 | reduce font size on small screens 40666d0

v3.0.0...v3.0.1

Document header and footer are out of scope

02 Mar 06:32
Compare
Choose a tag to compare

Document header and footer have been removed from the document, from the documentation and the stylesheet. This happened because we needed to clarify what Rapido is and what it is not. Rapido is meant for essays, like blog posts and technical or scientific articles. As a rule of thumb, Rapido should cover only what is necessary for an article. Rapido is not meant to create websites, so anything that is outside the <article> element is out of scope. The idea behind the documentation is to show what Rapido offers, so header and footer have been removed.

v2.3.0...v3.0.0

Highlight multiple lines of code

19 Feb 13:28
Compare
Choose a tag to compare

One or more lines of code can be highlighted wrapping the full line within tag <mark>, as in <mark><code>...</code></mark>.

<figure>
  <pre><code>...</code>
<mark><code>...</code></mark>
<code>...</code></pre>
</figure>

Commits

v2.2.0...v2.3.0

Pictures inside side comments

15 Feb 09:08
Compare
Choose a tag to compare

It is now possible to insert pictures inside side comments:

  <p>
    ...
    <small>...<img src="...">...</small>
    ...
  </p>

Commits

v2.1.1...v2.2.0

v2.1.1

10 Feb 15:59
Compare
Choose a tag to compare
  • add the logo image