not really known
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.

462 lines
9.0 KiB

  1. * {
  2. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  3. }
  4. html {
  5. height: 100%;
  6. }
  7. body {
  8. margin: 0;
  9. height: 100%;
  10. background-color: #c0c0c0;
  11. position: relative;
  12. font-family: sans-serif;
  13. font-size: 10pt;
  14. }
  15. .unselectable {
  16. -moz-user-select: none;
  17. -webkit-user-select: none;
  18. }
  19. .pull-right {
  20. float: right;
  21. }
  22. a {
  23. color: #0076c3;
  24. text-decoration: none;
  25. }
  26. /* Toolbar */
  27. .toolbar {
  28. color: white;
  29. background-color: #282828;
  30. padding: 0 57px;
  31. height: 55px;
  32. -moz-user-select: none;
  33. -webkit-user-select: none;
  34. }
  35. /* Toolbar separator */
  36. .toolbar hr {
  37. display: inline-block;
  38. height: 33px;
  39. border: 1px solid #808080;
  40. margin: 2.5px;
  41. margin-bottom: -17px;
  42. }
  43. /* Toolbar toolbutton */
  44. .toolbar .toolbutton {
  45. background-color: transparent;
  46. background-position: center;
  47. background-size: contain;
  48. background-repeat: no-repeat;
  49. color: white;
  50. color: transparent;
  51. border: 0;
  52. border-radius: 5.5px;
  53. margin: 4px 2px;
  54. width: 47px;
  55. height: 47px;
  56. position: relative;
  57. }
  58. .toolbar .toolbutton:hover {
  59. background-color: black;
  60. }
  61. .toolbar .toolbutton:active,
  62. .toolbar .toolbutton.active {
  63. background-color: #808080;
  64. }
  65. .toolbar .toolbutton img {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .toolbar .toolbutton:before {
  70. content: "";
  71. background-color: transparent;
  72. position: absolute;
  73. display: block;
  74. width: 55px;
  75. height: 11px;
  76. bottom: -4px;
  77. right: -4px;
  78. }
  79. .toolbar .toolbutton.invoker:before {
  80. background-image: url('../icons/emblems/arrow-down.svg');
  81. }
  82. .toolbar .toolbutton:disabled {
  83. opacity: .4;
  84. background-color: transparent;
  85. }
  86. .toolbar #stop-button {
  87. background-image: url('../icons/actions/activity-stop.svg');
  88. }
  89. /* Canvas */
  90. #canvas {
  91. color: black;
  92. background-color: #c0c0c0;
  93. position: absolute;
  94. bottom: 0;
  95. top: 55px;
  96. overflow-y: auto;
  97. width: 100%;
  98. }
  99. /* Button */
  100. button {
  101. background-color: #808080;
  102. color: white;
  103. border: 2px solid transparent;
  104. border-radius: 22px;
  105. line-height: 22px;
  106. padding: 2px 4px;
  107. -moz-user-select: none;
  108. -webkit-user-select: none;
  109. }
  110. button:hover {
  111. background-color: #a2a2a2;
  112. border-color: #a2a2a2;
  113. }
  114. button:active {
  115. background-color: white;
  116. color: black;
  117. border-color: #808080;
  118. }
  119. button:focus {
  120. border-color: white;
  121. }
  122. .toolbar button {
  123. margin-top: 12.5px;
  124. }
  125. /* Button with icon */
  126. button.icon {
  127. position: relative;
  128. padding-left: 26px;
  129. }
  130. button.icon span.ok {
  131. background-image: url(../icons/actions/dialog-ok.svg);
  132. }
  133. button.icon:active span.ok {
  134. background-image: url(../icons/actions/dialog-ok-active.svg);
  135. }
  136. button.icon span.cancel {
  137. background-image: url(../icons/actions/dialog-cancel.svg);
  138. }
  139. button.icon:active span.cancel {
  140. background-image: url(../icons/actions/dialog-cancel-active.svg);
  141. }
  142. button.icon span {
  143. display: inline-block;
  144. width: 22px;
  145. height: 22px;
  146. background-color: transparent;
  147. background-position: center;
  148. background-size: 22px 22px;
  149. background-repeat: no-repeat;
  150. position: absolute;
  151. }
  152. button.icon span {
  153. top: 2px;
  154. left: 2px;
  155. }
  156. /* One line text input */
  157. input[type='text'] {
  158. background-color: #e5e5e5;
  159. border: 2px solid #e5e5e5;
  160. border-radius: 22px;
  161. padding: 4px;
  162. width: 165px;
  163. line-height: 22px;
  164. outline: 0;
  165. }
  166. input[type='text']:focus {
  167. background-color: white;
  168. }
  169. input[type='text']:disabled {
  170. border-color: #808080;
  171. background-color: #808080;
  172. }
  173. .toolbar input[type='text'],
  174. .palette .row input[type='text'] {
  175. margin-top: 10.5px;
  176. }
  177. .palette .row input[type='text']:nth-last-child(1) {
  178. margin-top: 8.5px;
  179. }
  180. input[type='text'].expand {
  181. width: calc(100% - 12px);
  182. }
  183. /* One line text input with buttons inside */
  184. .icon-input {
  185. display: inline-block;
  186. position: relative;
  187. }
  188. .icon-input input[type='text'] {
  189. width: 135px;
  190. padding-right: 34px;
  191. }
  192. .icon-input.expand {
  193. width: 100%;
  194. }
  195. .icon-input.expand input[type='text'] {
  196. width: calc(100% - 42px);
  197. }
  198. .icon-input button {
  199. width: 34px;
  200. height: 34px;
  201. padding: 0;
  202. position: absolute;
  203. background-size: 22px 22px;
  204. }
  205. .icon-input button.right {
  206. margin: 0 0 0 -34px;
  207. border-radius: 0 22px 22px 0;
  208. right: 0;
  209. }
  210. .icon-input button {
  211. background-color: transparent;
  212. background-position: center;
  213. background-repeat: no-repeat;
  214. border: 0;
  215. }
  216. .icon-input button {
  217. top: 2px;
  218. }
  219. .toolbar .icon-input button:hover {
  220. background-color: transparent;
  221. }
  222. .toolbar .icon-input button {
  223. top: 10.5px;
  224. }
  225. button.cancel {
  226. background-image: url(../icons/actions/entry-cancel.svg);
  227. }
  228. button.cancel:active {
  229. background-image: url(../icons/actions/entry-cancel-active.svg);
  230. }
  231. button.cancel:disabled {
  232. background-image: url(../icons/actions/entry-cancel-disabled.svg);
  233. }
  234. /* Slider */
  235. /* FIXME this is not fully Sugarized yet */
  236. input[type='range'] {
  237. -webkit-appearance: none !important;
  238. background-color: #808080;
  239. border-radius: 22px;
  240. height: 11px;
  241. cursor: pointer;
  242. }
  243. input[type='range']::-webkit-slider-thumb {
  244. -webkit-appearance: none !important;
  245. background-color: #c0c0c0;
  246. border: 4px solid #808080;
  247. border-radius: 11px;
  248. height: 22px;
  249. width: 22px;
  250. }
  251. input[type='range']::-webkit-slider-thumb:hover {
  252. background-color: #e2e2e2;
  253. border-color: #a2a2a2;
  254. }
  255. .toolbar input[type='range'] {
  256. margin-top: 22px;
  257. }
  258. /* Label */
  259. label {
  260. -moz-user-select: none;
  261. -webkit-user-select: none;
  262. }
  263. /* Palette */
  264. .palette {
  265. color: white;
  266. background-color: transparent;
  267. position: absolute;
  268. pointer-events: none;
  269. }
  270. .palette-invoker {
  271. width: 51px;
  272. height: 53px;
  273. background-color: black;
  274. border: 2px solid #808080;
  275. border-bottom: 0;
  276. background-position: 2px 2px;
  277. background-size: 47px;
  278. background-repeat: no-repeat;
  279. }
  280. .palette-invoker:after {
  281. content: "";
  282. background-color: transparent;
  283. position: absolute;
  284. display: block;
  285. width: 55px;
  286. height: 11px;
  287. top: 44px;
  288. left: 0;
  289. background-image: url('../icons/emblems/arrow-up.svg');
  290. }
  291. .palette-invoker:before {
  292. content: "";
  293. background-color: black;
  294. position: absolute;
  295. display: block;
  296. top: 55px;
  297. width: 51px;
  298. left: 2px;
  299. height: 2px;
  300. }
  301. .palette .wrapper {
  302. background-color: black;
  303. border: 2px solid #808080;
  304. max-width: 271px;
  305. min-width: 161px;
  306. min-height: 51px;
  307. pointer-events: auto;
  308. }
  309. .palette .header {
  310. height: 51px;
  311. line-height: 51px;
  312. -moz-user-select: none;
  313. -webkit-user-select: none;
  314. margin: 0 5.5px;
  315. font-weight: bold;
  316. }
  317. .palette hr {
  318. border: 1px solid #808080;
  319. }
  320. .palette hr.header-separator {
  321. margin-top: 0;
  322. }
  323. .palette .row {
  324. height: 55px;
  325. margin: 0 5.5px;
  326. }
  327. .palette .row:nth-last-child(1) {
  328. height: 51px;
  329. }
  330. .palette .row.small {
  331. height: 22px;
  332. }
  333. .palette .row.expand {
  334. height: auto;
  335. }
  336. /* Palette menu */
  337. .palette .menu {
  338. list-style-type: none;
  339. padding: 0;
  340. margin-top: 11px;
  341. margin-bottom: 11px;
  342. }
  343. .palette .menu button {
  344. background-color: transparent;
  345. border-radius: 0;
  346. border: 0;
  347. width: 100%;
  348. text-align: left;
  349. line-height: 33px;
  350. padding-top: 0;
  351. padding-bottom: 0;
  352. margin-top: 0;
  353. margin-bottom: 0;
  354. }
  355. .palette .menu button:hover {
  356. background-color: #808080;
  357. color: white;
  358. }
  359. .palette .menu button.icon {
  360. padding-left: 37px;
  361. }
  362. .palette .menu button.icon span {
  363. top: 0;
  364. left: 0;
  365. width: 33px;
  366. height: 33px;
  367. }
  368. /* Scrollbar */
  369. ::-webkit-scrollbar {
  370. background-color: #808080;
  371. width: 11px;
  372. }
  373. ::-webkit-scrollbar-thumb {
  374. background-color: white;
  375. border: 2px solid #dddddd;
  376. border-radius: 11px;
  377. }
  378. /* Grid for visual debugging and layout */
  379. .grid {
  380. background-color: transparent;
  381. position: absolute;
  382. top: 0;
  383. left: 0;
  384. }
  385. /* Checkbox and radio */
  386. input[type='checkbox'],
  387. input[type='radio'] {
  388. background-position: center;
  389. background-size: contain;
  390. width: 22px;
  391. height: 22px;
  392. margin: 2px 2px 4px 2px;
  393. vertical-align: middle;
  394. -moz-appearance: none;
  395. appearance: none;
  396. -webkit-appearance: none;
  397. }
  398. .toolbar input[type='checkbox'],
  399. .toolbar input[type='radio'] {
  400. margin-top: 14.5px;
  401. margin-bottom: 18.5px;
  402. }
  403. input[type='checkbox'] {
  404. background-image: url(../icons/actions/checkbox-unchecked.svg);
  405. }
  406. input[type='checkbox']:active {
  407. background-image: url(../icons/actions/checkbox-checked-selected.svg);
  408. }
  409. input[type='checkbox']:checked:active {
  410. background-image: url(../icons/actions/checkbox-checked-selected.svg);
  411. }
  412. input[type='checkbox']:checked {
  413. background-image: url(../icons/actions/checkbox-checked.svg);
  414. }
  415. input[type='radio'] {
  416. background-image: url(../icons/actions/radio.svg);
  417. }
  418. input[type='radio']:active {
  419. background-image: url(../icons/actions/radio-selected.svg);
  420. }
  421. input[type='radio']:checked:active {
  422. background-image: url(../icons/actions/radio-active-selected.svg);
  423. }
  424. input[type='radio']:checked {
  425. background-image: url(../icons/actions/radio-active.svg);
  426. }
  427. /* Textarea */
  428. textarea {
  429. border: 2px solid #808080;
  430. margin: 2px;
  431. }
  432. textarea.expand {
  433. width: calc(100% - 12px);
  434. }
  435. /* Lists */
  436. ul.flat-list {
  437. list-style-type: none;
  438. padding: 0;
  439. margin: 0;
  440. }
  441. ul.flat-list li {
  442. border-bottom: 2px dotted #c0c0c0;
  443. background-color: white;
  444. height: 31px;
  445. line-height: 31px;
  446. }
  447. ul.flat-list li:nth-last-child(1) {
  448. border-bottom: none;
  449. }
  450. ul.flat-list.big li {
  451. height: 42px;
  452. line-height: 42px;
  453. }
  454. ul.flat-list.striped li:nth-child(odd) {
  455. background-color: #e5e5e5;
  456. }
  457. /* ActivityPalette */
  458. #activity-palette .wrapper {
  459. width: 271px;
  460. }