controls.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  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, textarea {
  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.ReadOnly span {
  115. opacity: 0.5;
  116. }
  117. .TabPaneLabel span {
  118. margin: 3px 0px 0px 3px;
  119. align-self: center;
  120. cursor: default;
  121. }
  122. .TabPaneLabelSections {
  123. display: flex;
  124. }
  125. .TabPaneLabelSections .IconControlCanvas {
  126. margin-top: 3px;
  127. padding: 0 5px 0 5px;
  128. }
  129. .TabPaneLabelSection {
  130. margin-left: 10px;
  131. margin-top: 3px;
  132. margin-bottom: -1px;
  133. border-bottom-style: solid;
  134. border-bottom-width: 1px;
  135. border-bottom-color: transparent;
  136. }
  137. .TabPaneLabelSection:nth-child(2) {
  138. margin-left: 0px;
  139. }
  140. .TabPaneLabelSection.selected {
  141. border-bottom-color: black;
  142. }
  143. .TabPaneContentArea {
  144. border-radius: 0 3px 3px 3px;
  145. }
  146. .TabPaneContentArea .ContentArea {
  147. display: none;
  148. }
  149. .TabPaneContentArea .ContentArea.selected {
  150. display: block;
  151. }
  152. .TabPaneContentArea,
  153. .TabPaneContentArea .ContentArea {
  154. position: relative;
  155. width: 100%;
  156. height: 100%;
  157. }
  158. /* ScrollPane */
  159. .ScrollPane {
  160. position: static;
  161. display: grid;
  162. grid-template-columns: 1fr 0px;
  163. grid-template-rows: 1fr;
  164. }
  165. .ScrollHandler {
  166. display: block;
  167. opacity: 0;
  168. }
  169. /*.ScrollPane */.FilteredViewer:hover .ScrollHandler:not(:active) {
  170. opacity: 1;
  171. }
  172. .ScrollHandler:active {
  173. opacity: 1 !important;
  174. }
  175. ::-webkit-scrollbar {
  176. width: 15px;
  177. }
  178. .ScrollBar,
  179. .ScrollHandler {
  180. position: relative;
  181. width: 15px;
  182. }
  183. .ScrollBar {
  184. left: -15px;
  185. }
  186. .ScrollHandler,
  187. ::-webkit-scrollbar-thumb {
  188. border-radius: 3px;
  189. }
  190. .ScrollPane.hideScrollBar .ScrollBar {
  191. opacity: 0;
  192. }
  193. /* Zoom */
  194. .ZoomControl {
  195. position: absolute;
  196. right: 20px;
  197. bottom: 5px;
  198. padding: 2px;
  199. border-radius: 3px;
  200. display: grid;
  201. grid-template-columns: auto auto auto;
  202. column-gap: 2px;
  203. opacity: 0.3;
  204. z-index: 3;
  205. }
  206. .ZoomControl:hover {
  207. opacity: 0.9;
  208. }
  209. /* Viewer */
  210. .FilteredViewer {
  211. display: grid;
  212. grid-template-columns: 1fr;
  213. grid-template-rows: auto 1fr;
  214. }
  215. .FilterControl {
  216. display: grid;
  217. grid-template-columns: 1fr auto auto;
  218. grid-template-rows: 1fr;
  219. align-items: center;
  220. column-gap: 0px;
  221. box-sizing: border-box;
  222. padding: 5px 0px 5px 6px;
  223. }
  224. .FilterControl input {
  225. width: 100%;
  226. }
  227. .FilterControlInputIcon {
  228. margin-left: -20px;
  229. opacity: 0.5;
  230. display: none;
  231. }
  232. .FilterControlInputIcon:hover {
  233. opacity: 1;
  234. }
  235. .FilteredViewer .FilterControl {
  236. position: relative;
  237. width: 100%;
  238. }
  239. .FilteredViewer .ViewerContainer {
  240. position: static;
  241. }
  242. .ViewerContainer .Viewer {
  243. position: fixed;
  244. }
  245. /* PropertyPage */
  246. .PropertyPage {
  247. display: grid;
  248. grid-template-columns: 100%;
  249. align-items: start;
  250. position: relative;
  251. padding: 5px;
  252. width: 100%;
  253. height: 100%;
  254. row-gap: 6px;
  255. overflow-y: auto;
  256. }
  257. .PropertySectionPane {
  258. display: grid;
  259. grid-template-rows: auto 1fr;
  260. position: initial;
  261. height: 100%;
  262. margin: 0px;
  263. border-radius: 3px;
  264. }
  265. .PropertyTitleArea {
  266. display: inline-grid;
  267. grid-template-columns: 20px 1fr auto;
  268. padding: 5px;
  269. }
  270. .PropertyTitleAreaWithIcon {
  271. grid-template-columns: 20px 20px 1fr auto !important;
  272. }
  273. .PropertyTitleArea .PropertySectionIcon {
  274. margin-right: 5px;
  275. }
  276. .PropertyTitleArea .IconControlCanvas {
  277. align-self: center;
  278. justify-self: center;
  279. }
  280. .PropertyTitleArea label {
  281. overflow: hidden;
  282. white-space: nowrap;
  283. word-break: break-all;
  284. text-overflow: ellipsis;
  285. align-self: center;
  286. }
  287. .PropertyFormArea {
  288. display: grid;
  289. padding: 2px 0px 10px 0px;
  290. }
  291. .PropertyButtonPanel {
  292. width: 100%;
  293. display: block;
  294. }
  295. .PropertyButtonPanel button {
  296. float: right;
  297. margin-left: 5px;
  298. font-size: small;
  299. }
  300. .PropertySubTitlePanel {
  301. display: grid;
  302. grid-template-columns: auto 1fr auto;
  303. grid-column: 1 / span 4;
  304. align-items: center;
  305. background: rgba(0, 0, 0, 0.1);
  306. padding: 3px;
  307. border-radius: 3px;
  308. }
  309. .PropertySubTitleLabel {
  310. width: 100%;
  311. }
  312. .formSimpleProps {
  313. padding: 5px;
  314. }
  315. .formLabel {
  316. justify-self: self-start;
  317. }
  318. .formSeparator {
  319. opacity: 0.5;
  320. font-size: smaller;
  321. justify-self: start;
  322. text-transform: uppercase;
  323. margin: 5px 0px;
  324. }
  325. .StringDialogField {
  326. display: grid;
  327. grid-template-columns: 1fr auto;
  328. gap: 5px;
  329. align-items: center;
  330. }
  331. .StringDialogField textarea {
  332. resize: none;
  333. overflow: hidden;
  334. }
  335. /* Toolbar */
  336. .IconButton {
  337. border-radius: 3px;
  338. border-style: solid;
  339. border-color: rgba(0, 0, 0, 0);
  340. border-width: 1px;
  341. }
  342. .IconButton:hover {
  343. border-color: rgba(0, 0, 0, 0.2);
  344. }
  345. .ToolbarItem {
  346. display: flex;
  347. float: left;
  348. margin-right: 5px;
  349. padding: 5px;
  350. border-radius: 3px;
  351. border-style: solid;
  352. border-width: 1px;
  353. }
  354. .ToolbarItemHasTextAndIcon canvas {
  355. margin-right: 3px;
  356. }
  357. .ToolbarItemHideText .ToolbarItemText {
  358. display: none;
  359. }
  360. /* ProgressBar */
  361. .ProgressBar {
  362. height: 10px;
  363. }
  364. /* Dialog & Notification */
  365. .Notification {
  366. z-index: 10000;
  367. position: absolute;
  368. bottom: 30px;
  369. right: 30px;
  370. padding: 20px;
  371. border-radius: 3px;
  372. background: inherit;
  373. }
  374. .Dialog,
  375. .Notification {
  376. border-radius: 5px;
  377. border-width: 1px;
  378. border-color: rgba(0, 0, 0, 0.5);
  379. box-shadow:
  380. -12px -5px 22px rgba(0, 0, 0, 0.2),
  381. 12px 12px 22px rgba(0, 0, 0, 0.2),
  382. -12px 12px 22px rgba(0, 0, 0, 0.2),
  383. 12px -5px 22px rgba(0, 0, 0, 0.2);
  384. }
  385. .DialogContainer {
  386. position: absolute;
  387. z-index: 1000;
  388. left: 0px;
  389. right: 0px;
  390. width: 100%;
  391. height: 100%;
  392. }
  393. .Dialog {
  394. position: absolute;
  395. z-index: 1001;
  396. }
  397. .Dialog {
  398. display: grid;
  399. grid-template-columns: 5px 1fr 5px;
  400. grid-template-rows: 5px auto 5px 1fr 5px auto 5px;
  401. }
  402. .DialogHalfScreenHeight {
  403. height: 50%;
  404. }
  405. .Dialog .DialogTitlePane {
  406. width: 100%;
  407. grid-column-start: 2;
  408. grid-row-start: 2;
  409. font-size: small;
  410. text-align: center;
  411. }
  412. .Dialog .DialogClientArea {
  413. position: relative;
  414. width: 100%;
  415. height: 100%;
  416. grid-column-start: 2;
  417. grid-row-start: 4;
  418. box-sizing: content-box;
  419. }
  420. .Dialog .FilteredViewer,
  421. .Dialog .DialogSection {
  422. border-radius: 3px;
  423. }
  424. .Dialog .DialogSection {
  425. padding: 5px;
  426. box-sizing: border-box;
  427. }
  428. .Dialog .DialogButtonPane {
  429. grid-row-start: 6;
  430. grid-column-start: 2;
  431. display: block;
  432. }
  433. .Dialog .DialogButtonPane button {
  434. float: right;
  435. margin-left: 5px;
  436. }
  437. .WizardDialog .DialogClientArea {
  438. display: grid;
  439. grid-template-columns: 1fr;
  440. grid-template-rows: auto auto 1fr;
  441. row-gap: 5px;
  442. }
  443. .WizardDialog .PageTitleLabel {
  444. font-weight: bold;
  445. margin-left: 5px;
  446. }
  447. .WizardDialog .PageDescArea {
  448. padding: 0.5em 0 0.5em 0;
  449. font-style: italic;
  450. margin-left: 5px;
  451. }
  452. .WizardDialog .PageArea {
  453. height: 100%;
  454. }
  455. /* AlertDialog */
  456. .AlertDialog,
  457. .ConfirmDialog {
  458. height: auto !important;
  459. }
  460. .AlertDialog .DialogClientArea,
  461. .ConfirmDialog .DialogClientArea {
  462. padding: 10px;
  463. }
  464. .AlertDialog .DialogClientArea pre,
  465. .ConfirmDialog .DialogClientArea pre {
  466. overflow-x: auto;
  467. white-space: pre-wrap;
  468. word-wrap: break-word;
  469. margin: 5px 0px;
  470. }
  471. /* InputDialog */
  472. .InputDialog {
  473. height: auto !important;
  474. }
  475. .InputDialogLabel {
  476. padding: 1em 0px;
  477. }
  478. /* ProgressDialog */
  479. .ProgressDialog {
  480. height: auto !important;
  481. }
  482. .ProgressDialog .ProgressBar {
  483. border-radius: 3px;
  484. }
  485. /* Upload Dialog */
  486. .FilesDragEnter {
  487. background-color: rgba(0, 0, 0, 0.2);
  488. }
  489. /* Menu */
  490. .Menu {
  491. position: fixed;
  492. z-index: 2001;
  493. }
  494. .MenuItem {
  495. display: grid;
  496. grid-template-columns: 30px 20px 1fr auto;
  497. padding: 5px 10px 5px 0px;
  498. }
  499. .MenuNoIcon .MenuItem {
  500. grid-template-columns: 30px 0px 1fr auto;
  501. }
  502. .MenuItemCheckedIcon {
  503. grid-column-start: 1;
  504. justify-self: center;
  505. }
  506. .MenuItemIcon {
  507. grid-column-start: 2;
  508. justify-self: center;
  509. margin-right: 5px;
  510. }
  511. .NegativeMenuItemIcon {
  512. display: none;
  513. }
  514. .MenuItem:hover .NegativeMenuItemIcon {
  515. display: block;
  516. }
  517. .MenuItem:hover .ThemeMenuItemIcon {
  518. display: none;
  519. }
  520. .MenuItemText {
  521. grid-column-start: 3;
  522. }
  523. .MenuItemKeyString {
  524. font-family: monospace;
  525. margin-left: 3em;
  526. grid-column-start: 4;
  527. }
  528. .MenuContainer {
  529. z-index: 2000;
  530. position: absolute;
  531. left: 0px;
  532. right: 0px;
  533. width: 100vw;
  534. height: 100vh;
  535. }
  536. .MenuItemSeparator {
  537. height: 1px;
  538. }
  539. /* Effects */
  540. .FadeInEffect {
  541. animation: fadein 2s;
  542. }
  543. .FadeOutEffect {
  544. animation: fadeout 2s;
  545. opacity: 0;
  546. }
  547. @keyframes fadein {
  548. from {
  549. opacity: 0;
  550. }
  551. to {
  552. opacity: 1;
  553. }
  554. }
  555. @keyframes fadeout {
  556. from {
  557. opacity: 1;
  558. }
  559. to {
  560. opacity: 0;
  561. }
  562. }