| 1 |
/** |
| 2 |
* TablePress Default CSS - Core CSS without DataTables styling. |
| 3 |
* |
| 4 |
* Attention: Do not modify this file directly, but use the "Custom CSS" textarea |
| 5 |
* on the "Plugin Options" screen of TablePress. |
| 6 |
* |
| 7 |
* @package TablePress |
| 8 |
* @subpackage Frontend CSS |
| 9 |
* @author Tobias Bäthge |
| 10 |
* @since 1.0.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
/* Default toggle variable for LTR and RTL CSS. */ |
| 14 |
$direction: "ltr" !default; |
| 15 |
|
| 16 |
/* Default variables for the LTR CSS. */ |
| 17 |
$align-side: left !default; |
| 18 |
|
| 19 |
/* Variables for the RTL CSS. */ |
| 20 |
@if "rtl" == $direction { |
| 21 |
$align-side: right; |
| 22 |
} |
| 23 |
|
| 24 |
.tablepress { |
| 25 |
/* Custom properties */ |
| 26 |
--text-color: #111111; |
| 27 |
--head-text-color: var(--text-color); |
| 28 |
--head-bg-color: #d9edf7; |
| 29 |
--odd-text-color: var(--text-color); |
| 30 |
--odd-bg-color: #f9f9f9; |
| 31 |
--even-text-color: var(--text-color); |
| 32 |
--even-bg-color: #ffffff; |
| 33 |
--hover-text-color: var(--text-color); |
| 34 |
--hover-bg-color: #f3f3f3; |
| 35 |
--border-color: #dddddd; |
| 36 |
--padding: 0.5rem; |
| 37 |
|
| 38 |
/* General table style */ |
| 39 |
table-layout: auto; |
| 40 |
width: 100%; |
| 41 |
margin: 0 auto 1rem; |
| 42 |
clear: both; |
| 43 |
border-collapse: collapse; |
| 44 |
border-spacing: 0; |
| 45 |
border: none; |
| 46 |
|
| 47 |
/* General table cell style */ |
| 48 |
> :not(caption) > * > * { |
| 49 |
padding: var(--padding); |
| 50 |
border: none; |
| 51 |
background: none; |
| 52 |
text-align: $align-side; |
| 53 |
vertical-align: top; |
| 54 |
float: none !important; /* Work around themes that set `float` on `.column-1` CSS classes and similar. */ |
| 55 |
} |
| 56 |
|
| 57 |
/* Horizontal borders */ |
| 58 |
> * + tbody > * > *, |
| 59 |
> tbody > * ~ * > *, |
| 60 |
> tfoot > * > * { |
| 61 |
border-top: 1px solid var(--border-color); |
| 62 |
} |
| 63 |
|
| 64 |
/* Row background colors. For backwards-compatibility, using :nth-child or :nth-of-type is not feasible. */ |
| 65 |
> :where(thead, tfoot) > * > th { |
| 66 |
background-color: var(--head-bg-color); |
| 67 |
color: var(--head-text-color); |
| 68 |
font-weight: bold; |
| 69 |
word-break: normal; |
| 70 |
vertical-align: middle; |
| 71 |
} |
| 72 |
> :where(tbody) { |
| 73 |
> .odd > * { |
| 74 |
background-color: var(--odd-bg-color); |
| 75 |
color: var(--odd-text-color); |
| 76 |
} |
| 77 |
> .even > * { |
| 78 |
background-color: var(--even-bg-color); |
| 79 |
color: var(--even-text-color); |
| 80 |
} |
| 81 |
} |
| 82 |
> .row-hover > tr:hover > * { |
| 83 |
background-color: var(--hover-bg-color); |
| 84 |
color: var(--hover-text-color); |
| 85 |
} |
| 86 |
|
| 87 |
/* Reset image layout in tables */ |
| 88 |
img { |
| 89 |
margin: 0; |
| 90 |
padding: 0; |
| 91 |
border: none; |
| 92 |
max-width: none; |
| 93 |
} |
| 94 |
|
| 95 |
/* Table description */ |
| 96 |
&-table-description { |
| 97 |
clear: both; |
| 98 |
display: block; |
| 99 |
} |
| 100 |
} |
| 101 |
|