PluginProbe
TablePress – Tables in WordPress made easy / 3.0.4
TablePress – Tables in WordPress made easy v3.0.4
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
tablepress / css / _default-core.scss

_default-core.scss in TablePress – Tables in WordPress made easy 3.0.4, at css/_default-core.scss

107 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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;
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: #ffffff;
31 --even-text-color: var(--text-color);
32 --even-bg-color: #f9f9f9;
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 box-sizing: border-box;
56 }
57
58 /* Horizontal borders */
59 > :where(thead) + tbody > * > *,
60 > tbody > * ~ * > *,
61 > tfoot > :where(:first-child) > * {
62 border-top: 1px solid var(--border-color);
63 }
64
65 /* Row background colors */
66 > :where(thead, tfoot) > * > th {
67 background-color: var(--head-bg-color);
68 color: var(--head-text-color);
69 font-weight: bold;
70 word-break: normal;
71 vertical-align: middle;
72 }
73 > :where(tbody) {
74 > tr > * {
75 color: var(--text-color);
76 }
77 }
78 > :where(tbody.row-striping) {
79 > :nth-child(odd) > * {
80 background-color: var(--odd-bg-color);
81 color: var(--odd-text-color);
82 }
83 > :nth-child(even) > * {
84 background-color: var(--even-bg-color);
85 color: var(--even-text-color);
86 }
87 }
88 > .row-hover > tr:hover > * {
89 background-color: var(--hover-bg-color);
90 color: var(--hover-text-color);
91 }
92
93 /* Reset image layout in tables */
94 img {
95 margin: 0;
96 padding: 0;
97 border: none;
98 max-width: none;
99 }
100
101 /* Table description */
102 &-table-description {
103 clear: both;
104 display: block;
105 }
106 }
107