Window.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // Window
  2. .@{prefix}-fullscreen {
  3. border: 0; padding: 0; margin: 0;
  4. overflow: hidden;
  5. height: 100%;
  6. }
  7. div.@{prefix}-fullscreen {
  8. position: fixed;
  9. top: 0; left: 0;
  10. }
  11. #@{prefix}-modal-block {
  12. .opacity(0);
  13. position: fixed;
  14. left: 0; top: 0;
  15. width: 100%; height: 100%;
  16. background: @window-modalblock-bg;
  17. }
  18. #@{prefix}-modal-block.@{prefix}-in {
  19. .opacity(@window-modalblock-opacity);
  20. }
  21. .@{prefix}-window-move {
  22. cursor: move;
  23. }
  24. .@{prefix}-window {
  25. .border-radius(6px);
  26. .box-shadow(@window-box-shadow);
  27. .reset-gradient();
  28. background: @window-bg;
  29. position: fixed;
  30. top: 0; left: 0;
  31. opacity: 0;
  32. transform: scale(0.1);
  33. transition: transform 100ms ease-in, opacity 150ms ease-in;
  34. }
  35. .@{prefix}-window.@{prefix}-in {
  36. transform: scale(1);
  37. opacity: 1;
  38. }
  39. .@{prefix}-window-head {
  40. padding: 9px 15px;
  41. border-bottom: 1px solid @window-head-border;
  42. position: relative;
  43. }
  44. .@{prefix}-window-head .@{prefix}-close {
  45. position: absolute;
  46. right: 0;
  47. top: 0;
  48. height: 38px;
  49. width: 38px;
  50. text-align: center;
  51. cursor: pointer;
  52. i {
  53. color: @window-head-close;
  54. }
  55. }
  56. .@{prefix}-close:hover i {
  57. color: @window-head-close-hover;
  58. }
  59. .@{prefix}-window-head .@{prefix}-title {
  60. line-height: 20px;
  61. font-size: @window-title-font-size;
  62. font-weight: bold;
  63. text-rendering: optimizelegibility;
  64. padding-right: 20px;
  65. }
  66. .@{prefix}-window .@{prefix}-container-body {
  67. display: block;
  68. }
  69. .@{prefix}-foot {
  70. display: block;
  71. background-color: @window-foot-bg;
  72. border-top: 1px solid @window-foot-border;
  73. .border-radius(0 0 6px 6px);
  74. }
  75. .@{prefix}-window-head .@{prefix}-dragh {
  76. position: absolute;
  77. top: 0; left: 0;
  78. cursor: move;
  79. width: 90%;
  80. height: 100%;
  81. }
  82. .@{prefix}-window iframe {
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .@{prefix}-window.@{prefix}-fullscreen, .@{prefix}-window.@{prefix}-fullscreen .@{prefix}-foot {
  87. .border-radius(0);
  88. }
  89. .@{prefix}-window-body .@{prefix}-listbox {
  90. border-color: @btn-border-hover;
  91. }
  92. // RTL
  93. .@{prefix}-rtl .@{prefix}-window-head .@{prefix}-close {
  94. position: absolute;
  95. right: auto;
  96. left: 15px;
  97. }
  98. .@{prefix}-rtl .@{prefix}-window-head .@{prefix}-dragh {
  99. left: auto;
  100. right: 0;
  101. }
  102. .@{prefix}-rtl .@{prefix}-window-head .@{prefix}-title {
  103. direction: rtl;
  104. text-align: right;
  105. }