panel.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. div.panel
  2. {
  3. text-align: center;
  4. border: 1px solid #a0a0a0;
  5. -webkit-user-select: none;
  6. -moz-user-select: none;
  7. -khtml-user-select: none;
  8. -ms-user-select: none;
  9. overflow:hidden;
  10. display:none;
  11. box-shadow: 2px 2px 10px 0px rgba(50, 50, 50, 0.3);
  12. backdrop-filter: blur(6px);
  13. }
  14. div.panel.left
  15. {
  16. position: absolute;
  17. width: 250px;
  18. left:0;
  19. bottom:0;
  20. }
  21. div.panel.right
  22. {
  23. position:absolute;
  24. width: 250px;
  25. right:0;
  26. bottom:0;
  27. }
  28. div.panel.show
  29. {
  30. display:block;
  31. }
  32. div.panel.show > .header > button.maximize
  33. {
  34. display: none;
  35. }
  36. div.panel.show > .header > button.minimize
  37. {
  38. display: block;
  39. }
  40. div.panel.show.minimized > .header > button.minimize
  41. {
  42. display: none;
  43. }
  44. div.panel.show.minimized > .header > button.maximize
  45. {
  46. display: block;
  47. }
  48. div.panel > .header
  49. {
  50. position:absolute;
  51. top:0;
  52. left:0;
  53. right:0;
  54. height:24px;
  55. border-bottom: 1px solid #e0e0e0;
  56. line-height: 24px;
  57. text-align: center;
  58. }
  59. div.panel > .header > .title
  60. {
  61. line-height: 24px;
  62. font-weight: bold;
  63. text-decoration: none;
  64. color:#404040;
  65. }
  66. div.panel > .header > .title:focus
  67. {
  68. outline:1px dotted black;
  69. outline-offset: 2px;
  70. }
  71. div.panel > .header > button
  72. {
  73. position:absolute;
  74. top:0;
  75. bottom:0;
  76. width: 16px;
  77. height: 16px;
  78. margin: 4px;
  79. padding:0;
  80. background-image: url(images/close.svg);
  81. background-repeat: no-repeat;
  82. background-size: 10px 10px;
  83. background-position: center center;
  84. cursor: pointer;
  85. border-radius: 2px;
  86. background-color: #f6f6f6;
  87. border:none;
  88. box-shadow: none;
  89. }
  90. div.panel > .header > button.minimize
  91. {
  92. left:0;
  93. background-image: url(images/minimize.svg);
  94. }
  95. div.panel > .header > button.maximize
  96. {
  97. left:0;
  98. background-image: url(images/maximize.svg);
  99. }
  100. div.panel > .header > button.close
  101. {
  102. right:0;
  103. background-image: url(images/close.svg);
  104. }
  105. div.panel > .header > button:hover
  106. {
  107. background-color: #ffb0b0;
  108. }
  109. div.panel > .header > button:focus
  110. {
  111. outline:1px dotted black;
  112. }
  113. div.panel > .body
  114. {
  115. position:absolute;
  116. top:25px;
  117. left:0;
  118. right:0;
  119. bottom:0;
  120. overflow: auto;
  121. }
  122. div.panel > .body.center
  123. {
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. }
  128. div.panel > .body.padding
  129. {
  130. padding: 4px;
  131. }
  132. .animate > div.panel
  133. {
  134. transition: height 1s, bottom 1s;
  135. }
  136. div.resizer
  137. {
  138. width: 4px;
  139. position: absolute;
  140. bottom: 0;
  141. background: transparent;
  142. z-index: 10;
  143. }
  144. div.resizer:hover
  145. {
  146. cursor: col-resize;
  147. }
  148. @media all and (max-width : 768px)
  149. {
  150. div.panel.show
  151. {
  152. display:block;
  153. left: 0;
  154. right: 0;
  155. width: auto;
  156. }
  157. }