Created
December 7, 2015 05:27
-
-
Save indianazhao/38da319f51854f073bf4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Bootstrap, from Twitter</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta name="description" content="" /> | |
| <meta name="author" content="" /> | |
| <!-- Le styles --> | |
| <link data-require="bootstrap-css" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" /> | |
| <link data-require="bootstrap@*" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" /> | |
| <style> | |
| body { | |
| padding-top: 60px; | |
| width: 800px; | |
| } | |
| @media (max-width: 979px) { | |
| /* Remove any padding from the body */ | |
| body { | |
| padding-top: 0; | |
| } | |
| } | |
| </style> | |
| <link href="style.css" rel="stylesheet" /> | |
| <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> | |
| <!--[if lt IE 9]> | |
| <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| <!-- Le fav and touch icons --> | |
| <link rel="shortcut icon" href="images/favicon.ico" /> | |
| <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> | |
| <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png" /> | |
| <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png" /> | |
| <!-- Le javascript | |
| ================================================== --> | |
| <script data-require="jquery" data-semver="2.1.4" src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
| <script data-require="bootstrap" data-semver="3.3.6" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.js"></script> | |
| <script src="script.js"></script> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| <div class="header-area"> | |
| <img class="logo-icon" src="http://s3-us-west-2.amazonaws.com/web.template.assets/img/iiot_logo_small.png" > | |
| <div class="title">Title</div> | |
| <div class="card-level"> | |
| <p class="card-level-label">Card</p> | |
| <p class="card-level-value">Golden</p> | |
| </div> | |
| </div> | |
| <div class="primary-area"> | |
| <img src="http://s3-us-west-2.amazonaws.com/web.template.assets/img/cp-example/example-coffee-coupon.png" > | |
| </div> | |
| <div class="secondary-area"> | |
| <div class="col-xs-4"> | |
| <div> | |
| <div class="label">labe 1</div> | |
| <div class="value">value 1</div> | |
| </div> | |
| </div> | |
| <div class="col-xs-4"> | |
| <div> | |
| <div class="label">labe 2</div> | |
| <div class="value">value 2</div> | |
| </div> | |
| </div> | |
| <div class="col-xs-4"> | |
| <div> | |
| <div class="label">labe 2</div> | |
| <div class="value">value 2</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| .card { | |
| // border-radius: 10px; | |
| margin: auto; /* horizontal center */ | |
| position: relative; | |
| /* width-height ratio */ | |
| width: 75%; | |
| padding-bottom: 100%; | |
| /* variable */ | |
| background-color: #ff0; | |
| .header-area { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| // margin:1%; | |
| height: 10%; | |
| // line-height:10%; | |
| .logo-icon { | |
| position: absolute; | |
| width: 20%; | |
| height: 100%; | |
| padding: 2%; | |
| } | |
| .title { | |
| position: absolute; | |
| display: inline-block; | |
| left: 20%; | |
| width: 60%; | |
| height: 100%; | |
| padding-top:2%; | |
| vertical-align: middle; | |
| font-size: 24px; | |
| overflow-x: hidden; | |
| // test | |
| background-color: #00f; | |
| } | |
| .card-level { | |
| position: absolute; | |
| left: 80%; | |
| display: inline-block; | |
| width: 16%; | |
| height: 100%; | |
| padding: 2%; | |
| .card-level-label { | |
| font-size: 10px; | |
| } | |
| .card-level-value { | |
| font-size: 14px; | |
| } | |
| } | |
| } | |
| .primary-area { | |
| position: absolute; | |
| top:10%; | |
| left:0; | |
| height:30%; | |
| width:100%; | |
| img { | |
| width:100%; | |
| height:100%; | |
| } | |
| } | |
| .secondary-area { | |
| position: absolute; | |
| top:40%; | |
| left:0; | |
| height:20%; | |
| width:100%; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .card { | |
| margin: auto; | |
| /* horizontal center */ | |
| position: relative; | |
| /* width-height ratio */ | |
| width: 75%; | |
| padding-bottom: 100%; | |
| /* variable */ | |
| background-color: #ff0; | |
| } | |
| .card .header-area { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 10%; | |
| } | |
| .card .header-area .logo-icon { | |
| position: absolute; | |
| width: 20%; | |
| height: 100%; | |
| padding: 2%; | |
| } | |
| .card .header-area .title { | |
| position: absolute; | |
| display: inline-block; | |
| left: 20%; | |
| width: 60%; | |
| height: 100%; | |
| padding-top: 2%; | |
| vertical-align: middle; | |
| font-size: 24px; | |
| overflow-x: hidden; | |
| background-color: #00f; | |
| } | |
| .card .header-area .card-level { | |
| position: absolute; | |
| left: 80%; | |
| display: inline-block; | |
| width: 16%; | |
| height: 100%; | |
| padding: 2%; | |
| } | |
| .card .header-area .card-level .card-level-label { | |
| font-size: 10px; | |
| } | |
| .card .header-area .card-level .card-level-value { | |
| font-size: 14px; | |
| } | |
| .card .primary-area { | |
| position: absolute; | |
| top: 10%; | |
| left: 0; | |
| height: 30%; | |
| width: 100%; | |
| } | |
| .card .primary-area img { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .card .secondary-area { | |
| position: absolute; | |
| top: 40%; | |
| left: 0; | |
| height: 20%; | |
| width: 100%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Bootstrap, from Twitter</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta name="description" content="" /> | |
| <meta name="author" content="" /> | |
| <!-- Le styles --> | |
| <link data-require="bootstrap-css" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" /> | |
| <link data-require="bootstrap@*" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" /> | |
| <style> | |
| body { | |
| padding-top: 60px; | |
| width: 800px; | |
| } | |
| @media (max-width: 979px) { | |
| /* Remove any padding from the body */ | |
| body { | |
| padding-top: 0; | |
| } | |
| } | |
| </style> | |
| <link href="style.css" rel="stylesheet" /> | |
| <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> | |
| <!--[if lt IE 9]> | |
| <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| <!-- Le fav and touch icons --> | |
| <link rel="shortcut icon" href="images/favicon.ico" /> | |
| <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> | |
| <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png" /> | |
| <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png" /> | |
| <!-- Le javascript | |
| ================================================== --> | |
| <script data-require="jquery" data-semver="2.1.4" src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
| <script data-require="bootstrap" data-semver="3.3.6" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.js"></script> | |
| <script src="script.js"></script> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| <div class="header-area"> | |
| <img class="logo-icon" src="http://s3-us-west-2.amazonaws.com/web.template.assets/img/iiot_logo_small.png" > | |
| <div class="title">Title</div> | |
| <div class="card-level"> | |
| <p class="card-level-label">Card</p> | |
| <p class="card-level-value">Golden</p> | |
| </div> | |
| </div> | |
| <div class="primary-area"> | |
| <img src="http://s3-us-west-2.amazonaws.com/web.template.assets/img/cp-example/example-coffee-coupon.png" > | |
| </div> | |
| <div class="secondary-area"> | |
| <div class="col-xs-4"> | |
| <div> | |
| <div class="label">labe 1</div> | |
| <div class="value">value 1</div> | |
| </div> | |
| </div> | |
| <div class="col-xs-4"> | |
| <div> | |
| <div class="label">labe 2</div> | |
| <div class="value">value 2</div> | |
| </div> | |
| </div> | |
| <div class="col-xs-4"> | |
| <div> | |
| <div class="label">labe 2</div> | |
| <div class="value">value 2</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment