| 1 |
@import "./components/DynamicDataPanel/styles.scss"; |
| 2 |
@import "./components/ElementFontOptions/style.scss"; |
| 3 |
@import "./rules-to-fix-double-borders.scss"; |
| 4 |
@import "./components/cell-inserter/style.scss"; |
| 5 |
@import "./components/PaginationNavigation/style.scss"; |
| 6 |
@import "./components/SearchInput/style.scss"; |
| 7 |
@import "./components/TablebergSidebarTabs/style.scss"; |
| 8 |
@import "./components/TableCaption/style.scss"; |
| 9 |
@import "./components/TableEditToolbar/style.scss"; |
| 10 |
@import "./components/UpsellModal/style.scss"; |
| 11 |
@import "./hooks/block-editor-compat/hide-native-options-button.scss"; |
| 12 |
|
| 13 |
// Native Gutenberg block editor. |
| 14 |
.tableberg-native-editor { |
| 15 |
table { |
| 16 |
border-collapse: collapse; |
| 17 |
width: 100%; |
| 18 |
} |
| 19 |
|
| 20 |
td, |
| 21 |
th { |
| 22 |
border: 1px solid #d0d0d0; |
| 23 |
min-width: 60px; |
| 24 |
vertical-align: top; |
| 25 |
} |
| 26 |
|
| 27 |
th { |
| 28 |
background-color: #f5f5f5; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
.tableberg-native-editor.tableberg-native-sticky-header tr:first-child th, |
| 33 |
.tableberg-native-editor.tableberg-native-sticky-header tr:first-child td { |
| 34 |
position: sticky; |
| 35 |
top: 0; |
| 36 |
z-index: 2; |
| 37 |
background-clip: padding-box; |
| 38 |
} |
| 39 |
|
| 40 |
// Wide tables must stay reachable in the editor: without a scroll container |
| 41 |
// the overflowing columns are clipped and cannot be edited. This container is |
| 42 |
// also what `position: sticky` uses for the sticky first column. |
| 43 |
.tableberg-native-editor .tableberg-native-table-scroll { |
| 44 |
overflow-x: auto; |
| 45 |
} |
| 46 |
|
| 47 |
// ToolsPanel uses a two-column grid. Border modes need the complete row so |
| 48 |
// their labels and descriptions remain readable in the narrow inspector. |
| 49 |
.tableberg-border-mode-controls { |
| 50 |
grid-column: 1 / -1; |
| 51 |
width: 100%; |
| 52 |
} |
| 53 |
|