ghost/admin/app/styles/layouts/stats.css
.gh-stats-header header {
display: grid;
grid-template-columns: auto 1fr;
gap: 20px;
}
.gh-stats-header header .view-actions {
justify-self: end;
}
.gh-stats .view-container {
display: flex;
flex-direction: column;
gap: 32px;
padding-bottom: 32px !important;
}
.gh-stats .view-actions {
flex-direction: row !important;
}
.gh-stats .gh-canvas-header-content {
min-height: unset !important;
}
.gh-stats-grid {
display: grid;
gap: 32px;
}
.gh-stats-grid.cols-2 {
grid-template-columns: 1fr 1fr;
}
.gh-stats-container {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 20px;
padding: 20px;
border: 1px solid var(--whitegrey);
border-radius: 8px;
overflow: hidden;
transition: all ease-in-out 0.3s;
}
.gh-stats-container.no-gap {
gap: 0;
}
.gh-stats-container > .gh-stats-metric-label,
.gh-stats-metric-header {
margin-bottom: 12px;
}
.gh-stats-container:hover {
box-shadow: 0 0 1px rgba(0,0,0,.12), 0 1px 6px rgba(0,0,0,.03), 0 8px 10px -8px rgba(0,0,0,.1);
}
.gh-stats-tabs-header {
position: relative;
display: flex;
margin: -20px -20px 20px;
padding: 0;
overflow: hidden;
justify-content: space-between;
}
.gh-stats-tabs-header:before {
display: block;
content: "";
position: absolute;
width: 100%;
height: 1px;
bottom: 0;
left: 0;
right: 0;
background: var(--whitegrey);
}
.gh-stats-tabs {
display: flex;
}
.gh-stats-tab {
position: relative;
margin: 0 0 1px 0;
/* color: var(--darkgrey); */
}
/* .gh-stats-tab:not(.is-selected) .gh-stats-metric-label {
color: var(--darkgrey);
} */
.gh-stats-tab:hover {
background-color: var(--whitegrey-l2);
}
.gh-stats-tab.is-selected {
color: var(--black);
}
.gh-stats-tab.is-selected:before {
display: block;
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: -1px;
left: 0;
right: 0;
background: var(--black);
}
.gh-stats-metric {
width: 100%;
padding: 16px 20px;
}
.gh-stats-tab.min-width .gh-stats-metric {
min-width: 180px;
}
.gh-stats-metric-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--whitegrey);
margin: -4px -20px 12px;
padding: 0 20px 16px;
}
.gh-stats-metric-data {
display: flex;
flex-direction: column;
gap: 4px;
align-items: flex-start;
}
.gh-stats-metric-label {
font-weight: 600;
font-size: 16px;
margin-bottom: 0;
}
.gh-stats-metric-value {
font-size: 26px;
letter-spacing: -0.05em;
font-weight: 600;
line-height: 1;
}
.gh-stats-piechart-container {
display: flex;
gap: 16px;
align-items: flex-start;
width: 100%;
}
.gh-stats-piechart-container table {
margin-top: -15px;
width: 100%;
margin-bottom: 0;
}
.gh-stats-piechart-container .table td,
.gh-stats-piechart-container.table th,
.gh-stats-piechart-container table td,
.gh-stats-piechart-container table th {
padding: 6px 6px 6px 0px;
}
.gh-stats-piechart {
width: 100%;
height: 100%;
flex-grow: 1;
margin-right: -20px;
}
.gh-stats-section-dropdown {
padding: 0 8px 0 0 !important;
height: 28px;
border: none !important;
cursor: pointer;
overflow: hidden;
margin-right: -8px;
}
.gh-stats-section-dropdown.ember-power-select-trigger.gh-btn span {
padding-right: 4px;
}
.gh-stats-section-dropdown.ember-power-select-trigger:not(.ember-power-select-multiple-trigger):not(.gh-preview-newsletter-trigger) svg {
margin-top: 0;
}
.gh-stats-kpi-granularity {
padding: 12px 20px;
}
@media (max-width: 1440px) {
.gh-stats-tab.min-width .gh-stats-metric {
min-width: 150px;
}
.gh-stats-metric-label {
font-size: 14px;
}
}
.gh-stats-data-header {
font-size: 12px;
font-weight: 500;
text-transform: none;
color: var(--midgrey);
}
.gh-stats-see-all-btn span {
height: unset;
padding: 0;
line-height: 1;
color: var(--black);
}
.gh-stats-see-all-btn:hover span {
color: var(--green);
}
.gh-stats-data-label,
.gh-stats-data-value {
font-weight: 500;
font-size: 13px;
}
.gh-stats-data-label {
color: var(--black);
}
a.gh-stats-data-label:hover {
text-decoration: underline;
}
.gh-stats-data-value {
color: var(--middarkgrey);
}
.gh-stats-see-all-container {
position: relative;
}
.gh-stats-see-all-container::before {
pointer-events: none;
position: absolute;
display: block;
content: '';
left: 0;
right: 0;
top: -60px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.0) 0%, #FFF 100%);
height: 60px;
z-index: 9999;
}
.gh-stats-kpis-chart-container {
margin-top: -20px;
}
.gh-stats-domain {
display: flex;
align-items: center;
gap: 6px;
color: var(--black);
}
.gh-stats-domain:hover {
text-decoration: underline;
}
.gh-stats-favicon {
width: 16px;
height: 16px;
}
.gh-stats-tooltip-header {
font-weight: 600;
font-size: 13px;
}
.gh-stats-tooltip-data {
display: flex;
align-items: baseline;
}
.gh-stats-tooltip-label {
font-weight: 400;
font-size: 13px;
color: var(--middarkgrey)
}
.gh-stats-tooltip-value {
font-family: var(--font-family-mono);
font-size: 12.5px;
margin-left: 10px;
}
.gh-stats-tooltip-marker {
display: block;
width: 10px;
height: 10px;
border-radius: 3px;
margin-right: 3px;
}
/* Filters */
.gh-stats-filters {
display: flex;
gap: 8px;
margin-bottom: -24px;
}
.gh-stats-filters {
grid-column: span 2;
}
.gh-stats-filter-pill {
display: flex;
gap: 4px;
align-items: center;
font-size: 13px;
font-weight: 500;
border: 1px solid var(--whitegrey);
border-radius: 999px;
padding: 4px 12px;
}
.gh-stats-filter-pill .value {
font-weight: 700;
}
.gh-btn-clear-filters {
display: flex;
align-items: center;
gap: 4px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
border-radius: 999px;
color: var(--black);
padding: 4px 12px;
border: 1px solid var(--whitegrey);
transition: all ease-in-out 0.3s;
}
.gh-btn-clear-filters:hover {
background-color: var(--whitegrey-l2);
}
.gh-btn-clear-filters svg {
width: 10px;
height: 10px;
stroke: var(--red);
}
.gh-btn-clear-filters svg path {
stroke-width: 2px;
}