iCloud customizations

Customizations for iCloud website.

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

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