blob: 6837b0c7a1341ab63f4a02600eddf7ea9e17afdc (
plain)
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
|
.ribbon {
width: 150px;
height: 150px;
overflow: hidden;
position: absolute;
&::before, &::after {
position: absolute;
z-index: -1;
content: '';
display: block;
border: 5px solid #2980b9;
}
& span {
z-index: 1;
position: absolute;
display: grid;
align-items: center;
width: 225px;
height: 48px;
padding: 0 44px;
box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
color: #fff;
font: 700 18px/1 'Lato', sans-serif;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-transform: uppercase;
text-align: center;
overflow: hidden;
user-select: none;
&.o_small {
font-size: 12px;
}
&.o_medium {
font-size: 15px;
}
}
&-top-right {
margin-top: -$o-sheet-vpadding;
right: 0;
&::before, &::after {
border-top-color: black;
border-right-color: black;
}
&::before {
top: 0;
left: 0;
}
&::after {
bottom: 0;
right: 0;
}
& span {
left: -15px;
top: 30px;
transform: rotate(45deg);
}
}
}
// after ribbon widget there can be field widgets or oe_title which may
// have widgets on right end, add margin-right so ribbon not overlap on it
.ribbon {
&:not(.o_invisible_modifier) {
~ .oe_title, ~ .o_field_widget {
margin-right: 100px;
}
}
}
|