Stylesheets for use with HTML documents published using the Indigo platform. They make Akoma Ntoso documents look beautiful.
First, wrap your Akoma Ntoso HTML content with the .akoma-ntoso
class, such as:
<div class="akoma-ntoso">...</div>
Second, include the CSS as described below.
Use the assets directly from the jsDelivr CDN:
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/laws-africa/indigo-web@8.1.2/css/indigo-web.min.css">
Install indigo-web using npm:
$ npm install indigo-web
Then use either the compiled CSS:
<link rel="stylesheet" type="text/css" href="indigo-web/css/indigo-web.min.css">
Or use the SCSS files:
@import 'indigo-web/scss/indigo-web';
GitHub actions will automatically build and commit changes when they are merged to the master branch. To build changes manually:
npm install
npm run build
git add css/*
To run screenshot-based tests:
- npm run test
- update VERSION
- update version in
package.json
- update version in URL in README
- update Version History (below)
- test:
npm run test
- commit your changes and merge them into master via a Pull Request
- GitHub will build and commit the compiled CSS onto the master branch
- tag and release a new release on the master branch using the GitHub releases UI
- GitHub will automatically publish the package to NPM
- Styling for
subrule
AKN element
- Show table border for Kenya (KE) AKN styles
- Styling for
ins
anddel
AKN elements
- Tradition styling for Kenyan judgments
- Improved footnote styling
- Hierarchical numbered elements using padding not margin, so that show-structure works a bit better
- NEW: Scroll tables horizontally on small displays
- NEW: Explicitly style all AKN hierarchical container elements
- Collapse table borders
- Improved mixins to support better re-use
- Test suite
- Move all styling into mixins, so other libraries can include our mixins and include them in their own top-level selectors
- Replace ruby sass with npm sass
- Bulleted lists
- Namibia (na) formatting
- Support for commencement note on coverpage
- Support for footnotes
- Support for embeddedStructures
- Support for headings for subsections, paragraphs and subparagraphs
This version assumes AKN 3.0 documents from Indigo.
- Attachments (schedules) should not have italicised headings
- BREAKING: akoma-ntoso.scss is now indigo-web.scss
- BREAKING: akoma-ntoso.css is now indigo-web.css
- Cross headings in KE aren't italicised
- Styling for parent work title on generated coverpage
- Styling for commencement dates on generated coverpage
- Styling for .place-name in generated coverpage
- Utilities for aligning text:
akn--text-left
,akn--text-right
andakn--text-center
- Added Kenya (KE) styling
- KE: remarks are not italicised, and single-line remarks are centered
- Styling for new .as-at-date-notice element on generated coverpage
- Split out generated coverpage styling into separate file
- Explicit styling for crossHeading elements (italics)
- hcontainer elements are block elements
- Reduce spacing between schedule title and headings
- Explicit font for h1, h2, h3, h4, h5 tags
- Styling for new generated verification notice in coverpages
- Include a small amount of whitespace after very long outdented numbers to prevent clashing with text when the numbers are wide
- display .akn-p elements as blocks with paragraph spacing
- last child in table cell mustn't have padding
- longTitle is a block element with padding beneath it
- Correctly support overriding SCSS variables
- Add PT Serif from Google Fonts as a font fallback. This better supports print environments and Linux systems.
- Show .akn-paragraph as a block
- Show .akn-longTitle in bold
- Don't indent .akn-subsection and .akn-paragraph if they have .akn--no-indent
- Moved away from custom CDN, use jsdelivr instead.
- Minor fixes
- Support for country-specific traditions
- Polish tradition
- Moved to npm in favour of bower
- Styling for images
- Styling for rendering commencement and assent notices as list items, not headings.
- Bump base font size to 15px to improve legibility with serif fonts.
- Initial release
Licensed under an MIT license.