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

@pocket-rocket/rocketfuel

v0.0.3

Published

CSS framework for layouting mobile apps. Caution: Hot!

Downloads

7

Readme

rocketfuel.sass

App-like mobile apps with ease 🚀

Rocketfuel helps building up mobile views built in HTML/CSS. It is no full-blown CSS framework, but especially handles layouting responsive fullscreen views.

Install

Manual

  1. Copy the contents of /src in a dedicated folder in your project (eg /assets/rocketfuel)
  2. Import with @import 'rocketfuel' (mind the relative path)

Better: Use npm

npm install @pocket-rocket/rocketfuel

Then import the module in your manifest css file (eg main.sass) with

@import "@pocket-rocket/rocketfuel"

⚠️ Please be aware, that you need to have SASS available in your project, eg. by adding node-sass or dart-sass.

Usage

  • Wrap every view in a wrapper with the viewport class

Building a scrollable view

  • Just throw all your content in the viewport wrapper
  • The viewport will be automatically be scrollable, if the content runs out of view

Building a fixed fullscreen view

  • Add the modifier class is-fullscreen to the viewport wrapper
  • Inside, build your layout using the following classes:

| Class | Range | Description | |--|--|--| | .abs-* | 1 - 50 | Absolute height in rem | | .rel-* | 1 - 100 | Relative height in % | | .flex | none | Fill the remaining space |

An example for a Vue.js view:

<template>
  <div class="viewport mimimi-intro">
    <div class="rel-25">
      <img src="@/assets/ice_cold.png" class="logo" />
    </div>
    <div class="flex">
      <img src="@/assets/ice_cold.png" class="logo" />
    </div>
    <div class="abs-10"></div>
    <div class="flex"></div>
  </div>  
</template>  

In this example, the first row takes up 25% of the viewport. The third row takes up exactly 10rem. The second and fourth row distribute the remaining space equally.

Spacing

Rocketfuel comes with handy spacing helpers, that makes positioning very comfy and flexible. It is heavily inspired by Bulma.io

The spacing helper classes are composed of three elements:

  • margin/padding (m/p)
  • side:
    • t/r/b/l for top/right/bottom/left
    • x/y for left and right / top and bottom
    • <none> for all sides
  • - Separator
  • value: 0 to 6 (0/0.25rem/0.5rem/0.75rem/1rem/1.5rem/3rem)

Examples:

.mr-4  \\ 1rem right margin
.px-3  \\ 0.75rem padding on left and right
.m-1   \\ 0.25rem margin on all sides

Image sizing

Images are automatically scaled to 100% of their parent container, thus always wrap images in a parent wrapper and define the height with that. In case you really need to scale an image, you need to modify min-height with a relative value (eg. 90%). Do not set height directly.

Positioning

If you need to position an image or other element, use the transform property, whenever possible. Do not position elements with position: fixed or position: absolute unless you're absolutely sure, what you're doing :)

In most cases you can just use the spacing helpers described above.

Contributing and Releasing

Please see RELEASING.md for all relevant infos when working on this package.

Copyright and license

© 2022 Pocket Rocket GmbH

Code released under the MIT license.