Window.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // Window
  2. .@{prefix}-fullscreen {
  3. border: 0; padding: 0; margin: 0;
  4. overflow: hidden;
  5. background: @window-fullscreen-bg;
  6. height: 100%;
  7. }
  8. div.@{prefix}-fullscreen {
  9. position: fixed;
  10. top: 0; left: 0;
  11. }
  12. #@{prefix}-modal-block {
  13. .opacity(0);
  14. position: fixed;
  15. left: 0; top: 0;
  16. width: 100%; height: 100%;
  17. background: @window-modalblock-bg;
  18. }
  19. #@{prefix}-modal-block.@{prefix}-in {
  20. .opacity(@window-modalblock-opacity);
  21. }
  22. .@{prefix}-window-move {
  23. cursor: move;
  24. }
  25. .@{prefix}-window {
  26. .border-radius(6px);
  27. .box-shadow(@window-box-shadow);
  28. .reset-gradient();
  29. background: @window-bg;
  30. position: fixed;
  31. top: 0; left: 0;
  32. opacity: 0;
  33. .transition(opacity 150ms ease-in);
  34. }
  35. .@{prefix}-window.@{prefix}-in {
  36. opacity: 1;
  37. }
  38. .@{prefix}-window-head {
  39. padding: 9px 15px;
  40. border-bottom: 1px solid @window-head-border;
  41. position: relative;
  42. }
  43. .@{prefix}-window-head .@{prefix}-close {
  44. position: absolute;
  45. right: 15px;
  46. top: 9px;
  47. font-size: 20px;
  48. font-weight: bold;
  49. line-height: 20px;
  50. color: @window-head-close;
  51. cursor: pointer;
  52. // IE7
  53. height: 20px;
  54. overflow: hidden;
  55. }
  56. .@{prefix}-close:hover {
  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: 10px;
  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. // RTL
  90. .@{prefix}-rtl .@{prefix}-window-head .@{prefix}-close {
  91. position: absolute;
  92. right: auto;
  93. left: 15px;
  94. }
  95. .@{prefix}-rtl .@{prefix}-window-head .@{prefix}-dragh {
  96. left: auto;
  97. right: 0;
  98. }
  99. .@{prefix}-rtl .@{prefix}-window-head .@{prefix}-title {
  100. direction: rtl;
  101. text-align: right;
  102. }