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

nuxbnax_styling_html

v1.0.4

Published

Module for styling html elements

Downloads

8

Readme

nuxbnax_styling_html module for html by nuxBnax.

Description

This module you can use for easy stylization html elements.

! ! ! Don't forget to type="module" in your html document after adding script ! ! !

It has only 2 functions:

  1. elementStyle(elementClass, color, background, fontFamily, padding, border), where:

    elementClass - class of element. Don't forget (.) before className, or (#) for id color - color of element color of element ('red', 'blue', '#000', '#cec727', 'rgb(155 56 175)'...) background - background of element ('red', 'blue', '#000', '#cec727', 'rgb(155 56 175)'...) fontFamily - fontFamily of element ('2px','5px','12px'...) padding - padding of element('0 10px', '10px 0', '10px 15px 16px', '10px 24px 16px'...) border - border of element ('2px solid red'...)

  2. elementStyleHover(elementClass, color, background, boxShadow, transition), where:

    elementClass - class of element. Don't forget (.) before className, or (#) for id color - color of element ('red', 'blue', '#000', '#cec727', 'rgb(155 56 175)') background - background of element ('red', 'blue', '#000', '#cec727', 'rgb(155 56 175)') boxShadow - boxShadow of element ('20px 20px 30px red', '10px 0px 15px grey'... and more -> https://active-vision.ru/icon/box-shadow/ or https://cssgenerator.org/box-shadow-css-generator.html ) transition - you need just a number like(1, 0.5, 1.5, 0.3...) to set timeout

Also you can just hover on function to see info and examples to ease coding.

Installation

npm i nuxbnax_styling_html

Examples

elementStyle('.text', 'red', 'lightblue', '76px', '20px', '20px solid darkgreen'); elementStyle('.text1', 'red', 'pink', '26px', '20px', 0); elementStyle('.text2', 'rgb(155 56 175)', '#cec437', '25px', 0, '2px dashed darkblue');
elementStyle('#text3', 'rgb(55 156 75)', 0, '25px', 0, '2px dashed darkblue');
elementStyle('#text4', 'rgb(0 0 175)', '#cec437', '25px', 0, '2px dashed darkblue');
elementStyle('#text5', 'gray', 0, '25px', 0, '2px dashed darkblue');
elementStyle('.btn1', 'puple', 0, '45px', '10px', '2px solid purle');
elementStyle('.btn2', 'red', 0, '25px', '15px', 0);
elementStyle('.btn3', 'gray', 0, '25px', '10px 15px 0', 0);

elementStyleHover('.text', 'pink', '#000', 0, 1.2); elementStyleHover('.text1', 'white', 'black', '10px 0px 15px black', 1.8); elementStyleHover('.text2', 'blue', 'rgb(155 56 175)', '20px 20px 30px red', 0.5); elementStyleHover('#text3', 'rgb(155 56 175)', 'rgb(155 56 175)', '20px 20px 30px red', 0.5); elementStyleHover('#text4', '#fff000', 'rgb(155 56 175)', '20px 20px 30px red', 0.5); elementStyleHover('#text5', 'white', 'rgb(155 56 175)', 0, 0.5); elementStyleHover('.btn1', 'lightpurle', 'rgb(155 56 175)', '20px 20px 30px red', 0.5); elementStyleHover('.btn2', 'white', '#449547', '20px 20px 30px red', 0.5); elementStyleHover('.btn3', 'yellow', '#ea525b', '20px 20px 30px #692b2b', 0.5);

GitHub link

https://github.com/nuxBnax/Node_JS_HTML_style.git