woocommerce/assets/css/wc-setup.scss

922 lines
15 KiB
SCSS
Raw Normal View History

body {
margin: 100px auto 24px;
box-shadow: none;
background: #f1f1f1;
padding: 0;
}
#wc-logo {
border: 0;
margin: 0 0 24px;
padding: 0;
text-align: center;
img {
max-width: 50%;
}
}
2015-04-28 11:48:01 +00:00
.wc-setup-content {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
2017-09-21 21:40:30 +00:00
padding: 2em;
2017-05-16 14:36:56 +00:00
margin: 0 0 20px;
background: #fff;
overflow: hidden;
2015-04-17 13:56:34 +00:00
zoom: 1;
h1, h2, h3, table {
margin: 0 0 24px;
border: 0;
padding: 0;
2015-04-20 15:31:54 +00:00
color: #666;
2015-04-28 11:48:01 +00:00
clear: none;
}
p {
2017-09-22 21:56:35 +00:00
margin: 24px 0;
2015-04-20 15:31:54 +00:00
font-size: 1em;
line-height: 1.75em;
color: #666;
}
table {
font-size: 1em;
line-height: 1.75em;
color: #666;
}
a {
color: #a16696;
2015-04-20 15:31:54 +00:00
&:hover, &:focus {
color: #111;
}
}
.form-table {
2015-04-22 14:30:50 +00:00
th {
width: 35%;
vertical-align: top;
font-weight: normal;
}
td {
vertical-align: top;
select, input {
width: 100%;
box-sizing: border-box;
}
input[size] {
width: auto;
}
.description {
line-height: 1.5em;
display: block;
margin-top: 0.25em;
2015-04-22 14:30:50 +00:00
color: #999;
font-style: italic;
}
.input-checkbox, .input-radio {
width: auto;
box-sizing: inherit;
padding: inherit;
margin: 0 0.5em 0 0;
2015-04-22 14:30:50 +00:00
box-shadow: none;
}
}
.section_title {
td {
padding: 0;
h2, p {
margin: 12px 0 0;
}
}
}
th, td {
padding: 12px 0;
margin: 0;
border: 0;
&:first-child {
padding-right: 1em;
}
}
2016-03-31 16:17:11 +00:00
}
table.tax-rates {
width: 100%;
font-size: 0.92em;
2016-03-31 16:17:11 +00:00
th {
padding: 0;
text-align: center;
width: auto;
vertical-align: middle;
}
td {
border: 1px solid #f5f5f5;
padding: 6px;
text-align: center;
vertical-align: middle;
input {
outline: 0;
border: 0;
2015-04-27 15:33:52 +00:00
padding: 0;
2016-03-31 16:17:11 +00:00
box-shadow: none;
2015-04-22 14:30:50 +00:00
text-align: center;
2016-03-31 16:17:11 +00:00
width: 100%;
2015-04-22 14:30:50 +00:00
}
2016-03-31 16:17:11 +00:00
&.sort {
cursor: move;
color: #ccc;
&::before {
content: '\f333';
2015-04-22 14:30:50 +00:00
font-family: 'dashicons';
2015-04-17 13:56:34 +00:00
}
}
2016-03-31 16:17:11 +00:00
&.readonly {
background: #f5f5f5;
}
}
.add {
padding: 1em 0 0 1em;
line-height: 1em;
font-size: 1em;
width: 0;
margin: 6px 0 0;
height: 0;
overflow: hidden;
position: relative;
display: inline-block;
&::before {
content: '\f502';
2016-03-31 16:17:11 +00:00
font-family: 'dashicons';
position: absolute;
left: 0;
top: 0;
}
}
.remove {
padding: 1em 0 0 1em;
line-height: 1em;
font-size: 1em;
width: 0;
margin: 0;
height: 0;
overflow: hidden;
position: relative;
display: inline-block;
&::before {
content: '\f182';
2016-03-31 16:17:11 +00:00
font-family: 'dashicons';
position: absolute;
left: 0;
top: 0;
}
}
}
2015-04-28 11:48:01 +00:00
.wc-setup-pages {
width: 100%;
2015-04-20 15:31:54 +00:00
border-top: 1px solid #eee;
thead th {
display: none;
}
.page-name {
width: 30%;
2015-04-20 15:31:54 +00:00
font-weight: bold;
}
th, td {
2015-04-20 15:31:54 +00:00
padding: 14px 0;
border-bottom: 1px solid #eee;
&:first-child {
padding-right: 9px;
}
}
2015-04-20 15:31:54 +00:00
th {
padding-top: 0;
}
.page-options {
p {
2015-04-22 14:30:50 +00:00
color: #777;
2015-04-20 15:31:54 +00:00
margin: 6px 0 0 24px;
2015-04-22 14:30:50 +00:00
line-height: 1.75em;
input {
vertical-align: middle;
margin: 1px 0 0;
2015-04-22 14:30:50 +00:00
height: 1.75em;
width: 1.75em;
line-height: 1.75em;
}
label {
line-height: 1;
}
2015-04-20 15:31:54 +00:00
}
}
}
@media screen and (max-width: 782px) {
.form-table {
tbody {
th {
width: auto;
}
}
}
}
2015-04-28 11:48:01 +00:00
.twitter-share-button {
float: right;
}
.wc-setup-next-steps {
overflow: hidden;
margin: 0 0 24px;
2017-06-05 13:46:57 +00:00
padding-bottom: 2px;
2015-04-28 11:48:01 +00:00
h2 {
margin-bottom: 12px;
}
.wc-setup-next-steps-first {
float: left;
width: 50%;
box-sizing: border-box;
}
.wc-setup-next-steps-last {
float: right;
width: 50%;
box-sizing: border-box;
}
ul {
2015-06-08 14:25:59 +00:00
padding: 0 2em 0 0;
2015-04-28 11:48:01 +00:00
list-style: none outside;
2017-08-08 17:00:47 +00:00
margin: 0;
2015-04-28 11:48:01 +00:00
li a {
display: block;
padding: 0 0 0.75em;
2015-06-08 14:25:59 +00:00
}
.setup-product {
2017-06-05 13:46:57 +00:00
a.button {
background-color: #f7f7f7;
border-color: #ccc;
color: #23282d;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #ccc;
text-shadow: 1px 0 1px #eee, 0 1px 1px #eee;
2015-06-08 14:25:59 +00:00
font-size: 1em;
height: auto;
line-height: 1.75em;
margin: 0 0 0.75em;
2015-06-08 14:25:59 +00:00
opacity: 1;
padding: 1em;
text-align: center;
2017-06-05 13:46:57 +00:00
&:hover, &:focus, &:active {
background: #f5f5f5;
border-color: #aaa;
}
2017-05-16 14:36:56 +00:00
}
a.button-primary {
2017-06-05 13:46:57 +00:00
color: #fff;
2017-05-16 14:36:56 +00:00
background-color: #bb77ae;
border-color: #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
text-shadow: 0 -1px 1px #a36597, 1px 0 1px #a36597, 0 1px 1px #a36597, -1px 0 1px #a36597;
2016-06-03 11:22:05 +00:00
&:hover, &:focus, &:active {
2017-06-05 13:46:57 +00:00
color: #fff;
background: #a36597;
border-color: #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
2016-06-03 11:22:05 +00:00
}
2015-06-08 14:25:59 +00:00
}
2015-04-28 11:48:01 +00:00
}
li a::before {
2015-04-28 11:48:01 +00:00
color: #82878c;
font: normal 20px/1 'dashicons';
speak: none;
display: inline-block;
padding: 0 10px 0 0;
top: 1px;
position: relative;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none !important;
vertical-align: top;
}
.learn-more a::before {
content: '\f105';
2015-04-28 11:48:01 +00:00
}
.video-walkthrough a::before {
content: '\f126';
2015-04-28 11:48:01 +00:00
}
.newsletter a::before {
content: '\f465';
2015-04-28 11:48:01 +00:00
}
}
}
2017-08-08 17:00:47 +00:00
.woocommerce-newsletter,
.woocommerce-tracker,
.updated {
2015-04-28 11:48:01 +00:00
padding: 24px 24px 0;
margin: 0 0 24px;
2015-08-20 15:03:29 +00:00
overflow: hidden;
2015-04-28 11:48:01 +00:00
background: #f5f5f5;
2015-08-20 15:03:29 +00:00
p {
padding: 0;
margin: 0 0 12px;
}
2017-08-08 17:00:47 +00:00
form,
2015-08-20 15:03:29 +00:00
p:last-child {
margin: 0 0 24px;
2015-08-20 15:03:29 +00:00
}
2017-08-08 17:00:47 +00:00
}
.woocommerce-tracker + .woocommerce-newsletter {
margin-top: -24px;
border-top: 2px dashed #ddd;
2015-04-28 11:48:01 +00:00
}
}
2015-04-28 11:48:01 +00:00
.wc-setup-steps {
padding: 0 0 24px;
margin: 0;
list-style: none outside;
overflow: hidden;
color: #ccc;
width:100%;
display: inline-flex;
li {
width: 20%;
float: left;
padding: 0 0 0.8em;
margin: 0;
text-align: center;
position: relative;
border-bottom: 4px solid #ccc;
line-height: 1.4em;
}
li::before {
content: '';
border: 4px solid #ccc;
border-radius: 100%;
width: 4px;
height: 4px;
position: absolute;
bottom: 0;
left: 50%;
margin-left: -6px;
margin-bottom: -8px;
background: #fff;
}
li.active {
border-color: #a16696;
color: #a16696;
&::before {
border-color: #a16696;
}
}
li.done {
border-color: #a16696;
color: #a16696;
&::before {
border-color: #a16696;
background: #a16696;
}
}
}
2015-04-28 11:48:01 +00:00
.wc-setup .wc-setup-actions {
overflow: hidden;
2015-04-17 13:56:34 +00:00
.button {
2015-04-22 14:30:50 +00:00
font-size: 1.25em;
padding: 0.5em 1em;
line-height: 1em;
margin-right: 0.5em;
2016-06-03 11:22:05 +00:00
margin-bottom: 2px;
height: auto;
2016-06-03 11:22:05 +00:00
border-radius: 4px;
}
2015-04-17 13:56:34 +00:00
.button-primary {
2016-06-03 11:22:05 +00:00
background-color: #bb77ae;
border-color: #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
text-shadow: 0 -1px 1px #a36597, 1px 0 1px #a36597, 0 1px 1px #a36597, -1px 0 1px #a36597;
margin: 0;
opacity: 1;
2016-06-03 11:22:05 +00:00
&:hover, &:focus, &:active {
background: #a36597;
border-color: #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
2016-06-03 11:22:05 +00:00
}
}
2015-06-09 14:54:46 +00:00
}
.wc-setup-content p:last-of-type {
margin-bottom: 0;
}
2015-06-09 14:54:46 +00:00
.wc-return-to-dashboard {
font-size: 0.85em;
color: #b5b5b5;
margin: 1.18em 0;
display: block;
text-align: center;
2015-08-20 15:03:29 +00:00
}
.wc-wizard-storefront {
.wc-wizard-storefront-intro {
padding: 40px 40px 0;
background: #F5F5F5;
text-align: center;
img {
margin: 40px 0 0 0;
width: 100%;
display: block;
}
}
.wc-wizard-storefront-features {
list-style: none outside;
margin: 0 0 20px;
padding: 0 0 0 30px;
overflow: hidden;
}
.wc-wizard-storefront-feature {
margin: 0;
padding: 20px 30px 20px 2em;
width: 50%;
box-sizing: border-box;
&::before {
margin-left: -2em;
position: absolute;
}
&.first {
clear: both;
float: left;
}
&.last {
float: right;
}
}
.wc-wizard-storefront-feature__bulletproof::before {
content: '🔒';
}
.wc-wizard-storefront-feature__mobile::before {
content: '📱';
}
.wc-wizard-storefront-feature__accessibility::before {
content: '👓';
}
.wc-wizard-storefront-feature__search::before {
content: '🔍';
}
.wc-wizard-storefront-feature__compatibility::before {
content: '🔧';
}
.wc-wizard-storefront-feature__extendable::before {
content: '🎨';
}
}
// List of services
.wc-wizard-services {
border: 1px solid #eee;
padding: 0;
margin: 0 0 1em;
list-style: none outside;
border-radius: 4px;
p {
margin: 0 0 1em 0;
padding: 0;
font-size: 1em;
line-height: 1.5em;
}
}
.wc-wizard-service-item, .wc-wizard-services-list-toggle {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
padding: 2em 0;
2017-09-20 19:47:19 +00:00
border-bottom: 1px solid #eee;
color: #666;
2017-09-20 19:47:19 +00:00
&:last-child {
border-bottom: 0;
}
.payment-gateway-fee {
color: #a6a6a6;
}
.wc-wizard-service-name {
flex-basis: 0;
min-width: 175px;
text-align: center;
font-weight: bold;
img {
max-width: 75px;
margin-top: 0.5em;
}
}
.wc-wizard-service-description {
flex-grow: 1;
padding: 0 1em;
}
2017-05-31 11:00:10 +00:00
.wc-wizard-service-enable {
flex-basis: 0;
min-width: 75px;
text-align: center;
}
.wc-wizard-service-toggle {
height: 16px;
width: 32px;
border: 2px solid #935687;
background-color: #935687;
display: inline-block;
text-indent: -9999px;
border-radius: 10em;
position: relative;
input[type=checkbox] {
display: none;
}
&:before {
content: "";
display: block;
width: 16px;
height: 16px;
background: #fff;
position: absolute;
top: 0;
right: 0;
border-radius: 100%;
}
&.disabled {
border-color: #999;
background-color: #999;
&:before {
right: auto;
left: 0;
}
}
}
.wc-wizard-service-settings {
display: none;
margin-bottom: 0;
cursor: default;
}
&.checked {
.wc-wizard-service-settings {
display: inline-block;
}
}
&.closed {
border-bottom: 0;
}
}
// Toggle display a list of services
.wc-wizard-service-enable input {
visibility: hidden;
position: relative;
&:before {
content: "\f347"; // down chevron
font-family: "dashicons";
visibility: initial;
color: #666;
font-size: 25px;
margin-left: -5px; // center it
top: -6px;
position: absolute;
}
}
.wc-wizard-service-enable input:checked {
&:before {
content: "\f343"; // up chevron
top: -7px;
}
}
.wc-wizard-services.manual .wc-wizard-service-item {
display: none;
}
2017-09-20 19:47:19 +00:00
// Shipping list of services
2017-09-20 19:47:19 +00:00
.wc-wizard-services.shipping {
.wc-wizard-service-name {
font-weight: normal;
text-align: left;
}
// List header
.wc-wizard-service-item {
padding-left: 2em;
&:first-child {
border-bottom: 0;
padding-bottom: 0;
font-weight: 700;
.wc-wizard-service-name {
font-weight: 700;
}
}
}
.wc-wizard-shipping-method-select,
.shipping-method-setting {
display: flex;
&.hide {
display: none;
}
}
.wc-wizard-shipping-method-dropdown,
.shipping-method-setting input {
margin-right: 2em;
margin-bottom: 1em;
.select2 {
min-width: 130px;
}
}
.wc-wizard-service-description {
display: flex;
flex-direction: column;
color: #a6a6a6;
font-size: 0.92em;
}
.shipping-method-setting {
input {
width: 95px; // match dropdown height
border: 1px solid #aaa;
border-color: #ddd;
border-radius: 4px;
height: 28px;
padding-left: 8px;
padding-right: 24px;
font-size: 14px;
color: #444;
background-color: #fff;
display: inline-block;
}
}
.shipping-method-description,
.shipping-method-setting .description {
color: #7e7e7e;
}
.shipping-method-setting input::placeholder {
color: #e1e1e1;
}
}
.wc-setup-shipping-units {
p {
line-height: 1.5em;
font-size: 14px;
margin-bottom: 0.25em;
}
.wc-setup-shipping-unit {
margin-bottom: 1.75em;
.select2 {
min-width: 100%; // widen dropdowns
}
}
}
.hide {
display: none;
2017-09-20 19:47:19 +00:00
}
.wc-wizard-features {
display: flex;
flex-wrap: wrap;
list-style: none;
.wc-wizard-feature-item {
flex-basis: calc( 50% - 4em - 3px); // two columns, account for padding and borders
border: 1px solid #eee;
padding: 2em;
}
.wc-wizard-feature-item:nth-child(1) {
border-radius: 4px 0 0 0;
}
.wc-wizard-feature-item:nth-child(2) {
border-left: 0;
border-radius: 0 4px 0 0;
}
.wc-wizard-feature-item:nth-child(3) {
border-top: 0;
border-radius: 0 0 0 4px;
}
.wc-wizard-feature-item:nth-child(4) {
border-top: 0;
border-left: 0;
border-radius: 0 0 4px 0;
}
p.wc-wizard-feature-name,
p.wc-wizard-feature-description {
margin: 0;
}
}
h3.jetpack-reasons {
text-align: center;
margin: 3em 0 1em 0;
font-size: 14px;
}
2017-09-21 21:39:47 +00:00
.jetpack-logo {
display: block;
margin: 1.75em auto 2em auto;
max-height: 175px;
}
2017-09-21 21:40:17 +00:00
.step {
text-align: center;
}
2017-09-25 21:42:08 +00:00
.wc-setup .wc-setup-actions .button {
2017-09-21 21:40:17 +00:00
font-weight: 300;
font-size: 18px;
padding: 1em;
box-shadow: none;
min-width: 12em;
min-width: auto;
2017-09-21 21:40:17 +00:00
&:focus,
&:hover,
&:active {
box-shadow: none;
}
}
2017-09-22 21:56:35 +00:00
.location-prompt {
color: #666;
font-size: 14px;
font-weight: bold;
margin-bottom: 0.5em;
margin-top: 1em;
display: inline-block;
}
.location-input {
border: 1px solid #aaa;
border-color: #ddd;
border-radius: 4px;
height: 30px;
width: calc(100% - 8px - 24px - 2px); // account for padding, border to align with other elements
padding-left: 8px;
padding-right: 24px;
font-size: 16px;
color: #444;
background-color: #fff;
display: inline-block;
&.dropdown {
width: 100%;
}
}
.address-step {
.select2 {
min-width: 100%; // widen currency, product type dropdowns
}
}
.store-address-container {
margin-bottom: 1em;
.city-and-postcode {
display: flex;
div {
flex-basis: 50%;
margin-right: 1em;
&:last-of-type {
margin-right: 0;
}
}
}
}
.wc-wizard-service-settings {
.payment-email-input {
border: 1px solid #aaa;
border-color: #ddd;
border-radius: 4px;
height: 30px;
padding: 0 8px;
font-size: 14px;
color: #444;
background-color: #fff;
display: inline-block;
}
}
2017-09-25 12:19:36 +00:00
.newsletter-form-container {
display: flex;
.newsletter-form-email {
border: 1px solid #aaa;
border-color: #ddd;
border-radius: 4px;
height: 42px;
padding: 0 8px;
font-size: 16px;
color: #666;
background-color: #fff;
display: inline-block;
margin-right: 6px;
flex-grow: 1;
}
.newsletter-form-button-container {
flex-grow: 0;
}
}
.wc-setup .wc-setup-actions .button.newsletter-form-button {
height: 42px;
padding: 0 1em;
margin: 0;
2017-09-25 12:19:36 +00:00
}
2017-09-25 21:42:08 +00:00
.wc-wizard-next-steps {
border: 1px solid #eee;
border-radius: 4px;
list-style: none;
padding: 0;
li {
padding: 0;
}
.wc-wizard-next-step-item {
display: flex;
border-top: 1px solid #eee;
&:first-child {
border-top: 0;
}
}
.wc-wizard-next-step-description {
flex-grow: 1;
margin: 1.5em;
}
.wc-wizard-next-step-action {
flex-grow: 0;
display: flex;
align-items: center;
.button {
margin: 1em;
}
}
p {
&.next-step-heading {
margin: 0;
font-size: 0.95em;
font-weight: 400;
font-variant: all-petite-caps;
}
&.next-step-extra-info {
margin: 0;
}
}
h3 {
&.next-step-description {
margin: 0;
font-size: 18px;
font-weight: 600;
}
}
}
2017-09-25 21:46:11 +00:00
p.next-steps-help-text {
color: #9f9f9f;
padding: 0 2em;
text-align: center;
}
2017-09-27 19:48:33 +00:00
p.jetpack-terms {
font-size: .8em;
text-align: center;
max-width: 480px;
margin: 0 auto;
line-height: 1.5em;
}