icons.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. /**
  2. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  3. *
  4. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  5. * @author Joas Schilling <coding@schilljs.com>
  6. * @author Lukas Reschke <lukas@statuscode.ch>
  7. * @author Roeland Jago Douma <roeland@famdouma.nl>
  8. * @author Vincent Chan <plus.vincchan@gmail.com>
  9. * @author Thomas Müller <thomas.mueller@tmit.eu>
  10. * @author Hendrik Leppelsack <hendrik@leppelsack.de>
  11. * @author Jan-Christoph Borchardt <hey@jancborchardt.net>
  12. *
  13. * @license GNU AGPL version 3 or any later version
  14. *
  15. * This program is free software: you can redistribute it and/or modify
  16. * it under the terms of the GNU Affero General Public License as
  17. * published by the Free Software Foundation, either version 3 of the
  18. * License, or (at your option) any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU Affero General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU Affero General Public License
  26. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  27. *
  28. */
  29. /* GLOBAL ------------------------------------------------------------------- */
  30. [class^='icon-'], [class*=' icon-'] {
  31. background-repeat: no-repeat;
  32. background-position: center;
  33. min-width: 16px;
  34. min-height: 16px;
  35. }
  36. .icon-breadcrumb {
  37. background-image: url('../img/breadcrumb.svg?v=1');
  38. }
  39. /* LOADING ------------------------------------------------------------------ */
  40. .loading,
  41. .loading-small,
  42. .icon-loading,
  43. .icon-loading-dark,
  44. .icon-loading-small,
  45. .icon-loading-small-dark {
  46. position: relative;
  47. &:after {
  48. z-index: 2;
  49. content: '';
  50. height: 28px;
  51. width: 28px;
  52. margin: -16px 0 0 -16px;
  53. position: absolute;
  54. top: 50%;
  55. left: 50%;
  56. border-radius: 100%;
  57. -webkit-animation: rotate .8s infinite linear;
  58. animation: rotate .8s infinite linear;
  59. -webkit-transform-origin: center;
  60. -ms-transform-origin: center;
  61. transform-origin: center;
  62. border: 2px solid var(--color-loading-light);
  63. border-top-color: var(--color-loading-dark);
  64. }
  65. }
  66. .icon-loading-dark:after,
  67. .icon-loading-small-dark:after {
  68. border: 2px solid var(--color-loading-dark);
  69. border-top-color: var(--color-loading-light);
  70. }
  71. .icon-loading-small:after,
  72. .icon-loading-small-dark:after {
  73. height: 12px;
  74. width: 12px;
  75. margin: -8px 0 0 -8px;
  76. }
  77. /* Css replaced elements don't have ::after nor ::before */
  78. img, object, video, button, textarea, input, select, div[contenteditable='true'] {
  79. .icon-loading {
  80. background-image: url('../img/loading.gif');
  81. }
  82. .icon-loading-dark {
  83. background-image: url('../img/loading-dark.gif');
  84. }
  85. .icon-loading-small {
  86. background-image: url('../img/loading-small.gif');
  87. }
  88. .icon-loading-small-dark {
  89. background-image: url('../img/loading-small-dark.gif');
  90. }
  91. }
  92. @keyframes rotate {
  93. from {
  94. transform: rotate(0deg);
  95. }
  96. to {
  97. transform: rotate(360deg);
  98. }
  99. }
  100. .icon-32 {
  101. background-size: 32px !important;
  102. }
  103. .icon-white {
  104. &.icon-shadow {
  105. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  106. }
  107. }
  108. /* ICONS -------------------------------------------------------------------
  109. * These icon classes are generated automatically with the following pattern
  110. * for icon-black-white('close', ...)
  111. * .icon-close (black icon)
  112. * .icon-close-white (white icon)
  113. * .icon-close.icon-white (white icon)
  114. *
  115. * Some class definitions are kept as before, since they don't follow the pattern
  116. * or have some additional styling like drop shadows
  117. */
  118. @include icon-black-white('add', 'actions', 1, true);
  119. @include icon-black-white('address', 'actions', 1, true);
  120. @include icon-black-white('audio', 'actions', 2, true);
  121. .icon-audio-white {
  122. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  123. }
  124. @include icon-black-white('audio-off', 'actions', 1, true);
  125. .icon-audio-off-white {
  126. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  127. }
  128. .icon-caret-white,
  129. .icon-caret {
  130. @include icon-color('caret', 'actions', $color-white, 1, true);
  131. }
  132. .icon-caret-dark {
  133. @include icon-color('caret', 'actions', $color-black, 1, true);
  134. }
  135. @include icon-black-white('checkmark', 'actions', 1, true);
  136. .icon-checkmark-color {
  137. @include icon-color('checkmark', 'actions', $color-success, 1, true);
  138. }
  139. @include icon-black-white('clippy', 'actions', 2, true);
  140. @include icon-black-white('close', 'actions', 1, true);
  141. @include icon-black-white('comment', 'actions', 1, true);
  142. @include icon-black-white('confirm', 'actions', 2, true);
  143. @include icon-black-white('download', 'actions', 1, true);
  144. .icon-confirm-fade {
  145. @include icon-color('confirm-fade', 'actions', $color-black, 2, true);
  146. }
  147. .icon-delete {
  148. @include icon-color('delete', 'actions', $color-black, 1, true);
  149. &.no-permission {
  150. &:hover,
  151. &:focus {
  152. @include icon-color('delete', 'actions', $color-black, 1, true);
  153. }
  154. }
  155. &:hover,
  156. &:focus {
  157. @include icon-color('delete', 'actions', $color-error, 1, true);
  158. filter: initial;
  159. }
  160. &.icon-white {
  161. @include icon-color('delete', 'actions', $color-white, 1, true);
  162. }
  163. }
  164. .icon-delete-white {
  165. @include icon-color('delete', 'actions', $color-white, 1, true);
  166. &.no-permission {
  167. &:hover,
  168. &:focus {
  169. @include icon-color('delete', 'actions', $color-white, 1, true);
  170. }
  171. }
  172. &:hover,
  173. &:focus {
  174. @include icon-color('delete', 'actions', $color-error, 1, true);
  175. }
  176. }
  177. @include icon-black-white('details', 'actions', 1, true);
  178. @include icon-black-white('edit', 'actions', 1, true);
  179. @include icon-black-white('error', 'actions', 1, true);
  180. .icon-error-color {
  181. @include icon-color('error', 'actions', $color-error, 1, true);
  182. }
  183. @include icon-black-white('external', 'actions', 1, true);
  184. @include icon-black-white('fullscreen', 'actions', 1, true);
  185. .icon-fullscreen-white {
  186. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  187. }
  188. @include icon-black-white('history', 'actions', 2, true);
  189. @include icon-black-white('info', 'actions', 1, true);
  190. @include icon-black-white('logout', 'actions', 1, true);
  191. @include icon-black-white('mail', 'actions', 1, true);
  192. @include icon-black-white('menu', 'actions', 1, true);
  193. @include icon-black-white('more', 'actions', 1, true);
  194. @include icon-black-white('password', 'actions', 1, true);
  195. @include icon-black-white('pause', 'actions', 1, true);
  196. @include icon-black-white('play', 'actions', 1, true);
  197. @include icon-black-white('play-add', 'actions', 1, true);
  198. @include icon-black-white('play-next', 'actions', 1, true);
  199. @include icon-black-white('play-previous', 'actions', 1, true);
  200. @include icon-black-white('public', 'actions', 1, true);
  201. @include icon-black-white('quota', 'actions', 1, true);
  202. @include icon-black-white('rename', 'actions', 1, true);
  203. @include icon-black-white('screen', 'actions', 1, true);
  204. .icon-screen-white {
  205. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  206. }
  207. @include icon-black-white('screen-off', 'actions', 1, true);
  208. .icon-screen-off-white {
  209. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  210. }
  211. @include icon-black-white('search', 'actions', 1, true);
  212. /* default icon have a .5 opacity */
  213. .icon-settings {
  214. @include icon-color('settings', 'actions', $color-black, 1, true);
  215. }
  216. .icon-settings-dark {
  217. @include icon-color('settings-dark', 'actions', $color-black, 1, true);
  218. }
  219. .icon-settings-white {
  220. @include icon-color('settings-dark', 'actions', $color-white, 1, true);
  221. }
  222. /* always use icon-shared, AdBlock blocks icon-share */
  223. .icon-shared,
  224. .icon-share {
  225. @include icon-color('share', 'actions', $color-black, 1, true);
  226. &.icon-white {
  227. @include icon-color('share', 'actions', $color-white, 1, true);
  228. }
  229. }
  230. .icon-shared-white,
  231. .icon-share-white {
  232. @include icon-color('share', 'actions', $color-white, 1, true);
  233. }
  234. @include icon-black-white('sound', 'actions', 1, true);
  235. @include icon-black-white('sound-off', 'actions', 1, true);
  236. .icon-favorite {
  237. @include icon-color('star-dark', 'actions', $color-black, 1, true);
  238. }
  239. @include icon-black-white('star', 'actions', 1, true);
  240. .icon-star-dark {
  241. @include icon-color('star', 'actions', $color-black, 1, true);
  242. }
  243. .icon-starred {
  244. &:hover,
  245. &:focus {
  246. @include icon-color('star', 'actions', $color-black, 1, true);
  247. }
  248. @include icon-color('star-dark', 'actions', $color-yellow, 1, true);
  249. }
  250. .icon-star {
  251. &:hover,
  252. &:focus {
  253. @include icon-color('star-dark', 'actions', $color-yellow, 1, true);
  254. }
  255. }
  256. @include icon-black-white('tag', 'actions', 1, true);
  257. @include icon-black-white('timezone', 'actions', 1, true);
  258. @include icon-black-white('toggle', 'actions', 1, true);
  259. @include icon-black-white('toggle-background', 'actions', 1, true);
  260. @include icon-black-white('toggle-pictures', 'actions', 1, true);
  261. @include icon-black-white('toggle-filelist', 'actions', 1, true);
  262. @include icon-black-white('triangle-e', 'actions', 1, true);
  263. @include icon-black-white('triangle-n', 'actions', 1, true);
  264. @include icon-black-white('triangle-s', 'actions', 1, true);
  265. @include icon-black-white('upload', 'actions', 1, true);
  266. @include icon-black-white('user', 'actions', 1, true);
  267. @include icon-black-white('group', 'actions', 1, true);
  268. @include icon-black-white('video', 'actions', 2, true);
  269. .icon-video-white {
  270. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  271. }
  272. @include icon-black-white('video-off', 'actions', 1, true);
  273. .icon-video-off-white {
  274. filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
  275. }
  276. @include icon-black-white('video-switch', 'actions', 1, true);
  277. @include icon-black-white('view-close', 'actions', 1, true);
  278. @include icon-black-white('view-download', 'actions', 1, true);
  279. .icon-view-next {
  280. @include icon-color('arrow-right', 'actions', $color-black, 1, true);
  281. &.icon-white {
  282. @include icon-color('arrow-right', 'actions', $color-white, 1, true);
  283. }
  284. }
  285. @include icon-black-white('view-pause', 'actions', 1, true);
  286. @include icon-black-white('view-play', 'actions', 1, true);
  287. .icon-view-previous {
  288. @include icon-color('arrow-left', 'actions', $color-black, 1, true);
  289. &.icon-white {
  290. @include icon-color('arrow-left', 'actions', $color-white, 1, true);
  291. }
  292. }
  293. @include icon-black-white('disabled-user', 'actions', 1, true);
  294. @include icon-black-white('disabled-users', 'actions', 1, true);
  295. @include icon-black-white('user-admin', 'actions', 1, true);
  296. /* PLACES ------------------------------------------------------------------- */
  297. .icon-calendar {
  298. @include icon-color('calendar', 'places', $color-white, 1, true);
  299. }
  300. .icon-calendar-dark {
  301. @include icon-color('calendar', 'places', $color-black, 1, true);
  302. }
  303. .icon-contacts {
  304. @include icon-color('contacts', 'places', $color-white, 1, true);
  305. }
  306. .icon-contacts-dark {
  307. @include icon-color('contacts', 'places', $color-black, 1, true);
  308. }
  309. .icon-files {
  310. @include icon-color('files', 'places', $color-white, 1, true);
  311. }
  312. .icon-files-dark {
  313. @include icon-color('files', 'places', $color-black, 1, true);
  314. }
  315. .icon-file,
  316. .icon-filetype-text {
  317. @include icon-color('text', 'filetypes', $color-black, 1, true);
  318. }
  319. @include icon-black-white('folder', 'filetypes', 1, true);
  320. .icon-filetype-folder {
  321. @include icon-color('folder', 'filetypes', $color-black, 1, true);
  322. }
  323. .icon-filetype-folder-drag-accept {
  324. @include icon-color('folder-drag-accept', 'filetypes', $color-black, 1, true);
  325. }
  326. @include icon-black-white('home', 'places', 1, true);
  327. @include icon-black-white('link', 'places', 1, true);
  328. @include icon-black-white('music', 'places', 1, true);
  329. @include icon-black-white('picture', 'places', 1, true);
  330. /* CLIENTS ------------------------------------------------------------------- */
  331. @include icon-black-white('desktop', 'clients', 1, true);
  332. @include icon-black-white('phone', 'clients', 1, true);
  333. @include icon-black-white('tablet', 'clients', 1, true);
  334. /* APP CATEGORIES ------------------------------------------------------------------- */
  335. .icon-category-installed {
  336. @include icon-color('user', 'actions', $color-black, 1, true);
  337. }
  338. .icon-category-enabled {
  339. @include icon-color('checkmark', 'actions', $color-black, 1, true);
  340. }
  341. .icon-category-disabled {
  342. @include icon-color('close', 'actions', $color-black, 1, true);
  343. }
  344. .icon-category-app-bundles {
  345. @include icon-color('bundles', 'categories', $color-black, 1, true);
  346. }
  347. .icon-category-updates {
  348. @include icon-color('download', 'actions', $color-black, 1, true);
  349. }
  350. .icon-category-files {
  351. @include icon-color('files', 'categories', $color-black, 1, true);
  352. }
  353. .icon-category-social {
  354. @include icon-color('social', 'categories', $color-black, 1, true);
  355. }
  356. .icon-category-office {
  357. @include icon-color('office', 'categories', $color-black, 1, true);
  358. }
  359. .icon-category-auth {
  360. @include icon-color('auth', 'categories', $color-black, 1, true);
  361. }
  362. .icon-category-monitoring {
  363. @include icon-color('monitoring', 'categories', $color-black, 1, true);
  364. }
  365. .icon-category-multimedia {
  366. @include icon-color('multimedia', 'categories', $color-black, 1, true);
  367. }
  368. .icon-category-organization {
  369. @include icon-color('organization', 'categories', $color-black, 1, true);
  370. }
  371. .icon-category-customization {
  372. @include icon-color('customization', 'categories', $color-black, 1, true);
  373. }
  374. .icon-category-integration {
  375. @include icon-color('integration', 'categories', $color-black, 1, true);
  376. }
  377. .icon-category-tools {
  378. @include icon-color('settings-dark', 'actions', $color-black, 1, true);
  379. }
  380. .icon-category-games {
  381. @include icon-color('games', 'categories', $color-black, 1, true);
  382. }
  383. .icon-category-security {
  384. @include icon-color('password', 'actions', $color-black, 1, true);
  385. }
  386. .icon-category-search {
  387. @include icon-color('search', 'actions', $color-black, 1, true);
  388. }
  389. .icon-talk {
  390. @include icon-color('app-dark', 'spreed', $color-black, 1);
  391. }