2018-08-06 15:30:43 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
// By using CSS variables, we can switch the spacing rhythm using a single media query.
|
|
|
|
:root {
|
2018-08-08 22:11:54 +00:00
|
|
|
--large-gap: 40px;
|
2018-08-06 15:30:43 +00:00
|
|
|
--main-gap: 24px;
|
|
|
|
}
|
2018-11-02 19:20:11 +00:00
|
|
|
@media (max-width: 960px) {
|
2018-08-08 22:11:54 +00:00
|
|
|
:root {
|
|
|
|
--large-gap: 24px;
|
|
|
|
}
|
|
|
|
}
|
2018-08-06 15:30:43 +00:00
|
|
|
@media (max-width: 782px) {
|
|
|
|
:root {
|
2018-08-08 22:11:54 +00:00
|
|
|
--large-gap: 16px;
|
2018-08-06 15:30:43 +00:00
|
|
|
--main-gap: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set up animation
|
|
|
|
@keyframes loading-fade {
|
|
|
|
0% {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
2018-08-13 15:25:32 +00:00
|
|
|
|
|
|
|
.woocommerce-layout {
|
|
|
|
a:link,
|
|
|
|
a:visited,
|
|
|
|
.components-button.is-link {
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-pink;
|
2018-08-13 15:25:32 +00:00
|
|
|
}
|
|
|
|
|
2018-09-03 02:08:13 +00:00
|
|
|
a.components-button.is-button {
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-white;
|
2018-09-03 02:08:13 +00:00
|
|
|
}
|
|
|
|
|
2018-08-13 15:25:32 +00:00
|
|
|
a:hover,
|
|
|
|
a:active,
|
|
|
|
a:focus,
|
|
|
|
.components-button.is-link:hover,
|
|
|
|
.components-button.is-link:active,
|
|
|
|
.components-button.is-link:focus {
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-pink;
|
2018-08-13 15:25:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a:focus {
|
2019-08-29 16:07:56 +00:00
|
|
|
box-shadow: 0 0 0 1px $studio-pink, 0 0 2px 1px rgba($studio-pink, 0.8);
|
2018-08-13 15:25:32 +00:00
|
|
|
}
|
Add loading indicators, error state, and EmptyContent to the revenue report. (#347, woocommerce/woocommerce-admin#348)
* Add loading indiciators for the revenue report.
* Improve accessibility, and fix up some documentation comments.
* Fix top border on mobile
* Add EmptyContent Component and revenue error/empty states. (https://github.com/woocommerce/woocommerce-admin/pull/348)
* Add EmptyContent Component and revenue error/empty states.
* Move relative image handling to ImageAsset, combine secondary and primary action rendering, add some missing isRequired proptypes, add empty error handling.
* Handle PR Feedback: Clean up button css, set a default for illustration, fix deprecation typo, some code cleanup.
2018-09-05 16:45:49 +00:00
|
|
|
|
|
|
|
.components-button.is-button.is-primary {
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-white;
|
2019-10-23 18:18:32 +00:00
|
|
|
box-shadow: none;
|
Add loading indicators, error state, and EmptyContent to the revenue report. (#347, woocommerce/woocommerce-admin#348)
* Add loading indiciators for the revenue report.
* Improve accessibility, and fix up some documentation comments.
* Fix top border on mobile
* Add EmptyContent Component and revenue error/empty states. (https://github.com/woocommerce/woocommerce-admin/pull/348)
* Add EmptyContent Component and revenue error/empty states.
* Move relative image handling to ImageAsset, combine secondary and primary action rendering, add some missing isRequired proptypes, add empty error handling.
* Handle PR Feedback: Clean up button css, set a default for illustration, fix deprecation typo, some code cleanup.
2018-09-05 16:45:49 +00:00
|
|
|
|
2019-02-11 12:54:40 +00:00
|
|
|
&:not(:disabled) {
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2019-10-23 18:18:32 +00:00
|
|
|
box-shadow: none;
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-white;
|
2019-02-11 12:54:40 +00:00
|
|
|
}
|
|
|
|
}
|
Add loading indicators, error state, and EmptyContent to the revenue report. (#347, woocommerce/woocommerce-admin#348)
* Add loading indiciators for the revenue report.
* Improve accessibility, and fix up some documentation comments.
* Fix top border on mobile
* Add EmptyContent Component and revenue error/empty states. (https://github.com/woocommerce/woocommerce-admin/pull/348)
* Add EmptyContent Component and revenue error/empty states.
* Move relative image handling to ImageAsset, combine secondary and primary action rendering, add some missing isRequired proptypes, add empty error handling.
* Handle PR Feedback: Clean up button css, set a default for illustration, fix deprecation typo, some code cleanup.
2018-09-05 16:45:49 +00:00
|
|
|
}
|
2019-08-29 16:07:56 +00:00
|
|
|
|
2019-11-07 16:00:38 +00:00
|
|
|
.components-button.is-button.is-default:not(.is-primary) {
|
2019-10-23 18:18:32 +00:00
|
|
|
color: $gray-text;
|
|
|
|
border-color: $button-border;
|
|
|
|
background: $button;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
color: $gray-text;
|
|
|
|
background: $button-hover;
|
|
|
|
border-color: $button-hover-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 16:00:38 +00:00
|
|
|
.components-button.is-default:disabled:not(.is-primary) {
|
2019-10-23 18:18:32 +00:00
|
|
|
color: $button-disabled;
|
|
|
|
border-color: $button-disabled-border;
|
|
|
|
background: $button;
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
color: $button-disabled;
|
|
|
|
border-color: $button-disabled-border;
|
|
|
|
background: $button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-29 16:07:56 +00:00
|
|
|
input:focus,
|
|
|
|
select:focus,
|
|
|
|
button:focus {
|
|
|
|
border-color: $studio-woocommerce-purple-60;
|
|
|
|
box-shadow: 0 0 2px rgba($studio-woocommerce-purple-60, 0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type='checkbox'] {
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type='checkbox'],
|
|
|
|
input[type='radio'] {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
min-width: 18px;
|
|
|
|
border: 2px solid $studio-gray-50;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $studio-woocommerce-purple-60;
|
|
|
|
box-shadow: 0 0 0 1px $studio-woocommerce-purple-60,
|
|
|
|
0 0 2px 1px rgba($studio-woocommerce-purple-60, 0.8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type='checkbox']:checked,
|
|
|
|
input[type='radio']:checked {
|
|
|
|
background-color: $studio-woocommerce-purple-60;
|
|
|
|
border-color: $studio-woocommerce-purple-60;
|
|
|
|
}
|
|
|
|
|
2019-10-25 13:05:44 +00:00
|
|
|
input[type='checkbox']:focus:checked {
|
|
|
|
border: 2px solid $studio-woocommerce-purple-60;
|
2019-08-29 16:07:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type='radio']:checked::before {
|
|
|
|
font-size: 18px;
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-top: 4px;
|
|
|
|
background-color: $studio-white;
|
|
|
|
}
|
2019-10-25 13:05:44 +00:00
|
|
|
|
|
|
|
input[type='checkbox']:checked::before,
|
|
|
|
.muriel-checkbox input[type='checkbox']:checked::before {
|
|
|
|
font-size: 16px;
|
|
|
|
color: $studio-white;
|
|
|
|
content: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($studio-white)}%27%2F%3E%3C%2Fsvg%3E');
|
|
|
|
margin-left: -2px;
|
|
|
|
margin-top: 0;
|
|
|
|
height: 18px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.muriel-checkbox input[type='checkbox']:checked::before {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
position: absolute;
|
|
|
|
left: 1px;
|
|
|
|
top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.muriel-input-text input {
|
|
|
|
min-height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.muriel-input-text.with-value input {
|
|
|
|
top: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.muriel-checkbox .components-base-control__field {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
2018-08-13 15:25:32 +00:00
|
|
|
}
|
2019-10-28 01:47:29 +00:00
|
|
|
|
|
|
|
body.woocommerce-page {
|
|
|
|
.components-button.is-button.is-primary {
|
|
|
|
color: $studio-white;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $studio-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|