npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cagov/ds-regulatory-outline

v1.0.5

Published

Nested, ordered list with the following pattern: (a)(b)(c), (1)(2)(3), (A)(B)(C), (i)(ii)(iii)

Downloads

206

Readme

Regulatory outline

The regulatory outline replicates the ordering of California government code. It is a list that automatically uses the following pattern:

(a)(b)(c)

   (1)(2)(3)

     (A)(B)(C)

       (i)(ii)(iii)

When and how to use it

If possible, rewrite information from regulations or government code using plain language.

If you must put regulations or government code on your webpage, use the regulatory outline. It allows you to publish properly formatted regulations without using PDFs, which may not meet accessibility standards.

To use the regulatory outline, apply the cagov-regulatory-outline class to the <ol> tag. All child <li> and <ol> tags will inherit the appropriate list styles up to 4 levels deep.

How not to use it

Do not use the regulatory outline for content that is not regulations or government code. Use bullet points or numbered lists for that. This allows people to more easily recognize when they’re not looking at government code.

Demo and sample markup

<ol class="cagov-regulatory-outline">
  <li>
    A law enforcement agency may only use a person under 21 years of
    age to attempt to purchase alcoholic beverages for delivery to apprehend
    licensees, ...
  </li>
  <li>
    For purposes of this section, “delivery” shall mean any transfer of
    alcoholic beverages by a licensee, or an employee or agent of a licensee, to
    a person under 21 years of age, ...
  </li>
  
  <li>
    The following minimum standards shall apply to actions filed pursuant to
    Business and Professions Code Section 25658 in which it is alleged a minor
    decoy has been furnished an alcoholic beverage by delivery:

    <ol>
      <li>
        A law enforcement agency may only use a person under 21 years
        of age to attempt to purchase alcoholic beverages for delivery to
        apprehend licensees...
      </li>
      <li>
        The following minimum standards shall apply to actions filed pursuant to
        Business and Professions Code Section 25658 in which it is alleged a
        minor decoy has been furnished an alcoholic beverage by delivery:

        <ol>
          <li>
            LEVEL THREE A law enforcement agency may only use a person under 21
            years of age to attempt to purchase alcoholic beverages for delivery
            to apprehend licensees, or employees or agents of licensees, who
            deliver alcoholic beverages to minors (persons under 21 years of
            age), and to reduce deliveries of alcoholic beverages to minors, in
            a fashion that promotes fairness. For purposes of this section,
            fairness is defined as compliance with all the conditions set forth
            in subdivision (e).
          </li>
          <li>
            The following minimum standards shall apply to actions filed
            pursuant to Business and Professions Code Section 25658 in which it
            is alleged a minor decoy has been furnished an alcoholic beverage by
            delivery:
            <ol>
              <li>
                A law enforcement agency may only use a person under
                21 years of age to attempt ...
              </li>
              <li>
                For purposes of this section, ...
              </li>
              <li>
                For purposes of this section, “agent” ...
              </li>
              <li>
                For purposes of this section, “minor decoy” shall mean a person
                used by law enforcement pursuant to Business and Professions
                Code section 25658(f).
              </li>

              <li>
                A law enforcement agency may only ...
              </li>
              <li>
                For purposes of this section, “delivery” shall mean any transfer
                of alcoholic beverages by a licensee, or an employee or agent of
                a licensee, to a person under 21 years of age, pursuant to an
                order made by internet, telephone, other electronic means, or
                any method of ordering other than in person at the licensed
                premises.
              </li>
              <li>
                For purposes of this section, “agent” shall mean any entity or
                person the licensee uses to deliver alcoholic beverages to
                persons who place orders by internet ...
              </li>
              <li>
                For purposes of this section, “minor decoy” shall mean a person
                used by law enforcement pursuant to Business and Professions
                Code section 25658(f).
              </li>
              <li>
                The following minimum standards shall apply to actions filed
                pursuant to Business and Professions Code Section 25658 in which
                it is alleged a minor decoy has been furnished an alcoholic
                beverage by delivery.
              </li>
            </ol>
          </li>
        </ol>
      </li>
    </ol>
  </li>
</ol>

Specs

| Property | Value | | ------------ | --------------------- | | Machine name | ds-regulatory-outline | | JavaScript | no | | SCSS | ./src/index.scss |

Project installation

The instructions assume familiarity with npm package management tool and Sass.

  1. Include SCSS in your compiler.
  2. Add the sample markup from the component to your HTML.
  3. You may need to adjust $cagov-regulatory-outline-margin depending on your default font size.

CDN installation

We recommend using a build system and bundling your CSS for faster performance. If you do not use a build system, you can include the code from our CDN with a link tag.

<link rel="stylesheet" href="https://cdn.designsystem.webstandards.ca.gov/components/ds-regulatory-outline/v1.0.5/dist/index.css">

Progressive enhancement

This is an HTML- and CSS-only component. JavaScript is not required. It uses CSS variables to inherit design token values. Token definitions are not required because these style rules provide fallback values.

Content model

This component requires ol.cagov-regulatory-outline. It will not work with ul.

Contributor/developer documentation