woocommerce/plugins/woocommerce-admin/client/customize-store/assembler-hub/style.scss

341 lines
6.9 KiB
SCSS
Raw Normal View History

@mixin custom-scrollbars-on-hover($handle-color, $handle-color-hover) {
// WebKit
&::-webkit-scrollbar {
width: 12px;
height: 12px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: $handle-color;
border-radius: 8px;
border: 3px solid transparent;
background-clip: padding-box;
}
&:hover::-webkit-scrollbar-thumb, // This needs specificity.
&:focus::-webkit-scrollbar-thumb,
&:focus-within::-webkit-scrollbar-thumb {
background-color: $handle-color-hover;
}
// Firefox 109+ and Chrome 111+
scrollbar-width: thin;
scrollbar-gutter: stable both-edges;
scrollbar-color: $handle-color transparent; // Syntax, "dark", "light", or "#handle-color #track-color"
&:hover,
&:focus,
&:focus-within {
scrollbar-color: $handle-color-hover transparent;
}
// Needed to fix a Safari rendering issue.
will-change: transform;
// Always show scrollbar on Mobile devices.
@media (hover: none) {
& {
scrollbar-color: $handle-color-hover transparent;
}
}
}
.woocommerce-profile-wizard__step-assemblerHub {
a {
text-decoration: none;
}
.edit-site-layout {
bottom: 0;
left: 0;
min-height: 100vh;
position: fixed;
right: 0;
top: 0;
background-color: #fcfcfc;
}
/* Sidebar Header */
.edit-site-layout__hub {
width: 380px;
height: 64px;
}
.edit-site-site-hub__view-mode-toggle-container {
height: 64px;
}
.edit-site-sidebar-navigation-screen__title-icon {
align-items: center;
padding-top: 80px;
padding-bottom: 0;
gap: 0;
}
.edit-site-sidebar-navigation-screen__title-icon,
.edit-site-site-hub__view-mode-toggle-container,
.edit-site-layout__view-mode-toggle-icon.edit-site-site-icon {
background-color: #fcfcfc;
}
.edit-site-layout__view-mode-toggle-icon.edit-site-site-icon {
align-items: center;
display: flex;
}
.edit-site-site-hub__site-title {
color: $gray-900;
font-size: 0.8125rem;
font-style: normal;
font-weight: 500;
line-height: 20px; /* 153.846% */
margin: 0;
}
.edit-site-site-icon__image {
border-radius: 2px;
}
.edit-site-site-hub__view-mode-toggle-container {
padding: 16px 12px 0 16px;
.edit-site-layout__view-mode-toggle,
.edit-site-layout__view-mode-toggle-icon.edit-site-site-icon,
.edit-site-site-icon__icon {
width: 32px;
height: 32px;
}
}
/* Sidebar */
.edit-site-layout__sidebar-region {
width: 380px;
}
.edit-site-layout__sidebar {
.edit-site-sidebar__content > div {
padding: 0 16px;
overflow-x: hidden;
}
.edit-site-sidebar-button {
color: $gray-900;
height: 40px;
}
.edit-site-sidebar-navigation-screen__title {
font-size: 1rem;
color: $gray-900;
text-overflow: ellipsis;
white-space: nowrap;
font-style: normal;
font-weight: 600;
line-height: 24px; /* 150% */
padding: 0;
}
.edit-site-sidebar-navigation-screen__description {
color: $gray-700;
font-size: 0.8125rem;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 153.846% */
}
.edit-site-sidebar-navigation-screen__content .components-heading {
color: $gray-700;
font-size: 0.6875rem;
font-style: normal;
font-weight: 600;
line-height: 16px; /* 145.455% */
text-transform: uppercase;
}
.edit-site-sidebar-navigation-item {
border-radius: 4px;
padding: 8px 8px 8px 16px;
align-items: center;
gap: 8px;
align-self: stretch;
width: 348px;
&:hover {
background: #ededed;
color: $gray-600;
}
&:active {
color: #171717;
background: #fcfcfc;
}
&:focus {
color: #171717;
background: #fcfcfc;
border: 1.5px solid var(--wp-admin-theme-color);
}
.components-flex-item {
color: $gray-900;
font-size: 0.8125rem;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 123.077% */
letter-spacing: -0.078px;
}
}
.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
fill: #ccc;
}
.edit-site-save-hub {
border-top: 0;
padding: 32px 29px 32px 35px;
}
}
.woocommerce-customize-store__sidebar-group-header {
color: $gray-900;
font-size: 0.6875rem;
font-style: normal;
font-weight: 600;
line-height: 16px; /* 145.455% */
text-transform: uppercase;
}
.woocommerce-customize-store__sidebar-group {
padding: 0 8px;
.woocommerce-customize-store__sidebar-group-header {
padding: 16px 0;
}
}
button.block-library-site-logo__inspector-upload-container {
margin: 12px 0 32px;
display: flex;
padding: 32px;
justify-content: center;
align-items: center;
gap: $gap;
align-self: stretch;
border-radius: 4px;
background: #f0f0f0;
width: 324px;
height: 88px;
svg {
color: $gray-600;
}
}
.woocommerce-customize-store__sidebar-logo-container {
margin: 12px 0 32px;
width: 324px;
padding: 32px;
cursor: pointer;
}
.woocommerce-customize-store__sidebar-logo-content {
.components-toggle-control {
margin-bottom: 24px;
label {
color: $gray-900;
font-size: 0.8125rem;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 123.077% */
margin-bottom: 0;
}
.components-form-toggle:not(.is-checked) {
.components-form-toggle__track {
background-color: $gray-600;
}
}
.components-form-toggle__thumb {
background-color: #fff;
border-color: #fff;
}
}
.components-range-control {
margin-bottom: 24px;
padding-top: 8px;
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type='number'] {
-moz-appearance: textfield;
}
.components-base-control__label {
text-transform: none;
color: $gray-900;
font-size: 0.8125rem;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 123.077% */
margin-bottom: 8px;
}
.components-input-control__container {
width: 84px;
}
.components-input-control__input {
display: flex;
height: 36px;
align-items: center;
border-radius: 2px;
border: 1px solid $gray-600;
background: #fff;
color: $gray-900;
}
}
.components-base-control__help {
color: $gray-700;
font-size: 0.75rem;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 133.333% */
}
}
/* Preview Canvas */
.edit-site-layout__canvas {
bottom: 16px;
top: 16px;
width: calc(100% - 16px);
}
.edit-site-layout__canvas .components-resizable-box__container {
border-radius: 20px;
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.25), 0 6px 10px 0 rgba(0, 0, 0, 0.02), 0 13px 15px 0 rgba(0, 0, 0, 0.03), 0 15px 20px 0 rgba(0, 0, 0, 0.04);
}
.woocommerce-customize-store__block-editor,
.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas > div .interface-interface-skeleton__content {
border-radius: 20px;
}
.interface-interface-skeleton__content {
@include custom-scrollbars-on-hover(transparent, $gray-600);
}
.edit-site-resizable-frame__inner-content {
border-radius: 20px !important;
}
}