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.

456 lines
8.9 KiB

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