The version of vichan running on lainchan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

579 lines
13KB

  1. /**
  2. * Modern theme
  3. *
  4. * Copyright (C) 2012, Sam Clarke (samclarke.com)
  5. *
  6. * SCEditor is licensed under the MIT license:
  7. * http://www.opensource.org/licenses/mit-license.php
  8. *
  9. * Icons by Mark James (http://www.famfamfam.com/lab/icons/silk/)
  10. * Licensed under the Creative Commons CC-BY license (http://creativecommons.org/licenses/by/3.0/)
  11. */
  12. /*! SCEditor | (C) 2011-2013, Sam Clarke | sceditor.com/license */
  13. /**
  14. * SCEditor
  15. * http://www.ssceditor.com/
  16. *
  17. * Copyright (C) 2011-12, Sam Clarke (samclarke.com)
  18. *
  19. * SCEditor is licensed under the MIT license:
  20. * http://www.opensource.org/licenses/mit-license.php
  21. */
  22. div.sceditor-grip,
  23. .sceditor-button div {
  24. background-image: url("famfamfam.png");
  25. background-repeat: no-repeat;
  26. width: 16px;
  27. height: 16px;
  28. }
  29. .sceditor-button-youtube div {
  30. background-position: 0px 0px;
  31. }
  32. .sceditor-button-link div {
  33. background-position: 0px -16px;
  34. }
  35. .sceditor-button-unlink div {
  36. background-position: 0px -32px;
  37. }
  38. .sceditor-button-underline div {
  39. background-position: 0px -48px;
  40. }
  41. .sceditor-button-time div {
  42. background-position: 0px -64px;
  43. }
  44. .sceditor-button-table div {
  45. background-position: 0px -80px;
  46. }
  47. .sceditor-button-superscript div {
  48. background-position: 0px -96px;
  49. }
  50. .sceditor-button-subscript div {
  51. background-position: 0px -112px;
  52. }
  53. .sceditor-button-strike div {
  54. background-position: 0px -128px;
  55. }
  56. .sceditor-button-source div {
  57. background-position: 0px -144px;
  58. }
  59. .sceditor-button-size div {
  60. background-position: 0px -160px;
  61. }
  62. .sceditor-button-rtl div {
  63. background-position: 0px -176px;
  64. }
  65. .sceditor-button-right div {
  66. background-position: 0px -192px;
  67. }
  68. .sceditor-button-removeformat div {
  69. background-position: 0px -208px;
  70. }
  71. .sceditor-button-quote div {
  72. background-position: 0px -224px;
  73. }
  74. .sceditor-button-print div {
  75. background-position: 0px -240px;
  76. }
  77. .sceditor-button-pastetext div {
  78. background-position: 0px -256px;
  79. }
  80. .sceditor-button-paste div {
  81. background-position: 0px -272px;
  82. }
  83. .sceditor-button-outdent div {
  84. background-position: 0px -288px;
  85. }
  86. .sceditor-button-orderedlist div {
  87. background-position: 0px -304px;
  88. }
  89. .sceditor-button-maximize div {
  90. background-position: 0px -320px;
  91. }
  92. .sceditor-button-ltr div {
  93. background-position: 0px -336px;
  94. }
  95. .sceditor-button-left div {
  96. background-position: 0px -352px;
  97. }
  98. .sceditor-button-justify div {
  99. background-position: 0px -368px;
  100. }
  101. .sceditor-button-italic div {
  102. background-position: 0px -384px;
  103. }
  104. .sceditor-button-indent div {
  105. background-position: 0px -400px;
  106. }
  107. .sceditor-button-image div {
  108. background-position: 0px -416px;
  109. }
  110. .sceditor-button-horizontalrule div {
  111. background-position: 0px -432px;
  112. }
  113. .sceditor-button-format div {
  114. background-position: 0px -448px;
  115. }
  116. .sceditor-button-font div {
  117. background-position: 0px -464px;
  118. }
  119. .sceditor-button-emoticon div {
  120. background-position: 0px -480px;
  121. }
  122. .sceditor-button-email div {
  123. background-position: 0px -496px;
  124. }
  125. .sceditor-button-date div {
  126. background-position: 0px -512px;
  127. }
  128. .sceditor-button-cut div {
  129. background-position: 0px -528px;
  130. }
  131. .sceditor-button-copy div {
  132. background-position: 0px -544px;
  133. }
  134. .sceditor-button-color div {
  135. background-position: 0px -560px;
  136. }
  137. .sceditor-button-code div {
  138. background-position: 0px -576px;
  139. }
  140. .sceditor-button-center div {
  141. background-position: 0px -592px;
  142. }
  143. .sceditor-button-bulletlist div {
  144. background-position: 0px -608px;
  145. }
  146. .sceditor-button-bold div {
  147. background-position: 0px -624px;
  148. }
  149. div.sceditor-grip {
  150. background-position: 0px -640px;
  151. width: 10px;
  152. height: 10px;
  153. }
  154. .rtl div.sceditor-grip {
  155. background-position: 0px -650px;
  156. width: 10px;
  157. height: 10px;
  158. }
  159. /**
  160. * SCEditor
  161. * http://www.ssceditor.com/
  162. *
  163. * Copyright (C) 2011-12, Sam Clarke (samclarke.com)
  164. *
  165. * SCEditor is licensed under the MIT license:
  166. * http://www.opensource.org/licenses/mit-license.php
  167. */
  168. /*---------------------------------------------------
  169. LESS Elements 0.7
  170. ---------------------------------------------------
  171. A set of useful LESS mixins
  172. More info at: http://lesselements.com
  173. ---------------------------------------------------*/
  174. .sceditor-container {
  175. position: relative;
  176. background: #fff;
  177. border: 1px solid #d9d9d9;
  178. font-size: 13px;
  179. font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  180. color: #222;
  181. line-height: 1;
  182. font-weight: bold;
  183. border-radius: 4px;
  184. background-clip: padding-box;
  185. }
  186. .sceditor-container *,
  187. .sceditor-container *:before,
  188. .sceditor-container *:after {
  189. -webkit-box-sizing: content-box;
  190. -moz-box-sizing: content-box;
  191. box-sizing: content-box;
  192. }
  193. .sceditor-container,
  194. .sceditor-container div,
  195. div.sceditor-dropdown,
  196. div.sceditor-dropdown div {
  197. padding: 0;
  198. margin: 0;
  199. z-index: 3;
  200. }
  201. .sceditor-container iframe,
  202. .sceditor-container textarea {
  203. line-height: 1;
  204. border: 0;
  205. outline: none;
  206. font-family: Verdana, Arial, Helvetica, sans-serif;
  207. font-size: 13px;
  208. color: #111;
  209. padding: 0;
  210. margin: 5px;
  211. resize: none;
  212. background: #fff;
  213. display: block;
  214. }
  215. div.sceditor-resize-cover {
  216. position: absolute;
  217. top: 0;
  218. left: 0;
  219. background: #000;
  220. width: 100%;
  221. height: 100%;
  222. z-index: 10;
  223. opacity: 0.3;
  224. }
  225. .ie6 div.sceditor-resize-cover,
  226. .ie7 div.sceditor-resize-cover,
  227. .ie8 div.sceditor-resize-cover {
  228. background: #efefef;
  229. }
  230. .sceditor-container.ie6 {
  231. overflow: hidden;
  232. }
  233. div.sceditor-grip {
  234. overflow: hidden;
  235. width: 10px;
  236. height: 10px;
  237. cursor: pointer;
  238. position: absolute;
  239. bottom: 0;
  240. right: 0;
  241. z-index: 3;
  242. }
  243. .sceditor-maximize {
  244. position: fixed;
  245. top: 0;
  246. left: 0;
  247. height: 100% !important;
  248. width: 100% !important;
  249. border-radius: 0;
  250. background-clip: padding-box;
  251. z-index: 2000;
  252. }
  253. html.sceditor-maximize,
  254. body.sceditor-maximize {
  255. height: 100%;
  256. width: 100%;
  257. padding: 0;
  258. margin: 0;
  259. overflow: hidden;
  260. }
  261. .ie6.sceditor-maximize {
  262. position: absolute;
  263. }
  264. .sceditor-maximize div.sceditor-grip {
  265. display: none;
  266. }
  267. .sceditor-maximize div.sceditor-toolbar {
  268. border-radius: 0;
  269. background-clip: padding-box;
  270. }
  271. /**
  272. * Dropdown styleing
  273. */
  274. div.sceditor-dropdown {
  275. position: absolute;
  276. border: 1px solid #ccc;
  277. background: #fff;
  278. color: #333;
  279. z-index: 4000;
  280. padding: 10px;
  281. line-height: 1;
  282. border-radius: 2px;
  283. background-clip: padding-box;
  284. box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  285. }
  286. div.sceditor-dropdown a,
  287. div.sceditor-dropdown a:link {
  288. color: #333;
  289. }
  290. div.sceditor-dropdown form {
  291. margin: 0;
  292. }
  293. div.sceditor-dropdown label {
  294. display: block;
  295. font-weight: bold;
  296. color: #3c3c3c;
  297. padding: 4px 0;
  298. }
  299. div.sceditor-dropdown input,
  300. div.sceditor-dropdown textarea {
  301. font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  302. outline: 0;
  303. padding: 4px;
  304. border: 1px solid #ccc;
  305. border-top-color: #888;
  306. margin: 0 0 .75em;
  307. border-radius: 1px;
  308. background-clip: padding-box;
  309. }
  310. div.sceditor-dropdown textarea {
  311. padding: 6px;
  312. }
  313. div.sceditor-dropdown input:focus,
  314. div.sceditor-dropdown textarea:focus {
  315. border-color: #aaa;
  316. border-top-color: #666;
  317. box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.1);
  318. }
  319. div.sceditor-dropdown .button {
  320. font-weight: bold;
  321. color: #444;
  322. padding: 6px 12px;
  323. background: #ececec;
  324. border: solid 1px #ccc;
  325. border-radius: 2px;
  326. background-clip: padding-box;
  327. cursor: pointer;
  328. margin: .3em 0 0;
  329. }
  330. div.sceditor-dropdown .button:hover {
  331. background: #f3f3f3;
  332. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  333. }
  334. div.sceditor-font-picker,
  335. div.sceditor-fontsize-picker,
  336. div.sceditor-format {
  337. padding: 6px 0;
  338. }
  339. div.sceditor-emoticons,
  340. div.sceditor-more-emoticons,
  341. div.sceditor-color-picker {
  342. padding: 0;
  343. }
  344. .sceditor-pastetext textarea {
  345. border: 1px solid #bbb;
  346. width: 20em;
  347. }
  348. .sceditor-emoticons img,
  349. .sceditor-more-emoticons img {
  350. padding: 0;
  351. cursor: pointer;
  352. margin: 2px;
  353. }
  354. .sceditor-more {
  355. border-top: 1px solid #bbb;
  356. display: block;
  357. text-align: center;
  358. cursor: pointer;
  359. font-weight: bold;
  360. padding: 6px 0;
  361. }
  362. .sceditor-dropdown a:hover {
  363. background: #eee;
  364. }
  365. .sceditor-fontsize-option,
  366. .sceditor-font-option,
  367. .sceditor-format a {
  368. display: block;
  369. padding: 7px 10px;
  370. cursor: pointer;
  371. text-decoration: none;
  372. color: #222;
  373. }
  374. .sceditor-fontsize-option {
  375. padding: 7px 13px;
  376. }
  377. .sceditor-color-column {
  378. float: left;
  379. }
  380. .sceditor-color-option {
  381. display: block;
  382. border: 1px solid #fff;
  383. height: 10px;
  384. width: 10px;
  385. overflow: hidden;
  386. }
  387. .sceditor-color-option:hover {
  388. border: 1px solid #333;
  389. }
  390. /**
  391. * Toolbar styleing
  392. */
  393. div.sceditor-toolbar {
  394. overflow: hidden;
  395. padding: 3px 5px 2px;
  396. background: #f7f7f7;
  397. border-bottom: 1px solid #c0c0c0;
  398. line-height: 0;
  399. text-align: left;
  400. user-select: none;
  401. border-radius: 3px 3px 0 0;
  402. background-clip: padding-box;
  403. }
  404. div.sceditor-group {
  405. display: inline-block;
  406. background: #ddd;
  407. margin: 1px 5px 1px 0;
  408. padding: 1px;
  409. border-bottom: 1px solid #aaa;
  410. border-radius: 3px;
  411. background-clip: padding-box;
  412. }
  413. .ie6 div.sceditor-group,
  414. .ie7 div.sceditor-group {
  415. display: inline;
  416. zoom: 1;
  417. }
  418. .sceditor-button {
  419. float: left;
  420. cursor: pointer;
  421. padding: 3px 5px;
  422. width: 16px;
  423. height: 20px;
  424. border-radius: 3px;
  425. background-clip: padding-box;
  426. /* Needed for Safari 5? */
  427. text-indent: -9999px;
  428. }
  429. .ie .sceditor-button {
  430. text-indent: 0;
  431. }
  432. .ie6 .sceditor-button,
  433. .ie7 .sceditor-button {
  434. float: none !important;
  435. display: inline;
  436. zoom: 1;
  437. }
  438. .ie6 .sceditor-button {
  439. padding: 0;
  440. }
  441. .ie6 .sceditor-button div {
  442. margin: 5px;
  443. }
  444. .ie7 .sceditor-button div {
  445. margin: 5px 0;
  446. }
  447. .sceditor-button:hover,
  448. .sceditor-button:active,
  449. .sceditor-button.active {
  450. background: #fff;
  451. box-shadow: inset 1px 1px 0 rgba(0,0,0,0.3), inset -1px 0 rgba(0,0,0,0.3), inset 0 -1px 0 rgba(0,0,0,0.2);
  452. }
  453. .sceditor-button:active {
  454. background: #fff;
  455. box-shadow: inset 1px 1px 0 rgba(0,0,0,0.3), inset -1px 0 rgba(0,0,0,0.3), inset 0 -1px 0 rgba(0,0,0,0.2), inset 0 0 8px rgba(0,0,0,0.3);
  456. }
  457. .sceditor-button.disabled:hover {
  458. background: inherit;
  459. cursor: default;
  460. box-shadow: none;
  461. }
  462. .sceditor-button,
  463. .sceditor-button div {
  464. display: block;
  465. }
  466. .sceditor-button div {
  467. margin: 2px 0;
  468. padding: 0;
  469. overflow: hidden;
  470. line-height: 0;
  471. font-size: 0;
  472. color: transparent;
  473. }
  474. .sceditor-button.disabled div {
  475. filter: alpha(opacity=30);
  476. opacity: 0.3;
  477. }
  478. .text .sceditor-button,
  479. .text .sceditor-button div,
  480. .sceditor-button.text,
  481. .sceditor-button.text div,
  482. .text-icon .sceditor-button,
  483. .text-icon .sceditor-button div,
  484. .sceditor-button.text-icon,
  485. .sceditor-button.text-icon div {
  486. width: auto;
  487. overflow: visible;
  488. line-height: 16px;
  489. font-size: 1em;
  490. color: inherit;
  491. text-indent: 0;
  492. }
  493. .text .sceditor-button div,
  494. .sceditor-button.text div {
  495. padding: 0 2px;
  496. background: none;
  497. }
  498. .text-icon .sceditor-button div,
  499. .sceditor-button.text-icon div {
  500. padding: 0 2px 0 20px;
  501. }
  502. .rtl div.sceditor-toolbar {
  503. text-align: right;
  504. }
  505. .rtl .sceditor-button {
  506. float: right;
  507. }
  508. .rtl div.sceditor-grip {
  509. right: auto;
  510. left: 0;
  511. }
  512. .sceditor-container {
  513. border: 1px solid #999;
  514. }
  515. .sceditor-container textarea {
  516. font-family: Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;
  517. background: #2e3436;
  518. color: #fff;
  519. margin: 0;
  520. padding: 5px;
  521. }
  522. div.sceditor-toolbar {
  523. background: #ccc;
  524. background: linear-gradient(to bottom, #cccccc 0%, #b2b2b2 100%);
  525. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#b2b2b2', GradientType=0);
  526. }
  527. .ie9 div.sceditor-toolbar {
  528. filter: none;
  529. background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NjY2NjYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNiMmIyYjIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  530. }
  531. div.sceditor-group {
  532. display: inline;
  533. background: transparent;
  534. margin: 0;
  535. padding: 0;
  536. border: 0;
  537. }
  538. .sceditor-button {
  539. padding: 4px;
  540. margin: 2px 1px 2px 3px;
  541. height: 16px;
  542. border-radius: 12px;
  543. background-clip: padding-box;
  544. }
  545. .sceditor-button:hover,
  546. .sceditor-button.active,
  547. .sceditor-button.active:hover {
  548. box-shadow: none;
  549. }
  550. .sceditor-button:hover {
  551. background: #fff;
  552. background: rgba(255, 255, 255, 0.75);
  553. margin: 1px 0 1px 2px;
  554. border: 1px solid #eee;
  555. }
  556. .sceditor-button.disabled:hover {
  557. margin: 2px 1px 2px 3px;
  558. border: 0;
  559. }
  560. .sceditor-button.active {
  561. background: #b1b1b1;
  562. background: rgba(0, 0, 0, 0.1);
  563. margin: 1px 0 1px 2px;
  564. border: 1px solid #999;
  565. }
  566. .sceditor-button.active:hover {
  567. background: #fff;
  568. background: rgba(255, 255, 255, 0.25);
  569. }
  570. .sceditor-button:active,
  571. .sceditor-button.active:active {
  572. margin: 1px 0 1px 2px;
  573. border: 1px solid #999;
  574. box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
  575. }
  576. .sceditor-button div {
  577. margin: 0;
  578. }