_ui.panel.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @charset "utf-8";
  2. /*
  3. * @file: 区块面板基础UI组件
  4. * @update: 2015-06-03 16:23:03
  5. */
  6. /*
  7. * 默认面板
  8. * @base
  9. */
  10. $panel-font-size: 12px; // 面板字号
  11. $panel-hd-height: 36px; // 标题高度
  12. $tit-font-size: 14px; // 标题字号
  13. .ui-panel {
  14. font-size: $panel-font-size;
  15. *zoom: 1;
  16. }
  17. .ui-panel__hd {
  18. position: relative;
  19. height: $tit-font-size + 2;
  20. padding-top: 8px;
  21. padding-bottom: 8px;
  22. line-height: $tit-font-size + 2;
  23. .ui-lineList {
  24. margin-top: 1px;
  25. margin-right: -10px;
  26. }
  27. }
  28. .ui-panel__bd {
  29. padding-top: 10px;
  30. padding-bottom: 10px;
  31. }
  32. .ui-panel__tit {
  33. float: left;
  34. margin-right: 10px;
  35. font-size: $tit-font-size;
  36. font-weight: 700;
  37. color: #333;
  38. }
  39. .ui-panel__ico {
  40. float: left;
  41. width: 14px;
  42. height: 14px;
  43. margin-right: 5px;
  44. background-color: #666;
  45. }
  46. .ui-panel__meta {
  47. float: left;
  48. margin-top: 1px;
  49. margin-right: 10px;
  50. color: #999;
  51. }
  52. .ui-panel__more {
  53. float: right;
  54. }
  55. /*
  56. * 带边框的面板
  57. * @extend: border
  58. */
  59. $title-bg-color: #f5f5f5; // 标题背景颜色
  60. $box-border-color: #ddd; // 边框颜色
  61. .ui-panel {
  62. &.ext-border {
  63. border: 1px solid $box-border-color;
  64. border-bottom: 0;
  65. .ui-panel__hd {
  66. padding: 10px;
  67. border-bottom: 1px solid $box-border-color;
  68. background-color: $title-bg-color;
  69. }
  70. .ui-panel__bd {
  71. padding: 10px;
  72. border-bottom: 1px solid $box-border-color;
  73. }
  74. }
  75. }
  76. /*
  77. * 弹窗外观的面板
  78. * @extend: pop
  79. */
  80. $pop-border-width: 5px; // 半透明边框宽度
  81. $pop-border-radius: 5px; // 区块圆角
  82. .ui-panel {
  83. &.ext-pop {
  84. padding: $pop-border-width;
  85. border-radius: $pop-border-radius;
  86. @include transparent(#000, .1, true);
  87. .ui-panel__hd {
  88. padding: 10px;
  89. background-color: $title-bg-color;
  90. }
  91. .ui-panel__bd {
  92. padding: 10px;
  93. background-color: #fff;
  94. }
  95. .ui-panel__close {
  96. @include inline-block;
  97. width: 18px;
  98. height: 18px;
  99. margin-top: -4px;
  100. font-family: Helvetica, STHeiti;
  101. _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino;
  102. font-size: 18px;
  103. text-align: center;
  104. line-height: 18px;
  105. color: #bbb;
  106. &:hover {
  107. color: #fff;
  108. background-color: #ddd;
  109. border-radius: 3px;
  110. }
  111. }
  112. }
  113. }