RocketChat | Discord Theme

Changes RocketChat to a dark Discord theme. WARNING: YOU MAY HAVE TO ADD DOMAINS DEPENDING ON WHICH SERVERS YOU'RE USING!

目前为 2020-07-23 提交的版本。查看 最新版本

  1. /* ==UserStyle==
  2. @name RocketChat | Discord Theme
  3. @namespace github.com/openstyles/stylus
  4. @version 1.0.3
  5. @description Changes RocketChat to a dark Discord theme. WARNING: YOU MAY HAVE TO ADD DOMAINS DEPENDING ON WHICH SERVERS YOU'RE USING!
  6. @author Freeplay (https://pages.codeberg.org/freeplay/)
  7. ==/UserStyle== */
  8.  
  9. /* July, 23 / 20
  10. - Fixes some more issues due to the update, Not everything is fixed but it's back to being usable
  11. - https://gf.qytechs.cn/en/scripts/402919-rocketchat-discord-theme/discussions/54393
  12. /* July, 12 / 20
  13. - Some fixes
  14. */
  15. /* May, 14 / 20
  16. - Fixed Message Dividers
  17. */
  18. @-moz-document domain("stux.chat"), domain("open.rocket.chat") {
  19. /* Yes, I realize this may be a bit messy. Feedback is appreciated!*/
  20. /* Frames */
  21. * {
  22. transition: background 0s !important;
  23. border-color: hsla(0,0%,100%,0.06);
  24. }
  25. .wrapper {
  26. scrollbar-color: #202225 #36393f;
  27. }
  28. .section {
  29. border-color: hsla(0,0%,100%,0.06) !important;
  30. }
  31. .rc-old {
  32. border: none !important;
  33. }
  34. .rcx-box {
  35. color: white;
  36. border: none !important;
  37. /*background-color: #36393f !important;*/
  38. }
  39. .rcx-box:after {
  40. border: none !important;
  41. }
  42. .rcx-tile--elevation-0, .rcx-tile--elevation-1 {
  43. background-color: #202225;
  44. color: white;
  45. }
  46.  
  47. /* Text */
  48. .global-font-family {
  49. font-family: Whitney, Helvetica Neue, Helvetica, Arial, sans-serif !important;
  50. }
  51. .color-primary-font-color, .rc-form-label, .rc-switch__text {
  52. color: #dcddde;
  53. }
  54. .rcx-box--text-style-h1 {
  55. color: white;
  56. }
  57. .rc-switch-double {
  58. color: #7289DA;
  59. }
  60. a {
  61. color: #7289DA;
  62. }
  63. label {
  64. color: white;
  65. }
  66.  
  67. /* Alerts */
  68. .alert {
  69. background-color: #1f2124;
  70. color: white;
  71. border: none;
  72. }
  73. .rcx-callout--type-warning {
  74. background-color: #1f2124;
  75. }
  76. /* Other */
  77. .role-tag, .message-alias, .rc-apps-category, .remove-role, .is-bot {
  78. background-color: #7289DA !important;
  79. border: none !important;
  80. color: white !important;
  81. font-size: 10px !important;
  82. line-height: 15px !important;
  83. border-radius: 3px !important;
  84. font-weight: 500 !important;
  85. padding: 0 4px !important;
  86. text-transform: uppercase;
  87. display: inline-block;
  88. height: 15px !important;
  89. }
  90. .mention-link { /* Mention Tags */
  91. border-radius: 3px !important;
  92. padding: 0 2px !important;
  93. color: #7289da !important;
  94. background: rgba(114,137,218,.1) !important;
  95. font-weight: 500 !important;
  96. }
  97. .mention-link:hover {
  98. background: #7289da !important;
  99. color: white !important;
  100. opacity: 1 !important;
  101. }
  102. .mention-link--user:before {
  103. content: "@";
  104. }
  105. .reactions > li { /* Emoji Reactions */
  106. background-color: rgba(114,137,218,.3) !important;
  107. border: none !important;
  108. border-radius: .25rem;
  109. margin-right: .125rem;
  110. margin-bottom: .125rem;
  111. }
  112. .reactions > li.add-reaction {
  113. background-color: transparent !important;
  114. }
  115.  
  116. /* TextBoxes */
  117. .rc-input__element, .rcx-input-box__wrapper, .rcx-input-box, .rc-tags__input/*, .rcx-select*/ {
  118. background-color: #202225 !important;
  119. border: none !important;
  120. border-radius: 4px !important;
  121. color: white !important;
  122. box-shadow: none !important;
  123. }
  124. .rc-input__icon {
  125. color: #dcddde;
  126. }
  127. /* CodeBlocks */
  128. .CodeMirror-gutters {
  129. background-color: #202225;
  130. }
  131. .code-colors, code, .CodeMirror-scroll {
  132. color: white !important;
  133. background-color: #2f3136 !important;
  134. border: 1px solid #202225 !important;
  135. border-radius: 4px !important;
  136. }
  137. .hljs-keyword, .hljs-string, .cm-string {
  138. color: #dc3233;
  139. }
  140. /* Buttons */
  141. .rc-button, .rcx-button {
  142. background-color: #7289da;
  143. color: white;
  144. border: none;
  145. border-radius: 3px;
  146. font-weight: 500;
  147. line-height: 16px;
  148. font-size: 14px;
  149. /*padding: 2px 16px;*/
  150. }
  151. .rc-button:hover, .rcx-button:hover {
  152. background-color: #677bc4 !important;
  153. opacity: 1 !important;
  154. }
  155. .rc-button--cancel {
  156. background-color: transparent !important;
  157. border: 1px solid rgba(240,71,71,.3) !important;
  158. color: #f04747;
  159. }
  160. .rc-button:disabled, .rcx-button--primary:disabled {
  161. background-color: #7289da;
  162. color: white;
  163. opacity: 0.7;
  164. }
  165. .rc-select, select.rc-input { /* DropDown */
  166. background-color: rgb(79, 84, 92) !important;
  167. color: white !important;
  168. box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px 0px !important;
  169. border: none !important;
  170. }
  171. .rc-select__element {
  172. color: white !important;
  173. }
  174. option {
  175. background-color: rgb(79, 84, 92);
  176. color: white;
  177. border: none;
  178. border-radius: 4px;
  179. }
  180. /* Files */
  181. .attachments__item:hover {
  182. background-color: rgba(79,84,92,0.32) !important;
  183. }
  184. .attachments__name {
  185. color: white !important;
  186. }
  187. i {
  188. color: white !important;
  189. }
  190. /*** SIDEBAR ***/
  191. .sidebar {
  192. max-width: 240px;
  193. min-width: 240px;
  194. background-color: #2f3136;
  195. }
  196. .rooms-list {
  197. margin-top: 48px;
  198. scrollbar-color: #202225 transparent;
  199. scrollbar-width: thin;
  200. }
  201. .rooms-list__list:not(:last-child) {
  202. margin: 0 !important;
  203. }
  204. h3.rooms-list__type {
  205. height: 40px !important;
  206. padding: 16px 16px 0 16px;
  207. }
  208. .sidebar-item { /* Sidebar Buttons */
  209. height: 34px !important;
  210. font-size: 16px !important;
  211. font-weight: 500 !important;
  212. color: #8e9297 !important;
  213. margin: 0 8px !important;
  214. padding: 0 !important;
  215. }
  216. .sidebar-item__picture {
  217. display: none;
  218. }
  219. .sidebar-item__body {
  220. font-size: 16px !important;
  221. font-weight: 500 !important;
  222. padding: 0 8px;
  223. }
  224. .sidebar-item:hover {
  225. background-color: rgba(79, 84, 92, 0.16) !important;
  226. }
  227. .sidebar-item--active {
  228. background-color: rgba(79, 84, 92, 0.32) !important;
  229. color: white !important;
  230. }
  231. .sidebar-item--unread {
  232. color: white !important;
  233. }
  234.  
  235. .sidebar__header {
  236. position: fixed;
  237. top: 0;
  238. background-color: #2f3136;
  239. width: 240px;
  240. min-width: 240px;
  241. max-width: 240px;
  242. margin: 0;
  243. padding: 12px;
  244. z-index: 1;
  245. box-shadow: 0 1px 0 rgba(4,4,5,0.2),0 1.5px 0 rgba(6,6,7,0.05),0 2px 0 rgba(4,4,5,0.05);
  246. }
  247. .sidebar__header-thumb {
  248. margin: 0;
  249. margin-right: 10px;
  250. }
  251. .sidebar__toolbar {
  252. margin: 0 !important;
  253. padding: 0 !important;
  254. justify-content: space-evenly;
  255. /*display: grid !important;
  256. grid-template-columns: repeat(auto-fill,minmax(25px, 1fr))*/
  257. }
  258. .sidebar__toolbar-button {
  259. margin: 0;
  260. width: 25px;
  261. }
  262. /*** CONTENT ***/
  263. .content-background-color {
  264. background-color: #36393f;
  265. }
  266. /* HEADER */
  267. .rc-header--room {
  268. /*background-color: #36393f;*/
  269. height: 48px;
  270. padding: 0;
  271. padding-left: 8px;
  272. box-shadow: 0 1px 0 rgba(4,4,5,0.2),0 1.5px 0 rgba(6,6,7,0.05),0 2px 0 rgba(4,4,5,0.05);
  273. border: none !important;
  274. }
  275. .rc-header__wrap {
  276. background-color: transparent;
  277. height: 100%;
  278. }
  279. .rc-header__data {
  280. display: contents;
  281. }
  282. .rc-header__name {
  283. width: min-content;
  284. padding-right: 16px;
  285. border-right: 1px solid #ffffff0f;
  286. color: white;
  287. font-weight: 600;
  288. font-size: 16px !important;
  289. }
  290. .rc-header__topic {
  291. padding-left: 16px;
  292. }
  293. .rc-old .fixed-title {
  294. border: none !important;
  295. }
  296. /* MEssages */
  297. .messages-box ul {
  298. padding: 21px 0 25px;
  299. }
  300. .message {
  301. padding: 0;
  302. padding-left: 72px;
  303. padding-right: 48px;
  304. margin-top: 1.0625rem;
  305. line-height: 1.375rem;
  306. font-size: 100%;
  307. font-weight: 400;
  308. }
  309. .message .thumb {
  310. left: 16px;
  311. width: 40px;
  312. height: 40px;
  313. }
  314. .message .thumb:not(.thumb-small) .avatar {
  315. width: 40px;
  316. height: 40px;
  317. }
  318. .message-oembed, .attachment {
  319. background-color: #2f3136;
  320. border-radius: 4px;
  321. overflow: hidden;
  322. width: max-content;
  323. max-width: 100%;
  324. padding-right: 10px;
  325. }
  326. .rc-old blockquote::before, .attachment-block-border {
  327. display: flex;
  328. width: 4px !important;
  329. border-radius: 0px !important;
  330. margin-top: -5px;
  331. height: calc(100% + 10px)
  332. }
  333. .message-oembed > iframe {
  334. width: 100%;
  335. }
  336. .message-actions {
  337. color: white;
  338. background-color: #36393f;
  339. box-shadow: 0 0 0 1px rgba(4,4,5,0.15);
  340. border: none;
  341. }
  342. .message-actions__button:hover, .message-actions__menu:hover {
  343. background-color: #3e4249;
  344. }
  345. .message:hover, .message.active {
  346. background-color: rgba(4,4,5,0.07);
  347. }
  348. .message a {
  349. color: #7289DA;
  350. }
  351. .message.editing {
  352. background-color: rgba(250,166,26,0.08);
  353. }
  354. .message.new-day::before {
  355. background-color: #36393f;
  356. color: #72767d;
  357. border-radius: 50px;
  358. }
  359. .message.new-day::after {
  360. border-color: hsla(0,0%,100%,0.06) !important;
  361. border-width: thin !important;
  362. }
  363. /* TextBox */
  364. .rc-old .messages-container {
  365. overflow: hidden;
  366. }
  367. .rc-old .messages-container .footer {
  368. min-height: 68px;
  369. padding-bottom: 24px;
  370. background-color: #36393f;
  371. }
  372. .rc-message-box {
  373. background-color: #36393f !important;
  374. padding: 0;
  375. padding-left: 16px;
  376. padding-right: 16px;
  377. }
  378. /*.message-popup-results {
  379. bottom: 0;
  380. position: absolute;
  381. }*/
  382. .rc-message-box .reply-preview {
  383. background-color: #2e3035 !important;
  384. }
  385. .rc-message-box__container {
  386. border: none;
  387. background-color: #40444b;
  388. border-radius: 8px;
  389. padding: 9px 0;
  390. /*margin-bottom: 24px;*/
  391. }
  392. .rc-message-box__textarea {
  393. color: white;
  394. }
  395. .rc-message-box__container.editing {
  396. background-color: rgba(250,166,26,0.08);
  397. }
  398. .rc-message-box__toolbar-formatting {
  399. position: absolute;
  400. bottom: -24px;
  401. }
  402. .rc-message-box__typing {
  403. bottom: 0;
  404. margin-top: auto;
  405. position: fixed;
  406. height: 20px;
  407. color: white;
  408. }
  409. .rc-message-box__typing-user {
  410. color: white !important;
  411. }
  412. /* DropZone */
  413. .dropzone-overlay {
  414. background: rgba(0,0,0,0.8) !important;
  415. }
  416. /* Context SideBar */
  417. .rc-user-info-container {
  418. background-color: transparent !important;
  419. }
  420. .contextual-bar {
  421. background-color: #2f3136;
  422. box-shadow: none !important;
  423. border-inline-start: none !important;
  424. }
  425. .contextual-bar__header, .rcx-\@9jfjls {
  426. background-color: #2f3136;
  427. height: 48px;
  428. box-shadow: 0 1px 0 rgba(4,4,5,0.2),0 1.5px 0 rgba(6,6,7,0.05),0 2px 0 rgba(4,4,5,0.05);
  429. border: none;
  430. z-index: 2;
  431. }
  432. .contextual-bar__content, .rcx-\@10ikbhr {
  433. background-color: #2f3136;
  434. border-radius: 0 !important;
  435. }
  436. .contextual-bar__content > .rc-message-box {
  437. background-color: #2f3136 !important;
  438. }
  439. .rc-user-info__row--separator {
  440. border: none;
  441. }
  442. .rc-member-list__counter { /* Member list count text */
  443. color: white;
  444. }
  445. .rc-user-info-details {
  446. background-color: #202225;
  447. border-radius: 4px;
  448. color: white;
  449. }
  450. .rc-user-info-details__info {
  451. color: white;
  452. }
  453. .rc-member-list__user, .rcx-table__row {
  454. border-radius: 4px !important;
  455. height: 42px !important;
  456. padding: 0 8px !important;
  457. align-items: center !important;
  458. }
  459. .rc-member-list__user:hover, .rcx-table__row:hover {
  460. background-color: rgba(79,84,92,0.16);
  461. }
  462. .rc-member-list__user.active {
  463. background-color: rgba(79,84,92,0.32);
  464. color: white;
  465. }
  466. /* Discussions */
  467. .rcx-\@1usu1xd:hover, .rcx-\@1usu1xd:focus, .rcx-\@2xn2yo:hover, .rcx-\@2xn2yo:focus {
  468. background-color: rgba(79,84,92,0.16);
  469. }
  470. .rcx-\@16ef2pm {
  471. color: white !important;
  472. }
  473. .rc-old .list-view > .title:not(:last-child) { /* Search W/ Regex text */
  474. margin: 0;
  475. }
  476. .rocket-search-tab {
  477. padding: 8px;
  478. scrollbar-color: #202225 #2f3136;
  479. }
  480. .thread {
  481. padding: 8px;
  482. }
  483. .list > .message, .thread > .message {
  484. background-color: #36393f;
  485. border: 1px solid #202225;
  486. border-radius: 4px;
  487. padding-top: 8px;
  488. padding-bottom: 8px;
  489. }
  490. /*** SETTINGS ***/
  491. .flex-nav {
  492. background-color: #2f3136;
  493. }
  494. .rcx-\@197qq4o {
  495. color: white !important;
  496. }
  497. .flex-nav a:hover, .rcx-\@1l00c5f.active {
  498. background-color: #393c43 !important;
  499. }
  500. .rcx-\@txktj6 {
  501. background-color: #36393f !important;
  502. }
  503. /** Admin Settings */
  504. .rc-old .flex-tab-container.opened, .flex-tab-bar {
  505. box-shadow: none !important;
  506. }
  507. .flex-tab-bar .tab-button:hover {
  508. background-color: transparent;
  509. border-right: 1px solid white;
  510. }
  511. .tab-button.active {
  512. background-color: transparent !important;
  513. }
  514. .page-settings a:not(.rc-button) {
  515. color: #b9bbbe;
  516. }
  517. /* Tables */
  518. tr:not(.table-no-click):not(.table-no-pointer):hover {
  519. background-color: #2f3136 !important;
  520. }
  521. .statistics-table, .admin-table-row {
  522. background-color: #36393f !important;
  523. }
  524. .statistics-table:hover, .admin-table-row:hover {
  525. background-color: #2f3136 !important;
  526. }
  527. .rc-table-title {
  528. color: lightgray;
  529. }
  530. .table-fake-th {
  531. color: lightgray !important;
  532. }
  533. .permissions-manager .permission-grid .role-name {
  534. background-color: #36393f !important;
  535. color: white !important;
  536. }
  537. .page-list a:not(.rc-button) {
  538. color: lightgrey;
  539. }
  540. /* Integrations */
  541. .admin-integrations-new-item {
  542. border: none !important;
  543. color: white !important;
  544. }
  545. .admin-integrations-new-item:hover {
  546. background-color: rgba(79,84,92,0.32) !important;
  547. }
  548. /* Federation Dash */
  549. .overview-item > .value {
  550. color: white;
  551. }
  552. /* Accounts */
  553. .rcx-accordion-item__bar[tabindex]:hover {
  554. background-color: transparent !important;
  555. }
  556. /*** POPUPS ***/
  557. .rc-modal-wrapper {
  558. background: rgba(0,0,0,0.85)
  559. }
  560. .rc-modal {
  561. background-color: #36393f;
  562. color: white;
  563. box-shadow: 0 0 0 1px rgba(32,34,37,.6),0 2px 10px 0 rgba(0,0,0,.2);
  564. border-radius: 5px;
  565. width: 440px;
  566. max-height: 660px;
  567. min-height: 200px;
  568. padding: 0;
  569. overflow: hidden;
  570. }
  571. .rc-modal__header {
  572. padding: 20px;
  573. }
  574. .rc-modal__title {
  575. font-weight: 600;
  576. font-size: 16px;
  577. line-height: 20px;
  578. letter-spacing: .3px;
  579. text-transform: uppercase;
  580. }
  581. .rc-modal__content {
  582. padding: 20px;
  583. padding-top: 10px;
  584. }
  585. .rc-modal__content-icon {
  586. display: none;
  587. }
  588. .rc-modal__content-text {
  589. text-align: left;
  590. font-size: 16px;
  591. line-height: 20px;
  592. color: #dcddde;
  593. }
  594. .rc-modal__footer {
  595. background-color: #2f3136;
  596. bottom: 0;
  597. margin-top: auto;
  598. }
  599. /* Emoji Picker */
  600. .emoji-picker {
  601. background-color: #2f3136 !important;
  602. border-radius: 8px;
  603. box-shadow: 0 0 0 1px rgba(4,4,5,0.15), 0 8px 16px rgba(0,0,0,0.24);
  604. padding: 0;
  605. }
  606. .filter-item {
  607. border: none !important;
  608. }
  609. .filter-item.active {
  610. border-bottom: solid !important;
  611. }
  612. .emoji-footer {
  613. display: none;
  614. }
  615. /* Context Menu */
  616. .rc-popover__content {
  617. background-color: #202225;
  618. padding: 6px 8px;
  619. min-width: 188px;
  620. max-width: 320px;
  621. border-radius: 4px;
  622. box-shadow: 0 8px 16px rgba(0,0,0,0.24);
  623. }
  624. .rc-popover__title {
  625. color: #7289da;
  626. padding-top: 8px;
  627. }
  628. .rc-popover__list {
  629. margin-bottom: 8px;
  630. }
  631. .rc-popover__item {
  632. color: #b9bbbe;
  633. height: 35px;
  634. font-size: 14px;
  635. font-weight: 500;
  636. line-height: 18px;
  637. }
  638. .rc-popover__item:hover {
  639. background-color: rgba(79,84,92,0.16);
  640. }
  641. .rc-popover__divider {
  642. height: 1px;
  643. margin: 0;
  644. margin-top: -4px;
  645. background-color: hsla(0,0%,100%,0.06);
  646. }
  647. }

QingJ © 2025

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