| 1 |
@use '../common/notices'; |
| 2 |
@use '../common/checkbox'; |
| 3 |
@use '../common/theme'; |
| 4 |
|
| 5 |
.cloud-snippet-status { |
| 6 |
display: inline-flex; |
| 7 |
align-items: center; |
| 8 |
gap: 8px; |
| 9 |
color: var(--cs-color-text-muted); |
| 10 |
font-size: 12px; |
| 11 |
font-weight: 500; |
| 12 |
white-space: nowrap; |
| 13 |
|
| 14 |
&::before { |
| 15 |
content: ''; |
| 16 |
block-size: 10px; |
| 17 |
inline-size: 10px; |
| 18 |
border-radius: 50%; |
| 19 |
display: inline-block; |
| 20 |
} |
| 21 |
|
| 22 |
&-public::before { |
| 23 |
background: var(--cs-cloud-status-public-color); |
| 24 |
} |
| 25 |
|
| 26 |
&-private::before { |
| 27 |
background: var(--cs-cloud-status-private-color); |
| 28 |
} |
| 29 |
|
| 30 |
&-unverified::before { |
| 31 |
background: var(--cs-cloud-status-unverified-color); |
| 32 |
} |
| 33 |
|
| 34 |
&-ai-verified::before { |
| 35 |
background: var(--cs-cloud-status-ai-verified-color); |
| 36 |
} |
| 37 |
|
| 38 |
&-pro-verified::before { |
| 39 |
background: var(--cs-cloud-status-pro-verified-color); |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
.bundle-share-code-form, |
| 44 |
.cloud-search-form { |
| 45 |
display: flex; |
| 46 |
gap: 8px; |
| 47 |
margin-block: 0 47px; |
| 48 |
block-size: 54px; |
| 49 |
|
| 50 |
> select { |
| 51 |
flex: 0 0 250px; |
| 52 |
} |
| 53 |
|
| 54 |
.button { |
| 55 |
flex: 0 0 165px; |
| 56 |
} |
| 57 |
|
| 58 |
.cloud-search-query { |
| 59 |
flex: 1; |
| 60 |
position: relative; |
| 61 |
|
| 62 |
input { |
| 63 |
inline-size: 100%; |
| 64 |
block-size: 100%; |
| 65 |
} |
| 66 |
|
| 67 |
> .components-spinner { |
| 68 |
position: absolute; |
| 69 |
inset-inline-end: 1.5em; |
| 70 |
inset-block-start: 25%; |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
button[type='submit']='submit'] { |
| 75 |
display: inline-flex; |
| 76 |
align-items: center; |
| 77 |
justify-content: center; |
| 78 |
|
| 79 |
.components-spinner { |
| 80 |
margin: 0; |
| 81 |
} |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
.cloud-search { |
| 86 |
@include notices.notices('banner'); |
| 87 |
|
| 88 |
padding-block-start: 10px; |
| 89 |
|
| 90 |
.banner { |
| 91 |
justify-content: center; |
| 92 |
} |
| 93 |
|
| 94 |
} |
| 95 |
|
| 96 |
.bundle-share-code-form { |
| 97 |
max-inline-size: 60%; |
| 98 |
} |
| 99 |
|
| 100 |
.cloud-snippet-action-buttons { |
| 101 |
display: flex; |
| 102 |
justify-content: flex-end; |
| 103 |
align-items: center; |
| 104 |
gap: 8px; |
| 105 |
|
| 106 |
// Keep the Download / Edit / Pro Only button a consistent width so |
| 107 |
// rows line up regardless of which state the snippet is in. |
| 108 |
.button-primary, |
| 109 |
.cloud-pro-button, |
| 110 |
.button:not(.button-primary) { |
| 111 |
inline-size: 103px; |
| 112 |
min-inline-size: 103px; |
| 113 |
text-align: center; |
| 114 |
justify-content: center; |
| 115 |
} |
| 116 |
} |
| 117 |
|
| 118 |
.cloud-snippets-table { |
| 119 |
// Body rows inherit the shared table-cell padding so descriptions can grow |
| 120 |
// naturally instead of being constrained to a fixed row height. |
| 121 |
tbody td { |
| 122 |
vertical-align: middle; |
| 123 |
} |
| 124 |
|
| 125 |
.check-column { |
| 126 |
vertical-align: middle; |
| 127 |
|
| 128 |
input[type='checkbox']='checkbox'] { |
| 129 |
@include checkbox.canonical; |
| 130 |
} |
| 131 |
} |
| 132 |
|
| 133 |
.column-name { |
| 134 |
inline-size: 22%; |
| 135 |
} |
| 136 |
|
| 137 |
.column-desc { |
| 138 |
inline-size: 30%; |
| 139 |
min-inline-size: 18rem; |
| 140 |
} |
| 141 |
|
| 142 |
.column-type { |
| 143 |
inline-size: 90px; |
| 144 |
} |
| 145 |
|
| 146 |
.column-status { |
| 147 |
inline-size: 120px; |
| 148 |
} |
| 149 |
|
| 150 |
.column-actions { |
| 151 |
inline-size: 234px; |
| 152 |
} |
| 153 |
|
| 154 |
.cloud-table-name-button { |
| 155 |
background: none; |
| 156 |
border: 0; |
| 157 |
padding: 0; |
| 158 |
margin: 0; |
| 159 |
font-size: inherit; |
| 160 |
font-weight: 600; |
| 161 |
color: var(--cs-color-accent); |
| 162 |
text-decoration: none; |
| 163 |
cursor: pointer; |
| 164 |
text-align: start; |
| 165 |
|
| 166 |
&:hover, |
| 167 |
&:focus-visible { |
| 168 |
color: #135e96; |
| 169 |
text-decoration: underline; |
| 170 |
} |
| 171 |
} |
| 172 |
|
| 173 |
// Clamp descriptions so every row stays the same height. |
| 174 |
.cloud-table-description { |
| 175 |
display: -webkit-box; |
| 176 |
-webkit-box-orient: vertical; |
| 177 |
-webkit-line-clamp: 2; |
| 178 |
line-clamp: 2; |
| 179 |
overflow: hidden; |
| 180 |
} |
| 181 |
} |
| 182 |
|
| 183 |
// Community bundles tab shares the same top padding as .cloud-search so the |
| 184 |
// two tabs' descriptions and inputs align (scoped so the My Library bundles |
| 185 |
// tab is unaffected). |
| 186 |
.community-bundles { |
| 187 |
padding-block-start: 10px; |
| 188 |
} |
| 189 |
|