browser.css

0.0.1 • Public • Published

Browser.css

This provides the SCSS, or CSS, necessary to beautifully present web pages in a browser window.

Typically, this consists of placing screenshots in browser windows, phones, etc. with photo editing software. However, I like to avoid Photoshop like the plague, so I concocted a CSS/HTML solution.

Installation

You can directly grab either the SCSS (scss/) or CSS (css/) directly from this repo.

NPM Installation

$ npm install browser.css --save-dev

Development

For development, there's a gulpfile that compiles the SCSS into CSS. It can be run with:

$ gulp

If you haven't used Gulp before, try this blog post.

Usage

SCSS

Import the SCSS into your project:

@import "path/to/browser";

CSS

Link the CSS in your HTML document:

<link rel="stylesheet" href="path/to/browser.min.css">

Example HTML for the browser window:

<div class='browser-window'>
  <div class='top-bar'>
    <div class='circles'>
       <div class="circle circle-red"></div>
       <div class="circle circle-yellow"></div>
       <div class="circle circle-green"></div>
    </div>
  </div>
  <div class='content'>
    <!-- Where the browser content goes. -->
  </div>
</div>

LICENSE

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).

Package Sidebar

Install

npm i browser.css

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • johno