| 1 |
#wpadminbar { |
| 2 |
#wp-admin-bar-code-snippets > .ab-item { |
| 3 |
.code-snippets-admin-bar-icon { |
| 4 |
inline-size: 16px; |
| 5 |
block-size: 16px; |
| 6 |
inset-block-start: 5px; |
| 7 |
|
| 8 |
&::before { |
| 9 |
content: ''; |
| 10 |
display: block; |
| 11 |
inline-size: 16px; |
| 12 |
block-size: 16px; |
| 13 |
mask-image: url('../assets/menu-icon.svg'); |
| 14 |
mask-repeat: no-repeat; |
| 15 |
mask-position: center; |
| 16 |
mask-size: contain; |
| 17 |
background-color: rgb(240 245 250 / 60%); |
| 18 |
} |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
.code-snippets-pagination-node > .ab-item { |
| 23 |
padding: 0; |
| 24 |
margin-block-end: 6px; |
| 25 |
} |
| 26 |
|
| 27 |
.code-snippets-safe-mode-active { |
| 28 |
> .ab-item, |
| 29 |
&.ab-item { |
| 30 |
background: #b32d2e; |
| 31 |
color: #fff; |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
.code-snippets-disabled > .ab-item { |
| 36 |
opacity: 0.6; |
| 37 |
} |
| 38 |
|
| 39 |
.code-snippets-pagination-controls { |
| 40 |
display: flex; |
| 41 |
align-items: stretch; |
| 42 |
inline-size: 100%; |
| 43 |
white-space: nowrap; |
| 44 |
|
| 45 |
.code-snippets-pagination-button { |
| 46 |
display: inline-flex; |
| 47 |
align-items: center; |
| 48 |
justify-content: center; |
| 49 |
flex: 1 1 0; |
| 50 |
min-block-size: 32px; |
| 51 |
padding: 0 10px; |
| 52 |
background: rgb(240 245 250 / 8%); |
| 53 |
color: inherit; |
| 54 |
text-decoration: none; |
| 55 |
line-height: 1.2; |
| 56 |
box-sizing: border-box; |
| 57 |
|
| 58 |
& + .code-snippets-pagination-button { |
| 59 |
border-inline-start: 1px solid rgb(240 245 250 / 15%); |
| 60 |
} |
| 61 |
|
| 62 |
&[aria-disabled='true']='true'] { |
| 63 |
opacity: 0.4; |
| 64 |
pointer-events: none; |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
a.code-snippets-pagination-button:hover { |
| 69 |
background: rgb(240 245 250 / 16%); |
| 70 |
} |
| 71 |
|
| 72 |
a[data-action='first']='first'], |
| 73 |
a[data-action='last']='last'] { |
| 74 |
flex: 0 0 36px; |
| 75 |
padding: 0; |
| 76 |
} |
| 77 |
|
| 78 |
.code-snippets-pagination-page { |
| 79 |
flex: 0 0 auto; |
| 80 |
cursor: default; |
| 81 |
opacity: 0.85; |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
.code-snippets-safe-mode-active:hover > .ab-item, |
| 86 |
.code-snippets-safe-mode-active.hover > .ab-item { |
| 87 |
background: #d63638; |
| 88 |
color: #fff; |
| 89 |
} |
| 90 |
|
| 91 |
.code-snippets-disabled:hover > .ab-item, |
| 92 |
.code-snippets-disabled.hover > .ab-item { |
| 93 |
opacity: 1; |
| 94 |
} |
| 95 |
|
| 96 |
.code-snippets-safe-mode.code-snippets-safe-mode-active > .ab-item, |
| 97 |
.code-snippets-safe-mode.code-snippets-safe-mode-active.ab-item { |
| 98 |
font-weight: 600; |
| 99 |
} |
| 100 |
|
| 101 |
.code-snippets-safe-mode .code-snippets-external-icon { |
| 102 |
font-family: dashicons; |
| 103 |
display: inline-block; |
| 104 |
position: relative; |
| 105 |
line-height: 1; |
| 106 |
opacity: .8; |
| 107 |
inset-block-start: 6px; |
| 108 |
} |
| 109 |
|
| 110 |
.code-snippets-safe-mode:hover .code-snippets-external-icon, |
| 111 |
.code-snippets-safe-mode.hover .code-snippets-external-icon { |
| 112 |
opacity: 1; |
| 113 |
} |
| 114 |
|
| 115 |
#wp-admin-bar-code-snippets-active-snippets > .ab-sub-wrapper > .ab-submenu, |
| 116 |
#wp-admin-bar-code-snippets-inactive-snippets > .ab-sub-wrapper > .ab-submenu { |
| 117 |
padding-block-start: 0; |
| 118 |
} |
| 119 |
} |
| 120 |
|