1 | <!DOCTYPE html>
|
2 | <html lang="en">
|
3 | <head>
|
4 | <meta charset="UTF-8">
|
5 | <title>Demo: Ribbon</title>
|
6 |
|
7 | <link rel="stylesheet" href="../build/marble.css">
|
8 |
|
9 | <style type="text/css">
|
10 | .box {
|
11 | width: 300px;
|
12 | height: 300px;
|
13 | margin: 200px auto 0;
|
14 | border-radius: 4px;
|
15 | box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
|
16 | display: block;
|
17 | padding: 0;
|
18 | position: relative;
|
19 | }
|
20 |
|
21 | .box .ribbon-container {
|
22 | top: -5px;
|
23 | right: -4px;
|
24 | }
|
25 | </style>
|
26 | </head>
|
27 | <body>
|
28 | <div class="box">
|
29 | <div class="ribbon-cotainer">
|
30 | <div class="ribbon ribbon-accent">New</div>
|
31 | </div>
|
32 | </div>
|
33 | </body>
|
34 | </html>
|