/*------------------------------------------------------------------------------ General table styling ------------------------------------------------------------------------------*/ $white: #ffffff; // Primary Accent (Blues) $blue-wordpress: #0087be; $woo_pink2: #78dcfa; $woo_pink1: #00aadc; $blue-dark: #005082; // Jetpack Green $green-jetpack: #8cc258; // Grays $gray: #87a6bc; $gray-light: lighten( $gray, 33% ); //#f3f6f8 $gray-dark: darken( $gray, 38% ); //#2e4453 // $gray-text: ideal for standard, non placeholder text // $gray-text-min: minimum contrast needed for WCAG 2.0 AA on white background $gray-text: $gray-dark; $gray-text-min: darken( $gray, 18% ); //#537994 $woo_pink1: #955a89; $woo_pink2: #bb77ae; $color_text_blue: #0073AA; $color_button_primary: $woo_pink1; $color_button_secondary: $woo_pink2; /*------------------------------------------------------------------------------ Tab navigation ------------------------------------------------------------------------------*/ .wc-helper{ .nav-tab-wrapper{ margin-bottom: 22px; } @media only screen and (max-width : 784px) { .nav-tab{ max-width: 40%; overflow: hidden; text-overflow: ellipsis; } } } /*------------------------------------------------------------------------------ Buttons ------------------------------------------------------------------------------*/ .wc-helper{ .button, .button:hover{ background-color: $color_button_primary; border-width: 0; box-shadow: none; border-radius: 3px; color: #fff; height: auto; padding: 3px 14px; text-align: center; white-space: normal !important; @media only screen and (max-width : 782px) { line-height: 2; } } .button:hover{ opacity: 0.8; } .button.button-secondary{ background-color: #e6e6e6; color: #3c3c3c; text-shadow: none; } } .wc-helper .subscription-filter{ color: #2E4453; font-size: 13px; line-height: 13px; margin: 22px 0; label{ display: none; position: relative; .chevron{ color: #E1E1E1; line-height: 1; position: absolute; top: 12px; right: 12px; border-bottom-width: 0; padding: 0; } } span{ font-weight: bold; padding-right: 4px; } a{ position: relative; color: #0073AA; display: inline-block; padding: 0 4px 0 8px; text-decoration: none; &:before{ background-color: #979797; content: " "; position: absolute; top: 0; left: 0; bottom: 0; width: 1px; } } @media only screen and (max-width : 600px) { background-color: #fff; border: 1px solid #E1E1E1; border-radius: 2px; font-size: 14px; label, span, a{ border-bottom: 1px solid #E1E1E1; line-height: 2; padding: 8px 16px; margin: 0; } label, span.chevron{ display: block; } span, a{ display: none; } a{ cursor: pointer; &::before{ display: none; } } span.chevron{ transform: rotateX(0deg); } &:focus,&:hover{ span, a{ display: block; } span.chevron{ transform: rotateX(0deg); } } } } /*------------------------------------------------------------------------------ Subscripton table ------------------------------------------------------------------------------*/ .wc-helper { .striped > tbody > :nth-child(odd), ul.striped > :nth-child(odd), .alternate { background-color: #ffffff; } table.widefat, .wp-editor-container, .stuffbox, p.popular-tags, .widgets-holder-wrap, .popular-tags, .feature-filter, .imgedit-group, .comment-ays { padding-top: 5px; } .widefat thead tr th, .widefat thead tr td, .widefat tfoot tr th, .widefat tfoot tr td { color: #32373c; padding-top: 10px; padding-bottom: 15px; } .widefat td { //border-bottom: 1px solid #e5e5e5; padding-top: 15px; padding-bottom: 15px; } .wp-list-table{ padding-top: 0 !important; border: 0; } .button{ @media only screen and (max-width : 782px) { font-size: 11px; } } .wp-list-table__row{ background-color: rgba(0,0,0,0); td{ background-color: #fff; border: 0px; //border-top: 1px solid #e5e5e5; padding: 16px 22px; vertical-align: middle; @media only screen and (max-width : 782px) { padding: 16px; } } td.color-bar{ border-left: 0; } &.is-ext-header{ td{ border-top: 1px solid #E1E1E1; } @media only screen and (max-width : 782px) { display: inline-flex; flex-flow: row wrap; width: 100%; .wp-list-table__ext-details{ flex: 2; display: block; } .wp-list-table__ext-actions{ display: block; flex: 1; min-width: 0; } } } &:last-child td{ border-bottom: 6px solid #F1F1F1; box-shadow: inset 0 -1px 0 #E1E1E1; } } .wp-list-table__ext-details, .wp-list-table__ext-status{ border-left: 1px solid #E1E1E1 !important; padding-right: 22px; width: 100%; } .wp-list-table__ext-details{ display: flex; @media only screen and (max-width : 782px) { display: table; } } .wp-list-table__ext-title{ color: $color_text_blue; font-size: 18px; font-weight: 784; width: 60%; @media only screen and (max-width : 782px) { margin-bottom: 12px; width: 100%; } } .wp-list-table__ext-description { color: #333; width: 40%; @media only screen and (max-width : 782px) { width: 100%; } } .wp-list-table__ext-status { position: relative; &.update-available:after{ content: " "; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background-color: #FFC322; } &.expired:after{ content: " "; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background-color: #B81C23; } .dashicons-update{ color: #FFC322; } .dashicons-info{ color: #B81C23; } p{ color: #333333; margin: 0; } .dashicons{ margin-right: 5px; } } .wp-list-table__ext-actions{ border-right: 1px solid #E1E1E1 !important; min-width: 150px; width: 25%; text-align: right; } .wp-list-table__ext-updates { td{ position: relative; &:before { content: " "; position: absolute; top: 0; left: 0; right: 0; height: 1px; background-color: #E1E1E1; } } td.wp-list-table__ext-status:before { left: 22px; } td.wp-list-table__ext-actions:before { right: 22px; } @media only screen and (max-width : 782px) { display: flex; .wp-list-table__ext-status{ flex: 2; &::before{ left: 0 !important; width: 100% !important; } } .wp-list-table__ext-actions{ flex: 1; min-width: 0; &::before{ right: 0 !important; left: 0 !important; width: 100% !important; } } } } } /*------------------------------------------------------------------------------ Expired notification bar ------------------------------------------------------------------------------*/ .wc-helper { td.color-bar { border-left: solid 4px transparent; } td.color-bar.expired { border-left-color: #B81C23; } td.color-bar.expiring { border-left-color: orange; } td.color-bar.update-available { border-left-color: #8FAE1B; } td.color-bar.expiring.update-available { border-left-color: #8FAE1B; } } /*------------------------------------------------------------------------------ Connected account table ------------------------------------------------------------------------------*/ .wc-helper { .connect-wrapper { background-color: #fff; margin-bottom: 25px; border: 1px solid #e5e5e5; overflow: auto; } .connected { display: flex; .user-info{ display: flex; padding: 20px; width: 100%; vertical-align: middle; } img { border: 1px solid #e5e5e5; height: 34px; width: 34px; } .buttons{ padding: 20px; white-space: nowrap; } p { flex: 2; margin: 10px 0 0 20px; } .chevron{ display: none; &:hover{ cursor: pointer; color: $woo_pink1; } } @media only screen and (max-width : 784px) { display: block; strong{ display: block; overflow: hidden; text-overflow: ellipsis; } p{ margin: 0; overflow: hidden; text-overflow: ellipsis; width: 80%; } .user-info{ padding-right: 0; width: auto; } .avatar{ margin-right: 12px; } .chevron{ display: block; color: #E1E1E1; margin: 10px; transform: rotateX(0deg); } .buttons{ border-top: 1px solid #E1E1E1; padding: 10px 20px; display: none; &.active{ display: block; .chevron{ } } } } } } /*------------------------------------------------------------------------------ Initial connection screen ------------------------------------------------------------------------------*/ .wc-helper { .start-container { background-color: #ffffff; padding: 45px 20px 20px 30px; position: relative; overflow: hidden; border-left: 4px solid #cc99c2; } .start-container::before { content: "\e01C"; font-family: WooCommerce; text-align: center; line-height: 1; color: #eee2ec; display: block; width: 1em; font-size: 192px; top: 65%; right: -3%; position: absolute; } .start-container h2 { font-size: 24px; line-height: 29px; position: relative; } .start-container p { font-size: 16px; margin-bottom: 30px; position: relative; } .wp-core-ui .button-primary { background: #bb77ae; border-color: #A36597; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; color: #fff; text-shadow: 0 -1px 1px #A36597, 1px 0 1px #A36597, 0 1px 1px #A36597, -1px 0 1px #A36597; } .wp-core-ui a.button-primary:hover { background: #A36597; border-color: #A36597; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; } .wp-core-ui a.button-primary:focus { background: #A36597; border-color: #A36597; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; } .wp-core-ui a.button-primary:active { background: #A36597; border-color: #A36597; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #A36597; } } // ========================================================================== // FormToggle // ========================================================================== .form-toggle[type="checkbox"] { display: none; } .form-toggle__switch { position: relative; display: inline-block; border-radius: 12px; box-sizing: border-box; padding: 2px; width: 40px; height: 24px; vertical-align: middle; align-self: flex-start; outline: 0; cursor: pointer; transition: all .4s ease, box-shadow 0s; &:before, &:after { position: relative; display: block; content: ""; width: 20px; height: 20px; } &:after { left: 0; border-radius: 50%; background: $white; transition: all .2s ease; } &:before { display: none; } .accessible-focus &:focus{ box-shadow: 0 0 0 2px $woo_pink1; } } .form-toggle__label { cursor: pointer; .is-disabled & { cursor: default; } .form-toggle__label-content { flex: 0 1 100%; margin-left: 12px; color: #87a6bc; font-size: 13px; line-height: 16px; margin-right: 8px; vertical-align: top; text-transform: uppercase; cursor: pointer; @media only screen and (max-width : 480px) { display: none; } } } .form-toggle { .accessible-focus &:focus { + .form-toggle__label .form-toggle__switch { box-shadow: 0 0 0 2px $woo_pink1; } &:checked + .form-toggle__label .form-toggle__switch { box-shadow: 0 0 0 2px $woo_pink2; } } & + .form-toggle__label .form-toggle__switch { background: lighten( $gray, 10% ); } &:not( :disabled ) { + .form-toggle__label:hover .form-toggle__switch { background: lighten( $gray, 20% ); } } &:checked{ + .form-toggle__label .form-toggle__switch { background: $woo_pink1; &:after { left: 16px; } } } &:checked:not( :disabled ) { + .form-toggle__label:hover .form-toggle__switch { background: $woo_pink2; } } &:disabled { + label.form-toggle__label span.form-toggle__switch { opacity: 0.25; cursor: default; } } } // Classes for toggle state before action is complete (updating plugin or something) .form-toggle.is-toggling { + .form-toggle__label .form-toggle__switch { background: $woo_pink1; } &:checked { + .form-toggle__label .form-toggle__switch { background: lighten( $gray, 20% ); } } } .form-toggle.is-compact { + .form-toggle__label .form-toggle__switch { border-radius: 8px; width: 24px; height: 16px; &:before, &:after { width: 12px; height: 12px; } } &:checked { + .form-toggle__label .form-toggle__switch { &:after{ left: 8px; } } } }