_badge.scss
43 lines
| 1 | /*============= Badge Label ===============*/ |
| 2 | .wrapper_badge_text { |
| 3 | .badge_text { |
| 4 | overflow: hidden; |
| 5 | position: absolute; |
| 6 | line-height: 28px; |
| 7 | text-transform: uppercase; |
| 8 | font-size: 12px; |
| 9 | font-weight: 500; |
| 10 | color: #31795A; |
| 11 | left: 0; |
| 12 | top: 35px; |
| 13 | padding: 0 12px 0 20px; |
| 14 | z-index: 1; |
| 15 | .badge-element { |
| 16 | &.before { |
| 17 | content: ""; |
| 18 | position: absolute; |
| 19 | width: 100%; |
| 20 | height: 50%; |
| 21 | background: #D2F34C; |
| 22 | top: 0; |
| 23 | left: -2px; |
| 24 | z-index: -1; |
| 25 | transform: skew(-25deg); |
| 26 | } |
| 27 | &.after { |
| 28 | content: ""; |
| 29 | position: absolute; |
| 30 | width: 100%; |
| 31 | height: 50%; |
| 32 | background: #D2F34C; |
| 33 | bottom: 0; |
| 34 | left: -2px; |
| 35 | z-index: -1; |
| 36 | transform: skew(25deg); |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | > [data-element_type="container"]="container""] { |
| 41 | width: max-content; |
| 42 | } |
| 43 | } |