PluginProbe
TablePress – Tables in WordPress made easy / 2.2.4
TablePress – Tables in WordPress made easy v2.2.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 2.2.4, at css/_default-core.scss

102 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 !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 box-sizing: content-box;
56 }
57
58 /* Horizontal borders */
59 > * + tbody > * > *,
60 > tbody > * ~ * > *,
61 > tfoot > * > * {
62 border-top: 1px solid var(--border-color);
63 }
64
65 /* Row background colors. For backwards-compatibility, using :nth-child or :nth-of-type is not feasible. */
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 > .odd > * {
75 background-color: var(--odd-bg-color);
76 color: var(--odd-text-color);
77 }
78 > .even > * {
79 background-color: var(--even-bg-color);
80 color: var(--even-text-color);
81 }
82 }
83 > .row-hover > tr:hover > * {
84 background-color: var(--hover-bg-color);
85 color: var(--hover-text-color);
86 }
87
88 /* Reset image layout in tables */
89 img {
90 margin: 0;
91 padding: 0;
92 border: none;
93 max-width: none;
94 }
95
96 /* Table description */
97 &-table-description {
98 clear: both;
99 display: block;
100 }
101 }
102