|
|
@import "@automattic/typography/styles/variables"; |
|
|
@import "@automattic/onboarding/styles/mixins"; |
|
|
|
|
|
$headerHeight: 72px; |
|
|
$headerHeightI2: 80px; |
|
|
$heading-font-family: "SF Pro Display", $sans; |
|
|
$heading-font-body-small: 15px; |
|
|
|
|
|
.blazepress-widget { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
z-index: 1001; |
|
|
height: 100vh; |
|
|
|
|
|
.blazepress-widget__header-bar { |
|
|
align-items: center; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
min-height: $headerHeight; |
|
|
padding: 0 rem(24px); |
|
|
position: fixed; |
|
|
width: calc(100% - 3rem); |
|
|
background: var(--studio-white); |
|
|
z-index: 1000; |
|
|
|
|
|
@include break-large { |
|
|
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); |
|
|
} |
|
|
|
|
|
h2 { |
|
|
@include onboarding-font-recoleta; |
|
|
font-size: $font-body-large; |
|
|
letter-spacing: 0; |
|
|
flex: 1; |
|
|
line-height: 1; |
|
|
padding-top: 3px; |
|
|
} |
|
|
|
|
|
.blaze-logo { |
|
|
width: 1.5rem; |
|
|
height: 1.5rem; |
|
|
fill: var(--color-text); |
|
|
margin: 0 rem(10px) 0 0; |
|
|
} |
|
|
|
|
|
.blazepress-widget__cancel { |
|
|
height: 24px; |
|
|
cursor: pointer; |
|
|
font-style: normal; |
|
|
font-weight: 500; |
|
|
font-size: $heading-font-body-small; |
|
|
padding-top: 5px; |
|
|
} |
|
|
} |
|
|
.blazepress-widget__content { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
height: calc(100% - #{$headerHeight}); |
|
|
margin-top: 72px; |
|
|
} |
|
|
.blazepress-widget__content.loading { |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
flex: auto; |
|
|
flex-direction: row; |
|
|
} |
|
|
.blazepress-widget__content .error-notice { |
|
|
margin-top: 64px; |
|
|
width: 80%; |
|
|
align-self: center; |
|
|
text-align: center; |
|
|
|
|
|
.error-notice__title { |
|
|
font-size: $font-title-medium; |
|
|
font-style: normal; |
|
|
font-weight: 500; |
|
|
margin-bottom: 20px; |
|
|
} |
|
|
.error-notice__notice { |
|
|
font-size: $font-body-large; |
|
|
} |
|
|
} |
|
|
|
|
|
.blazepress-widget__widget-container { |
|
|
height: 100%; |
|
|
|
|
|
.wpcom-dsp-widget-shadow-dom { |
|
|
height: 100%; |
|
|
} |
|
|
} |
|
|
|
|
|
&.hidden-header { |
|
|
.blazepress-widget__header-bar { |
|
|
display: none; |
|
|
} |
|
|
.blazepress-widget__content { |
|
|
height: 100%; |
|
|
margin-top: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
&.blazepress-i2 { |
|
|
.blazepress-widget__header-bar { |
|
|
justify-content: flex-start; |
|
|
width: calc(100% - 40px); |
|
|
min-height: 32px; |
|
|
height: auto; |
|
|
padding: 24px 20px; |
|
|
margin: 0; |
|
|
|
|
|
.wordpress-logo { |
|
|
width: 2rem; |
|
|
height: 2rem; |
|
|
} |
|
|
|
|
|
.blank-canvas__back { |
|
|
padding: 0; |
|
|
height: 2rem; |
|
|
font-family: $heading-font-family; |
|
|
font-weight: 500; |
|
|
letter-spacing: 0.34px; |
|
|
|
|
|
@include break-small { |
|
|
font-size: $heading-font-body-small; |
|
|
} |
|
|
} |
|
|
|
|
|
&.no-back-button .blank-canvas__back { |
|
|
display: none; |
|
|
} |
|
|
|
|
|
.blank-canvas__header-title { |
|
|
position: initial; |
|
|
margin-left: auto; |
|
|
|
|
|
h2 { |
|
|
line-height: 24px; |
|
|
font-style: normal; |
|
|
font-weight: 500; |
|
|
font-size: $heading-font-body-small; |
|
|
font-family: $heading-font-family; |
|
|
color: #8f8e93; |
|
|
padding: 0; |
|
|
letter-spacing: 0.34px; |
|
|
} |
|
|
} |
|
|
} |
|
|
.blazepress-widget__content { |
|
|
height: calc(100% - #{$headerHeightI2}); |
|
|
margin-top: $headerHeightI2; |
|
|
} |
|
|
} |
|
|
|
|
|
.dialog__content { |
|
|
padding: 30px 80px 15px 30px; |
|
|
} |
|
|
|
|
|
&.dialog__backdrop { |
|
|
background-color: color-mix(in srgb, var(--color-neutral-100) 60%, transparent); |
|
|
|
|
|
.dialog.card { |
|
|
max-width: 480px; |
|
|
|
|
|
border-radius: 8px; |
|
|
|
|
|
.dialog__action-buttons-close { |
|
|
top: 20px; |
|
|
right: 20px; |
|
|
} |
|
|
|
|
|
.dialog__action-buttons { |
|
|
text-align: left; |
|
|
padding: 15px 30px 30px; |
|
|
border: none; |
|
|
|
|
|
.button { |
|
|
margin-left: 0; |
|
|
margin-right: 16px; |
|
|
border-radius: 4px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.is-mobile-app-view { |
|
|
.blazepress-widget__header-bar { |
|
|
display: none; |
|
|
} |
|
|
.blazepress-widget__content { |
|
|
height: 100%; |
|
|
margin-top: 0; |
|
|
} |
|
|
.blazepress-widget .wpcom__loading-ellipsis { |
|
|
margin-top: 50%; |
|
|
} |
|
|
} |
|
|
|
|
|
html.has-blank-canvas { |
|
|
overflow: hidden; |
|
|
} |
|
|
|