TYPO3Dark

Fixes for TYPO3 dashboards when using Dark Reader.

  1. /* ==UserStyle==
  2. @name TYPO3Dark
  3. @namespace sun/userstyles
  4. @version 1.5.14
  5. @description Fixes for TYPO3 dashboards when using Dark Reader.
  6. @compatible chrome
  7. @compatible edge
  8. @compatible firefox
  9. @compatible opera
  10. @compatible safari
  11. @homepageURL https://forgejo.sny.sh/sun/userstyles
  12. @supportURL https://forgejo.sny.sh/sun/userstyles/issues
  13. @contributionURL https://liberapay.com/sun
  14. @contributionAmount €1.00
  15. @author Sunny <sunny@sny.sh>
  16. @icon https://forgejo.sny.sh/sun/userstyles/raw/branch/main/icons/TYPO3Dark.ico
  17. @copyright 2020-present, Sunny (https://sny.sh/)
  18. @license Hippocratic License; https://forgejo.sny.sh/sun/userstyles/src/branch/main/LICENSE.md
  19. @preprocessor stylus
  20. @var checkbox fixmm "Fix module menu" 1
  21. @var checkbox fixpt "Fix page tree" 1
  22. @var checkbox fixic "Fix icons and images" 1
  23. @var checkbox fixal "Fix access legend" 1
  24. @var checkbox fixad "Fix Adminer" 1
  25. @var checkbox fixpm "Fix phpMyAdmin" 1
  26. @var checkbox supt7 "Support TYPO3 v7" 1
  27. @var checkbox supt6 "Support TYPO3 v6" 1
  28. ==/UserStyle== */
  29.  
  30. @-moz-document regexp(".*/typo3/.*") {
  31. @media not print {
  32. if fixmm {
  33. .modulemenu-action:not(:disabled):hover,
  34. .modulemenu-action-active {
  35. background-color: rgba(255, 255, 255, 0.125) !important;
  36. box-shadow: none !important;
  37. }
  38. .modulemenu-action:not(:disabled):focus {
  39. box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  40. }
  41. }
  42. if fixpt {
  43. .svg-tree-wrapper {
  44. .node-name {
  45. filter: invert(1);
  46. }
  47. .node-selected {
  48. fill: rgba(255, 255, 255, 0.125);
  49. }
  50. .node-over:not(.node-selected) {
  51. fill: rgba(255, 255, 255, 0.25);
  52. }
  53. .node-selected,
  54. .node-over:not(.node-selected) {
  55. stroke: none;
  56. }
  57. .links {
  58. opacity: 0.5;
  59. }
  60. .nodes-wrapper--dragging .node-over {
  61. filter: invert(1) hue-rotate(180deg);
  62. }
  63. }
  64. }
  65. if fixic {
  66. img {
  67. &[src^="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions"],
  68. &[src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/spinner/spinner-circle.svg"],
  69. &[src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/spinner/spinner-circle-dark.svg"],
  70. &[src="/typo3conf/ext/news/Resources/Public/Icons/donation.svg"] {
  71. filter: invert(1) hue-rotate(180deg);
  72. }
  73. &[src="/typo3/sysext/backend/Resources/Public/Images/typo3_black.svg"],
  74. &[src="/typo3/sysext/backend/Resources/Public/Images/typo3_orange.svg"],
  75. &[src="/typo3/sysext/install/Resources/Public/Images/typo3_orange.svg"] {
  76. filter: invert(1) hue-rotate(180deg) brightness(1.54);
  77. }
  78. }
  79. select.form-control:not(.form-select-no-siblings) {
  80. &:not([size]),
  81. &[size="1"] {
  82. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M8.37 10.47a.506.506 0 0 1-.72 0L4.11 6.93c-.2-.2-.2-.5 0-.7l.7-.7c.2-.2.5-.2.7 0l2.5 2.5 2.5-2.5c.2-.2.5-.2.7 0l.7.7c.2.2.2.5 0 .7l-3.54 3.54z'/%3E%3C/svg%3E");
  83. background-repeat: no-repeat;
  84. background-position: right;
  85. }
  86. }
  87. }
  88. if fixal {
  89. .access-legend {
  90. .vr,
  91. .hr,
  92. .edge {
  93. filter: invert(1);
  94. }
  95. }
  96. }
  97. if supt7 {
  98. .typo3-topbar-navigation-items > li > a,
  99. [id="typo3-menu"] .typo3-module-menu-group {
  100. border: none;
  101. }
  102. }
  103. if supt6 {
  104. #typo3-index-php {
  105. background-color: #494949;
  106. }
  107. div.typo3-dyntabmenu-divs {
  108. background-image: none;
  109. }
  110. }
  111. }
  112. }
  113.  
  114. @-moz-document regexp(".*/typo3conf/ext/t3adminer/.*/t3adminer.php.*"), regexp(".*/typo3/index.php\\?route=%2Fmodule%2Ftools%2Ftxt3adminer.*") {
  115. @media not print {
  116. if fixad {
  117. .footer {
  118. border-image: linear-gradient(rgba(24, 26, 27, 0.2), #181a1b) 100% 0;
  119. }
  120. .links,
  121. #tables,
  122. td {
  123. a::before {
  124. filter: invert(1);
  125. }
  126. }
  127. }
  128. }
  129. }
  130.  
  131. @-moz-document regexp(".*/typo3conf/ext/phpmyadmin/.*/index.php.*"), regexp(".*/typo3/index.php\\?route=%2Fmodule%2Ftools%2FPhpmyadmin.*") {
  132. @media not print {
  133. if fixpm {
  134. #pma_navigation,
  135. .ui-widget-header,
  136. .ui-dialog-buttonpane button,
  137. .ui-dialog-buttonpane button:hover {
  138. background-image: none;
  139. }
  140. }
  141. }
  142. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址