Socket
Book a DemoInstallSign in
Socket

cistercian-numerals

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cistercian-numerals

A collection of web components to display cistercian numerals

1.0.0-beta.0
beta
Source
npmnpm
Version published
Maintainers
1
Created
Source

Cicstercian numerals components

A collection of web components to display cistercian numerals.

<cistercian-number>

Use the value attribute to specify the number you want to display:

<cistercian-number value="1972">

By default, it will display the image as a block. If you want to display the number inside a paragraph of text, use the inline attribute. It should be sized and aligned correctly with the text:

Some text <cistercian-number value="1972" inline> around the number.

By default, the line use the same color as the text. You can adjust the colors of the different lines with CSS custom properties:

cistercian-number {
  --cistercian-color-0: #00000000; /* Color of the center line (always displayed) */
  --cistercian-color-1: #0019a7dd; /* Color of the top line */
  --cistercian-color-2: #751056dd; /* Color of the oblique NW-SE line */
  --cistercian-color-3: #007229dd; /* Color of the bottom line */
  --cistercian-color-4: #db241fdd; /* Color of the oblique NE-SW line */
  --cistercian-color-5: #fdcd01dd; /* Color of the right line */
}

You can also adjut the width of the lines. Use a pixel value between 1px and 3px.

cistercian-number {
  --cistercian-width: 2px;
}

By default, the height of a number is 1em. You can of course adjust this by changing the font-size:

cistercian-number {
  font-size: 10em;
}

<cistercian-clock>

If you just want to display the current time (hours, minutes, seconds):

<cistercian-clock></cistercian-clock>

If you just want to display the current time but without seconds (hours, minutes):

<cistercian-clock no-seconds></cistercian-clock>

If you just want to display the current date and time (year, month, day, hours, minutes, seconds):

<cistercian-clock date></cistercian-clock>

FAQs

Package last updated on 14 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.