<button type="button" class="btn btn-default">
<button type="button" class="btn btn-primary">
<button type="button" class="btn btn-success">
.element {
padding: 30px;
background: #eee;
position: relative;
&:after {
position: absolute;
content:"";
width: 0;
height: 2px;
background: red;
bottom: 0;
right: 0;
left: 0;
transition: all .5s;
}
&:hover {
&:after {
width: 100%;
}
}
}
canvas {
image-rendering: optimizeSpeed; /* Older versions of FF */
image-rendering: -moz-crisp-edges; /* FF 6.0+ */
image-rendering: -webkit-optimize-contrast; /* Safari */
image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
image-rendering: pixelated; /* Awesome future-browsers */
-ms-interpolation-mode: nearest-neighbor; /* IE */
}
<div id="parallelogram"></div>
body {
font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 100px;
font-size: 13px;
}
#parallelogram {
width: 300px;
height: 120px;
background: #343434;
-webkit-transform: skew(-10deg);
-moz-transform: skew(-10deg);
-o-transform: skew(-10deg);
transform: skew(-10deg);
}
<div data-text="Lorem ipsum..."></div>
div:before,
div:after {
content: attr(data-text);
}
Chrome automatically displays the banner when your app meets the following criteria:
- Has a web app manifest file with:
- a short_name (used on the home screen)
- a name (used in the banner)
- a 144x144 png icon (the icon declarations must include a mime type of image/png)
- a start_url that loads
- Has a service worker registered on your site.
- Is served over HTTPS (a requirement for using service worker).
- Is visited at least twice, with at least five minutes between visits.