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

@moki.codes/mokui-layout

v0.6.1

Published

layout web ui subsystem

Downloads

12

Readme

layout

Description

Layout block provides subsystem with the top most wrapper for a page content layout after theme or on the same level, essential child elements: header, main, footer. Other two elements are container and container-fluid. All of the elements behavior described in their appropriate section.

Installation

yarn add @moki.codes/mokui-layout

Styles

@import "@moki.codes/mokui-layout/dist/mokui-layout.css"

Basic Usage

...
<body class="layout
             layout_type_holy-grail"
>
        <header class="layout__header">
                <div class="layout__container-fluid>
                        full width content but gaps
                </div>
        </header>
        <main class="layout__main">
                <div class="layout__container">
                        responsive, centered content
                </div>
        </main>
        <footer class="layout__footer"></footer>
</body>
...

Modificators

| name | value | description | | ----------- | ------------- | ---------------------------------------------- | | type | holy-grail | establishes full holy grail layout, aside left | | | | aside right included. layout stretched full | | | | viewport height, dropped footer by default | | type | holy-grail- | holy grail with main and left aside | | | asleft | | | type | holy-grail- | holy grail with main and right aside | | | asright | | | type | holy-grail- | holy grail with main only | | | main | | | header | dense | set header height to dense, sets | | | | --layout-header-height to --msp-1 * 2 |

Variables

layout defines variables

  • --layout-min-width
    • minimal width layout shrinks default: 320px
  • --layout-min-height: auto;
    • layout minimum height
  • --layout-header-height
    • header height inside the layout defaults to --msp-1 * 3, override to change appearance
  • --layout-footer-height
    • footer height inside the layout default to auto, override to change appearance

Elements

  • header
  • aside-left
  • main
  • aside-right
  • footer
  • container
  • container-fluid

header

layout's header element, height controlled by layout's --layout-header-height

aside-left

left aside element

main

layout's main element, only purpose is to place element inside grid markup as a main content element

aside-right

right aside element

footer

layout's footer element, height controlled by layout's --layout-footer-height

container

layout's container element. Centers content in the layout, responsive, relies on the breakpoints set inside the theme(-screen-<s,m,l,xl>). On each breakpoint stays at the max-width of the breakpoint with 2 (--gap)'s subtracted.

container-fluid

layout's fluid container element. takes 100% of available width but (--gap) on each side