mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
e6998afb40
refs. https://github.com/TryGhost/Ghost/issues/11342 - replaced Zapier and Amp logos for SVGs with transparent background so that there's no white background in night shift - inverted Unsplash icon in night shift (similarly to Mailchimp, Typeform etc.) - replaced ellipsis icon for SVG and handled night shift color change - removed unnecessary icon container drop shadow in integration detail pages for night shift
392 lines
7.2 KiB
CSS
392 lines
7.2 KiB
CSS
/* Apps
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.apps-filter {
|
|
border-radius: 5px;
|
|
}
|
|
@media (max-width: 1460px) {
|
|
.apps-filter {
|
|
max-width: 700px;
|
|
}
|
|
}
|
|
|
|
/* Main Layout
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.integrations-directory {
|
|
display: grid;
|
|
justify-content: space-between;
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
grid-gap: 25px;
|
|
margin: 4px 0 2.4vw;
|
|
}
|
|
|
|
.id-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100px;
|
|
padding: 10px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
color: var(--darkgrey);
|
|
border-radius: 5px;
|
|
box-shadow: 0 3px 6px -2px rgba(0,0,0,.1);
|
|
background: var(--white);
|
|
transition: all .5s ease;
|
|
}
|
|
|
|
.id-item:hover {
|
|
transform: translateY(-2.5%);
|
|
box-shadow: 0 0 1px rgba(0,0,0,.02), 0 8px 26px -4px rgba(0,0,0,.08);
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
.id-item-logo {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 38px;
|
|
width: 38px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.id-more svg circle {
|
|
stroke: var(--midlightgrey);
|
|
}
|
|
|
|
@media (max-width: 1320px) {
|
|
.integrations-directory {
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
}
|
|
.id-item:nth-child(7) {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 1160px) {
|
|
.integrations-directory {
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
}
|
|
.id-item:nth-child(6) {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 1020px) {
|
|
.integrations-directory {
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
}
|
|
.id-item:nth-child(5) {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 900px) {
|
|
.integrations-directory {
|
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
}
|
|
.id-item:nth-child(5),
|
|
.id-item:nth-child(6),
|
|
.id-item:nth-child(7) {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.integrations-directory {
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
}
|
|
.id-item:nth-child(6),
|
|
.id-item:nth-child(7) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Built-in integrations */
|
|
|
|
.apps-grid-container {
|
|
margin: 2vw 0 0;
|
|
}
|
|
|
|
.apps-grid-title {
|
|
display: block;
|
|
margin: 1vw 0 5px 1px;
|
|
color: var(--midlightgrey);
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
letter-spacing: 0.35px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.apps-first-header,
|
|
.apps-first-header .apps-grid-title {
|
|
margin-top: 0px;
|
|
}
|
|
|
|
.apps-grid {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
align-items: flex-start;
|
|
border-radius: 5px;
|
|
background: var(--white);
|
|
box-shadow: var(--shadow-1);
|
|
}
|
|
|
|
.apps-grid-note {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--midgrey);
|
|
font-size: 1.2rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Apps Card
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.apps-grid-cell {
|
|
flex: 1 1 100%;
|
|
background: var(--white);
|
|
margin: 0;
|
|
}
|
|
|
|
.apps-grid-cell {
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.apps-grid-cell:hover {
|
|
background: var(--whitegrey-l2);
|
|
transition: none;
|
|
}
|
|
|
|
.apps-card-app {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
overflow: hidden;
|
|
padding: 16px 16px;
|
|
height: 65px;
|
|
border-top: var(--lightgrey) 1px solid;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.new-integration-cell .apps-card-app {
|
|
padding: 10px 16px;
|
|
height: auto;
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.apps-card-app {
|
|
min-height: 75px;
|
|
height: auto;
|
|
}
|
|
|
|
.new-integration-cell .apps-card-app {
|
|
min-height: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.apps-grid-cell:first-of-type {
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
}
|
|
|
|
.apps-grid-cell:last-of-type {
|
|
border-bottom-left-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
}
|
|
|
|
.apps-grid-cell:first-of-type .apps-card-app {
|
|
border-top: none;
|
|
}
|
|
|
|
.apps-card-left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.apps-card-left {
|
|
flex-basis: 70%;
|
|
}
|
|
}
|
|
|
|
.apps-card-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.apps-configured {
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--midgrey);
|
|
font-weight: 300;
|
|
}
|
|
|
|
.apps-configured svg {
|
|
margin-left: 15px;
|
|
height: 14px;
|
|
}
|
|
|
|
.apps-configured svg path {
|
|
fill: var(--midgrey);
|
|
}
|
|
|
|
.apps-configured a {
|
|
display: inline-block;
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.apps-configured-action {
|
|
margin-left: 15px;
|
|
text-transform: uppercase;
|
|
font-size: 1.2rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.apps-card-app-icon {
|
|
flex: 0 0 47px;
|
|
margin: 0 12px 0 0;
|
|
width: 47px;
|
|
height: 47px;
|
|
background-position: center center;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
border-radius: 15%;
|
|
mix-blend-mode: multiply;
|
|
}
|
|
|
|
.apps-card-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-right: 70px;
|
|
}
|
|
@media (max-width: 500px) {
|
|
.apps-card-meta {
|
|
flex-basis: 70%;
|
|
padding-right: 10px;
|
|
}
|
|
}
|
|
|
|
.apps-card-app-title {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 1.5rem;
|
|
line-height: 1.15em;
|
|
font-weight: 600;
|
|
}
|
|
@media (max-width: 500px) {
|
|
.apps-card-app-title {
|
|
white-space: normal;
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
|
|
/* Apps Card Meta
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.apps-card-app-desc {
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
margin: 4px 0 0;
|
|
padding: 0;
|
|
max-height: 4.2rem;
|
|
color: var(--midgrey);
|
|
text-overflow: ellipsis;
|
|
font-size: 1.3rem;
|
|
line-height: 1.3em;
|
|
font-weight: 400;
|
|
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
@media (min-width: 600px) and (max-width: 1460px) {
|
|
.apps-card-app-desc {
|
|
padding-right: 80px;
|
|
}
|
|
}
|
|
|
|
|
|
/* Apps Card Footer
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.apps-card-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 15px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Slack
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.app-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
align-content: flex-start;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.app-icon {
|
|
position: relative;
|
|
flex: 0 0 48px;
|
|
width: 48px;
|
|
height: 48px;
|
|
background-position: center center;
|
|
background-size: cover;
|
|
border-radius: 10%;
|
|
}
|
|
|
|
.app-icon img {
|
|
display: block;
|
|
}
|
|
|
|
.app-cell h3 {
|
|
margin: 0;
|
|
color: var(--darkgrey);
|
|
font-size: 2.4rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.app-cell p {
|
|
margin: 0;
|
|
margin-bottom: 5px;
|
|
color: var(--midgrey);
|
|
font-size: 1.6rem;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
.app-subtitle {
|
|
max-width: 550px;
|
|
color: var(--midgrey);
|
|
font-size: 1.6rem;
|
|
}
|
|
.app-config-form .gh-btn-grey {
|
|
margin-top: 1.6em;
|
|
background-color: #e8e8e8;
|
|
box-shadow: none;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.app-config-form > .gh-btn-grey:hover,
|
|
.app-config-form > .gh-btn-grey:focus {
|
|
border-color: rgb(223, 225, 227);
|
|
}
|
|
|
|
|
|
/* Custom Integrations
|
|
/* ---------------------------------------------------------- */
|
|
.new-webhook-cell td {
|
|
padding: 0;
|
|
}
|
|
|
|
.new-webhook-cell:hover {
|
|
background: var(--whitegrey-l2);
|
|
} |