Nodebook
  • Introduction
  • Methods
  • Default Classes
    • Nodebook
  • JS
    • JSONotebook
    • JSNotebook
    • TSNotebook
  • Java
    • JavaNotebook
  • C/C++
    • CPPNotebook
    • CNotebook
    • HeaderNotebook
  • Text
    • TXTNotebook
    • MDNotebook
    • PlainNotebook
  • Web
    • HTMLNotebook
    • CSSNotebook
      • CSSStyle
  • Other
    • YMLNotebook
    • BashNotebook
  • Python
    • PYNotebook
Powered by GitBook
On this page
  • Usage
  • Setup

Was this helpful?

  1. Web

CSSNotebook

extends Nodebook

"CSSNotebook" is used for basic stylesheets or .css files. .scss is not supported at the moment.

Usage

Setup

const Nodebook = require('nodejs-notebook');

let styles = new Nodebook.CSSNotebook('styles');

create(type, name)

Creates a style bracket. I

string type: The type of bracket. Must be class (classes), id (IDs), or element (global elements). string name: The name of the representing bracket.

Returns: A CSSStyle with Data. If exists, will return existing CSSStyle.

let imageFooter = styles.create('class', 'image-footer');
PreviousHTMLNotebookNextCSSStyle

Last updated 3 years ago

Was this helpful?