Fix global button colors in Learning Mode (#6990)
This commit is contained in:
parent
55b90168bc
commit
970f13486a
1 changed files with 0 additions and 62 deletions
|
@ -73,47 +73,6 @@ body {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Styles from sensei-course-theme-lesson-actions
|
||||
It was generated from https://github.com/Automattic/sensei/blob/6f93fed0b5f4abc33ddb303a1c36885ba7ca8694/assets/css/sensei-course-theme/buttons.scss#L1
|
||||
TODO: It is already a light version from the original file, but probably is possible to reduce more.
|
||||
*/
|
||||
.sensei-course-theme-lesson-actions .is-primary:not(:hover),
|
||||
.sensei-course-theme-lesson-actions .wp-block-button:not(.is-style-outline, .is-style-link):not(:hover) {
|
||||
background-color: var(--sensei-primary-color) !important;
|
||||
color: var(--sensei-primary-contrast-color);
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .is-primary:hover,
|
||||
.sensei-course-theme-lesson-actions .wp-block-button:not(.is-style-outline, .is-style-link):hover {
|
||||
color: var(--sensei-primary-color);
|
||||
background: none;
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .is-secondary,
|
||||
.sensei-course-theme-lesson-actions .wp-block-button.is-style-outline {
|
||||
color: var(--sensei-primary-color);
|
||||
--wp--custom--button--border--color: var(--sensei-primary-color);
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.sensei-course-theme .is-style-outline .wp-block-button__link {
|
||||
background-color: transparent;
|
||||
border-color: var(--sensei-primary-color);
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .is-secondary:hover:not(:disabled),
|
||||
.sensei-course-theme-lesson-actions .wp-block-button.is-style-outline:hover:not(:disabled)
|
||||
{
|
||||
background-color: var(--sensei-primary-color) !important;
|
||||
color: var(--sensei-primary-contrast-color);
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .is-secondary:hover:not(:disabled) .wp-block-button__link,
|
||||
.sensei-course-theme-lesson-actions .wp-block-button.is-style-outline:hover:not(:disabled) .wp-block-button__link {
|
||||
border-color: var(--sensei-primary-color);
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .is-link {
|
||||
font-weight: 600;
|
||||
text-decoration: underline !important;
|
||||
|
@ -140,27 +99,6 @@ body {
|
|||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .sensei-course-theme__button,
|
||||
.sensei-course-theme-lesson-actions .sensei-course-theme__link,
|
||||
.sensei-course-theme .sensei-course-theme__button,
|
||||
.sensei-course-theme .sensei-course-theme__link,
|
||||
.sensei-course-theme .wp-block-sensei-button .wp-block-button__link {
|
||||
text-decoration: none;
|
||||
border: solid 1px var(--sensei-primary-color);
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
font-size: var(--wp--preset--font-size--small);
|
||||
font-family: var(--wp--custom--button--typography--font-family);
|
||||
border-radius: var(--wp--custom--button--radius);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
font-weight: var(--wp--custom--button--typography--font-weight);
|
||||
letter-spacing: var(--wp--custom--button--typography--letter-spacing);
|
||||
}
|
||||
|
||||
.sensei-course-theme-lesson-actions .sensei-course-theme__button:focus,
|
||||
.sensei-course-theme-lesson-actions .sensei-course-theme__link:focus {
|
||||
outline: dashed 1px var(--sensei-primary-color);
|
||||
|
|
Loading…
Reference in a new issue