Cici responsive + customizations

Cici website is more suitable for wide screens.

当前为 2025-01-01 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Cici responsive + customizations
  3. @version 1.0.3
  4. @description Cici 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/cici
  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 text fontsize "Custom font size" 1.2rem
  13. @var checkbox darkmode "Dark mode" 1
  14. @var checkbox widemode "Wide mode" 1
  15. ==/UserStyle== */
  16.  
  17. /* === Credits ===
  18. Website https://breat.fr
  19. facebook https://www.facebook.com/breatfroff
  20. mastodon https://mastodon.social/@breat_fr
  21. telegram https://t.me/breatfr
  22. vk https://vk.com/breatfroff
  23. X (twitter) https://x.com/breatfroff
  24. === Credits === */
  25.  
  26. @-moz-document url-prefix("https://www.ciciai.com/chat/") {
  27. /* ========================================================
  28. Website theme
  29. ======================================================== */
  30. /* Versions */
  31. :root {
  32. --themeversion: 'Theme v1.0.3 · ';
  33. --scriptversion: 'Script v1.0.0 \A';
  34. --author: 'by BreatFR (https://breat.fr) \A \A';
  35. --install1: ' usercssjs.breat.fr \A';
  36. --install2: ' gitlab.com/breatfr/cici \A \A';
  37. --support1: ' ko-fi.com/breatfr \A';
  38. --support2: ' paypal.me/breat';
  39.  
  40. --chat-area-max-width: 100%;
  41. --chat-bg-color: #212121;
  42. --color-neutral-100: #cbcbcb;
  43. --s-color-bg-primary: #2f2f2f;
  44. --s-color-bg-secondary: #2f2f2f;
  45. --s-color-bg-tertiary: #171717;
  46. --s-color-bg-trans: rgba(255, 255, 255, 0.2);
  47. --s-color-brand-primary-default: #7e94fe;
  48. --s-color-text-primary: #cbcbcb;
  49. --s-color-text-secondary: #cbcbcb;
  50. --s-color-text-tertiary: #cbcbcb;
  51. --s-color-text-quaternary: #cbcbcb;
  52. }
  53.  
  54. [data-testid="bookmark_entry"]::after {
  55. background: linear-gradient(88.55deg, rgb(139, 109, 255) 22.43%, rgb(254, 132, 132) 92.28%);
  56. background-clip: text;
  57. -webkit-background-clip: text;
  58. bottom: 1em;
  59. color: transparent;
  60. content: var(--themeversion) var(--scriptversion) var(--author) 'Install: \A' url("https://gitlab.com/breatfr/kindroid/-/raw/main/images/icon_breat.fr.png") var(--install1) url("https://gitlab.com/breatfr/kindroid/-/raw/main/images/icon_gitlab.png") var(--install2) 'Support me: \A' url("https://gitlab.com/breatfr/kindroid/-/raw/main/images/icon_ko-fi.png") var(--support1) url("https://gitlab.com/breatfr/kindroid/-/raw/main/images/icon_paypal.png") var(--support2);
  61. display: block;
  62. font-family: Montserrat;
  63. font-size: 1rem;
  64. left: 0;
  65. line-height: 1.5;
  66. max-width: 280px;
  67. position: fixed;
  68. text-align: center;
  69. width: 100%;
  70. white-space: pre-line;
  71. }
  72.  
  73. /* Custom font size */
  74. .skill-bar-button *,
  75. [data-testid="bot_discover_recommend_list"] *,
  76. [data-testid="carousel-item"] *,
  77. [data-testid="guidance_groups_skill_card"] *,
  78. [data-testid="union_message"] *,
  79. textarea {
  80. font-size: fontsize !important;
  81. line-height: 1.5 !important;
  82. }
  83. if darkmode {
  84. [data-testid="chat_siderbar"] {
  85. border-right: 1px solid #7e94fe !important;
  86. }
  87. [class*="send-message-box-content-"],
  88. [class*="send-message-box-content-coco-"] {
  89. background: rgba(50, 50, 50, 0.85);
  90. border-radius: 1.5rem;
  91. }
  92. body {
  93. color: #cbcbcb;
  94. }
  95.  
  96. [class*="chat-input-container"] {
  97. box-shadow: rgba(126, 148, 254, 0.2) -2px -2px 2px 2px,
  98. rgba(126, 148, 254, 0.2) -2px 2px 2px 2px,
  99. rgba(0, 87, 255, 0.2) 2px -2px 2px 2px,
  100. rgba(0, 87, 255, 0.2) 2px 2px 2px 2px;
  101. }
  102. [data-testid="create_conversation_button"] svg path,
  103. svg[class*="short-cut-"] path,
  104. svg[class*="short-cut-"] rect {
  105. stroke: #7e94fe;
  106. }
  107. [data-testid="scroll_view"] svg path {
  108. stroke: #cbcbcb;
  109. }
  110. .semi-space svg path {
  111. fill: #cbcbcb;
  112. }
  113. [class*="thread-creation-"] {
  114. color: var(--s-color-brand-primary-default, #7e94fe);
  115. }
  116. [class*="chat-input-"] {
  117. background: #2f2f2f;
  118. }
  119. [data-testid="chat_input_send_button"]:disabled {
  120. background-color: grey;
  121. }
  122. a[class*="section-item-"]:not(.active-):hover {
  123. background: var(--s-color-bg-trans, rgba(255, 255, 255, 0.2)) !important;
  124. }
  125. [class*="to-bottom-button-"] {
  126. background: var(--s-color-bg-tertiary);
  127. }
  128. }
  129.  
  130. if widemode {
  131. /* Wide chat */
  132. [style*="--right-side-width: 0px; --center-content-max-width:"] {
  133. --center-content-max-width: 100% !important;
  134. }
  135. /* Cici's face on home page */
  136. @media (max-width: 600px) {
  137. [class*="guidance-view-layout-"] {
  138. display: flex;
  139. flex-direction: column;
  140. height: calc(100vh - 216px);
  141. justify-content: center;
  142. padding: 10px 0;
  143. }
  144. }
  145. [data-testid="guidance_panel"]::before {
  146. aspect-ratio: 1 / 1;
  147. background: url("https://gitlab.com/breatfr/cici/-/raw/main/docs/cici-icon.png") no-repeat center center / cover;
  148. content: "";
  149. display: inline-block;
  150. height: 100%;
  151. margin: auto;
  152. max-height: 256px;
  153. min-height: 100px;
  154. width: auto;
  155. }
  156. /* Images sent by us */
  157. [data-testid="message_content"] [class*="container-"] {
  158. margin-left: auto;
  159. }
  160. [data-testid="mdbox_image"] {
  161. border: 1px solid #7e94fe !important;
  162. border-radius: 12px;
  163. }
  164. /* Chat "bubbles" */
  165. [class*="message-box__reverse-"] {
  166. margin-left: auto;
  167. }
  168. [class*="send-message-"] {
  169. display: flex;
  170. justify-content: flex-end;
  171. margin-left: auto;
  172. max-width: 100%;
  173. }
  174. [data-testid="send_message"] [data-testid="message_content"] {
  175. padding-bottom: 0.625rem;
  176. padding-left: 1.25rem;
  177. padding-right: 1.25rem;
  178. padding-top: 0.625rem;
  179. }
  180. [data-testid="send_message"],
  181. [data-testid="receive_message"] {
  182. max-width: 80%;
  183. min-width: 80%;
  184. width: 100%;
  185. }
  186. /* Avatar */
  187. .semi-avatar img {
  188. background-color: transparent !important;
  189. }
  190. [data-testid="chat_header_avatar_button"] {
  191. height: 36px !important;
  192. width: 36px !important;
  193. }
  194. }
  195. }
  196.  
  197. @-moz-document url-prefix("http://"), url-prefix("https://") {
  198. /* ========================================================
  199. Browser plugin
  200. ======================================================== */
  201. /* Translated by Cici */
  202. :root {
  203. --s-color-text-secondary: #cbcbcb;
  204. --select-assistant-bg-color: #212121;
  205. }
  206. .__Cici_translate_translated_inject_node__:before {
  207. background: url("https://gitlab.com/breatfr/cici/-/raw/main/docs/cici-icon.png") no-repeat center center / cover;
  208. content: "";
  209. display: inline-block;
  210. height: 1.2rem;
  211. margin: auto;
  212. margin-right: 5px;
  213. vertical-align: middle;
  214. width: 1.2rem;
  215. }
  216. .__Cici_translate_translated_inject_node__ {
  217. box-shadow: rgba(126, 148, 254, 0.2) -2px -2px 2px 2px,
  218. rgba(126, 148, 254, 0.2) -2px 2px 2px 2px,
  219. rgba(0, 87, 255, 0.2) 2px -2px 2px 2px,
  220. rgba(0, 87, 255, 0.2) 2px 2px 2px 2px;
  221. border-radius: 12px;
  222. padding: 5px 10px;
  223. }
  224. }