_status.scss
1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.status_wrapp {
position: absolute;
top: 0;
left: 0;
z-index: 3;
}
.ribbon {
position: relative;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.08em;
margin-top: 13px;
&:first-child {
margin-top: 0;
}
.ribbon-background {
position: absolute;
top: 0;
right: 0;
}
.theribbon {
text-shadow: 0px 1px 2px #bbb;
position: relative;
min-width: 80px;
text-align: center;
margin: 0 0 0 0;
color: #fff;
background-color: $colorStatusSale;
font-family: "Roboto", Helvetica, Arial, sans-serif;
padding: 3px 0;
&:after {
content: ' ';
position: absolute;
width: 0;
height: 0;
left: 0;
top: 100%;
border-width: 4px 5px;
border-style: solid;
border-color: $colorStatusSale $colorStatusSale transparent transparent;
}
&:before {
content: ' ';
position: absolute;
width: 0;
height: 0;
left: 0;
top: 100%;
border-width: 4px 5px;
border-style: solid;
border-color: #000 #000 transparent transparent;
z-index: 2;
@include Opacity(0.3);
}
}
&.sale {
.theribbon {
background-color: $colorStatusSale;
&:after {
border-color: $colorStatusSale $colorStatusSale transparent transparent;
}
}
}
&.new {
.theribbon {
background-color: $colorStatusNew;
&:after {
border-color: $colorStatusNew $colorStatusNew transparent transparent;
}
}
}
&.top {
.theribbon {
background-color: $colorStatusTop;
&:after {
border-color: $colorStatusTop $colorStatusTop transparent transparent;
}
}
}
&.gift {
.theribbon {
background-color: $colorStatusGift;
&:after {
border-color: $colorStatusGift $colorStatusGift transparent transparent;
}
}
}
}