| 1 |
.wp-list-table .column-tablekit_shortcode { |
| 2 |
width: 20%; |
| 3 |
min-width: 180px; |
| 4 |
max-width: 280px; |
| 5 |
} |
| 6 |
|
| 7 |
.wp-list-table .column-tablekit_child_shortcode { |
| 8 |
width: 16%; |
| 9 |
min-width: 160px; |
| 10 |
max-width: 240px; |
| 11 |
} |
| 12 |
|
| 13 |
/* Source grows to fill the space left by hidden shortcode columns */ |
| 14 |
.wp-list-table .column-tablekit_source { |
| 15 |
width: auto; |
| 16 |
min-width: 180px; |
| 17 |
} |
| 18 |
|
| 19 |
.wp-list-table .column-tablekit_author { |
| 20 |
width: 90px; |
| 21 |
white-space: nowrap; |
| 22 |
} |
| 23 |
|
| 24 |
/* Title column always claims remaining space */ |
| 25 |
.wp-list-table th.column-title, |
| 26 |
.wp-list-table td.column-title { |
| 27 |
width: auto; |
| 28 |
} |
| 29 |
|
| 30 |
/* --- Row aesthetics --- */ |
| 31 |
.post-type-tablekit_table .wp-list-table tbody tr:nth-child(odd) { background: #fff; } |
| 32 |
.post-type-tablekit_table .wp-list-table tbody tr:nth-child(even) { background: #f6f7f7; } |
| 33 |
|
| 34 |
.post-type-tablekit_table .wp-list-table tbody td, |
| 35 |
.post-type-tablekit_table .wp-list-table tbody th { |
| 36 |
padding-top: 12px; |
| 37 |
padding-bottom: 12px; |
| 38 |
vertical-align: middle; |
| 39 |
} |
| 40 |
|
| 41 |
/* --- Shortcode field --- */ |
| 42 |
.tablekit-shortcode-wrap { |
| 43 |
display: inline-flex; |
| 44 |
align-items: center; |
| 45 |
gap: 6px; |
| 46 |
width: 100%; |
| 47 |
max-width: 260px; |
| 48 |
box-sizing: border-box; |
| 49 |
} |
| 50 |
|
| 51 |
.tablekit-shortcode-field { |
| 52 |
flex: 1; |
| 53 |
min-width: 0; |
| 54 |
height: 36px; |
| 55 |
border: 1px solid #e4e7ec !important; |
| 56 |
border-radius: 8px !important; |
| 57 |
background: #f8f9fb !important; |
| 58 |
color: #0f172a !important; |
| 59 |
font-family: Consolas, Monaco, monospace; |
| 60 |
font-size: 13px; |
| 61 |
box-shadow: none !important; |
| 62 |
} |
| 63 |
|
| 64 |
.tablekit-shortcode-field:focus { |
| 65 |
border-color: #024b2ed6 !important; |
| 66 |
box-shadow: 0 0 0 1px #024b2ed6 !important; |
| 67 |
} |
| 68 |
|
| 69 |
.tablekit-copy-shortcode { |
| 70 |
display: flex !important; |
| 71 |
align-items: center; |
| 72 |
justify-content: center; |
| 73 |
flex-shrink: 0; |
| 74 |
opacity: 0; |
| 75 |
visibility: hidden; |
| 76 |
width: 24px !important; |
| 77 |
height: 24px !important; |
| 78 |
border-radius: 6px !important; |
| 79 |
color: #024b2ed6 !important; |
| 80 |
transition: opacity .15s ease, visibility .15s ease, background-color .15s ease; |
| 81 |
} |
| 82 |
|
| 83 |
.tablekit-copy-icon, |
| 84 |
.tablekit-copy-icon svg { |
| 85 |
display: block; |
| 86 |
width: 16px; |
| 87 |
height: 16px; |
| 88 |
} |
| 89 |
|
| 90 |
.tablekit-copy-icon svg { |
| 91 |
fill: none; |
| 92 |
stroke: currentColor; |
| 93 |
stroke-width: 1.8; |
| 94 |
stroke-linecap: round; |
| 95 |
stroke-linejoin: round; |
| 96 |
} |
| 97 |
|
| 98 |
.tablekit-shortcode-wrap:hover .tablekit-copy-shortcode, |
| 99 |
.tablekit-shortcode-wrap:focus-within .tablekit-copy-shortcode { |
| 100 |
opacity: 1; |
| 101 |
visibility: visible; |
| 102 |
} |
| 103 |
|
| 104 |
.tablekit-copy-shortcode:hover, |
| 105 |
.tablekit-copy-shortcode:focus { |
| 106 |
background: #eef4ff !important; |
| 107 |
} |
| 108 |
|
| 109 |
/* --- Child shortcode panel --- */ |
| 110 |
.tablekit-child-shortcode-toggle-wrap { |
| 111 |
margin-bottom: 6px; |
| 112 |
} |
| 113 |
|
| 114 |
.tablekit-child-shortcode-toggle { |
| 115 |
display: inline-flex; |
| 116 |
align-items: center; |
| 117 |
gap: 8px; |
| 118 |
min-height: 28px; |
| 119 |
padding: 0 14px !important; |
| 120 |
border: 0 !important; |
| 121 |
border-radius: 20px; |
| 122 |
background: #024b2ed6; |
| 123 |
color: #fff; |
| 124 |
cursor: pointer; |
| 125 |
font-size: 13px; |
| 126 |
font-weight: 500; |
| 127 |
line-height: 1; |
| 128 |
transition: background-color .3s ease-in-out; |
| 129 |
white-space: nowrap; |
| 130 |
} |
| 131 |
|
| 132 |
.tablekit-child-shortcode-toggle:hover { |
| 133 |
background: #024b2ec4; |
| 134 |
color: #fff; |
| 135 |
} |
| 136 |
|
| 137 |
.tablekit-child-shortcode-panel { |
| 138 |
margin-top: 10px; |
| 139 |
padding: 10px; |
| 140 |
background: #f8fafc; |
| 141 |
border: 1px solid #e2e8f0; |
| 142 |
border-radius: 8px; |
| 143 |
} |
| 144 |
|
| 145 |
.tablekit-child-shortcode-item:not(:last-child) { |
| 146 |
margin-bottom: 8px; |
| 147 |
} |
| 148 |
|
| 149 |
.tablekit-child-shortcode-label { |
| 150 |
display: block; |
| 151 |
margin-bottom: 4px; |
| 152 |
color: #64748b; |
| 153 |
font-size: 12px; |
| 154 |
} |
| 155 |
|
| 156 |
/* --- Source cell --- */ |
| 157 |
.tablekit-source-cell strong { |
| 158 |
color: #0f172a; |
| 159 |
font-weight: 700; |
| 160 |
} |
| 161 |
|
| 162 |
.tablekit-source-cell a { |
| 163 |
color: #024b2ed6; |
| 164 |
font-weight: 700; |
| 165 |
text-decoration: none; |
| 166 |
} |
| 167 |
|
| 168 |
.tablekit-source-cell a:hover { |
| 169 |
text-decoration: underline; |
| 170 |
} |
| 171 |
|
| 172 |
.tablekit-source-block { |
| 173 |
display: block; |
| 174 |
margin-top: 2px; |
| 175 |
color: #8a9bbb; |
| 176 |
font-size: 13px; |
| 177 |
line-height: 1.3; |
| 178 |
} |
| 179 |
|
| 180 |
.tablekit-source-block-count { |
| 181 |
color: #d63638; |
| 182 |
} |
| 183 |
|
| 184 |
/* --- Date column --- */ |
| 185 |
.post-type-tablekit_table .wp-list-table .column-date { |
| 186 |
color: #64748b; |
| 187 |
line-height: 1.45; |
| 188 |
white-space: nowrap; |
| 189 |
} |
| 190 |
|
| 191 |
.post-type-tablekit_table .wp-list-table .column-date::first-line { |
| 192 |
color: #024b2ed6; |
| 193 |
font-weight: 700; |
| 194 |
} |
| 195 |
|
| 196 |
/* --- Toast --- */ |
| 197 |
#tbk-toast { |
| 198 |
position: fixed; |
| 199 |
top: 40px; |
| 200 |
left: 50%; |
| 201 |
transform: translateX(-50%) translateY(-8px); |
| 202 |
z-index: 100000; |
| 203 |
padding: 8px 24px; |
| 204 |
border-radius: 4px; |
| 205 |
font-size: 14px; |
| 206 |
font-weight: 600; |
| 207 |
color: #fff; |
| 208 |
opacity: 0; |
| 209 |
transition: opacity .2s, transform .2s; |
| 210 |
pointer-events: none; |
| 211 |
} |