css.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. *,html,body {
  2. margin: 0;
  3. padding: 0;
  4. font: 13px/2em Avenir,Arial,sans-serif;
  5. box-sizing:border-box;
  6. // background: #ffffff;
  7. }
  8. html{overflow-y:scroll;}
  9. html,body{width:100%;min-width:400px;}
  10. body{padding-top:87px}
  11. a {
  12. text-decoration: none;
  13. outline: none;
  14. cursor: pointer;
  15. }
  16. table {
  17. border-collapse: collapse;
  18. }
  19. ol, ul {
  20. list-style: none;
  21. }
  22. li {
  23. list-style-type: none;
  24. }
  25. .clear {
  26. overflow: auto;
  27. overflow-y: hidden;
  28. zoom: 1;
  29. }
  30. .toolbar{
  31. background:#00c3ef;height:82px;position:fixed;top:0;left:0;right:0;box-shadow:0 0px 10px #666;z-index:10;
  32. .connect{
  33. background:darken(#00c3ef,10%);padding:8px 15px;
  34. input{
  35. border:none;text-align:center;float:left;display:inline;width:35%;
  36. &.disabled{background:darken(#00c3ef,20%)}
  37. }
  38. button{
  39. width:30%;float:left;border:none;background:#4ab911;color:#fff;cursor:pointer;
  40. &.disabled{background:#b91111}
  41. }
  42. }
  43. .filter{
  44. padding:8px 15px;
  45. span{
  46. display:inline-block;background:#50b31d;float:left;cursor:pointer;text-align:right;font-size:10px;color:#fff;position:relative;padding:0 8px 0 20px;margin-right:2px;
  47. &:before{content:"●";text-align:left;position:absolute;left:8px;top:0px;}
  48. &.disabled{
  49. background:#b91111;
  50. &:before{content:"○"}
  51. }
  52. }
  53. input{height:24px;border:none;text-align:center;float:right;display:inline;font-size:12px;width:65px;}
  54. button{height:24px;border:none;float:right;display:inline;font-size:12px;width:30px;background:darken(#00c3ef,10%);color:#fff}
  55. }
  56. }
  57. .box{
  58. border-top:1px #eee solid;
  59. &:last-child{border-bottom:1px #eee solid;}
  60. .head{
  61. height:26px;position:relative;
  62. span.line{position:absolute;right:15px;top:0;line-height:26px;}
  63. span.level{position:absolute;left:15px;top:5px;line-height:16px;display:block;width:80px;height:16px;border-radius:20px;font-size:12px;text-align:center;background:#eee}
  64. h2{height:26px;line-height:26px;padding:0 60px 0 100px;overflow:hidden;text-align:right;word-break: break-all;}
  65. }
  66. .content{padding:5px 20px;line-height:24px;word-break: break-all;font-size:14px}
  67. .info{
  68. line-height:18px;font-size:10px;position:relative;padding:5px 0 5px 15px;background:#eee;
  69. span{position:absolute;right:15px;top:5px;line-height:18px;font-size:10px;}
  70. }
  71. &.LOG{
  72. background:#009434;color:#fff;
  73. .head{background:darken(#009434,5%)}
  74. .info{background:darken(#009434,2%)}
  75. span.level{background:darken(#009434,10%)}
  76. }
  77. &.DEBUG{
  78. background:#3f83e8;color:#fff;
  79. .head{background:darken(#3f83e8,5%)}
  80. .info{background:darken(#3f83e8,2%)}
  81. span.level{background:darken(#3f83e8,10%)}
  82. }
  83. &.WARNING{
  84. background:#f7bf21;color:#fff;
  85. .head{background:darken(#f7bf21,5%)}
  86. .info{background:darken(#f7bf21,2%)}
  87. span.level{background:darken(#f7bf21,10%)}
  88. }
  89. &.ERROR{
  90. background:#ca004a;color:#fff;
  91. .head{background:darken(#ca004a,5%)}
  92. .info{background:darken(#ca004a,2%)}
  93. span.level{background:darken(#ca004a,10%)}
  94. }
  95. }
  96. .clearList{
  97. display:none;width:40px;height:40px;background:#af0000;opacity:0.6;font-size:24px;line-height:43px;text-align:center;position:fixed;right:20px;bottom: 20px;color:#fff;border-radius:100px;cursor:pointer;
  98. &:hover{opacity:0.9}
  99. }
  100. html:hover{.clearList{display:block}}