hosts-files.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. @keyframes spin {
  18. 0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); }
  19. 12.5% { transform: rotate(45deg); -webkit-transform: rotate(45deg); }
  20. 25% { transform: rotate(90deg); -webkit-transform: rotate(90deg); }
  21. 37.5% { transform: rotate(135deg); -webkit-transform: rotate(135deg); }
  22. 50% { transform: rotate(180deg); -webkit-transform: rotate(180deg); }
  23. 67.5% { transform: rotate(225deg); -webkit-transform: rotate(225deg); }
  24. 75% { transform: rotate(270deg); -webkit-transform: rotate(270deg); }
  25. 87.5% { transform: rotate(315deg); -webkit-transform: rotate(315deg); }
  26. }
  27. ul {
  28. padding: 0;
  29. list-style-type: none;
  30. }
  31. ul#options {
  32. margin-top: 0;
  33. }
  34. ul#options li {
  35. margin-bottom: 0.5em;
  36. }
  37. ul#lists {
  38. margin: 0.5em 0 0 0;
  39. padding: 0;
  40. }
  41. li.listEntry {
  42. margin: 0 auto 0 auto;
  43. padding: 0.2em 0;
  44. }
  45. body[dir="ltr"] li.listEntry {
  46. margin-left: 1em;
  47. margin-right: 0em;
  48. }
  49. body[dir="rtl"] li.listEntry {
  50. margin-left: 0em;
  51. margin-right: 1em;
  52. }
  53. li.listEntry > * {
  54. margin-right: 0.5em;
  55. text-indent: 0;
  56. unicode-bidi: embed;
  57. }
  58. li.listEntry > a:nth-of-type(2) {
  59. font-size: 13px;
  60. opacity: 0.5;
  61. }
  62. li.listEntry.toRemove > input[type="checkbox"] {
  63. visibility: hidden;
  64. }
  65. li.listEntry.toRemove > a.content {
  66. text-decoration: line-through;
  67. }
  68. li.listEntry > .fa {
  69. color: inherit;
  70. display: none;
  71. font-size: 110%;
  72. opacity: 0.5;
  73. vertical-align: baseline;
  74. }
  75. li.listEntry > a.fa:hover {
  76. opacity: 1;
  77. }
  78. li.listEntry.support > a.support {
  79. display: inline-block;
  80. }
  81. li.listEntry > a.remove,
  82. li.listEntry > a.remove:visited {
  83. color: darkred;
  84. }
  85. li.listEntry.external > a.remove {
  86. display: inline-block;
  87. }
  88. li.listEntry.mustread > a.mustread {
  89. display: inline-block;
  90. }
  91. li.listEntry.mustread > a.mustread:hover {
  92. color: mediumblue;
  93. }
  94. li.listEntry > .counts {
  95. display: none;
  96. font-size: smaller;
  97. }
  98. li.listEntry > input[type="checkbox"]:checked ~ .counts {
  99. display: inline;
  100. }
  101. li.listEntry span.status {
  102. color: #444;
  103. cursor: default;
  104. display: none;
  105. }
  106. li.listEntry span.status:hover {
  107. opacity: 1;
  108. }
  109. li.listEntry span.unsecure {
  110. color: #444;
  111. }
  112. li.listEntry.unsecure > input[type="checkbox"]:checked ~ span.unsecure {
  113. display: inline-block;
  114. }
  115. li.listEntry span.failed {
  116. color: darkred;
  117. }
  118. li.listEntry.failed span.failed {
  119. display: inline-block;
  120. }
  121. li.listEntry span.cache {
  122. cursor: pointer;
  123. }
  124. li.listEntry.cached:not(.obsolete) > input[type="checkbox"]:checked ~ span.cache {
  125. display: inline-block;
  126. }
  127. li.listEntry span.obsolete {
  128. color: hsl(36, 100%, 40%);
  129. }
  130. body:not(.updating) li.listEntry.obsolete > input[type="checkbox"]:checked ~ span.obsolete {
  131. display: inline-block;
  132. }
  133. li.listEntry span.updating {
  134. transform-origin: 50% 46%;
  135. }
  136. body.updating li.listEntry.obsolete > input[type="checkbox"]:checked ~ span.updating {
  137. animation: spin 1s step-start infinite;
  138. display: inline-block;
  139. }
  140. .dim {
  141. opacity: 0.5;
  142. }
  143. #externalLists {
  144. margin: 2em auto 0 auto;
  145. }
  146. body[dir="ltr"] #externalListsDiv {
  147. margin-left: 1em;
  148. }
  149. body[dir="rtl"] #externalListsDiv {
  150. margin-right: 1em;
  151. }
  152. #externalHostsFiles {
  153. box-sizing: border-box;
  154. font-size: smaller;
  155. width: 100%;
  156. height: 12em;
  157. white-space: pre;
  158. }