Ghost/ghost/admin/app/styles/layouts/dashboard.css

404 lines
7.5 KiB
CSS
Raw Normal View History

2021-02-17 14:11:01 +03:00
:root {
--dashboard-gap: 1.8vw;
}
2021-02-16 20:12:24 +03:00
.gh-dashboard {
display: grid;
2021-02-17 14:11:01 +03:00
grid-template-columns: 2fr 1fr;
grid-gap: var(--dashboard-gap);
2021-02-16 20:12:24 +03:00
}
.gh-dashboard-area {
display: flex;
flex-direction: column;
}
.gh-dashboard-header {
font-size: 1.1rem;
text-transform: uppercase;
font-weight: 500;
letter-spacing: .2px;
2021-02-17 18:46:12 +03:00
margin: -4px 0 4px;
2021-02-16 20:12:24 +03:00
padding: 0;
color: var(--black);
}
2021-02-17 12:13:11 +03:00
.gh-dashboard-header.secondary {
color: var(--midgrey);
}
2021-02-16 20:12:24 +03:00
.gh-dashboard-summary.small .gh-dashboard-header {
margin-bottom: 6px;
}
2021-02-17 14:11:01 +03:00
.gh-dashboard-list {
display: flex;
flex-direction: column;
flex-grow: 1;
align-items: stretch;
justify-content: flex-start;
}
.gh-dashboard-chart.nodata {
border: 1px dashed var(--lightgrey);
font-size: 1.3rem;
color: var(--midlightgrey);
height: 100%;
}
.gh-dashboard-chart.nodata {
font-size: 1.3rem;
color: var(--midlightgrey);
}
.gh-dashboard-container {
display: grid;
grid-template-columns: 1fr;
width: 100%;
}
.gh-dashboard-container.col-2 {
grid-template-columns: 1fr 1fr;
grid-gap: 32px;
}
/* Generic box containers */
.gh-dashboard-box {
display: flex;
flex-direction: column;
justify-content: space-between;
border: 1px solid var(--whitegrey);
border-radius: 3px;
padding: 24px;
margin-bottom: 32px;
}
.gh-dashboard-box.grey {
background: var(--main-color-content-greybg);
border: none;
}
.gh-dashboard-box .content {
color: var(--darkgrey);
}
.gh-dashboard-box .content h4 {
font-size: 1.6rem;
font-weight: 600;
margin-bottom: 8px;
color: var(--black);
}
.gh-dashboard-box .content p {
margin-bottom: 12px;
}
.gh-dashboard-box .footer {
display: flex;
align-items: center;
}
/* Main areas in grid */
.gh-dashboard-area.charts {
grid-column: 1 / 3;
}
.gh-dashboard-area.members-activity {
grid-column: 2 / 3;
}
.gh-dashboard-area.mixed {
grid-column: 1 / 2;
border: none;
border-radius: unset;
padding: 0;
align-items: stretch;
justify-content: flex-start;
}
/* Charts */
.gh-dashboard-area.charts {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
border: 1px solid var(--whitegrey);
border-radius: 3px;
grid-column-gap: var(--dashboard-gap);
height: 18vw;
min-height: 180px;
max-height: 350px;
padding: 0 24px 24px;
}
.gh-dashboard-area.charts .gh-dashboard-box {
border: none;
border-radius: 0;
2021-02-17 18:46:12 +03:00
padding: 22px 0 0 24px;
2021-02-17 14:11:01 +03:00
margin: 0;
}
.gh-dashboard-area.charts .gh-dashboard-header {
margin: 0 0 8px;
}
.gh-dashboard-area.charts .mrr {
grid-column: 1 / 2;
grid-row: 1 / 4;
padding-left: 0;
}
.gh-dashboard-area.charts .total-members {
grid-column: 2 / 3;
grid-row: 1 / 2;
}
.gh-dashboard-area.charts .paid-members {
grid-column: 2 / 3;
grid-row: 2 / 3;
}
.gh-dashboard-area.charts .newsletter-open-rate {
grid-column: 2 / 3;
grid-row: 3 / 4;
}
2021-02-16 20:12:24 +03:00
.gh-dashboard-chart-container {
display: flex;
align-items: flex-start;
justify-content: stretch;
height: 100%;
}
.gh-dashboard-summary {
flex-basis: 220px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
}
.gh-dashboard-summary.small {
flex-basis: 180px;
}
.gh-dashboard-summary .data-container {
display: flex;
align-items: flex-end;
margin-bottom: 28px;
}
.gh-dashboard-summary .data-container:last-of-type {
margin-bottom: -8px;
}
.gh-dashboard-summary .data {
font-size: 3.9rem;
line-height: 4rem;
font-weight: 600;
color: var(--black);
letter-spacing: -0.1px;
line-height: 1;
}
.gh-dashboard-summary.small .data {
font-size: 2.8rem;
letter-spacing: -0.1px;
}
.gh-dashboard-summary .growth {
background: var(--lightgrey);
border-radius: 3px;
font-size: 1.8rem;
line-height: 1;
font-weight: 500;
color: var(--darkgrey);
padding: 6px 8px;
margin: 12px 0;
}
.gh-dashboard-summary.small .growth {
font-size: 1.3rem;
letter-spacing: 0;
padding: 2px 4px;
margin: 0 0 3px 10px;
}
.gh-dashboard-summary .growth.positive {
background: color-mod(var(--green) a(13%));
color: color-mod(var(--green) l(-5%));
}
.gh-dashboard-summary .growth.negative {
background: color-mod(var(--yellow) a(20%));
color: color-mod(var(--yellow) l(-8%));
}
.gh-dashboard-chart {
display: flex;
flex-direction: column;
flex-grow: 1;
align-items: center;
justify-content: center;
}
2021-02-17 12:13:11 +03:00
/* Total members */
2021-02-16 20:12:24 +03:00
.gh-dashboard-area.total-members {
grid-column: 1 / 2;
grid-row: 2;
}
.gh-dashboard-area.total-members .gh-dashboard-chart,
.gh-dashboard-area.newsletter-open-rate .gh-dashboard-chart {
height: 6vw;
min-height: 80px;
max-height: 150px;
}
2021-02-17 13:25:14 +03:00
/* Top members */
2021-02-16 20:12:24 +03:00
.gh-dashboard-area.top-members {
grid-column: 3 / 4;
grid-row: 1 / 3;
}
2021-02-17 13:25:14 +03:00
.gh-dashboard-area.top-members .gh-dashboard-list {
justify-content: space-between;
}
2021-02-17 12:13:11 +03:00
.gh-dashboard-top-members {
2021-02-17 18:46:12 +03:00
display: flex;
2021-02-17 12:13:11 +03:00
flex-direction: column;
align-items: stretch;
list-style: none;
padding: 0;
margin: 8px 0 0;
width: 100%;
}
.gh-dashboard-top-member {
display: flex;
align-items: center;
flex-grow: 1;
width: 100%;
justify-content: stretch;
margin: 8px 0;
padding: 0;
}
.gh-dashboard-top-member .member-details {
display: flex;
align-items: center;
flex-grow: 1;
}
.gh-dashboard-top-member .avatar {
display: flex;
align-items: center;
justify-content: center;
flex-grow: 0;
width: 32px;
height: 32px;
min-width: 32px;
border-radius: 999px;
background: var(--blue);
margin-right: 8px;
font-size: 1.5rem;
font-weight: 500;
text-align: center;
color: #fff;
line-height: 1;
}
.gh-dashboard-top-member .name {
font-size: 1.4rem;
font-weight: 500;
color: var(--black);
}
.gh-dashboard-top-member .open-rate {
white-space: nowrap;
margin-left: 12px;
color: var(--midgrey);
font-size: 1.3rem;
}
2021-02-17 13:25:14 +03:00
.gh-dashboard-top-members-footer {
display: flex;
justify-content: flex-end;
border-top: 1px solid var(--whitegrey-d1);
padding-top: 12px;
margin-bottom: -4px;
}
.gh-dashboard-top-members-footer a {
display: flex;
align-items: center;
color: var(--black);
font-weight: 500;
}
.gh-dashboard-top-members-footer a svg {
width: 12px;
height: 12px;
margin-left: 4px;
}
.gh-dashboard-top-members-footer a svg path {
fill: var(--black);
}
2021-02-17 12:13:11 +03:00
/* Activity feed */
2021-02-16 20:12:24 +03:00
.gh-dashboard-area.activity-feed {
grid-column: 3 / 4;
grid-row: 3 / 4;
2021-02-17 13:25:14 +03:00
padding: 0;
margin: 0;
2021-02-17 18:46:12 +03:00
}
.gh-dashboard-activity-feed {
display: flex;
flex-direction: column;
align-items: stretch;
list-style: none;
padding: 0;
margin: 4px 0 0;
width: 100%;
}
.gh-dashboard-activity-feed li {
display: flex;
align-items: baseline;
flex-grow: 1;
width: 100%;
justify-content: space-between;
margin: 8px 0;
padding: 0;
}
.gh-dashboard-activity-feed .activity {
display: flex;
align-items: baseline;
margin-right: 32px;
color: var(--midgrey);
line-height: 1.5em;
font-size: 1.3rem;
}
.gh-dashboard-activity-feed .member {
font-weight: 500;
color: var(--black);
font-size: 1.4rem;
}
.gh-dashboard-activity-feed .activity svg {
width: 12px;
height: 12px;
margin-right: 8px;
margin-top: 1px;
}
.gh-dashboard-activity-feed .time {
white-space: nowrap;
margin-left: 12px;
color: var(--midgrey);
font-size: 1.3rem;
2021-02-16 20:12:24 +03:00
}