1 | /**
|
---|
2 | * @file
|
---|
3 | * Table drag behavior.
|
---|
4 | *
|
---|
5 | * @see tabledrag.js
|
---|
6 | */
|
---|
7 |
|
---|
8 | body.drag {
|
---|
9 | cursor: move;
|
---|
10 | }
|
---|
11 | tr.region-title {
|
---|
12 | font-weight: bold;
|
---|
13 | }
|
---|
14 | tr.region-message {
|
---|
15 | color: #999;
|
---|
16 | }
|
---|
17 | tr.region-populated {
|
---|
18 | display: none;
|
---|
19 | }
|
---|
20 | tr.add-new .tabledrag-changed {
|
---|
21 | display: none;
|
---|
22 | }
|
---|
23 | .draggable a.tabledrag-handle {
|
---|
24 | float: left; /* LTR */
|
---|
25 | overflow: hidden;
|
---|
26 | height: 1.7em;
|
---|
27 | margin-left: -1em; /* LTR */
|
---|
28 | cursor: move;
|
---|
29 | text-decoration: none;
|
---|
30 | }
|
---|
31 | [dir="rtl"] .draggable a.tabledrag-handle {
|
---|
32 | float: right;
|
---|
33 | margin-right: -1em;
|
---|
34 | margin-left: 0;
|
---|
35 | }
|
---|
36 | a.tabledrag-handle:hover {
|
---|
37 | text-decoration: none;
|
---|
38 | }
|
---|
39 | a.tabledrag-handle .handle {
|
---|
40 | width: 14px;
|
---|
41 | height: 14px;
|
---|
42 | margin: -0.4em 0.5em 0;
|
---|
43 | padding: 0.42em 0.5em;
|
---|
44 | background: #787878;
|
---|
45 | -webkit-mask: url(../../../../misc/icons/787878/move.svg) no-repeat 6px 7px;
|
---|
46 | mask: url(../../../../misc/icons/787878/move.svg) no-repeat 6px 7px;
|
---|
47 | }
|
---|
48 | a.tabledrag-handle:hover .handle,
|
---|
49 | a.tabledrag-handle:focus .handle {
|
---|
50 | background: #000;
|
---|
51 | }
|
---|
52 |
|
---|
53 | @media (forced-colors: active) {
|
---|
54 | a.tabledrag-handle .handle,
|
---|
55 | a.tabledrag-handle:hover .handle,
|
---|
56 | a.tabledrag-handle:focus .handle {
|
---|
57 | background: canvastext;
|
---|
58 | }
|
---|
59 | }
|
---|
60 | .touchevents .draggable td {
|
---|
61 | padding: 0 10px;
|
---|
62 | }
|
---|
63 | .touchevents .draggable .menu-item__link {
|
---|
64 | display: inline-block;
|
---|
65 | padding: 10px 0;
|
---|
66 | }
|
---|
67 | .touchevents a.tabledrag-handle {
|
---|
68 | width: 40px;
|
---|
69 | height: 44px;
|
---|
70 | }
|
---|
71 | .touchevents a.tabledrag-handle .handle {
|
---|
72 | height: 21px;
|
---|
73 | background-position: 40% 19px; /* LTR */
|
---|
74 | }
|
---|
75 | [dir="rtl"] .touch a.tabledrag-handle .handle {
|
---|
76 | background-position: right 40% top 19px;
|
---|
77 | }
|
---|
78 | .touchevents .draggable.drag a.tabledrag-handle .handle {
|
---|
79 | background-position: 50% -32px;
|
---|
80 | }
|
---|
81 | .tabledrag-toggle-weight-wrapper {
|
---|
82 | text-align: right; /* LTR */
|
---|
83 | }
|
---|
84 | [dir="rtl"] .tabledrag-toggle-weight-wrapper {
|
---|
85 | text-align: left;
|
---|
86 | }
|
---|
87 | .indentation {
|
---|
88 | float: left; /* LTR */
|
---|
89 | width: 20px;
|
---|
90 | height: 1.7em;
|
---|
91 | margin: -0.4em 0.2em -0.4em -0.4em; /* LTR */
|
---|
92 | padding: 0.42em 0 0.42em 0.6em; /* LTR */
|
---|
93 | }
|
---|
94 | [dir="rtl"] .indentation {
|
---|
95 | float: right;
|
---|
96 | margin: -0.4em -0.4em -0.4em 0.2em;
|
---|
97 | padding: 0.42em 0.6em 0.42em 0;
|
---|
98 | }
|
---|