| 1 |
/** |
| 2 |
* TablePress Default CSS - DataTables-related code. |
| 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, Allan Jardine |
| 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 |
$align-side-opposite: right !default; |
| 19 |
$button-previous-icon: "\f053" !default; |
| 20 |
$button-next-icon: "\f054" !default; |
| 21 |
$position: "after" !default; |
| 22 |
|
| 23 |
/* Variables for the RTL CSS. */ |
| 24 |
@if "rtl" == $direction { |
| 25 |
$align-side: right; |
| 26 |
$align-side-opposite: left; |
| 27 |
$button-previous-icon: "\f054"; |
| 28 |
$button-next-icon: "\f053"; |
| 29 |
$position: "before"; |
| 30 |
} |
| 31 |
|
| 32 |
/* Table wrapper */ |
| 33 |
.dataTables_wrapper { |
| 34 |
position: relative; |
| 35 |
clear: both; |
| 36 |
margin-bottom: 1rem; |
| 37 |
|
| 38 |
.tablepress { |
| 39 |
clear: both; |
| 40 |
margin-bottom: 0; |
| 41 |
} |
| 42 |
|
| 43 |
/* Self clearing */ |
| 44 |
&:after { |
| 45 |
content: ""; |
| 46 |
display: block; |
| 47 |
clear: both; |
| 48 |
visibility: hidden; |
| 49 |
line-height: 0; |
| 50 |
height: 0; |
| 51 |
} |
| 52 |
|
| 53 |
/* Dropdown and input style */ |
| 54 |
label input, |
| 55 |
label select { |
| 56 |
display: inline; |
| 57 |
margin: 2px; |
| 58 |
width: auto; |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
/* Length Change menu */ |
| 63 |
.dataTables_length { |
| 64 |
float: $align-side; |
| 65 |
white-space: nowrap; |
| 66 |
} |
| 67 |
|
| 68 |
/* Filter/Search */ |
| 69 |
.dataTables_filter { |
| 70 |
float: $align-side-opposite; |
| 71 |
white-space: nowrap; |
| 72 |
|
| 73 |
label input { |
| 74 |
margin-#{$align-side}: 0.5em; |
| 75 |
margin-#{$align-side-opposite}: 0; |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
/* Table information */ |
| 80 |
.dataTables_info { |
| 81 |
clear: both; |
| 82 |
float: $align-side; |
| 83 |
margin: 4px 0 0; |
| 84 |
} |
| 85 |
|
| 86 |
/* Pagination */ |
| 87 |
.dataTables_paginate { |
| 88 |
float: $align-side-opposite; |
| 89 |
margin: 4px 0 0; |
| 90 |
|
| 91 |
.paginate_button { |
| 92 |
color: #111111; |
| 93 |
display: inline-block; |
| 94 |
outline: none; |
| 95 |
position: relative; |
| 96 |
text-decoration: underline; |
| 97 |
margin: 0 5px; |
| 98 |
|
| 99 |
&:first-child { |
| 100 |
margin-#{$align-side}: 0; |
| 101 |
} |
| 102 |
&:last-child { |
| 103 |
margin-#{$align-side-opposite}: 0; |
| 104 |
} |
| 105 |
&:before, |
| 106 |
&:after { |
| 107 |
color: #d9edf7; |
| 108 |
} |
| 109 |
&:hover { |
| 110 |
cursor: pointer; |
| 111 |
text-decoration: none; |
| 112 |
&:before, |
| 113 |
&:after { |
| 114 |
color: #049cdb; |
| 115 |
} |
| 116 |
} |
| 117 |
&.disabled { |
| 118 |
color: #999999; |
| 119 |
text-decoration: none; |
| 120 |
cursor: default; |
| 121 |
&:before, |
| 122 |
&:after { |
| 123 |
color: #f9f9f9; |
| 124 |
} |
| 125 |
} |
| 126 |
&.current { |
| 127 |
font-weight: bold; |
| 128 |
text-decoration: none; |
| 129 |
cursor: default; |
| 130 |
} |
| 131 |
|
| 132 |
} |
| 133 |
|
| 134 |
/* Two button pagination - previous/next */ |
| 135 |
&.paging_simple { |
| 136 |
padding: 0 15px; |
| 137 |
|
| 138 |
.paginate_button { |
| 139 |
&.previous:before, |
| 140 |
&.next:after { |
| 141 |
text-align: $align-side; |
| 142 |
font-family: TablePress; |
| 143 |
font-size: 14px; |
| 144 |
font-weight: bold; |
| 145 |
-webkit-font-smoothing: antialiased; |
| 146 |
content: $button-previous-icon; |
| 147 |
text-shadow: 0.1em 0.1em #666666; |
| 148 |
position: absolute; |
| 149 |
top: 0; |
| 150 |
#{$align-side-opposite}: auto; |
| 151 |
bottom: 0; |
| 152 |
#{$align-side}: -14px; |
| 153 |
margin: auto; |
| 154 |
height: 14px; |
| 155 |
width: 14px; |
| 156 |
line-height: 1; |
| 157 |
} |
| 158 |
&.next:after { |
| 159 |
text-align: $align-side-opposite; |
| 160 |
content: $button-next-icon; |
| 161 |
#{$align-side}: auto; |
| 162 |
@if "rtl" == $direction { |
| 163 |
#{$align-side-opposite}: -14px; |
| 164 |
} |
| 165 |
} |
| 166 |
} |
| 167 |
} |
| 168 |
} |
| 169 |
|
| 170 |
/* Scrolling */ |
| 171 |
.dataTables_scroll { |
| 172 |
clear: both; |
| 173 |
|
| 174 |
/* Fix for wrong alignment and width. */ |
| 175 |
.tablepress { |
| 176 |
width: 100% !important; |
| 177 |
} |
| 178 |
} |
| 179 |
/* Ensure that the table head row doesn't get a margin from some themes. */ |
| 180 |
.dataTables_scrollHead table.tablepress { |
| 181 |
margin: 0; |
| 182 |
} |
| 183 |
.dataTables_scrollBody { |
| 184 |
-webkit-overflow-scrolling: touch; |
| 185 |
|
| 186 |
/* Hide the sorting arrows in the extra table that is added for scrolling */ |
| 187 |
.tablepress thead th:#{$position} { |
| 188 |
content: ""; |
| 189 |
} |
| 190 |
} |
| 191 |
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th > div.dataTables_sizing, |
| 192 |
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td > div.dataTables_sizing { |
| 193 |
height: 0; |
| 194 |
overflow: hidden; |
| 195 |
margin: 0 !important; |
| 196 |
padding: 0 !important; |
| 197 |
} |
| 198 |
|
| 199 |
/* Sorting */ |
| 200 |
.tablepress { |
| 201 |
/* Custom properties */ |
| 202 |
--head-active-bg-color: #049cdb; |
| 203 |
--head-active-text-color: var(--head-text-color); |
| 204 |
|
| 205 |
.sorting, |
| 206 |
.sorting_asc, |
| 207 |
.sorting_desc { |
| 208 |
position: relative; |
| 209 |
padding-#{$align-side-opposite}: 20px; /* more padding for sort arrows on the opposite align side */ |
| 210 |
cursor: pointer; |
| 211 |
outline: none; |
| 212 |
|
| 213 |
&:#{$position} { |
| 214 |
font-family: TablePress; |
| 215 |
font-weight: normal; |
| 216 |
font-size: 14px; |
| 217 |
-webkit-font-smoothing: antialiased; |
| 218 |
position: absolute; |
| 219 |
top: 0; |
| 220 |
bottom: 0; |
| 221 |
#{$align-side}: auto; |
| 222 |
#{$align-side-opposite}: 6px; |
| 223 |
margin: auto; |
| 224 |
height: 14px; |
| 225 |
line-height: 1; |
| 226 |
} |
| 227 |
} |
| 228 |
.sorting:#{$position} { |
| 229 |
content: "\f0dc"; |
| 230 |
} |
| 231 |
.sorting_asc:#{$position} { |
| 232 |
content: "\f0d8"; |
| 233 |
padding: 0 0 2px; |
| 234 |
} |
| 235 |
.sorting_desc:#{$position} { |
| 236 |
content: "\f0d7"; |
| 237 |
} |
| 238 |
.sorting:hover, |
| 239 |
.sorting_asc, |
| 240 |
.sorting_desc { |
| 241 |
background-color: var(--head-active-bg-color); |
| 242 |
color: var(--head-active-text-color); |
| 243 |
} |
| 244 |
} |
| 245 |
|