reset.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @import 'css3.less';
  2. @import "var.less";
  3. //浮动
  4. .f-l{float:left}
  5. .f-r{float:right}
  6. //字体
  7. .font-face('../fonts/','iconfont');
  8. .iconfont{
  9. font-family:"iconfont" !important;
  10. font-size:16px;font-style:normal;
  11. -webkit-font-smoothing: antialiased;
  12. -webkit-text-stroke-width: 0.2px;
  13. -moz-osx-font-smoothing: grayscale;}
  14. //重置panel
  15. .panel-default {
  16. border-color: #ebeaea;
  17. }
  18. .panel-default .panel-header {
  19. border-color: transparent;
  20. background-color: #fff;
  21. color: #555555;
  22. }
  23. .panel-header {
  24. border-bottom: solid 1px transparent;
  25. padding: 8px 15px;
  26. font-size: 16px;
  27. font-weight: normal;
  28. }
  29. //下拉框选中颜色
  30. .layui-form-select dl dd.layui-this{
  31. background: rgb(242,242,242);
  32. color: #333;
  33. }
  34. //按钮移上去颜色
  35. .layui-btn-primary:hover {
  36. border-color: @btnNormalHover;
  37. color: #333;
  38. }
  39. //tab more的位置
  40. .layui-tab-bar {
  41. position: absolute;
  42. right: 3px;
  43. top: 3px;
  44. z-index: 10;
  45. width: 30px;
  46. height: 30px;
  47. line-height: 30px;
  48. border: 1px solid #e2e2e2;
  49. border-radius: 2px;
  50. background-color: #fff;
  51. }
  52. //引用区域的文字颜色
  53. .layui-elem-quote{
  54. border-left: 5px solid @blue;
  55. }
  56. /*清楚浮动*/
  57. .clearfix{
  58. .clearfix();
  59. }
  60. //灰色背景
  61. .layui-nav-no-bg{
  62. background: transparent;
  63. width: auto;
  64. &.layui-nav-tree .layui-nav-item a:hover {
  65. background-color: transparent;
  66. color: @blue;
  67. }
  68. &.layui-nav .layui-nav-item a{
  69. color: #333;
  70. }
  71. .layui-nav-itemed>a, .layui-nav-tree .layui-nav-title a, .layui-nav-tree .layui-nav-title a:hover{
  72. background: transparent!important;
  73. color: #333!important;
  74. }
  75. &.layui-nav-tree .layui-nav-child a {
  76. height: 40px;
  77. line-height: 40px;
  78. text-indent: 10px;
  79. color: #666;
  80. }
  81. &.layui-nav-tree .layui-nav-child dd.layui-this, &.layui-nav-tree .layui-this, &.layui-nav-tree .layui-this>a:hover{
  82. background-color: #fff;
  83. color: @blue;
  84. }
  85. &.layui-nav-tree .layui-this>a{
  86. background-color: #fff;
  87. color: @blue;
  88. border-left: 3px solid @blue;
  89. margin-right: -20px;
  90. }
  91. .layui-nav-bar{
  92. display: none;
  93. }
  94. }
  95. .showSubBtn{
  96. width: 16px;
  97. height: 16px;
  98. line-height: 16px;
  99. margin-left: 5px;
  100. }