iCloud customizations

Customizations for iCloud website.

目前为 2024-12-17 提交的版本。查看 最新版本

  1. /* ==UserStyle==
  2. @name iCloud customizations
  3. @version 1.0.4
  4. @description Customizations for iCloud website.
  5. @author BreatFR (https://breat.fr)
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/icloud
  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.  
  13. @var checkbox hidebanner "Hide banner" 1
  14. @var checkbox hidemail "Hide mail" 0
  15. @var checkbox hidecontacts "Hide contacts" 0
  16. @var checkbox hidecalendar "Hide calendar" 0
  17. @var checkbox hidephotos "Hide photos" 0
  18. @var checkbox hidedrive "Hide drive" 0
  19. @var checkbox hidenotes "Hide notes" 0
  20. @var checkbox hidereminders "Hide reminders" 0
  21. @var checkbox hidepages "Hide pages" 0
  22. @var checkbox hidenumbers "Hide numbers" 0
  23. @var checkbox hidekeynote "Hide keynote" 0
  24. @var checkbox hidefind "Hide find" 0
  25. @var checkbox biggertextevents "Bigger text in events" 1
  26. @var text fontsize "Font size" 1rem
  27. @var checkbox hidecalendarsidebar "Hide calendar sidebar" 0
  28. @var checkbox monthyearright "Set month and year on right" 0
  29. ==/UserStyle== */
  30.  
  31. /* === Credits ===
  32. Website https://breat.fr
  33. facebook https://www.facebook.com/breatfroff
  34. mastodon https://mastodon.social/@breat_fr
  35. telegram https://t.me/breatfr
  36. vk https://vk.com/breatfroff
  37. X (twitter) https://x.com/breatfroff
  38. === Credits === */
  39.  
  40. @-moz-document domain("icloud.com") {
  41. /* iCloud */
  42. if hidebanner {
  43. .banner-content {
  44. display: none !important;
  45. height: 0;
  46. width: 0;
  47. }
  48. }
  49. /* Hide elements you don't use */
  50. if hidemail {
  51. [href="https://www.icloud.com/mail"] {
  52. display: none !important;
  53. height: 0;
  54. width: 0;
  55. }
  56. }
  57. if hidecontacts {
  58. [href="https://www.icloud.com/contacts"] {
  59. display: none !important;
  60. height: 0;
  61. width: 0;
  62. }
  63. }
  64. if hidecalendar {
  65. [href="https://www.icloud.com/calendar"] {
  66. display: none !important;
  67. height: 0;
  68. width: 0;
  69. }
  70. }
  71. if hidephotos {
  72. [href="https://www.icloud.com/photos"] {
  73. display: none !important;
  74. height: 0;
  75. width: 0;
  76. }
  77. }
  78. if hidedrive {
  79. [href="https://www.icloud.com/iclouddrive"] {
  80. display: none !important;
  81. height: 0;
  82. width: 0;
  83. }
  84. }
  85. if hidenotes {
  86. [href="https://www.icloud.com/notes"] {
  87. display: none !important;
  88. height: 0;
  89. width: 0;
  90. }
  91. }
  92. if hidereminders {
  93. [href="https://www.icloud.com/reminders"] {
  94. display: none !important;
  95. height: 0;
  96. width: 0;
  97. }
  98. }
  99. if hidepages {
  100. [href="https://www.icloud.com/pages"] {
  101. display: none !important;
  102. height: 0;
  103. width: 0;
  104. }
  105. }
  106. if hidenumbers {
  107. [href="https://www.icloud.com/numbers"] {
  108. display: none !important;
  109. height: 0;
  110. width: 0;
  111. }
  112. }
  113. if hidekeynote {
  114. [href="https://www.icloud.com/keynote"] {
  115. display: none !important;
  116. height: 0;
  117. width: 0;
  118. }
  119. }
  120. if hidefind {
  121. [href="https://www.icloud.com/find"] {
  122. display: none !important;
  123. height: 0;
  124. width: 0;
  125. }
  126. }
  127. [dir=ltr] .navigation-drawer {
  128. padding: 45px 20px;
  129. }
  130. [dir=ltr] .home-page .application-content .tile-grid.lg {
  131. padding-bottom: 40px;
  132. }
  133. }
  134.  
  135. @-moz-document url-prefix("https://www.icloud.com/applications/calendar/") {
  136. /* Calendar */
  137. if hidecalendarsidebar {
  138. ui-split[style="width: 250px;"],
  139. ui-split-divider[style="left: 250px;"] {
  140. display: none;
  141. width: 0;
  142. }
  143. }
  144. if biggertextevents {
  145. .event-button * {
  146. font-size: fontsize;
  147. line-height: 1.5;
  148. }
  149. .col-color,
  150. .event-button svg {
  151. height: fontsize !important;
  152. width: fontsize !important;
  153. }
  154. }
  155. /* Today */
  156. .css-107fxrr > span,
  157. .css-8ts4xs,
  158. .css-6k0qnq {
  159. color: var(--theme-color-systemWhite);
  160. }
  161. /* Birthday better view */
  162. .event-button:has(.birthday) {
  163. background-color: transparent;
  164. }
  165. .birthday > div {
  166. color: var(--theme-color-systemRed);
  167. fill: var(--theme-color-systemRed);
  168. }
  169.  
  170. /* Set month and year on right */
  171. if monthyearright {
  172. .css-10udamb {
  173. order: 3;
  174. }
  175. .css-1yaufk0 {
  176. color: var(--theme-color-systemRed);
  177. }
  178. .css-xcsuj9 {
  179. margin-inline-start: auto;
  180. }
  181. .css-t7kvo9 {
  182. order: 2;
  183. }
  184. .css-iwyx1e {
  185. flex-direction: row-reverse;
  186. justify-content: flex-start;
  187. order: 1;
  188. }
  189. }
  190. /* ========================
  191. Day view
  192. ======================== */
  193. /* No more space around day table */
  194. .css-6ub2mo {
  195. padding: 0;
  196. }
  197. if biggertextevents {
  198. .css-1b9imfs {
  199. grid-auto-rows: auto;
  200. }
  201. .css-oyl8cq {
  202. height: max-content;
  203. }
  204. }
  205. /* ========================
  206. Week view
  207. ======================== */
  208. /* No more space around week table */
  209. .css-bhx65h {
  210. padding: 0;
  211. }
  212. if biggertextevents {
  213. .css-12eikme {
  214. align-self: center;
  215. }
  216. .css-5ve0cs {
  217. height: max-content;
  218. }
  219. .css-1h98574 {
  220. grid-auto-rows: auto;
  221. }
  222. }
  223. /* Days label */
  224. .week-daylabel {
  225. justify-content: center;
  226. }
  227. .css-1ttvfef {
  228. color: var(--theme-color-systemWhite);
  229. }
  230. .css-8ts4xs + .css-1ttvfef {
  231. color: var(--theme-color-systemRed);
  232. }
  233.  
  234. /* ========================
  235. Month view
  236. ======================== */
  237. /* No more space around month table */
  238. .css-6mc1rx {
  239. padding: 0;
  240. }
  241. if biggertextevents {
  242. .css-6310j7 {
  243. height: auto;
  244. }
  245. .css-1opsrsm {
  246. grid-auto-rows: auto;
  247. }
  248. .css-6pogpz {
  249. white-space: wrap;
  250. }
  251. }
  252. /* Passed days */
  253. .css-swsj24 {
  254. color: var(--theme-color-labelTertiary)
  255. }
  256. /* Day focused */
  257. .month-view-day-cell:focus {
  258. background: rgba(255, 255, 255, 0.2);
  259. }
  260. /* Days label */
  261. .n-grid-col > span {
  262. display: flex;
  263. justify-self: center;
  264. padding-inline-start: 0;
  265. }
  266. .css-1fdlgye {
  267. color: var(--theme-color-systemWhite);
  268. }
  269. }