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