| 1 |
@import "../../common/css/variables"; |
| 2 |
@import "../../common/css/functions"; |
| 3 |
|
| 4 |
.wp-parsely-content-helper .wp-parsely-performance-panel { |
| 5 |
padding: calc(16px); |
| 6 |
border-top: 1px solid rgb(221, 221, 221); |
| 7 |
margin-top: -1px; |
| 8 |
|
| 9 |
.content-helper-error-message { |
| 10 |
margin: 0 !important; |
| 11 |
} |
| 12 |
|
| 13 |
/** View in Parse.ly button */ |
| 14 |
.components-button.wp-parsely-view-post { |
| 15 |
display: flex; |
| 16 |
justify-content: center; |
| 17 |
align-items: center; |
| 18 |
width: 100%; |
| 19 |
} |
| 20 |
|
| 21 |
.panel-body { |
| 22 |
width: 100%; |
| 23 |
} |
| 24 |
|
| 25 |
.performance-stat-panel { |
| 26 |
display: flex; |
| 27 |
padding: to_rem(6px) 0 to_rem(16px) 0; |
| 28 |
flex-direction: column; |
| 29 |
align-items: flex-start; |
| 30 |
gap: to_rem(8px); |
| 31 |
align-self: stretch; |
| 32 |
|
| 33 |
.panel-header { |
| 34 |
display: flex; |
| 35 |
height: to_rem(16px); |
| 36 |
width: 100%; |
| 37 |
align-items: center; |
| 38 |
gap: to_rem(6px); |
| 39 |
margin-bottom: 0; |
| 40 |
|
| 41 |
/** Level 2 heading */ |
| 42 |
&.level-2 { |
| 43 |
margin-bottom: to_rem(15px); |
| 44 |
|
| 45 |
h2 { |
| 46 |
margin-bottom: 0; |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
/** Level 3 heading */ |
| 51 |
&.level-3 { |
| 52 |
h3 { |
| 53 |
margin-bottom: 0; |
| 54 |
line-height: to_rem(16px); |
| 55 |
font-size: var(--font-size--smaller); |
| 56 |
font-style: normal; |
| 57 |
font-weight: 600; |
| 58 |
text-transform: uppercase; |
| 59 |
} |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
.panel-subtitle { |
| 64 |
display: flex; |
| 65 |
flex: 1 0 0; |
| 66 |
height: to_rem(16px); |
| 67 |
align-items: center; |
| 68 |
gap: to_rem(6px); |
| 69 |
align-self: stretch; |
| 70 |
color: var(--Gutenberg-Gray-700, #757575); |
| 71 |
|
| 72 |
/* Label */ |
| 73 |
font-size: var(--font-size--smaller); |
| 74 |
font-style: normal; |
| 75 |
font-weight: 600; |
| 76 |
line-height: to_rem(16px); /* 145.455% */ |
| 77 |
text-transform: uppercase; |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
.components-heading { |
| 82 |
margin: 0; |
| 83 |
font-weight: 500; |
| 84 |
line-height: normal; |
| 85 |
display: block; |
| 86 |
} |
| 87 |
|
| 88 |
.components-dropdown-menu { |
| 89 |
line-height: 0; |
| 90 |
} |
| 91 |
|
| 92 |
.performance-data-points { |
| 93 |
display: flex; |
| 94 |
align-items: flex-start; |
| 95 |
align-content: flex-start; |
| 96 |
gap: to_rem(16px) var(--grid-unit-20); |
| 97 |
|
| 98 |
align-self: stretch; |
| 99 |
flex-wrap: wrap; |
| 100 |
|
| 101 |
.data-point { |
| 102 |
display: flex; |
| 103 |
min-width: 100px; |
| 104 |
padding: var(--grid-unit-20) var(--grid-unit-10); |
| 105 |
flex-direction: column; |
| 106 |
justify-content: center; |
| 107 |
align-items: center; |
| 108 |
gap: var(--grid-unit-5); |
| 109 |
flex: 1 0 0; |
| 110 |
|
| 111 |
border-radius: to_rem(4px); |
| 112 |
background: var(--sidebar-white); |
| 113 |
|
| 114 |
svg { |
| 115 |
display: flex; |
| 116 |
align-items: flex-start; |
| 117 |
border-radius: to_rem(2px); |
| 118 |
} |
| 119 |
|
| 120 |
.data-point-title { |
| 121 |
align-self: stretch; |
| 122 |
color: var(--sidebar-black); |
| 123 |
text-align: center; |
| 124 |
font-size: to_rem(12px); |
| 125 |
font-style: normal; |
| 126 |
font-weight: 400; |
| 127 |
line-height: to_rem(16px); /* 133.333% */ |
| 128 |
} |
| 129 |
|
| 130 |
.data-point-value { |
| 131 |
align-self: stretch; |
| 132 |
color: var(--sidebar-black); |
| 133 |
text-align: center; |
| 134 |
font-size: to_rem(20px); |
| 135 |
font-style: normal; |
| 136 |
font-weight: 590; |
| 137 |
line-height: to_rem(28px); /* 140% */ |
| 138 |
|
| 139 |
&.is-small { |
| 140 |
font-size: var(--font-size--medium); |
| 141 |
} |
| 142 |
} |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
// Multi-percentage bar. |
| 147 |
div.multi-percentage-bar { |
| 148 |
position: relative; |
| 149 |
display: flex; |
| 150 |
height: to_rem(16px); |
| 151 |
align-items: flex-start; |
| 152 |
align-self: stretch; |
| 153 |
margin: to_rem(16px) 0; |
| 154 |
|
| 155 |
.bar-fill { |
| 156 |
--radius: 2px; |
| 157 |
position: relative; |
| 158 |
align-self: stretch; |
| 159 |
transition: filter 0.1s ease, transform 0.1s ease; |
| 160 |
|
| 161 |
&:hover { |
| 162 |
filter: opacity(1) !important; |
| 163 |
transform: scaleX(1) scaleY(1) !important; |
| 164 |
} |
| 165 |
|
| 166 |
// Border radiuses for first and last bar-fills. |
| 167 |
&:first-child { |
| 168 |
border-radius: var(--radius) 0 0 var(--radius); |
| 169 |
} |
| 170 |
|
| 171 |
&:last-child { |
| 172 |
border-radius: 0 var(--radius) var(--radius) 0; |
| 173 |
} |
| 174 |
|
| 175 |
// Bar-fill colors by referrer type. |
| 176 |
&.direct { |
| 177 |
background-color: hsl(var(--ref-direct)); |
| 178 |
} |
| 179 |
|
| 180 |
&.internal { |
| 181 |
background-color: hsl(var(--ref-internal)); |
| 182 |
} |
| 183 |
|
| 184 |
&.search { |
| 185 |
background-color: hsl(var(--ref-search)); |
| 186 |
} |
| 187 |
|
| 188 |
&.social { |
| 189 |
background-color: hsl(var(--ref-social)); |
| 190 |
} |
| 191 |
|
| 192 |
&.other { |
| 193 |
background-color: hsl(var(--ref-other)); |
| 194 |
} |
| 195 |
} |
| 196 |
|
| 197 |
&:hover .bar-fill { |
| 198 |
filter: opacity(0.5); |
| 199 |
transform: scaleX(1) scaleY(0.7); |
| 200 |
} |
| 201 |
} |
| 202 |
|
| 203 |
.percentage-bar-labels { |
| 204 |
display: flex; |
| 205 |
flex-direction: column; |
| 206 |
align-items: flex-start; |
| 207 |
gap: var(--grid-unit-20); |
| 208 |
align-self: stretch; |
| 209 |
|
| 210 |
.single-label { |
| 211 |
display: flex; |
| 212 |
justify-content: center; |
| 213 |
align-items: center; |
| 214 |
gap: to_rem(8px); |
| 215 |
align-self: stretch; |
| 216 |
|
| 217 |
.label-color { |
| 218 |
display: flex; |
| 219 |
width: to_rem(3px); |
| 220 |
height: to_rem(10px); |
| 221 |
flex-direction: column; |
| 222 |
justify-content: center; |
| 223 |
align-items: center; |
| 224 |
gap: to_rem(10px); |
| 225 |
border-radius: to_rem(1.5px); |
| 226 |
|
| 227 |
&.direct { |
| 228 |
background-color: hsl(var(--ref-direct)); |
| 229 |
} |
| 230 |
|
| 231 |
&.internal { |
| 232 |
background-color: hsl(var(--ref-internal)); |
| 233 |
} |
| 234 |
|
| 235 |
&.search { |
| 236 |
background-color: hsl(var(--ref-search)); |
| 237 |
} |
| 238 |
|
| 239 |
&.social { |
| 240 |
background-color: hsl(var(--ref-social)); |
| 241 |
} |
| 242 |
|
| 243 |
&.other { |
| 244 |
background-color: hsl(var(--ref-other)); |
| 245 |
} |
| 246 |
} |
| 247 |
|
| 248 |
.label-text { |
| 249 |
display: -webkit-box; |
| 250 |
-webkit-box-orient: vertical; |
| 251 |
-webkit-line-clamp: 1; |
| 252 |
flex: 1 0 0; |
| 253 |
overflow: hidden; |
| 254 |
color: var(--sidebar-black); |
| 255 |
font-feature-settings: "ss06" on; |
| 256 |
text-overflow: ellipsis; |
| 257 |
font-size: var(--font-size--small); |
| 258 |
font-style: normal; |
| 259 |
font-weight: 400; |
| 260 |
line-height: to_rem(16px); /* 133.333% */ |
| 261 |
} |
| 262 |
|
| 263 |
.label-value { |
| 264 |
color: var(--sidebar-black); |
| 265 |
text-align: right; |
| 266 |
font-size: var(--font-size--small); |
| 267 |
font-style: normal; |
| 268 |
font-weight: 590; |
| 269 |
line-height: to_rem(16px) /* 133.333% */ |
| 270 |
} |
| 271 |
} |
| 272 |
} |
| 273 |
|
| 274 |
.referrers-list { |
| 275 |
display: flex; |
| 276 |
flex-direction: column; |
| 277 |
align-items: flex-start; |
| 278 |
gap: var(--grid-unit-20); |
| 279 |
align-self: stretch; |
| 280 |
margin: to_rem(16px) 0; |
| 281 |
|
| 282 |
.referrers-row { |
| 283 |
display: flex; |
| 284 |
justify-content: space-between; |
| 285 |
align-items: center; |
| 286 |
gap: var(--grid-unit-10); |
| 287 |
align-self: stretch; |
| 288 |
|
| 289 |
.referrers-row-title { |
| 290 |
display: -webkit-box; |
| 291 |
-webkit-box-orient: vertical; |
| 292 |
-webkit-line-clamp: 1; |
| 293 |
flex: 1; |
| 294 |
overflow: hidden; |
| 295 |
color: var(--sidebar-black); |
| 296 |
font-feature-settings: "ss06" on; |
| 297 |
text-overflow: ellipsis; |
| 298 |
font-size: var(--font-size--small); |
| 299 |
font-style: normal; |
| 300 |
font-weight: 400; |
| 301 |
line-height: to_rem(16px); /* 133.333% */ |
| 302 |
} |
| 303 |
|
| 304 |
.referrers-row-bar { |
| 305 |
display: flex; |
| 306 |
max-width: to_rem(100px); |
| 307 |
flex-direction: column; |
| 308 |
justify-content: center; |
| 309 |
gap: to_rem(10px); |
| 310 |
flex: 1; |
| 311 |
|
| 312 |
.percentage-bar { |
| 313 |
// Bar background. |
| 314 |
--radius: 1.5px; |
| 315 |
background: var(--gray-400); |
| 316 |
border-radius: var(--radius); |
| 317 |
display: flex; |
| 318 |
height: to_rem(3px); |
| 319 |
margin: 0; |
| 320 |
overflow: hidden; |
| 321 |
|
| 322 |
// Bar fill. |
| 323 |
&::after { |
| 324 |
background: var(--blueberry, #3858e9); |
| 325 |
border-radius: var(--radius); |
| 326 |
content: ""; |
| 327 |
height: 100%; |
| 328 |
width: var(--bar-fill); |
| 329 |
} |
| 330 |
} |
| 331 |
} |
| 332 |
|
| 333 |
.referrers-row-value { |
| 334 |
flex-shrink: 0; |
| 335 |
min-width: to_rem(50px); |
| 336 |
color: var(--sidebar-black); |
| 337 |
text-align: right; |
| 338 |
font-size: var(--font-size--small); |
| 339 |
font-style: normal; |
| 340 |
font-weight: 590; |
| 341 |
line-height: to_rem(16px); /* 133.333% */ |
| 342 |
} |
| 343 |
} |
| 344 |
} |
| 345 |
} |
| 346 |
|