stylesheet.tw2 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. ::StoryCSS [stylesheet]
  2. .flashed-message {
  3. border: 1px solid gray;
  4. display: block;
  5. padding: 5px;
  6. margin: 3px;
  7. }
  8. .hidden {
  9. display: none;
  10. }
  11. header#title {
  12. height: auto;
  13. white-space: normal;
  14. }
  15. #story-subtitle, #story-author, #story-title-seperator {
  16. display: none;
  17. }
  18. /* Notepad Effect */
  19. .notepad {
  20. background-color: #f5f5f5;
  21. width: 600px;
  22. margin: 0 auto;
  23. padding: 0;
  24. }
  25. .notepad h4 {
  26. color: #cd0000 !important;
  27. font-size: 42px !important;
  28. letter-spacing: -2px !important;
  29. text-align: left !important;
  30. margin: 0;
  31. }
  32. .notepad ul.list {
  33. color: #555 !important;
  34. font-size: 22px;
  35. padding: 0 !important;
  36. width: auto;
  37. font-family: courier, monospace;
  38. border: 1px solid #dedede;
  39. margin: 0;
  40. }
  41. .notepad ul.list li {
  42. list-style: none;
  43. border-bottom: 1px dotted #ccc;
  44. text-indent: 25px;
  45. height: auto;
  46. padding: 10px;
  47. }
  48. .notepad .lines {
  49. border-left: 1px solid #ffaa9f;
  50. border-right: 1px solid #ffaa9f;
  51. width: 2px;
  52. float: left;
  53. margin-left: 40px;
  54. }
  55. /* Text Message effect from https://codepen.io/2ne/pen/osvpj */
  56. @import "https://fonts.googleapis.com/css?family=Open+Sans:400,600,700";
  57. * {
  58. box-sizing: border-box;
  59. }
  60. /*
  61. body {
  62. background: none repeat scroll 0 0 #fff;
  63. color: #FFFFFF;
  64. font-family: "Open Sans";
  65. line-height: 26px;
  66. width: 400px;
  67. margin: 0 auto;
  68. overflow-X: hidden;
  69. position: relative;
  70. }
  71. */
  72. .left {
  73. position: absolute;
  74. top: 0;
  75. left: 35px;
  76. font-size: 18px
  77. }
  78. .left:after {
  79. border: 3px solid #2095FE;
  80. border-right: 3px solid transparent;
  81. border-top: 3px solid transparent;
  82. content: " ";
  83. height: 14px;
  84. left: -20px;
  85. position: absolute;
  86. top: 20px;
  87. -webkit-transform: rotate(45deg);
  88. -moz-transform: rotate(45deg);
  89. transform: rotate(45deg);
  90. width: 14px;
  91. }
  92. .right {
  93. position: absolute;
  94. top: 0;
  95. right: 15px;
  96. font-size: 18px
  97. }
  98. header {
  99. color: #2095FE;
  100. background: #eee;
  101. border: 1px solid #ccc;
  102. border-bottom: 1px solid #bbb;
  103. box-shadow: 0 1px 2px rgba(1,1,1,0.2);
  104. height: 60px;
  105. text-align: center;
  106. font-size: 20px;
  107. line-height: 58px;
  108. white-space: nowrap;
  109. }
  110. header h2 {
  111. font-weight: bold;
  112. color: #111111;
  113. }
  114. {
  115. padding-top: 10px;
  116. position: relative;
  117. border: 1px solid #ddd;
  118. border-top: 0 none;
  119. }
  120. .message {
  121. border-radius: 20px 20px 20px 20px;
  122. margin: 0 15px 10px;
  123. padding: 15px 20px;
  124. position: relative;
  125. }
  126. .message.to {
  127. background-color: #2095FE;
  128. color: #fff;
  129. margin-left: 80px;
  130. }
  131. .message.from {
  132. background-color: #E5E4E9;
  133. color: #363636;
  134. margin-right: 80px;
  135. }
  136. .message.to + .message.to,
  137. .message.from + .message.from {
  138. margin-top: -7px;
  139. }
  140. .message:before {
  141. border-color: #2095FE;
  142. border-radius: 50% 50% 50% 50%;
  143. border-style: solid;
  144. border-width: 0 20px;
  145. bottom: 0;
  146. clip: rect(20px, 35px, 42px, 0px);
  147. content: " ";
  148. height: 40px;
  149. position: absolute;
  150. right: -50px;
  151. width: 30px;
  152. z-index: -1;
  153. }
  154. .message.from:before {
  155. border-color: #E5E4E9;
  156. left: -50px;
  157. transform: rotateY(180deg);
  158. }
  159. /***********************************************************************
  160. BLEACHED - A largely white style for SugarCube v2.17.0+
  161. ***********************************************************************/
  162. body {
  163. color: #111;
  164. background-color: #fff;
  165. }
  166. a {
  167. color: #35c;
  168. }
  169. a:hover {
  170. color: #57e;
  171. }
  172. span.link-disabled {
  173. color: #777;
  174. }
  175. button {
  176. color: #111;
  177. background-color: #acf;
  178. border-color: #8ad;
  179. }
  180. button:hover {
  181. background-color: #8ad;
  182. border-color: #68b;
  183. }
  184. button:disabled {
  185. background-color: #ccc;
  186. border-color: #aaa;
  187. }
  188. input, select, textarea {
  189. color: #111;
  190. border-color: #ccc;
  191. }
  192. input:focus, select:focus, textarea:focus,
  193. input:hover, select:hover, textarea:hover {
  194. background-color: #eee;
  195. border-color: #111;
  196. }
  197. hr {
  198. border-color: #111;
  199. }
  200. .error {
  201. background-color: #eaa;
  202. border-left-color: #d77;
  203. }
  204. #ui-bar {
  205. background-color: #eee;
  206. border-color: #ccc;
  207. }
  208. #ui-bar hr {
  209. border-color: #ccc;
  210. }
  211. #ui-bar-toggle,
  212. #ui-bar-history [id|="history"] {
  213. color: #111;
  214. border-color: #ccc;
  215. }
  216. #ui-bar-toggle:hover,
  217. #ui-bar-history [id|="history"]:hover {
  218. background-color: #ccc;
  219. border-color: #111;
  220. }
  221. #ui-bar-history [id|="history"]:disabled {
  222. color: #ccc;
  223. background-color: transparent;
  224. border-color: #ccc;
  225. }
  226. #menu ul {
  227. border-color: #ccc;
  228. }
  229. #menu li:not(:first-child) {
  230. border-top-color: #ccc;
  231. }
  232. #menu li a {
  233. color: #111;
  234. }
  235. #menu li a:hover {
  236. background-color: #ccc;
  237. border-color: #111;
  238. }
  239. /* Default dialog styling */
  240. #ui-overlay {
  241. background-color: #777;
  242. }
  243. #ui-dialog-titlebar {
  244. background-color: #ccc;
  245. }
  246. #ui-dialog-close:hover {
  247. background-color: #b44;
  248. border-color: #a33;
  249. }
  250. #ui-dialog-body {
  251. background-color: #fff;
  252. border-color: #ccc;
  253. }
  254. #ui-dialog-body hr {
  255. background-color: #ccc;
  256. }
  257. /* List-based dialog styling */
  258. #ui-dialog-body.list li:not(:first-child) {
  259. border-top-color: #ccc;
  260. }
  261. #ui-dialog-body.list li a {
  262. color: #111;
  263. }
  264. #ui-dialog-body.list li a:hover {
  265. background-color: #ccc;
  266. border-color: #111;
  267. }
  268. /* Saves dialog styling */
  269. #ui-dialog-body.saves > *:not(:first-child),
  270. #ui-dialog-body.saves tr:not(:first-child) {
  271. border-top-color: #ccc;
  272. }
  273. #ui-dialog-body.saves .empty {
  274. color: #777;
  275. }
  276. /* Settings dialog styling */
  277. #ui-dialog-body.settings button[id|="setting-control"] {
  278. color: #111;
  279. border-color: #ccc;
  280. }
  281. #ui-dialog-body.settings button[id|="setting-control"]:hover {
  282. background-color: #eee;
  283. border-color: #111;
  284. }
  285. #ui-dialog-body.settings button[id|="setting-control"].enabled {
  286. background-color: #9e9;
  287. border-color: #7c7;
  288. }
  289. #ui-dialog-body.settings button[id|="setting-control"].enabled:hover {
  290. background-color: #7c7;
  291. border-color: #5a5;
  292. }
  293. /* Debug view styling */
  294. html:not([data-debug-view]) #debug-view-toggle {
  295. color: #111;
  296. border-color: #ccc;
  297. }
  298. html:not([data-debug-view]) #debug-view-toggle:hover {
  299. background-color: #eee;
  300. border-color: #111;
  301. }
  302. html[data-debug-view] #debug-view-toggle {
  303. background-color: #9e9;
  304. border-color: #7c7;
  305. }
  306. html[data-debug-view] #debug-view-toggle:hover {
  307. background-color: #7c7;
  308. border-color: #5a5;
  309. }
  310. html[data-debug-view] .debug {
  311. background-color: #dc9;
  312. }
  313. html[data-debug-view] .debug.hidden,
  314. html[data-debug-view] .debug.hidden .debug {
  315. background-color: #bbb;
  316. }
  317. /*! <<bugreport>> macro for SugarCube 2.x (bleached) */
  318. #ui-dialog-body.bugreport #bugreport-info{margin-bottom:1em}#ui-dialog-body.bugreport #bugreport-data{display:block;overflow:auto;font-family:monospace,monospace;background-color:#eee;border:1px solid #111;margin:0;padding:6px;height:auto;min-height:200px;white-space:normal}#ui-dialog-body.bugreport .scroll-pad{margin:0;padding:0}
  319. /*! <<checkvars>> macro for SugarCube 2.x (bleached) */
  320. #ui-dialog-body.checkvars{padding:1em}#ui-dialog-body.checkvars h1{font-size:1.5em;margin-top:0}#ui-dialog-body.checkvars table{border-collapse:collapse;border-spacing:0}#ui-dialog-body.checkvars thead tr{border-bottom:2px solid #ccc}#ui-dialog-body.checkvars tr:not(:first-child){border-top:1px solid #ccc}#ui-dialog-body.checkvars td,#ui-dialog-body.checkvars th{padding:.25em 1em}#ui-dialog-body.checkvars td:first-child,#ui-dialog-body.checkvars th:first-child{padding-left:.5em;border-right:1px solid #ccc}#ui-dialog-body.checkvars td:last-child,#ui-dialog-body.checkvars th:last-child{padding-right:.5em}#ui-dialog-body.checkvars th:first-child{text-align:center}#ui-dialog-body.checkvars td:first-child{font-weight:700;text-align:right}#ui-dialog-body.checkvars td{font-family:monospace,monospace;vertical-align:top;white-space:pre-wrap}#ui-dialog-body.checkvars .scroll-pad{margin:0;padding:0}