GithubHelp home page GithubHelp logo

osrec / responsivedevices.css Goto Github PK

View Code? Open in Web Editor NEW
64.0 4.0 6.0 52 KB

Responsive CSS Device frames for your landing pages

Home Page: https://osrec.co.uk/products/responsivedevicescss

CSS 43.95% HTML 56.05%
css responsive iphone iphone-x ipad android pixel samsung landing-page art

responsivedevices.css's Introduction

responsiveDevices.css

responsiveDevices.js Logo

Fresh, responsive CSS-only devices that scale with your content and look great on any screen!

It's rather annoying to have badly scaled CSS devices on your landing/demo page. Often they'll not quite fit your screenshots properly, and may resize badly on certain devices, resulting in annoying overflow (scroll) here or there.

ResponsiveDevices.css fixes that by giving you simple, componentised CSS classes to 'build' your own neatly scaled devices. All the classes are responsive and you can add or remove features (such as speakers or screen reflections) as you please.

Devices

  • Android Phone (16:9 aspect ratio)
  • iPhone (16:9 aspect ratio)
  • iPhoneX (16:9 aspect ratio)
  • Android Tablet (4:3 aspect ratio)
  • iPad (4:3 aspect ratio)
  • iMac (16:9 aspect ratio)

You just need to worry about setting the correct aspect ratio for your content, and the CSS classes will take care of scaling themselves. Your demo pages will look great on any screen!

All devices are available in black and white skins, except the iMac :)

Example: White iPhone

Simply include the appropraite css files (for an iPhone you need common.css and iphone.css). Then add the following markup and you're done!

<div class='deviceContainer' style='width: 50%; max-width: 500px;'>
    <div class="iphone white portrait">
        <div class="caseBorder"></div>
        <div class="case"></div>
        <div class="reflection"></div>
        <div class="screen"></div>
        <div class="camera"></div>
        <div class="speaker"></div>
        <div class="homeButtonBorder"></div>
        <div class="homeButton"></div>
        <div class="content" style=""></div>
    </div>              
</div>

Scale the width of the containing div as per your requirements. Also, feel free to add or remove device features (simply add or remove the inner most div elements). Ordering of the inner div elements does not matter.

Demos + Documentation

Demo: https://osrec.github.io/ResponsiveDevices.css/samples.html - like what you see? Give us a โญ !

For your convenience, device markup is available at: https://osrec.co.uk/products/responsivedevicescss (click any device in the device library section to view it's corresponding HTML markup)

Credits

Created by OSREC Technologies (https://osrec.co.uk) - give us a shout for any consulting enquiries at https://osrec.co.uk/contact ๐Ÿ˜„

Funded by the Bx project (https://usebx.com) - check them out if you need a slick, free business/project management/time tracking app ๐Ÿ’ต โŒš ๐Ÿ‘

License

Free for personal/non-commercial use. Small fee applies for commercial use to help support the library (see https://osrec.co.uk/products/responsivedevicescss)

Issues

Raise a ticket on github and we will respond ASAP. If you've bought a commercial license, contact us here, quoting your license code and we'll respond even quicker ๐Ÿ˜‰

responsivedevices.css's People

Contributors

osrec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.