2018-05-14 13:41:30 +00:00
|
|
|
/** @format */
|
|
|
|
|
2018-07-16 13:53:38 +00:00
|
|
|
// By using CSS variables, we can switch the spacing rhythm using a single media query
|
|
|
|
:root {
|
|
|
|
--main-gap: 24px;
|
|
|
|
}
|
|
|
|
@media (max-width: 782px) {
|
|
|
|
:root {
|
|
|
|
--main-gap: 16px;
|
|
|
|
}
|
|
|
|
}
|
2018-05-14 13:41:30 +00:00
|
|
|
|
2018-07-16 13:53:38 +00:00
|
|
|
// css resets some wp-admin specific rules so that the app fits better in the extension container
|
2018-05-14 13:41:30 +00:00
|
|
|
.woocommerce-page {
|
|
|
|
.wrap {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2018-05-18 17:31:08 +00:00
|
|
|
#wpcontent,
|
|
|
|
#wpbody-content {
|
2018-05-14 13:41:30 +00:00
|
|
|
padding: 0;
|
2018-05-18 17:31:08 +00:00
|
|
|
overflow-x: hidden !important;
|
2018-05-15 19:26:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
// WP breakpoint for mobile menu
|
|
|
|
.wp-responsive-open #wpbody {
|
|
|
|
right: -14.5em;
|
|
|
|
}
|
|
|
|
}
|
2018-05-22 19:59:32 +00:00
|
|
|
|
|
|
|
@include breakpoint( '>960px' ) {
|
|
|
|
#toplevel_page_woocommerce.menu-top > a:focus,
|
2018-07-10 12:48:06 +00:00
|
|
|
#toplevel_page_wcadmin--analytics.menu-top > a:focus {
|
2018-05-22 19:59:32 +00:00
|
|
|
padding-bottom: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-has-current-submenu:after {
|
|
|
|
right: 0;
|
|
|
|
border: 8px solid transparent;
|
|
|
|
content: ' ';
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
border-right-color: #f1f1f1;
|
|
|
|
top: 0;
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
@include breakpoint( '<960px' ) {
|
|
|
|
border-width: 4px;
|
|
|
|
margin-top: 14px;
|
|
|
|
}
|
|
|
|
}
|
2018-05-14 13:41:30 +00:00
|
|
|
}
|
|
|
|
|
2018-06-26 14:49:42 +00:00
|
|
|
.woocommerce-embed-page {
|
|
|
|
#wpcontent,
|
|
|
|
#wpbody-content {
|
|
|
|
overflow-x: initial !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#wpbody-content .notice {
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wrap {
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#screen-meta {
|
|
|
|
border-right: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notice {
|
|
|
|
margin: 5px 15px 2px;
|
|
|
|
padding: 1px 12px;
|
|
|
|
}
|
|
|
|
|
2018-07-13 19:19:54 +00:00
|
|
|
.woocommerce-layout__header {
|
|
|
|
&.is-scrolled {
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(85, 93, 102, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-layout__header-breadcrumbs {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Hides screen meta and links when notices are open since the elements get moved around.
|
|
|
|
* The !important overwrites an inline wp-admin style.
|
|
|
|
*/
|
|
|
|
#screen-meta.is-hidden-by-notices,
|
|
|
|
#screen-meta-links.is-hidden-by-notices {
|
|
|
|
display: none !important;
|
2018-06-26 14:49:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-layout__primary {
|
|
|
|
margin: 0;
|
2018-06-29 15:20:08 +00:00
|
|
|
padding-top: 80px;
|
|
|
|
|
|
|
|
@include breakpoint( '782px-1100px' ) {
|
|
|
|
padding-top: 60px;
|
|
|
|
}
|
2018-07-09 15:46:31 +00:00
|
|
|
}
|
2018-06-26 14:49:42 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-layout * {
|
2018-05-18 17:31:08 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2018-06-26 14:49:42 +00:00
|
|
|
.woocommerce-layout__notice-list-hide {
|
2018-06-04 14:25:41 +00:00
|
|
|
opacity: 0;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2018-06-26 14:49:42 +00:00
|
|
|
.woocommerce-layout__notice-list-show {
|
2018-06-04 14:25:41 +00:00
|
|
|
opacity: 1;
|
|
|
|
height: auto;
|
2018-06-29 15:20:08 +00:00
|
|
|
transition: opacity 1s ease-in-out;
|
|
|
|
margin-top: 100px;
|
2018-06-26 14:49:42 +00:00
|
|
|
|
|
|
|
&.has-screen-meta-links {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-06-29 15:20:08 +00:00
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
margin-top: 115px;
|
|
|
|
}
|
2018-06-26 14:49:42 +00:00
|
|
|
}
|
|
|
|
|
2018-06-29 15:20:08 +00:00
|
|
|
.woocommerce-embed-page {
|
|
|
|
.woocommerce-layout__notice-list-show {
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
|
|
@include breakpoint( '<600px' ) {
|
|
|
|
margin-top: 80px;
|
|
|
|
margin-bottom: -16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint( '600px-782px' ) {
|
|
|
|
margin-top: 32px;
|
|
|
|
}
|
|
|
|
}
|
2018-06-26 14:49:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#wp__notice-list-uncollapsed {
|
|
|
|
visibility: hidden;
|
|
|
|
margin: -2px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#wp__notice-list {
|
2018-06-29 15:20:08 +00:00
|
|
|
padding-right: 20px;
|
2018-06-04 14:25:41 +00:00
|
|
|
}
|
|
|
|
|
2018-06-26 14:49:42 +00:00
|
|
|
.woocommerce-layout__notice-list .jitm-card {
|
|
|
|
margin: 5px 15px 2px;
|
|
|
|
padding: 1px 12px;
|
2018-05-14 13:41:30 +00:00
|
|
|
}
|
2018-05-18 17:31:08 +00:00
|
|
|
|
|
|
|
#wpfooter {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-05-23 16:40:10 +00:00
|
|
|
|
2018-07-09 15:46:31 +00:00
|
|
|
.wp-responsive-open {
|
|
|
|
.woocommerce-layout__header {
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
.woocommerce-layout__activity-panel-wrapper.is-open,
|
|
|
|
.woocommerce-layout__activity-panel-tabs {
|
|
|
|
width: calc(100vw - 190px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint( '<600px' ) {
|
|
|
|
#wpadminbar,
|
|
|
|
.jetpack-masterbar #wpadminbar {
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-23 16:40:10 +00:00
|
|
|
// Temporary fix for compability with the Jetpack masterbar
|
|
|
|
// See https://github.com/Automattic/jetpack/issues/9608
|
|
|
|
// !important rules overwrite some existing !important rules
|
|
|
|
.jetpack-masterbar {
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
&.wp-admin .wrap h1 {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#wpadminbar li.menupop.my-sites {
|
|
|
|
margin-left: 55px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#wpadminbar #wp-admin-bar-menu-toggle {
|
|
|
|
top: -5px;
|
|
|
|
left: -5px;
|
|
|
|
width: 60px;
|
|
|
|
|
|
|
|
.ab-icon:before {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 0 8px 4px 8px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
background: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle {
|
|
|
|
left: -5px;
|
|
|
|
width: 60px;
|
|
|
|
|
|
|
|
.ab-icon:before {
|
|
|
|
color: $white !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
background: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|