rpgui.css 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  1. /*
  2. Import the font stylesheet.
  3. If not supported you can add backup via:
  4. <link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
  5. inside your html file.
  6. */
  7. @import url("https://fonts.googleapis.com/css?family=Press+Start+2P");
  8. /**
  9. * Customized scrollbars
  10. */
  11. /* to get pixelated images (nearest-neighbor filter) on all browsers */
  12. .rpgui-pixelated {
  13. -ms-interpolation-mode: nearest-neighbor;
  14. image-rendering: -webkit-optimize-contrast;
  15. image-rendering: -webkit-crisp-edges;
  16. image-rendering: -moz-crisp-edges;
  17. image-rendering: -o-crisp-edges;
  18. image-rendering: pixelated; }
  19. /* unselectable text */
  20. .rpgui-noselect {
  21. -webkit-touch-callout: none;
  22. -webkit-user-select: none;
  23. -khtml-user-select: none;
  24. -moz-user-select: none;
  25. -ms-user-select: none;
  26. user-select: none; }
  27. /* center things */
  28. .rpgui-center {
  29. text-align: center;
  30. align-content: center; }
  31. /* rotate object 90 degrees */
  32. .rpgui-rotate-90 {
  33. /* rotate 90 degrees */
  34. -webkit-transform: rotate(90deg);
  35. -moz-transform: rotate(90deg);
  36. -o-transform: rotate(90deg);
  37. -ms-transform: rotate(90deg);
  38. transform: rotate(90deg);
  39. /* rotate from center-left side */
  40. -ms-transform-origin: 0% 50%;
  41. /* IE 9 */
  42. -webkit-transform-origin: 0% 50%;
  43. /* Chrome, Safari, Opera */
  44. transform-origin: 0% 50%; }
  45. /**
  46. * Styling for buttons
  47. */
  48. /* button style */
  49. .rpgui-button {
  50. /* hide button default stuff */
  51. background-color: Transparent;
  52. background-repeat: no-repeat;
  53. border: none;
  54. overflow: hidden;
  55. outline: none;
  56. /* background */
  57. background: url("img/button.png") no-repeat no-repeat;
  58. background-clip: padding-box;
  59. background-origin: padding-box;
  60. background-position: center;
  61. background-size: 100% 100%;
  62. /* font size */
  63. font-size: 1.0em;
  64. /* default size and display */
  65. max-width: 100%;
  66. min-width: 140px;
  67. height: 60px;
  68. display: inline-block;
  69. /* padding */
  70. padding-left: 35px;
  71. padding-right: 35px; }
  72. /* button hover */
  73. .rpgui-button.hover,
  74. .rpgui-button:hover {
  75. background-image: url("img/button-hover.png"); }
  76. /* button clicked */
  77. .rpgui-button.down,
  78. .rpgui-button:active {
  79. background-image: url("img/button-down.png"); }
  80. /* golden button stuff */
  81. .rpgui-button.golden p {
  82. display: inline-block; }
  83. /* golden button style */
  84. .rpgui-button.golden {
  85. /* hide button default stuff */
  86. background-color: Transparent;
  87. background-repeat: no-repeat;
  88. border: none;
  89. overflow: hidden;
  90. outline: none;
  91. /* background */
  92. background: url("img/button-golden.png") no-repeat no-repeat;
  93. background-clip: padding-box;
  94. background-origin: padding-box;
  95. background-position: center;
  96. background-size: 100% 80%;
  97. /* default size and display */
  98. max-width: 100%;
  99. min-width: 140px;
  100. height: 60px;
  101. display: inline-block;
  102. /* padding */
  103. padding-top: 5px;
  104. padding-left: 35px;
  105. padding-right: 35px;
  106. overflow: visible; }
  107. /* button hover */
  108. .rpgui-button.golden.hover,
  109. .rpgui-button.golden:hover {
  110. background-image: url("img/button-golden-hover.png"); }
  111. /* button clicked */
  112. .rpgui-button.golden.down,
  113. .rpgui-button.golden:active {
  114. background-image: url("img/button-golden-down.png"); }
  115. .rpgui-button.golden:before {
  116. white-space: nowrap;
  117. display: inline-block;
  118. content: "";
  119. width: 34px;
  120. display: block;
  121. height: 110%;
  122. background: transparent url("img/button-golden-left.png") no-repeat right center;
  123. background-size: 100% 100%;
  124. margin: 0 0 0 0;
  125. left: 0px;
  126. float: left;
  127. margin-left: -46px;
  128. margin-top: -5%; }
  129. .rpgui-button.golden:after {
  130. white-space: nowrap;
  131. display: block;
  132. content: "";
  133. width: 34px;
  134. height: 110%;
  135. background: transparent url("img/button-golden-right.png") no-repeat left center;
  136. background-size: 100% 100%;
  137. margin: 0 0 0 0;
  138. right: 0px;
  139. float: right;
  140. margin-right: -46px;
  141. margin-top: -5%; }
  142. /*
  143. .rpgui-button.golden:hover:before {
  144. background-image: url('img/button-golden-left-hover.png');
  145. }
  146. .rpgui-button.golden:hover:after {
  147. background-image: url('img/button-golden-right-hover.png');
  148. }
  149. */
  150. /**
  151. * style for checkboxes
  152. */
  153. /* basic checkbox */
  154. .rpgui-content input[type=checkbox].rpgui-checkbox {
  155. display: none; }
  156. .rpgui-content input[type=checkbox].rpgui-checkbox + label {
  157. background: url("img/checkbox-off.png") no-repeat;
  158. line-height: 24px;
  159. display: inline-block;
  160. background-size: auto 100%;
  161. padding-left: 34px;
  162. height: 24px;
  163. margin-top: 10px;
  164. margin-bottom: 10px; }
  165. .rpgui-content input[type=checkbox].rpgui-checkbox:checked + label {
  166. background: url("img/checkbox-on.png") no-repeat;
  167. line-height: 24px;
  168. display: inline-block;
  169. background-size: auto 100%;
  170. padding-left: 34px;
  171. height: 24px; }
  172. /* golden checkbox */
  173. .rpgui-content input[type=checkbox].rpgui-checkbox.golden + label {
  174. background: url("img/checkbox-golden-off.png") no-repeat;
  175. background-size: auto 100%; }
  176. .rpgui-content input[type=checkbox].rpgui-checkbox.golden:checked + label {
  177. background: url("img/checkbox-golden-on.png") no-repeat;
  178. background-size: auto 100%; }
  179. /**
  180. * global content styling
  181. */
  182. /* game div with background image*/
  183. .rpgui-content {
  184. padding: 0 0 0 0;
  185. margin: 0 0 0 0;
  186. width: 100%;
  187. height: 100%;
  188. left: 0px;
  189. top: 0px;
  190. position: fixed;
  191. overflow: hidden;
  192. font-size: 0.8em; }
  193. /* general rules to apply on anything inside the content */
  194. .rpgui-content * {
  195. /* remove outline effect for input elements etc */
  196. outline: none;
  197. /* prevent dragging */
  198. user-drag: none;
  199. -webkit-user-drag: none;
  200. /* prevent text selecting */
  201. -webkit-touch-callout: none;
  202. -webkit-user-select: none;
  203. -khtml-user-select: none;
  204. -moz-user-select: none;
  205. -ms-user-select: none;
  206. user-select: none;
  207. -webkit-tap-highlight-color: transparent;
  208. /* pixelated enlargement filter (to keep the pixel-art style when enlarging pictures) */
  209. -ms-interpolation-mode: nearest-neighbor;
  210. image-rendering: -webkit-optimize-contrast;
  211. image-rendering: -webkit-crisp-edges;
  212. image-rendering: -moz-crisp-edges;
  213. image-rendering: -o-crisp-edges;
  214. image-rendering: pixelated;
  215. /* default font */
  216. font-family: 'Press Start 2P', cursive; }
  217. /**
  218. * customized divs (containers) and framed objects (background and frame image).
  219. */
  220. /* game div without background image*/
  221. .rpgui-container {
  222. /* position style and default z */
  223. position: fixed;
  224. z-index: 10;
  225. overflow: show; }
  226. /* game div with background image*/
  227. .rpgui-container.framed {
  228. /* border */
  229. border-style: solid;
  230. border-image-source: url("img/border-image.png");
  231. border-image-repeat: repeat;
  232. border-image-slice: 6 6 6 6;
  233. border-image-width: 18px;
  234. border-width: 15px;
  235. padding: 12px;
  236. /* internal border */
  237. box-sizing: border-box;
  238. -moz-box-sizing: border-box;
  239. -webkit-box-sizing: border-box;
  240. /* background */
  241. background: url("img/background-image.png") repeat repeat;
  242. background-clip: padding-box;
  243. background-origin: padding-box;
  244. background-position: center; }
  245. /* game div with golden background image*/
  246. .rpgui-container.framed-golden {
  247. /* border */
  248. border-style: solid;
  249. border-image-source: url("img/border-image-golden.png");
  250. border-image-repeat: repeat;
  251. border-image-slice: 4 4 4 4;
  252. border-image-width: 18px;
  253. border-width: 15px;
  254. padding: 12px;
  255. /* internal border */
  256. box-sizing: border-box;
  257. -moz-box-sizing: border-box;
  258. -webkit-box-sizing: border-box;
  259. /* background */
  260. background: url("img/background-image-golden.png") repeat repeat;
  261. background-clip: padding-box;
  262. background-origin: padding-box;
  263. background-position: center; }
  264. /* game div with golden2 background image*/
  265. .rpgui-container.framed-golden-2 {
  266. /* border */
  267. border-style: solid;
  268. border-image-source: url("img/border-image-golden2.png");
  269. border-image-repeat: repeat;
  270. border-image-slice: 8 8 8 8;
  271. border-image-width: 18px;
  272. border-width: 15px;
  273. padding: 12px;
  274. /* internal border */
  275. box-sizing: border-box;
  276. -moz-box-sizing: border-box;
  277. -webkit-box-sizing: border-box;
  278. /* background */
  279. background: url("img/background-image-golden2.png") repeat repeat;
  280. background-clip: padding-box;
  281. background-origin: padding-box;
  282. background-position: center; }
  283. /* game div with soft grey background image*/
  284. .rpgui-container.framed-grey {
  285. position: relative;
  286. /* border */
  287. border-style: solid;
  288. border-image-source: url("img/border-image-grey.png");
  289. border-image-repeat: repeat;
  290. border-image-slice: 3 3 3 3;
  291. border-image-width: 7px;
  292. border-width: 7px;
  293. padding: 12px;
  294. /* internal border */
  295. box-sizing: border-box;
  296. -moz-box-sizing: border-box;
  297. -webkit-box-sizing: border-box;
  298. /* background */
  299. background: url("img/background-image-grey.png") repeat repeat;
  300. background-clip: padding-box;
  301. background-origin: padding-box;
  302. background-position: center; }
  303. /**
  304. * different cursor graphics
  305. */
  306. /* default cursor important */
  307. /* this rule is for when you specifically request this cursor class */
  308. .rpgui-cursor-default {
  309. cursor: url("img/cursor/default.png"), auto !important; }
  310. /* default cursor, not important, for all elements without any other rule. */
  311. .rpgui-content,
  312. label {
  313. cursor: url("img/cursor/default.png"), auto; }
  314. /* pointer / hand cursor important */
  315. /* this rule is for when you specifically request this cursor class */
  316. .rpgui-cursor-point,
  317. .rpgui-cursor-point * {
  318. cursor: url("img/cursor/point.png") 10 0, auto !important; }
  319. /* pointer / hand cursor, not important, for all elements that have pointer by-default */
  320. .rpgui-content a,
  321. .rpgui-content button,
  322. .rpgui-button,
  323. .rpgui-slider-container,
  324. .rpgui-content input[type=radio].rpgui-radio + label,
  325. .rpgui-list-imp,
  326. .rpgui-dropdown-imp,
  327. .rpgui-content input[type=checkbox].rpgui-checkbox + label {
  328. cursor: url("img/cursor/point.png") 10 0, auto; }
  329. /* for input / text selection important */
  330. /* this rule is for when you specifically request this cursor class */
  331. .rpgui-cursor-select,
  332. .rpgui-cursor-select * {
  333. cursor: url("img/cursor/select.png") 10 0, auto !important; }
  334. /* for input / text selection, not important, for all elements that have pointer by-default */
  335. .rpgui-cursor-select,
  336. .rpgui-content input,
  337. .rpgui-content textarea {
  338. cursor: url("img/cursor/select.png") 10 0, auto; }
  339. /* for grabbing stuff */
  340. /* this rule is for when you specifically request this cursor class */
  341. .rpgui-cursor-grab-open,
  342. .rpgui-cursor-grab-open * {
  343. cursor: url("img/cursor/grab-open.png") 10 0, auto !important; }
  344. /* for grabbing stuff */
  345. /* this rule is for when you specifically request this cursor class */
  346. .rpgui-cursor-grab-close,
  347. .rpgui-cursor-grab-close * {
  348. cursor: url("img/cursor/grab-close.png") 10 0, auto !important; }
  349. /**
  350. * Customized dropdown with rpgui design.
  351. */
  352. /* dropdown box implemented with list (see rpgui-dropdown.js for details) */
  353. /* note! this class rule affect both the dropdown header and the list elements! */
  354. .rpgui-dropdown-imp,
  355. .rpgui-dropdown {
  356. /* font */
  357. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  358. color: white;
  359. /* default size */
  360. min-height: 40px;
  361. margin-top: 0px;
  362. /* border */
  363. border-style: solid;
  364. border-width: 7px 7px 7px 7px;
  365. -moz-border-image: url("img/select-border-image.png") 10% repeat repeat;
  366. -webkit-border-image: url("img/select-border-image.png") 10% repeat repeat;
  367. -o-border-image: url("img/select-border-image.png") 10% repeat repeat;
  368. border-image: url("img/select-border-image.png") 10% repeat repeat;
  369. /* background */
  370. background: url("img/select-background-image.png") repeat repeat;
  371. background-clip: padding-box;
  372. background-origin: padding-box;
  373. background-position: center; }
  374. /* dropdown options list */
  375. ul.rpgui-dropdown-imp {
  376. padding: 0 0 0 0 !important;
  377. z-index: 100; }
  378. /* note! this affect only the dropdown header */
  379. /* shows the currently selected value from select element */
  380. .rpgui-content .rpgui-dropdown-imp-header {
  381. color: white !important;
  382. min-height: 22px !important;
  383. padding: 5px 10px 0 10px !important;
  384. margin: 0 0 0 0 !important;
  385. position: relative !important; }
  386. /* dropdown options */
  387. .rpgui-dropdown-imp li {
  388. /* font */
  389. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  390. color: white;
  391. height: 16px;
  392. /* remove the dot */
  393. list-style-type: none;
  394. /* padding */
  395. padding-top: 6px;
  396. padding-bottom: 6px;
  397. padding-left: 6px;
  398. /* background */
  399. background: url("img/select-background-image.png") repeat repeat;
  400. background-clip: padding-box;
  401. background-origin: padding-box;
  402. background-position: center; }
  403. /* dropdown options hover */
  404. .rpgui-dropdown-imp li:hover {
  405. color: yellow; }
  406. /* dropdown hover */
  407. .rpgui-dropdown-imp:hover {
  408. color: yellow; }
  409. /**
  410. * hr styling
  411. */
  412. /* rpgui hr */
  413. .rpgui-content hr {
  414. display: block;
  415. border: 0px;
  416. height: 10px;
  417. background: url("img/hr.png") repeat-x top left; }
  418. /* rpgui golden hr */
  419. .rpgui-content hr.golden {
  420. display: block;
  421. border: 0px;
  422. height: 10px;
  423. background: url("img/hr-golden.png") no-repeat top left;
  424. background-size: 100% 100%; }
  425. /**
  426. * Icon styles.
  427. */
  428. .rpgui-icon {
  429. display: inline-block;
  430. background-size: 100% 100%;
  431. background-repeat: no-repeat;
  432. width: 64px;
  433. height: 64px; }
  434. .rpgui-icon.sword {
  435. background-image: url("img/icons/sword.png"); }
  436. .rpgui-icon.shield {
  437. background-image: url("img/icons/shield.png"); }
  438. .rpgui-icon.exclamation {
  439. background-image: url("img/icons/exclamation.png"); }
  440. .rpgui-icon.potion-red {
  441. background-image: url("img/icons/potion-red.png"); }
  442. .rpgui-icon.potion-green {
  443. background-image: url("img/icons/potion-green.png"); }
  444. .rpgui-icon.potion-blue {
  445. background-image: url("img/icons/potion-blue.png"); }
  446. .rpgui-icon.weapon-slot {
  447. background-image: url("img/icons/weapon-slot.png"); }
  448. .rpgui-icon.shield-slot {
  449. background-image: url("img/icons/shield-slot.png"); }
  450. .rpgui-icon.armor-slot {
  451. background-image: url("img/icons/armor-slot.png"); }
  452. .rpgui-icon.helmet-slot {
  453. background-image: url("img/icons/helmet-slot.png"); }
  454. .rpgui-icon.ring-slot {
  455. background-image: url("img/icons/ring-slot.png"); }
  456. .rpgui-icon.potion-slot {
  457. background-image: url("img/icons/potion-slot.png"); }
  458. .rpgui-icon.magic-slot {
  459. background-image: url("img/icons/magic-slot.png"); }
  460. .rpgui-icon.shoes-slot {
  461. background-image: url("img/icons/shoes-slot.png"); }
  462. .rpgui-icon.empty-slot {
  463. background-image: url("img/icons/empty-slot.png"); }
  464. /**
  465. * input styling
  466. */
  467. /* input/textarea input */
  468. .rpgui-content input,
  469. .rpgui-content textarea {
  470. /* set size and colors */
  471. -webkit-box-sizing: border-box;
  472. -moz-box-sizing: border-box;
  473. box-sizing: border-box;
  474. color: white;
  475. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  476. font-size: 0.9em;
  477. line-height: 32px;
  478. background: #4e4a4e;
  479. max-width: 100%;
  480. width: 100%;
  481. padding-left: 10px;
  482. /* for ie */
  483. min-height: 30px;
  484. /* enable text selecting */
  485. -webkit-touch-callout: text;
  486. -webkit-user-select: text;
  487. -khtml-user-select: text;
  488. -moz-user-select: text;
  489. -ms-user-select: text;
  490. user-select: text;
  491. -webkit-tap-highlight-color: rgba(0, 0, 0, 0.5); }
  492. /* textarea extra rules */
  493. .rpgui-content textarea {
  494. line-height: 22px;
  495. padding-top: 7px;
  496. height: 80px;
  497. resize: none; }
  498. /* selection highlight */
  499. .rpgui-content input::selection,
  500. .rpgui-content textarea::selection {
  501. background: rgba(0, 0, 0, 0.5); }
  502. .rpgui-content input::-moz-selection,
  503. .rpgui-content textarea::-moz-selection {
  504. background: rgba(0, 0, 0, 0.5); }
  505. /* dropdown box implemented with list (see rpgui-dropdown.js for details) */
  506. /* note! this class rule affect both the dropdown header and the list elements! */
  507. .rpgui-list-imp {
  508. /* font */
  509. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  510. color: white;
  511. /* default size */
  512. min-height: 40px;
  513. margin-top: 0px;
  514. /* scrollers */
  515. overflow-x: hidden;
  516. overflow-y: scroll;
  517. /* border */
  518. border-style: solid;
  519. border-width: 7px 7px 7px 7px;
  520. -moz-border-image: url("img/select-border-image.png") 10% repeat repeat;
  521. -webkit-border-image: url("img/select-border-image.png") 10% repeat repeat;
  522. -o-border-image: url("img/select-border-image.png") 10% repeat repeat;
  523. border-image: url("img/select-border-image.png") 10% repeat repeat;
  524. /* background */
  525. background: url("img/select-background-image.png") repeat repeat;
  526. background-clip: padding-box;
  527. background-origin: padding-box;
  528. background-position: center; }
  529. /* dropdown options list */
  530. ul.rpgui-list-imp {
  531. padding: 0 0 0 0 !important;
  532. z-index: 100; }
  533. /* dropdown options */
  534. .rpgui-list-imp li {
  535. /* font */
  536. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  537. color: white;
  538. height: 16px;
  539. margin-left: 5px !important;
  540. /* remove the dot */
  541. list-style-type: none;
  542. /* padding */
  543. padding-top: 6px;
  544. padding-bottom: 6px;
  545. padding-left: 6px;
  546. /* background */
  547. background: url("img/select-background-image.png") repeat repeat;
  548. background-clip: padding-box;
  549. background-origin: padding-box;
  550. background-position: center; }
  551. /* list options hover */
  552. .rpgui-list-imp li:hover {
  553. color: yellow; }
  554. /* list hover */
  555. .rpgui-list-imp:hover {
  556. color: yellow; }
  557. .rpgui-list-imp .rpgui-selected {
  558. background: rgba(0, 0, 0, 0.3); }
  559. /**
  560. * Paragraphs and headers while inside an rpgui container.
  561. */
  562. /* default gui header */
  563. .rpgui-content h1 {
  564. /* color and border */
  565. color: white;
  566. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  567. font-size: 1.14em;
  568. /* center text */
  569. text-align: center;
  570. /* padding */
  571. padding: 0 0 0 0;
  572. margin: 7px 7px 17px 7px; }
  573. /* default gui header2 */
  574. .rpgui-content h2 {
  575. /* color and border */
  576. color: white;
  577. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  578. font-size: 1.25em;
  579. /* center text */
  580. text-align: center;
  581. /* padding */
  582. padding: 0 0 0 0;
  583. margin: 7px 7px 17px 7px; }
  584. /* default gui header3 */
  585. .rpgui-content h3 {
  586. /* color and border */
  587. color: white;
  588. font-weight: 1;
  589. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  590. font-size: 1.15em;
  591. text-decoration: underline;
  592. /* center text */
  593. text-align: center;
  594. /* padding */
  595. padding: 0 0 0 0;
  596. margin: 7px 7px 17px 7px; }
  597. /* default gui header4 */
  598. .rpgui-content h4 {
  599. /* color and border */
  600. color: white;
  601. font-weight: 1;
  602. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  603. font-size: 1.0em;
  604. text-decoration: underline;
  605. /* center text */
  606. text-align: center;
  607. /* padding */
  608. padding: 0 0 0 0;
  609. margin: 7px 7px 17px 7px; }
  610. /* default p */
  611. .rpgui-content p {
  612. /* color and border */
  613. color: white;
  614. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  615. font-size: 1.0em;
  616. line-height: 22px; }
  617. /* default span */
  618. .rpgui-content span {
  619. /* color and border */
  620. color: white;
  621. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  622. font-size: 1.0em;
  623. line-height: 22px; }
  624. /* default gui link */
  625. .rpgui-content a {
  626. /* color and border */
  627. color: yellow;
  628. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  629. font-size: 1.0em;
  630. line-height: 22px;
  631. text-decoration: none; }
  632. /* default gui link */
  633. .rpgui-content a:hover {
  634. text-decoration: underline; }
  635. /* default gui label */
  636. .rpgui-content label {
  637. /* color and border */
  638. color: white;
  639. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  640. font-size: 1.0em;
  641. line-height: 20px;
  642. display: inline; }
  643. /* default gui label */
  644. .rpgui-content li {
  645. /* color and border */
  646. margin-left: 20px;
  647. color: white;
  648. text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
  649. font-size: 1.0em;
  650. line-height: 22px; }
  651. /*
  652. * progress bar styling
  653. */
  654. /* progress bar container */
  655. .rpgui-progress {
  656. height: 42px;
  657. width: 100%;
  658. margin-top: 5px;
  659. margin-bottom: 5px;
  660. position: relative; }
  661. /* progress bar left edge */
  662. .rpgui-progress-left-edge {
  663. position: absolute;
  664. height: 42px;
  665. width: 40px;
  666. left: 0px;
  667. background-image: url("img/progress-bar-left.png");
  668. background-size: 100% 100%; }
  669. /* progress bar right edge */
  670. .rpgui-progress-right-edge {
  671. position: absolute;
  672. height: 42px;
  673. width: 40px;
  674. right: 0px;
  675. background-image: url("img/progress-bar-right.png");
  676. background-size: 100% 100%; }
  677. /* progress bar background track */
  678. .rpgui-progress-track {
  679. position: absolute;
  680. height: 42px;
  681. left: 40px;
  682. right: 40px;
  683. background-image: url("img/progress-bar-track.png");
  684. background-repeat: repeat-x;
  685. background-size: 36px 100%; }
  686. /* progress bar - the fill itself */
  687. .rpgui-progress-fill {
  688. position: absolute;
  689. top: 9px;
  690. bottom: 8px;
  691. left: 0;
  692. width: 100%;
  693. background-image: url("img/progress.png");
  694. background-repeat: repeat-x;
  695. background-size: 36px 100%; }
  696. /* progress bar - blue color */
  697. .rpgui-progress-fill.blue {
  698. background-image: url("img/progress-blue.png"); }
  699. /* progress bar - green color */
  700. .rpgui-progress-fill.green {
  701. background-image: url("img/progress-green.png"); }
  702. /* progress bar - red color */
  703. .rpgui-progress-fill.red {
  704. background-image: url("img/progress-red.png"); }
  705. /**
  706. * style for radioes
  707. */
  708. /* radio box */
  709. .rpgui-content input[type=radio].rpgui-radio {
  710. display: none; }
  711. .rpgui-content input[type=radio].rpgui-radio + label {
  712. background: url("img/radio-off.png") no-repeat;
  713. line-height: 24px;
  714. display: inline-block;
  715. background-size: auto 100%;
  716. padding-left: 34px;
  717. height: 24px;
  718. margin-top: 8px;
  719. margin-bottom: 8px; }
  720. .rpgui-content input[type=radio].rpgui-radio:checked + label {
  721. background: url("img/radio-on.png") no-repeat;
  722. line-height: 24px;
  723. display: inline-block;
  724. background-size: auto 100%;
  725. padding-left: 34px;
  726. height: 24px; }
  727. /* golden radio */
  728. .rpgui-content .rpgui-radio.golden + label {
  729. background: url("img/radio-golden-off.png") no-repeat !important;
  730. background-size: auto 100% !important; }
  731. .rpgui-content .rpgui-radio.golden:checked + label {
  732. background: url("img/radio-golden-on.png") no-repeat !important;
  733. background-size: auto 100% !important; }
  734. /**
  735. * Rules for misc and general things.
  736. */
  737. /* set scrollbars for webkit browsers (like chrome) */
  738. .rpgui-content ::-webkit-scrollbar,
  739. .rpgui-content::-webkit-scrollbar {
  740. width: 18px; }
  741. /* Track */
  742. .rpgui-content ::-webkit-scrollbar-track,
  743. .rpgui-content::-webkit-scrollbar-track {
  744. background-image: url("img/scrollbar-track.png");
  745. background-size: 18px 60px;
  746. background-repeat: repeat-y; }
  747. /* Handle */
  748. .rpgui-content ::-webkit-scrollbar-thumb,
  749. .rpgui-content::-webkit-scrollbar-thumb {
  750. background-image: url("img/scrollbar-thumb.png");
  751. background-size: 100% 100%;
  752. background-repeat: no-repeat; }
  753. /* buttons */
  754. .rpgui-content ::-webkit-scrollbar-button,
  755. .rpgui-content::-webkit-scrollbar-button {
  756. background-image: url("img/scrollbar-button.png");
  757. background-size: 100% 100%;
  758. background-repeat: no-repeat; }
  759. /**
  760. * for disabled elements
  761. */
  762. /* disabled object */
  763. .rpgui-disabled,
  764. .rpgui-content :disabled,
  765. .rpgui-content input[type=radio]:disabled + label,
  766. .rpgui-content input[type=checkbox]:disabled + label,
  767. .rpgui-content input[type=range]:disabled + .rpgui-slider-container,
  768. .rpgui-content :disabled + .rpgui-dropdown-imp,
  769. .rpgui-content :disabled + .rpgui-dropdown-imp + .rpgui-dropdown-imp,
  770. .rpgui-content :disabled + .rpgui-list-imp {
  771. cursor: url("img/cursor/default.png"), auto;
  772. -webkit-filter: grayscale(1);
  773. -webkit-filter: grayscale(100%);
  774. filter: grayscale(100%);
  775. filter: url(#greyscale);
  776. filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
  777. filter: gray;
  778. color: #999; }
  779. /**
  780. * Rules for the slider.
  781. */
  782. /* regular slider stuff */
  783. /* slider container */
  784. .rpgui-slider-container {
  785. height: 20px;
  786. width: 100%;
  787. margin-top: 15px;
  788. margin-bottom: 15px;
  789. position: relative; }
  790. /* slider left edge */
  791. .rpgui-slider-left-edge {
  792. position: absolute;
  793. height: 20px;
  794. width: 20px;
  795. left: 0px;
  796. background-image: url("img/slider-left.png");
  797. background-size: 100% 100%; }
  798. /* slider right edge */
  799. .rpgui-slider-right-edge {
  800. position: absolute;
  801. height: 20px;
  802. width: 20px;
  803. right: 0px;
  804. background-image: url("img/slider-right.png");
  805. background-size: 100% 100%; }
  806. /* slider background track */
  807. .rpgui-slider-track {
  808. position: absolute;
  809. height: 20px;
  810. left: 0;
  811. right: 0;
  812. background-image: url("img/slider-track.png");
  813. background-repeat: repeat-x;
  814. background-size: 24px 100%; }
  815. /* the part of the slider that moves and indicates the value */
  816. .rpgui-slider-thumb {
  817. position: absolute;
  818. height: 30px;
  819. width: 15px;
  820. margin-top: -5px;
  821. left: 40px;
  822. background-image: url("img/slider-thumb.png");
  823. background-size: 100% 100%; }
  824. /* golden slider stuff */
  825. /* golden slider container */
  826. .rpgui-slider-container.golden {
  827. height: 30px;
  828. width: 100%;
  829. margin-top: 15px;
  830. margin-bottom: 15px;
  831. position: relative; }
  832. /* golden slider left edge */
  833. .rpgui-slider-left-edge.golden {
  834. position: absolute;
  835. height: 30px;
  836. width: 30px;
  837. left: 0px;
  838. background-image: url("img/slider-left-golden.png");
  839. background-size: 100% 100%; }
  840. /* golden slider right edge */
  841. .rpgui-slider-right-edge.golden {
  842. position: absolute;
  843. height: 30px;
  844. width: 30px;
  845. right: 0px;
  846. background-image: url("img/slider-right-golden.png");
  847. background-size: 100% 100%; }
  848. /* golden slider background track */
  849. .rpgui-slider-track.golden {
  850. position: absolute;
  851. height: 30px;
  852. left: 0;
  853. right: 0;
  854. background-image: url("img/slider-track-golden.png");
  855. background-repeat: repeat-x;
  856. background-size: 40px 100%; }
  857. /* golden the part of the slider that moves and indicates the value */
  858. .rpgui-slider-thumb.golden {
  859. position: absolute;
  860. height: 36px;
  861. width: 18px;
  862. margin-top: -4px;
  863. left: 40px;
  864. background-image: url("img/slider-thumb-golden.png");
  865. background-size: 100% 100%; }