user-rules.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*******************************************************************************
  2. ηMatrix - a browser extension to black/white list requests.
  3. Copyright (C) 2019-2022 Alessio Vanni
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see {http://www.gnu.org/licenses/}.
  14. Home: https://gitlab.com/vannilla/ematrix
  15. uMatrix Home: https://github.com/gorhill/uMatrix
  16. */
  17. div > p:first-child {
  18. margin-top: 0;
  19. }
  20. div > p:last-child {
  21. margin-bottom: 0;
  22. }
  23. #diff {
  24. border: 0;
  25. margin: 0;
  26. padding: 0;
  27. white-space: nowrap;
  28. }
  29. #diff > .pane {
  30. border: 0;
  31. box-sizing: box-border;
  32. display: inline-block;
  33. margin: 0;
  34. padding: 0;
  35. position: relative;
  36. vertical-align: top;
  37. white-space: normal;
  38. width: calc(50% - 2px);
  39. }
  40. #diff > .pane > div {
  41. padding: 0 0 1em 0;
  42. text-align: center;
  43. }
  44. #diff > .pane > div > span {
  45. float: left;
  46. }
  47. body[dir="ltr"] #revertButton:after {
  48. content: '\2009\f061';
  49. font-family: FontAwesome;
  50. font-style: normal;
  51. font-weight: normal;
  52. line-height: 1;
  53. vertical-align: baseline;
  54. display: inline-block;
  55. }
  56. body[dir="rtl"] #revertButton:after {
  57. content: '\2009\f060';
  58. font-family: FontAwesome;
  59. font-style: normal;
  60. font-weight: normal;
  61. line-height: 1;
  62. vertical-align: baseline;
  63. display: inline-block;
  64. }
  65. body[dir="ltr"] #commitButton:before {
  66. content: '\f060\2009';
  67. font-family: FontAwesome;
  68. font-style: normal;
  69. font-weight: normal;
  70. line-height: 1;
  71. vertical-align: baseline;
  72. display: inline-block;
  73. }
  74. body[dir="rtl"] #commitButton:before {
  75. content: '\f061\2009';
  76. font-family: FontAwesome;
  77. font-style: normal;
  78. font-weight: normal;
  79. line-height: 1;
  80. vertical-align: baseline;
  81. display: inline-block;
  82. }
  83. #revertButton,
  84. #commitButton,
  85. #diff.edit #editEnterButton {
  86. opacity: 0.25;
  87. pointer-events: none;
  88. }
  89. #editStopButton,
  90. #editCancelButton {
  91. display: none;
  92. }
  93. #diff.dirty:not(.edit) #revertButton,
  94. #diff.dirty:not(.edit) #commitButton {
  95. opacity: 1;
  96. pointer-events: auto;
  97. }
  98. #diff.edit #editStopButton,
  99. #diff.edit #editCancelButton {
  100. display: initial;
  101. }
  102. #diff.edit #importButton,
  103. #diff.edit #exportButton {
  104. display: none;
  105. }
  106. #diff ul {
  107. border: 0;
  108. border-top: 1px solid #eee;
  109. list-style-type: none;
  110. margin: 0;
  111. overflow: hidden;
  112. padding: 1em 0 0 0;
  113. }
  114. #diff ul,
  115. #diff textarea {
  116. font: 12px/1.8 monospace;
  117. }
  118. #diff.edit .right ul {
  119. visibility: hidden;
  120. }
  121. #diff .left {
  122. padding: 0 0 0 0;
  123. }
  124. #diff .right > ul {
  125. color: #888;
  126. }
  127. #diff li {
  128. background-color: white;
  129. direction: ltr;
  130. padding: 0;
  131. text-align: left;
  132. white-space: nowrap;
  133. }
  134. #diff li:nth-of-type(2n+0) {
  135. background-color: #eee;
  136. }
  137. #diff .right li {
  138. cursor: pointer;
  139. }
  140. #diff .right li:hover {
  141. background-color: #ffc;
  142. color: #000;
  143. }
  144. #diff .right li.notLeft {
  145. color: #000;
  146. }
  147. #diff .right li.notLeft:hover {
  148. text-decoration: line-through;
  149. }
  150. #diff .right li.notRight {
  151. color: #000;
  152. }
  153. #diff .right li.toRemove {
  154. color: #000;
  155. text-decoration: line-through;
  156. }
  157. #diff textarea {
  158. border: 0;
  159. border-top: 1px solid #eee;
  160. direction: ltr;
  161. height: 100%;
  162. left: 0;
  163. margin: 0;
  164. overflow: hidden;
  165. overflow-y: auto;
  166. padding: 1em 0 0 0;
  167. position: absolute;
  168. resize: none;
  169. visibility: hidden;
  170. white-space: pre;
  171. width: 100%;
  172. }
  173. #diff.edit textarea {
  174. visibility: visible;
  175. }
  176. .hidden {
  177. display: none;
  178. }