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.
You can directly grab either the SCSS (scss/
) or CSS (css/
) directly from this repo.
This is also available as an npm package.
$ npm install browser.css --save-dev
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.
Import the SCSS into your project:
@import "path/to/browser";
Link the CSS in your HTML document:
<link rel="stylesheet" href="path/to/browser.min.css">
<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>
MIT
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Crafted with <3 by John Otander (@4lpine).