Changeset 11058 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/css/components/_favorite-button.scss
- Timestamp:
- 06/24/2021 05:19:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/css/components/_favorite-button.scss
r11023 r11058 5 5 width: 2.25rem; 6 6 border-radius: 2px; 7 color: $color__text;7 color: color(gray-60); 8 8 9 9 svg { … … 16 16 17 17 path { 18 fill: $color-gray-300;18 fill: color(gray-60); 19 19 } 20 20 } 21 21 22 .pattern __favorite-filled {22 .pattern-favorite-button__filled { 23 23 opacity: 0; 24 24 } 25 25 26 26 &:hover { 27 color: $color__text;27 color: color(gray-60); 28 28 background: transparent; 29 29 30 30 svg path { 31 fill: $color__text;31 fill: color(gray-60); 32 32 } 33 } 34 35 &:focus { 36 box-shadow: 37 inset 0 0 0 1px #fff, 38 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); 33 39 } 34 40 … … 54 60 } 55 61 62 &:not(.has-label) { 63 background-color: $color-white; 64 box-shadow: 0 1px 2px rgba($color-black, 0.15); 65 66 &:hover { 67 background: color(gray-2); 68 } 69 70 &:focus { 71 box-shadow: 72 inset 0 0 0 1px #fff, 73 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); 74 } 75 } 76 56 77 &.is-favorited { 57 78 svg path { 58 fill: $color-alert-red;79 fill: color(red-40); 59 80 } 60 81 61 .pattern __favorite-outline {82 .pattern-favorite-button__outline { 62 83 opacity: 0; 63 84 transform: scale(2.8); 64 85 } 65 86 66 .pattern __favorite-filled {87 .pattern-favorite-button__filled { 67 88 opacity: 1; 68 89 } 69 90 70 &:hover .pattern __favorite-filled {91 &:hover .pattern-favorite-button__filled { 71 92 animation: 0.9s infinite HeartBeat; 72 93 … … 75 96 } 76 97 } 98 } 99 } 100 101 .pattern-favorite-button-small { 102 height: auto; 103 104 &:hover { 105 background: transparent; 106 } 107 108 &:focus { 109 background: transparent; 110 outline: 1px dotted currentColor; 111 box-shadow: none; 112 } 113 114 &.is-favorited svg path { 115 fill: color(red-40); 77 116 } 78 117 }
Note: See TracChangeset
for help on using the changeset viewer.