prettygcode.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. /* Dark mode color variables */
  2. :root {
  3. --pg-bg-light: #ffffff;
  4. --pg-bg-dark: #1e1e1e;
  5. --pg-text-light: #000000;
  6. --pg-text-dark: #e0e0e0;
  7. --pg-panel-light: rgba(255, 255, 255, 0.9);
  8. --pg-panel-dark: rgba(30, 30, 30, 0.95);
  9. --pg-border-light: #ddd;
  10. --pg-border-dark: #444;
  11. --pg-input-light: #e9e9e9;
  12. --pg-input-dark: #2a2a2a;
  13. }
  14. #tab_plugin_prettygcode .gwin {
  15. width: 100%;
  16. height: 100%;
  17. position: relative;
  18. }
  19. #tab_plugin_prettygcode .webcam_rotated {
  20. transform: rotateZ(-90deg);
  21. }
  22. .pgfullscreen #tab_plugin_prettygcode .gwin {
  23. top: 0px;
  24. left: 0px;
  25. width: 100%;
  26. height: 100%;
  27. position: absolute;
  28. }
  29. #tab_plugin_prettygcode .fstoggle {
  30. top: 20px;
  31. right: 60px;
  32. position: absolute;
  33. z-index: 10;
  34. }
  35. #tab_plugin_prettygcode .pgsettingstoggle {
  36. top: 20px;
  37. right: 95px;
  38. position: absolute;
  39. z-index: 10;
  40. }
  41. .pgfullscreen #tab_plugin_prettygcode .pgstatetoggle {
  42. top: 20px;
  43. left: 20px;
  44. position: absolute;
  45. z-index: 10;
  46. display: unset;
  47. }
  48. #tab_plugin_prettygcode .pgstatetoggle {
  49. display: none;
  50. }
  51. .pgfullscreen {
  52. color: black;
  53. }
  54. .pgfullscreen #tab_plugin_prettygcode .pgfilestoggle {
  55. top: 20px;
  56. left: 95px;
  57. position: absolute;
  58. z-index: 10;
  59. display: unset;
  60. }
  61. #tab_plugin_prettygcode .pgfilestoggle {
  62. display: none;
  63. }
  64. .pgfullscreen #tab_plugin_prettygcode .pgcameratoggle {
  65. bottom: 20px;
  66. right: 40px;
  67. position: absolute;
  68. z-index: 10;
  69. display: unset;
  70. }
  71. #tab_plugin_prettygcode .pgcameratoggle {
  72. display: none;
  73. }
  74. .pgfullscreen .pgstatus {
  75. display: unset;
  76. }
  77. .pgstatus {
  78. display: none;
  79. position: absolute;
  80. top: 0px;
  81. left: 0px;
  82. width: 100%;
  83. font-size: large;
  84. text-align: center;
  85. background: #ffffff50;
  86. }
  87. .pgfullscreen #state_wrapper {
  88. top: 20px;
  89. left: 20px;
  90. width: 300px;
  91. position: absolute;
  92. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  93. background: rgba(255, 255, 255, 0.2);
  94. z-index: 5;
  95. }
  96. .pgfullscreen #files_wrapper {
  97. left: 95px;
  98. top: 20px;
  99. max-width: 80%;
  100. width: 300px;
  101. position: absolute;
  102. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.70);
  103. background: rgba(204, 204, 204, 0.9);
  104. z-index: 6;
  105. }
  106. /* .pgfullscreen #files .gcode_files .entry {
  107. padding: 5px;
  108. line-height: 20px;
  109. border-bottom: 1px solid #ddd;
  110. position: relative;
  111. width: 220px;
  112. display: inline-grid;
  113. background: white;
  114. height: 100px;
  115. } */
  116. /* .pgfullscreen #files.collapse {
  117. width:0px;
  118. } */
  119. .gwin #webcam_rotator {
  120. bottom: 20px;
  121. right: 40px;
  122. position: absolute;
  123. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  124. z-index: 5;
  125. display: none;
  126. }
  127. .pgfullscreen .gwin #webcam_rotator {
  128. display: unset;
  129. }
  130. .pgfullscreen .gwin #webcam_rotator.pghidden {
  131. display: none;
  132. }
  133. /* Hide notifications in fullscreen mode.*/
  134. /* todo. only do this if not logged in or as admin.
  135. .pgfullscreen .ui-notify {
  136. display:none;
  137. }
  138. */
  139. .pgfullscreen .pghidden {
  140. display: none;
  141. }
  142. .gwin .pghidden {
  143. display: none;
  144. }
  145. /*dat gui*/
  146. #tab_plugin_prettygcode #mygui {
  147. position: absolute;
  148. right: 95px;
  149. top: 20px;
  150. opacity: 1.0;
  151. z-index: 5;
  152. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  153. z-index: 4;
  154. background: rgba(255, 255, 255, 1.0);
  155. opacity: 0.8;
  156. }
  157. .gwin .dg li.save-row {
  158. background: black;
  159. color: yellow;
  160. }
  161. .gwin .dg li.save-row .button {
  162. background: black;
  163. color: yellow;
  164. }
  165. .gwin .dg li.save-row select {
  166. height: 100%;
  167. }
  168. .gwin .dg .close-button {
  169. display: none;
  170. }
  171. .gwin .dg li.save-row .button.revert {
  172. display: none;
  173. }
  174. .gwin .dg li.save-row .button.gears {
  175. display: none;
  176. }
  177. .gwin .has-save .save-row::before {
  178. content: "Preset: ";
  179. }
  180. .gwin .dg li.save-row {
  181. display: none;
  182. }
  183. .gwin .dg.main.taller-than-window .close-button {
  184. border-top: 1px solid #ddd;
  185. }
  186. .gwin .dg.main .close-button {
  187. background-color: #ccc;
  188. }
  189. .gwin .dg.main .close-button:hover {
  190. background-color: #ddd;
  191. }
  192. .gwin .dg {
  193. color: #555;
  194. text-shadow: none !important;
  195. }
  196. .gwin .dg.main::-webkit-scrollbar {
  197. background: #fafafa;
  198. }
  199. .gwin .dg.main::-webkit-scrollbar-thumb {
  200. background: #bbb;
  201. }
  202. .gwin .dg li:not(.folder) {
  203. background: #fafafa;
  204. border-bottom: 1px solid #ddd;
  205. }
  206. .gwin .dg li.save-row .button {
  207. text-shadow: none !important;
  208. }
  209. .gwin .dg li.title {
  210. background: #e8e8e8 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;
  211. }
  212. .gwin .dg .cr.function:hover,
  213. .dg .cr.boolean:hover {
  214. background: #fff;
  215. }
  216. .gwin .dg .c input[type=text] {
  217. background: #e9e9e9;
  218. }
  219. .gwin .dg .c input[type=text]:hover {
  220. background: #eee;
  221. }
  222. .gwin .dg .c input[type=text]:focus {
  223. background: #eee;
  224. color: #555;
  225. }
  226. .gwin .dg .c .slider {
  227. background: #e9e9e9;
  228. }
  229. .gwin .dg .c .slider:hover {
  230. background: #eee;
  231. }
  232. /*style slider to be more progress bar like*/
  233. .gwin #myslider .slider-track {
  234. background: green;
  235. }
  236. .gwin #myslider .slider-handle {
  237. width: 24px;
  238. }
  239. .gwin #myslider .tooltip {
  240. display: none;
  241. }
  242. #tab_plugin_prettygcode code {
  243. border: 1px black;
  244. white-space: pre;
  245. }
  246. /*Support Octoprint Dashboard plugin*/
  247. .pgfullscreen #tab_plugin_dashboard {
  248. display: unset;
  249. position: absolute;
  250. bottom: 20px;
  251. left: 20px;
  252. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  253. z-index: 4;
  254. background: rgba(255, 255, 255, 0.2);
  255. opacity: 0.8;
  256. /* width: 300px; */
  257. /* transform: scale(0.8); */
  258. }
  259. .pgfullscreen #tab_plugin_prettygcode .pgdashtoggle {
  260. left: 20px;
  261. bottom: 20px;
  262. position: absolute;
  263. z-index: 10;
  264. display: unset;
  265. }
  266. #tab_plugin_prettygcode .pgdashtoggle {
  267. display: none;
  268. }
  269. .pgfullscreen #tab_plugin_dashboard.pghidden {
  270. display: none;
  271. }
  272. /* Dark Mode Styles */
  273. .pgdarkmode .pgfullscreen {
  274. color: var(--pg-text-dark);
  275. }
  276. .pgdarkmode #state_wrapper {
  277. background: var(--pg-panel-dark);
  278. color: var(--pg-text-dark);
  279. }
  280. .pgdarkmode #files_wrapper {
  281. background: var(--pg-panel-dark);
  282. color: var(--pg-text-dark);
  283. }
  284. .pgdarkmode #tab_plugin_prettygcode #mygui {
  285. background: var(--pg-panel-dark);
  286. }
  287. .pgdarkmode .gwin .dg {
  288. color: var(--pg-text-dark);
  289. }
  290. .pgdarkmode .gwin .dg li:not(.folder) {
  291. background: var(--pg-input-dark);
  292. border-bottom: 1px solid var(--pg-border-dark);
  293. }
  294. .pgdarkmode .gwin .dg li.title {
  295. background: #333 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;
  296. }
  297. .pgdarkmode .gwin .dg .cr.function:hover,
  298. .pgdarkmode .gwin .dg .cr.boolean:hover {
  299. background: #3a3a3a;
  300. }
  301. .pgdarkmode .gwin .dg .c input[type=text] {
  302. background: var(--pg-input-dark);
  303. color: var(--pg-text-dark);
  304. }
  305. .pgdarkmode .gwin .dg .c input[type=text]:hover {
  306. background: #333;
  307. }
  308. .pgdarkmode .gwin .dg .c input[type=text]:focus {
  309. background: #333;
  310. color: var(--pg-text-dark);
  311. }
  312. .pgdarkmode .gwin .dg .c .slider {
  313. background: var(--pg-input-dark);
  314. }
  315. .pgdarkmode .gwin .dg .c .slider:hover {
  316. background: #333;
  317. }
  318. .pgdarkmode .gwin .dg.main .close-button {
  319. background-color: #333;
  320. }
  321. .pgdarkmode .gwin .dg.main .close-button:hover {
  322. background-color: #444;
  323. }
  324. .pgdarkmode .gwin .dg.main::-webkit-scrollbar {
  325. background: #1e1e1e;
  326. }
  327. .pgdarkmode .gwin .dg.main::-webkit-scrollbar-thumb {
  328. background: #555;
  329. }
  330. .pgdarkmode #tab_plugin_dashboard {
  331. background: var(--pg-panel-dark);
  332. color: var(--pg-text-dark);
  333. }
  334. .pgdarkmode .pgstatus {
  335. background: rgba(30, 30, 30, 0.5);
  336. color: var(--pg-text-dark);
  337. }