Mistral Chat responsive + customizations

Mistral Chat website is more suitable for wide screens.

当前为 2024-12-31 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Mistral Chat responsive + customizations
  3. @version 1.0.0
  4. @description Mistral Chat website is more suitable for wide screens.
  5. @author BreatFR (https://breat.fr)
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/mistral-chat
  8. @supportURL https://discord.gg/Q8KSHzdBxs
  9. @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
  10. @preprocessor stylus
  11.  
  12. @var checkbox darkmode "Better dark mode" 1
  13. @var checkbox avatar "Custom avatar" 1
  14. @var text avatarurl "Custom avatar URL" "URL between quotes"
  15. @var text fontsize "Custom font size" 1.2rem
  16. @var checkbox widemode "Wide mode" 1
  17. ==/UserStyle== */
  18.  
  19. /* === Credits ===
  20. Website https://breat.fr
  21. facebook https://www.facebook.com/breatfroff
  22. mastodon https://mastodon.social/@breat_fr
  23. telegram https://t.me/breatfr
  24. vk https://vk.com/breatfroff
  25. X (twitter) https://x.com/breatfroff
  26. === Credits === */
  27.  
  28. @-moz-document domain("chat.mistral.ai") {
  29. /* Custom font size */
  30. .prose,
  31. code,
  32. textarea,
  33. .max-w-screen-md:has(textarea) button {
  34. font-size: fontsize !important;
  35. line-height: 1.5 !important;
  36. }
  37. textarea.py-2 {
  38. min-height: max-content !important;
  39. }
  40. if avatar {
  41. [data-sidebar="menu-button"] > div:nth-of-type(1) {
  42. background: transparent;
  43. color: transparent;
  44. }
  45. [class="group relative flex w-full gap-3"] > span > span {
  46. display: none;
  47. }
  48. [data-sidebar="menu-button"] > div:nth-of-type(1):before,
  49. [class="group relative flex w-full gap-3"] > span:before {
  50. background: url(avatarurl) no-repeat center center / cover;
  51. border-radius: 50%;
  52. content: "";
  53. display: inline-block;
  54. height: 32px;
  55. width: 32px;
  56. }
  57. }
  58. if chatmode {
  59. [class="group relative flex w-full gap-3"] > span {
  60. order: 2;
  61. }
  62. [class="group relative flex w-full gap-3"] > div {
  63. order: 1;
  64. }
  65. [class="group relative flex w-full gap-3"] > div > div:nth-of-type(1) > div > div {
  66. align-items: flex-end !important;
  67. justify-content: flex-end !important;
  68. }
  69. [class="group flex w-full gap-3"] {
  70. border-bottom: 1px solid rgba(255, 149, 0, 0.4);
  71. border-top: 1px solid rgba(255, 149, 0, 0.4);
  72. margin-bottom: 28px;
  73. padding-top: 28px;
  74. }
  75. [class="group flex w-full gap-3"]:last-child {
  76. border-bottom: 0;
  77. border-top: 1px solid rgba(255, 149, 0, 0.4);
  78. }
  79. }
  80. if darkmode {
  81. .dark,
  82. .light {
  83. --background: 240 5.9% 10%;
  84. --secondary-200: 240 5.9% 10%;
  85. --sidebar-background: 0 0% 5%;
  86. }
  87. .shadow-lg {
  88. box-shadow: rgba(255, 149, 0, 0.4) -2px -2px 2px 2px,
  89. rgba(255, 149, 0, 0.4) -2px 2px 2px 2px,
  90. rgba(255, 69, 0, 0.4) 2px -2px 2px 2px,
  91. rgba(255, 69, 0, 0.4) 2px 2px 2px 2px;
  92. }
  93. }
  94. if widemode {
  95. .max-w-screen-md {
  96. max-width: 100%;
  97. }
  98. .max-w-screen-md:has(textarea) {
  99. max-width: 100%;
  100. padding: 20px;
  101. }
  102. /* Avatars */
  103. .h-7 {
  104. height: 32px;
  105. }
  106. .w-7 {
  107. width: 32px;
  108. }
  109. }
  110. }

QingJ © 2025

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