window.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. :root {
  2. --window-top-default: 25px;
  3. --window-left-default: 7px;
  4. }
  5. .window-wrapper {
  6. position: absolute;
  7. top: var(--window-top-default);
  8. left: var(--window-left-default);
  9. }
  10. .window {
  11. z-index: 3;
  12. font-size: 12px;
  13. font-family: 'Charcoal';
  14. border: 1px solid #000;
  15. background: #dadada;
  16. box-shadow: 1px 1px #111, inset 1px 1px #fff, inset -1px -1px #999;
  17. }
  18. .window.blur:not(:focus-within) {
  19. box-shadow: 1px 1px #525252 !important;
  20. border-color: #525252 !important;
  21. }
  22. .window.blur:not(:focus-within) * {
  23. border-color: #525252 !important;
  24. box-shadow: none !important;
  25. }
  26. .window .header {
  27. justify-content: center;
  28. height: 22px;
  29. }
  30. .window .header img {
  31. margin: 2px 0 0 0;
  32. width: 16px;
  33. height: 16px;
  34. }
  35. .window .header .title {
  36. font-family: 'Charcoal';
  37. font-size: 12px;
  38. font-weight: normal;
  39. margin: 3px 0 0 2px;
  40. }
  41. .window.blur .header .title {
  42. opacity: 50%;
  43. }
  44. .window .header .title img {
  45. margin: 0 3px 0 0;
  46. }
  47. .window .header-lines-wrapper {
  48. flex-grow: 1;
  49. height: 12px;
  50. padding: 4px 4px 5px 4px;
  51. }
  52. .window .header-lines.left {
  53. width: 1px;
  54. background-image: repeating-linear-gradient(#fff 0 1px, #dadada 0 2px);
  55. }
  56. .window .header-lines.center {
  57. flex-grow: 1;
  58. background-image: repeating-linear-gradient(#fff 0 1px, #737373 0 2px);
  59. }
  60. .window .header-lines.right {
  61. width: 1px;
  62. background-image: repeating-linear-gradient(#dadada 0 1px, #737373 0 2px);
  63. }
  64. .window .control-box {
  65. height: 11px;
  66. width: 11px;
  67. margin-top: 4px;
  68. border: 1px inset #fff;
  69. }
  70. .window .control-box.close-box {
  71. margin-left: 4px;
  72. }
  73. .window .control-box-inner {
  74. display: block;
  75. height: 9px;
  76. width: 9px;
  77. background-image: linear-gradient(
  78. to bottom right,
  79. #999, #aaa, #bbb,
  80. #ccc, #ddd, #eee,
  81. #fff, #fff
  82. );
  83. border: 1px solid #222;
  84. box-shadow: inset 1px 1px #ccc, inset -1px -1px #888;
  85. }
  86. .window .control-box-inner:active {
  87. box-shadow: none;
  88. }
  89. .window .control-box-inner:active .control-box-highlight {
  90. background: #aaa;
  91. }
  92. .window .control-box-highlight {
  93. position: relative;
  94. top: 0;
  95. left: 0;
  96. width: 1px;
  97. height: 1px;
  98. background: #fff;
  99. }
  100. .window .control-box.zoom-box {
  101. margin-right: 3px;
  102. }
  103. .window .zoom-box-inner {
  104. position: relative;
  105. top: -1px;
  106. height: 5px;
  107. width: 5px;
  108. border-bottom: 1px solid #202020;
  109. border-right: 1px solid #202020;
  110. }
  111. .window .control-box.windowshade-box {
  112. margin-right: 4px;
  113. }
  114. .window .windowshade-box-inner {
  115. position: relative;
  116. top: -1px;
  117. margin-top: 3px;
  118. height: 1px;
  119. border-top: 1px solid #202020;
  120. border-bottom: 1px solid #202020;
  121. }
  122. .window .expand-arrow {
  123. width: 12px;
  124. height: 12px;
  125. background-repeat: no-repeat;
  126. background-position: center;
  127. margin: 0 5px 0 -3px;
  128. }
  129. .window .expand-arrow.right {
  130. background-image: url("../img/ui/widgets/expand-arrow-right.png");
  131. }
  132. .window .expand-arrow.right.active {
  133. background-image: url("../img/ui/widgets/expand-arrow-right-active.png");
  134. }
  135. .window .expand-arrow.down {
  136. background-image: url("../img/ui/widgets/expand-arrow-down.png");
  137. }
  138. .window .expand-arrow.down.active {
  139. background-image: url("../img/ui/widgets/expand-arrow-down-active.png");
  140. }
  141. .window.blur .expand-arrow.right {
  142. background-image: url("../img/ui/widgets/expand-arrow-right-disabled.png");
  143. }
  144. .window.blur .expand-arrow.down {
  145. background-image: url("../img/ui/widgets/expand-arrow-down-disabled.png");
  146. }
  147. .window .statusbar {
  148. height: 20px;
  149. margin: 0 4px 0 4px;
  150. border: 1px solid #000;
  151. box-shadow: -1px -1px #9c9c9c,
  152. 1px 1px #fff,
  153. inset 1px 1px #fff,
  154. inset -1px -1px #b3b3b3;
  155. }
  156. .window.blur:not(:focus-within) .statusbar {
  157. color: #525252 !important;
  158. }
  159. .window .statusbar .statusbar-text {
  160. font-family: 'Arial';
  161. font-size: 10px;
  162. text-align: center;
  163. margin: 4px;
  164. letter-spacing: 0.4px;
  165. }
  166. .window .contents {
  167. margin: -1px 4px 4px 4px;
  168. border: 1px solid #000;
  169. background: #fff;
  170. box-shadow: -1px -1px #9c9c9c, 1px 1px #fff, inset 1px 1px #fff, inset -1px -1px #acacac;
  171. }
  172. .window .contents .body {
  173. min-width: 230px;
  174. max-width: 400px;
  175. max-height: 400px;
  176. overflow: scroll;
  177. }
  178. .window .contents .body .grid {
  179. display: flex;
  180. flex-wrap: wrap;
  181. gap: 0 30px;
  182. align-items: center;
  183. align-content: flex-start;
  184. padding: 0 16px 16px 0;
  185. }
  186. .window .contents .body .grid > figure {
  187. flex-grow: 2;
  188. width: 100px;
  189. }
  190. .window .resize-handle {
  191. position: absolute;
  192. right: 4px;
  193. bottom: 4px;
  194. height: 16px;
  195. width: 16px;
  196. background-color: #dadada;
  197. box-shadow: inset 1px 1px #fff;
  198. }
  199. .window .resize-handle.enabled {
  200. background-image: url("../img/ui/widgets/resize-handle.png");
  201. background-position: center;
  202. background-repeat: no-repeat;
  203. }