jswindow.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. body {
  2. overflow: hidden;
  3. }
  4. .window {
  5. resize: both;
  6. overflow: hidden;
  7. position: absolute;
  8. border: 2px solid darkgrey;
  9. margin: 0px;
  10. background-color: #DDD;
  11. cursor: default;
  12. min-width: 20px;
  13. min-height: 20px;
  14. padding: 0px;
  15. z-index: 1000;
  16. }
  17. .windowbar {
  18. font-family: sans-serif;
  19. user-select: none;
  20. width: calc(100% - 4px);
  21. padding: 2px;
  22. height: 16px;
  23. line-height: 16px;
  24. color: black;
  25. background-color: lightblue;
  26. background-image: url("bar.png");
  27. font-size: 12px;
  28. border-bottom: 2px solid darkgrey;
  29. overflow: hidden;
  30. }
  31. .windowicon, .windowtitle, .windowclose {
  32. display: inline-block;
  33. }
  34. .windowicon {
  35. background-repeat: no-repeat;
  36. background-position: center;
  37. background-size: contain;
  38. width: 16px;
  39. height: 16px;
  40. position: absolute;
  41. top: 2px;
  42. left: 2px;
  43. }
  44. .windowtitle {
  45. position: relative;
  46. }
  47. .windowicon+.windowtitle {
  48. left: 18px;
  49. }
  50. .windowclose {
  51. position: absolute;
  52. top: 2px;
  53. right: 2px;
  54. width: 14px;
  55. height: 14px;
  56. line-height: 14px;
  57. text-align: center;
  58. background-color: tomato;
  59. border: 1px outset lightgray;
  60. }
  61. .windowclose:active {
  62. border-style: inset;
  63. }
  64. .windowcontent {
  65. width: 100%;
  66. height: calc(100% - 22px);
  67. overflow: auto;
  68. }