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

@crossfox/css-start

v1.0.14

Published

A lightweight CSS library designed to address common rendering issues in various web browsers. This package provides a set of styles and normalization rules to help prevent incorrect rendering of web elements in both older and modern web browsers.

Downloads

37

Readme

CSS-start by CrossFox

npm version Blazing Fast changelog NPM downloads license

The "Start-css" package is a popular tool in web development that helps standardize default styles across different web browsers. By including this package, developers can start with a clean slate for their CSS styling, reducing inconsistencies and ensuring a more predictable layout and design across various browsers.

  • 📦 Small size
  • 💪 Cross-browser
  • 🌟 Removing unnecessary styles
  • 🧮 Normalize css styles

Install

Step 1

Execute the following commands in your terminal:

npm i @crossfox/css-start

or

yarn add @crossfox/css-start

Step 2

Include the styles in your JavaScript code:

import '@crossfox/css-start';

Alternatively, if you need to download the files directly, you can do so via the following link:

Download Styles

Browser support

  • Chrome
  • Edge
  • Firefox ESR+
  • Internet Explorer 10+
  • Safari 8+
  • Opera

What does it do?

  1. Support HTML5 (for ~5% of old browsers):

    This CSS includes styles to support HTML5 elements, ensuring that they are displayed correctly in older browsers that may not inherently recognize these elements.

  2. Fix hr and abbr:

    Specific styles are applied to the <hr> (horizontal rule) and <abbr> (abbreviation) elements to adjust their appearance and behavior.

  3. Remove margin (for body, h1, h2, h3, h4, h5, h6, p, dl, dd, blockquote, ul, ol, figure):

    The margin is reset to zero for various HTML elements. This removes any default spacing that browsers might apply to these elements.

  4. Add styles for tags (box-sizing, background-repeat, vertical-align):

    These CSS properties are applied to all HTML elements, improving their rendering and layout. box-sizing: border-box; is especially useful for consistent box sizing.

  5. Remove styles for focus and active states:

    Any default styles for focus and active states (such as outlines) are removed, ensuring a cleaner appearance for these states.

  6. Fix 'hidden' attribute and the 'template' tag:

    Styles are added to properly handle the 'hidden' attribute and the 'template' tag, ensuring that elements with these attributes are hidden as intended.

  7. Reset default styles for tags (a, h1, h2, h3, h4, h5, h6, p, cite, address, blockquote, ul, ol):

    Default styles for these elements are reset, allowing developers to apply custom styles without interference from browser defaults.

  8. Add (overflow-wrap: break-word;) for h1, h2, h3, h4, h5, h6, p:

    This CSS rule ensures that long words within heading and paragraph elements are broken into multiple lines, preventing them from overflowing their containers.

  9. Change rem to 10px:

    The base font size is set to 10px. This can simplify font size calculations, as 1rem will now equal 10px.

  10. Add rules for smoother rendering:

    Various CSS properties are set to improve text rendering, including antialiasing and text-decoration handling.

  11. Add (min-height: 100%) for body + fix for iOS:

    The min-height of the element is set to 100%, ensuring that the page occupies the full height of the viewport. The -webkit-fill-available property is also added for iOS compatibility, ensuring correct functionality.

  12. Normalize tables. Add (border-collapse: collapse; border-spacing: 0;):

    This normalizes the rendering of HTML tables by setting border-collapse to 'collapse' and border-spacing to '0', removing any spacing between table cells.

  13. Add a mode without animations:

    This CSS code provides a mode without animations, which can be useful for users who prefer reduced motion or for specific design considerations where animations are not desired.

  14. Other

    In addition, there are some minor rules for the correct or improved display of the page

Author