controls.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. /*
  2. Rules to layout controls.
  3. Important:
  4. - Don't provide colors here. The colors are provided by the dark.css and light.css files.
  5. */
  6. body,
  7. html {
  8. margin: 0px;
  9. padding: 0px;
  10. }
  11. body,
  12. button {
  13. font-family: Arial, Helvetica, sans-serif;
  14. font-size: 14px;
  15. }
  16. input,
  17. textarea {
  18. min-width: 0px;
  19. border-radius: 3px;
  20. padding: 3px;
  21. outline: none;
  22. border-style: none;
  23. }
  24. label {
  25. min-width: 0px;
  26. }
  27. * {
  28. user-select: none;
  29. -webkit-touch-callout: none;
  30. -webkit-user-select: none;
  31. -khtml-user-select: none;
  32. -moz-user-select: none;
  33. -ms-user-select: none;
  34. }
  35. .UserSelectText * {
  36. user-select: text !important;
  37. -webkit-touch-callout: text !important;
  38. -webkit-user-select: text !important;
  39. -khtml-user-select: text !important;
  40. -moz-user-select: text !important;
  41. -ms-user-select: text !important;
  42. }
  43. body {
  44. overflow-y: hidden;
  45. }
  46. input {
  47. -webkit-user-select: text !important;
  48. -khtml-user-select: text !important;
  49. -moz-user-select: text !important;
  50. -o-user-select: text !important;
  51. user-select: text !important;
  52. box-sizing: border-box;
  53. }
  54. button {
  55. text-overflow: ellipsis;
  56. overflow: hidden;
  57. white-space: nowrap;
  58. height: 2em;
  59. min-height: 2em;
  60. }
  61. button:active,
  62. button:focus {
  63. outline-width: 1px;
  64. outline-color: rgba(255, 255, 255, 0.1);
  65. }
  66. button.alignLeft {
  67. text-align: left;
  68. }
  69. canvas {
  70. outline: none;
  71. image-rendering: crisp-edges;
  72. }
  73. .Control {
  74. position: absolute;
  75. box-sizing: border-box;
  76. }
  77. .ImageControl {
  78. position: fixed;
  79. }
  80. /* Tooltip */
  81. .Tooltip {
  82. position: fixed;
  83. border-width: 1px;
  84. border-style: solid;
  85. padding: 5px;
  86. }
  87. .TooltipKeyString {
  88. font-family: monospace;
  89. }
  90. /* TabPane */
  91. .TabPane {
  92. display: grid;
  93. grid-template-columns: 1fr;
  94. grid-template-rows: auto 1fr;
  95. }
  96. .TabPaneTitleBar {
  97. display: flex;
  98. overflow-x: auto;
  99. }
  100. div.TabPaneTitleBar::-webkit-scrollbar {
  101. height: 7px;
  102. }
  103. .TabPaneLabel {
  104. float: left;
  105. display: grid;
  106. align-items: center;
  107. box-sizing: border-box;
  108. grid-template-columns: min-content 1fr auto min-content;
  109. border-radius: 2px 2px 0 0;
  110. /* padding: 5px 10px 5px 5px; */
  111. padding: 8px;
  112. padding-bottom: 5px;
  113. }
  114. .TabPaneLabel span {
  115. margin: 3px 0px 0px 3px;
  116. align-self: center;
  117. }
  118. .TabPaneLabelSections {
  119. display: flex;
  120. }
  121. .TabPaneLabelSections .IconControlCanvas {
  122. margin-top: 3px;
  123. padding: 0 5px 0 5px;
  124. }
  125. .TabPaneLabelSection {
  126. margin-left: 10px;
  127. margin-top: 3px;
  128. margin-bottom: -1px;
  129. border-bottom-style: solid;
  130. border-bottom-width: 1px;
  131. border-bottom-color: transparent;
  132. }
  133. .TabPaneLabelSection:nth-child(2) {
  134. margin-left: 0px;
  135. }
  136. .TabPaneLabelSection.selected {
  137. border-bottom-color: black;
  138. }
  139. .TabPaneContentArea {
  140. border-radius: 0 3px 3px 3px;
  141. }
  142. .TabPaneContentArea .ContentArea {
  143. display: none;
  144. }
  145. .TabPaneContentArea .ContentArea.selected {
  146. display: block;
  147. }
  148. .TabPaneContentArea,
  149. .TabPaneContentArea .ContentArea {
  150. position: relative;
  151. width: 100%;
  152. height: 100%;
  153. }
  154. /* ScrollPane */
  155. .ScrollPane {
  156. position: static;
  157. display: grid;
  158. grid-template-columns: 1fr 0px;
  159. grid-template-rows: 1fr;
  160. }
  161. .ScrollHandler {
  162. display: block;
  163. opacity: 0;
  164. }
  165. /*.ScrollPane */.FilteredViewer:hover .ScrollHandler:not(:active) {
  166. opacity: 1;
  167. }
  168. .ScrollHandler:active {
  169. opacity: 1 !important;
  170. }
  171. ::-webkit-scrollbar {
  172. width: 15px;
  173. }
  174. .ScrollBar,
  175. .ScrollHandler {
  176. position: relative;
  177. width: 15px;
  178. }
  179. .ScrollBar {
  180. left: -15px;
  181. }
  182. .ScrollHandler,
  183. ::-webkit-scrollbar-thumb {
  184. border-radius: 3px;
  185. }
  186. .ScrollPane.hideScrollBar .ScrollBar {
  187. opacity: 0;
  188. }
  189. /* Zoom */
  190. .ZoomControl {
  191. position: absolute;
  192. right: 20px;
  193. bottom: 5px;
  194. padding: 2px;
  195. border-radius: 3px;
  196. display: grid;
  197. grid-template-columns: auto auto auto;
  198. column-gap: 2px;
  199. opacity: 0.3;
  200. z-index: 3;
  201. }
  202. .ZoomControl:hover {
  203. opacity: 0.9;
  204. }
  205. /* Viewer */
  206. .FilteredViewer {
  207. display: grid;
  208. grid-template-columns: 1fr;
  209. grid-template-rows: auto 1fr;
  210. }
  211. .FilterControl {
  212. display: grid;
  213. grid-template-columns: 1fr auto auto;
  214. grid-template-rows: 1fr;
  215. align-items: center;
  216. column-gap: 0px;
  217. box-sizing: border-box;
  218. padding: 5px 0px 5px 6px;
  219. }
  220. .FilterControl input {
  221. width: 100%;
  222. }
  223. .FilterControlInputIcon {
  224. margin-left: -20px;
  225. opacity: 0.5;
  226. display: none;
  227. }
  228. .FilterControlInputIcon:hover {
  229. opacity: 1;
  230. }
  231. .FilteredViewer .FilterControl {
  232. position: relative;
  233. width: 100%;
  234. }
  235. .FilteredViewer .ViewerContainer {
  236. position: static;
  237. }
  238. .ViewerContainer .Viewer {
  239. position: fixed;
  240. }
  241. /* PropertyPage */
  242. .PropertyPage {
  243. display: grid;
  244. grid-template-columns: 100%;
  245. align-items: start;
  246. position: relative;
  247. padding: 5px;
  248. width: 100%;
  249. height: 100%;
  250. row-gap: 6px;
  251. overflow-y: auto;
  252. }
  253. .PropertySectionPane {
  254. display: grid;
  255. grid-template-rows: auto 1fr;
  256. position: initial;
  257. height: 100%;
  258. margin: 0px;
  259. border-radius: 3px;
  260. }
  261. .PropertyTitleArea {
  262. display: inline-grid;
  263. grid-template-columns: 20px 1fr auto;
  264. padding: 5px;
  265. }
  266. .PropertyTitleArea .IconControlCanvas {
  267. align-self: center;
  268. justify-self: center;
  269. }
  270. .PropertyTitleArea label {
  271. overflow: hidden;
  272. white-space: nowrap;
  273. word-break: break-all;
  274. text-overflow: ellipsis;
  275. align-self: center;
  276. }
  277. .PropertyFormArea {
  278. display: grid;
  279. padding: 10px 0px 10px 0px;
  280. }
  281. .PropertyButtonPanel {
  282. width: 100%;
  283. display: block;
  284. }
  285. .PropertyButtonPanel button {
  286. float: right;
  287. margin-left: 5px;
  288. font-size: small;
  289. }
  290. .PropertySubTitlePanel {
  291. display: grid;
  292. grid-template-columns: auto 1fr auto;
  293. grid-column: 1 / span 2;
  294. align-items: center;
  295. background: rgba(0, 0, 0, 0.1);
  296. padding: 3px;
  297. border-radius: 3px;
  298. }
  299. .PropertySubTitleLabel {
  300. width: 100%;
  301. }
  302. .formSimpleProps {
  303. padding: 5px;
  304. }
  305. .formLabel {
  306. justify-self: self-end;
  307. }
  308. .StringDialogField {
  309. display: grid;
  310. grid-template-columns: 1fr auto;
  311. gap: 5px;
  312. align-items: center;
  313. }
  314. .StringDialogField textarea {
  315. resize: none;
  316. overflow: hidden;
  317. }
  318. /* Toolbar */
  319. .IconButton {
  320. border-radius: 3px;
  321. border-style: solid;
  322. border-color: rgba(0, 0, 0, 0);
  323. border-width: 1px;
  324. }
  325. .IconButton:hover {
  326. border-color: rgba(0, 0, 0, 0.2);
  327. }
  328. .ToolbarItem {
  329. display: flex;
  330. float: left;
  331. margin-right: 5px;
  332. padding: 5px;
  333. border-radius: 3px;
  334. border-style: solid;
  335. border-width: 1px;
  336. }
  337. .ToolbarItemHasTextAndIcon canvas {
  338. margin-right: 3px;
  339. }
  340. .ToolbarItemHideText .ToolbarItemText {
  341. display: none;
  342. }
  343. /* ProgressBar */
  344. .ProgressBar {
  345. height: 10px;
  346. }
  347. /* Dialog & Notification */
  348. .Notification {
  349. z-index: 10000;
  350. position: absolute;
  351. bottom: 30px;
  352. right: 30px;
  353. padding: 20px;
  354. border-radius: 3px;
  355. }
  356. .Dialog,
  357. .Notification {
  358. border-radius: 5px;
  359. border-width: 1px;
  360. border-color: rgba(0, 0, 0, 0.5);
  361. box-shadow:
  362. -12px -5px 22px rgba(0, 0, 0, 0.2),
  363. 12px 12px 22px rgba(0, 0, 0, 0.2),
  364. -12px 12px 22px rgba(0, 0, 0, 0.2),
  365. 12px -5px 22px rgba(0, 0, 0, 0.2);
  366. }
  367. .DialogContainer {
  368. position: absolute;
  369. z-index: 1000;
  370. left: 0px;
  371. right: 0px;
  372. width: 100%;
  373. height: 100%;
  374. }
  375. .Dialog {
  376. position: absolute;
  377. z-index: 1001;
  378. }
  379. .Dialog {
  380. display: grid;
  381. grid-template-columns: 5px 1fr 5px;
  382. grid-template-rows: 5px auto 5px 1fr 5px auto 5px;
  383. }
  384. .DialogHalfScreenHeight {
  385. height: 50%;
  386. }
  387. .Dialog .DialogTitlePane {
  388. width: 100%;
  389. grid-column-start: 2;
  390. grid-row-start: 2;
  391. font-size: small;
  392. text-align: center;
  393. }
  394. .Dialog .DialogClientArea {
  395. position: relative;
  396. width: 100%;
  397. height: 100%;
  398. grid-column-start: 2;
  399. grid-row-start: 4;
  400. box-sizing: content-box;
  401. }
  402. .Dialog .FilteredViewer,
  403. .Dialog .DialogSection {
  404. border-radius: 3px;
  405. }
  406. .Dialog .DialogSection {
  407. padding: 5px;
  408. box-sizing: border-box;
  409. }
  410. .Dialog .DialogButtonPane {
  411. grid-row-start: 6;
  412. grid-column-start: 2;
  413. display: block;
  414. }
  415. .Dialog .DialogButtonPane button {
  416. float: right;
  417. margin-left: 5px;
  418. }
  419. .WizardDialog .DialogClientArea {
  420. display: grid;
  421. grid-template-columns: 1fr;
  422. grid-template-rows: auto auto 1fr;
  423. row-gap: 5px;
  424. }
  425. .WizardDialog .PageTitleLabel {
  426. font-weight: bold;
  427. margin-left: 5px;
  428. }
  429. .WizardDialog .PageDescArea {
  430. padding: 0.5em 0 0.5em 0;
  431. font-style: italic;
  432. margin-left: 5px;
  433. }
  434. .WizardDialog .PageArea {
  435. height: 100%;
  436. }
  437. /* AlertDialog */
  438. .AlertDialog,
  439. .ConfirmDialog {
  440. height: auto !important;
  441. }
  442. .AlertDialog .DialogClientArea,
  443. .ConfirmDialog .DialogClientArea {
  444. padding: 10px;
  445. }
  446. .AlertDialog .DialogClientArea pre,
  447. .ConfirmDialog .DialogClientArea pre {
  448. overflow-x: auto;
  449. white-space: pre-wrap;
  450. word-wrap: break-word;
  451. margin: 5px 0px;
  452. }
  453. /* InputDialog */
  454. .InputDialog {
  455. height: auto !important;
  456. }
  457. .InputDialogLabel {
  458. padding: 1em 0px;
  459. }
  460. /* ProgressDialog */
  461. .ProgressDialog {
  462. height: auto !important;
  463. }
  464. .ProgressDialog .ProgressBar {
  465. border-radius: 3px;
  466. }
  467. /* Upload Dialog */
  468. .FilesDragEnter {
  469. background-color: rgba(0, 0, 0, 0.2);
  470. }
  471. /* Menu */
  472. .Menu {
  473. position: fixed;
  474. z-index: 2001;
  475. }
  476. .MenuItem {
  477. display: grid;
  478. grid-template-columns: 30px 20px 1fr auto;
  479. padding: 5px 10px 5px 0px;
  480. }
  481. .MenuNoIcon .MenuItem {
  482. grid-template-columns: 30px 0px 1fr auto;
  483. }
  484. .MenuItemCheckedIcon {
  485. grid-column-start: 1;
  486. justify-self: center;
  487. }
  488. .MenuItemIcon {
  489. grid-column-start: 2;
  490. justify-self: center;
  491. margin-right: 5px;
  492. }
  493. .NegativeMenuItemIcon {
  494. display: none;
  495. }
  496. .MenuItem:hover .NegativeMenuItemIcon {
  497. display: block;
  498. }
  499. .MenuItem:hover .ThemeMenuItemIcon {
  500. display: none;
  501. }
  502. .MenuItemText {
  503. grid-column-start: 3;
  504. }
  505. .MenuItemKeyString {
  506. font-family: monospace;
  507. margin-left: 3em;
  508. grid-column-start: 4;
  509. }
  510. .MenuContainer {
  511. z-index: 2000;
  512. position: absolute;
  513. left: 0px;
  514. right: 0px;
  515. width: 100%;
  516. height: 100%;
  517. }
  518. .MenuItemSeparator {
  519. height: 1px;
  520. }
  521. /* Effects */
  522. .FadeInEffect {
  523. animation: fadein 2s;
  524. }
  525. .FadeOutEffect {
  526. animation: fadeout 2s;
  527. opacity: 0;
  528. }
  529. @keyframes fadein {
  530. from {
  531. opacity: 0;
  532. }
  533. to {
  534. opacity: 1;
  535. }
  536. }
  537. @keyframes fadeout {
  538. from {
  539. opacity: 1;
  540. }
  541. to {
  542. opacity: 0;
  543. }
  544. }