css.less 3.2 KB

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