| 1 |
// Styles for the "Enhance Docs with AI" Suggest actions injected into the native |
| 2 |
// Gutenberg taxonomy panels (Categories / Tags / Glossaries). |
| 3 |
|
| 4 |
$bd-ai-accent: #00b884; |
| 5 |
$bd-ai-accent-dark: #009b6f; |
| 6 |
|
| 7 |
.betterdocs-docs-ai-suggest { |
| 8 |
margin-top: 12px; |
| 9 |
} |
| 10 |
|
| 11 |
.betterdocs-docs-ai-suggest__btn { |
| 12 |
// Match the "Analyze with BetterDocs AI" button: white pill with a conic |
| 13 |
// rainbow gradient border (via a masked ::before) and the gradient sparkle. |
| 14 |
&.components-button.is-secondary { |
| 15 |
position: relative; |
| 16 |
display: inline-flex; |
| 17 |
align-items: center; |
| 18 |
justify-content: center; |
| 19 |
gap: 8px; |
| 20 |
height: auto; |
| 21 |
padding: 8px 18px; |
| 22 |
border: none; |
| 23 |
border-radius: 12px; |
| 24 |
background: #fff; |
| 25 |
color: var(--text-color-700, #344054); |
| 26 |
font-weight: 600; |
| 27 |
box-shadow: none; |
| 28 |
|
| 29 |
&::before { |
| 30 |
content: ""; |
| 31 |
position: absolute; |
| 32 |
inset: 0; |
| 33 |
border-radius: 12px; |
| 34 |
padding: 2px; // border thickness |
| 35 |
background: conic-gradient(from 90deg at 50.51% 50.65%, |
| 36 |
#54B8FF -29.78deg, |
| 37 |
#3751FF 26.9deg, |
| 38 |
#C891FC 112.04deg, |
| 39 |
#FFCE9D 216.82deg, |
| 40 |
#00DE9F 248.78deg, |
| 41 |
#54B8FF 330.22deg, |
| 42 |
#3751FF 386.9deg); |
| 43 |
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); |
| 44 |
-webkit-mask-composite: xor; |
| 45 |
mask-composite: exclude; |
| 46 |
pointer-events: none; |
| 47 |
} |
| 48 |
|
| 49 |
&:hover:not(:disabled) { |
| 50 |
background: #fff; |
| 51 |
color: var(--text-color-900, #101828); |
| 52 |
box-shadow: none; |
| 53 |
} |
| 54 |
|
| 55 |
svg { |
| 56 |
margin-right: 0; |
| 57 |
flex-shrink: 0; |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
.betterdocs-docs-ai__error { |
| 63 |
margin: 8px 0 0; |
| 64 |
color: #cc1818; |
| 65 |
font-size: 12px; |
| 66 |
line-height: 1.4; |
| 67 |
} |
| 68 |
|
| 69 |
// Calm, neutral notice for a valid "nothing matched" result (not an error). |
| 70 |
.betterdocs-docs-ai__notice { |
| 71 |
// The editor sidebar resets sidebar <p> margins to 0 via |
| 72 |
// `.interface-complementary-area p:not(…)` (specificity 0,2,1), which beats |
| 73 |
// this single-class rule — !important restores our top gap. |
| 74 |
margin: 5px 0 0 !important; |
| 75 |
color: #667085; |
| 76 |
font-size: 12px; |
| 77 |
line-height: 1.4; |
| 78 |
} |
| 79 |
|
| 80 |
.betterdocs-docs-ai-suggest__chips { |
| 81 |
display: flex; |
| 82 |
flex-wrap: wrap; |
| 83 |
gap: 6px; |
| 84 |
margin-top: 10px; |
| 85 |
} |
| 86 |
|
| 87 |
.betterdocs-docs-ai-chip { |
| 88 |
display: inline-flex; |
| 89 |
align-items: center; |
| 90 |
gap: 4px; |
| 91 |
padding: 3px 8px; |
| 92 |
border: 1px dashed rgba( 0, 184, 132, 0.6 ); |
| 93 |
border-radius: 14px; |
| 94 |
background: rgba( 0, 184, 132, 0.08 ); |
| 95 |
color: #1d2939; |
| 96 |
font-size: 12px; |
| 97 |
line-height: 1.4; |
| 98 |
cursor: pointer; |
| 99 |
transition: background 0.15s ease, border-color 0.15s ease; |
| 100 |
|
| 101 |
&:hover { |
| 102 |
background: rgba( 0, 184, 132, 0.16 ); |
| 103 |
border-color: $bd-ai-accent; |
| 104 |
} |
| 105 |
|
| 106 |
&__plus { |
| 107 |
font-weight: 700; |
| 108 |
color: $bd-ai-accent; |
| 109 |
} |
| 110 |
|
| 111 |
&__new { |
| 112 |
margin-left: 2px; |
| 113 |
padding: 0 5px; |
| 114 |
border-radius: 8px; |
| 115 |
background: $bd-ai-accent; |
| 116 |
color: #fff; |
| 117 |
font-size: 10px; |
| 118 |
text-transform: uppercase; |
| 119 |
letter-spacing: 0.02em; |
| 120 |
} |
| 121 |
} |
| 122 |
|