| 1 |
.tableberg-ribbon { |
| 2 |
position: absolute !important; |
| 3 |
text-align: center; |
| 4 |
pointer-events: auto; |
| 5 |
cursor: pointer; |
| 6 |
z-index: 10; |
| 7 |
|
| 8 |
&.is-selected { |
| 9 |
outline: 2px solid var(--wp-admin-theme-color, #007cba); |
| 10 |
outline-offset: 2px; |
| 11 |
} |
| 12 |
|
| 13 |
&-corner { |
| 14 |
overflow: hidden; |
| 15 |
top: -3px; |
| 16 |
font-weight: bold; |
| 17 |
|
| 18 |
&-left, |
| 19 |
&-right { |
| 20 |
position: relative; |
| 21 |
height: 100%; |
| 22 |
width: 100%; |
| 23 |
} |
| 24 |
&-left { |
| 25 |
transform: rotate(-45deg); |
| 26 |
} |
| 27 |
&-right { |
| 28 |
transform: rotate(45deg); |
| 29 |
} |
| 30 |
|
| 31 |
&-text { |
| 32 |
position: absolute; |
| 33 |
bottom: 50%; |
| 34 |
width: 150%; |
| 35 |
left: -25%; |
| 36 |
padding: 2px calc(25% + 2px); |
| 37 |
box-sizing: border-box; |
| 38 |
overflow: hidden; |
| 39 |
box-shadow: 0 0 5px gray; |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
&-bookmark { |
| 44 |
position: absolute; |
| 45 |
z-index: 9999; |
| 46 |
border-radius: 5px; |
| 47 |
filter: drop-shadow(4px 3px 11px rgba(0, 0, 0, 0.2)); |
| 48 |
|
| 49 |
&-content { |
| 50 |
position: absolute; |
| 51 |
top: 0; |
| 52 |
left: 0; |
| 53 |
width: 100%; |
| 54 |
height: 150%; |
| 55 |
border-top-left-radius: inherit; |
| 56 |
border-top-right-radius: inherit; |
| 57 |
clip-path: polygon(100% 0, 100% 100%, 50% 67%, 0 100%, 0 0); |
| 58 |
display: flex; |
| 59 |
align-items: flex-start; |
| 60 |
justify-content: center; |
| 61 |
padding-top: 8px; |
| 62 |
box-sizing: border-box; |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
&-icon { |
| 67 |
filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.5)); |
| 68 |
|
| 69 |
.tableberg-shape { |
| 70 |
&-up { |
| 71 |
clip-path: polygon( |
| 72 |
0 0, |
| 73 |
100% 0, |
| 74 |
100% 100%, |
| 75 |
50% calc(100% - 8px), |
| 76 |
0 100% |
| 77 |
); |
| 78 |
} |
| 79 |
&-down { |
| 80 |
clip-path: polygon( |
| 81 |
0 0, |
| 82 |
100% 0, |
| 83 |
100% calc(100% - 8px), |
| 84 |
50% 100%, |
| 85 |
0 calc(100% - 8px) |
| 86 |
); |
| 87 |
} |
| 88 |
|
| 89 |
&-slant-up { |
| 90 |
clip-path: polygon( |
| 91 |
0 0, |
| 92 |
100% 0, |
| 93 |
100% calc(100% - 12px), |
| 94 |
50% calc(100% - 6px), |
| 95 |
0 100% |
| 96 |
); |
| 97 |
} |
| 98 |
|
| 99 |
&-slant-down { |
| 100 |
clip-path: polygon( |
| 101 |
0 0, |
| 102 |
100% 0, |
| 103 |
100% 100%, |
| 104 |
50% calc(100% - 6px), |
| 105 |
0 calc(100% - 12px) |
| 106 |
); |
| 107 |
} |
| 108 |
} |
| 109 |
} |
| 110 |
|
| 111 |
&-side { |
| 112 |
&-left &-content { |
| 113 |
border-radius: 10px 0 10px 0; |
| 114 |
} |
| 115 |
&-right &-content { |
| 116 |
border-radius: 0 10px 0 10px; |
| 117 |
} |
| 118 |
|
| 119 |
&-shadow { |
| 120 |
height: 0; |
| 121 |
width: 0; |
| 122 |
border: 10px solid transparent; |
| 123 |
border-top-color: gray; |
| 124 |
} |
| 125 |
|
| 126 |
&-right { |
| 127 |
text-align: right; |
| 128 |
} |
| 129 |
|
| 130 |
&-left &-shadow { |
| 131 |
border-right-color: gray; |
| 132 |
} |
| 133 |
&-right &-shadow { |
| 134 |
border-left-color: gray; |
| 135 |
margin-left: auto; |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 139 |
&-badge { |
| 140 |
position: absolute; |
| 141 |
z-index: 9999; |
| 142 |
&-content { |
| 143 |
width: max-content; |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
|