main.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. html{_background-image:url(about:blank);_background-attachment:fixed;}body{margin:0;padding:0;font:12px/2em "Courier","兰亭黑","微软雅黑","\5B8B\4F53",Arial,sans-serif;background:#fff;}div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p,img,a{padding:0;margin:0;}a{text-decoration:none;outline:none;cursor:pointer;}img{vertical-align:top;}table{border-collapse:collapse;}img,table,fieldset{border:0;}ol,ul{list-style:none;}li{list-style-type:none;}h1,h2,h3,h4,h5,h6{font-size:12px;font-weight:normal;}.clear{overflow:auto;overflow-y:hidden;zoom:1;}
  2. html,body{height:100%;width:100%;}
  3. ::-webkit-scrollbar{display:none;}
  4. #main{
  5. .title{
  6. height:30px;background:#49A3D4;color:#fff;font-size:14px;text-align:center;line-height:30px;position:relative;;
  7. span{-webkit-app-region: drag;}
  8. a{position:absolute;height:14px;border-radius:10px;width:40px;top:8px;font-size:9px;line-height:12px;display:block;-webkit-app-region: nodrag;}
  9. .minimize{background:#F9B148;right:10px;}
  10. .close{background:#FF5858;left:10px}
  11. }
  12. .tabs{
  13. display:flex;flex-flow:row;justify-content:center;align-items:stretch;height:40px;
  14. a{
  15. flex-grow:1;text-align:center;font-size:16px;line-height:40px;color:#666;background:#eee;
  16. &.on{font-weight:bold;background:#fff;}
  17. span{font-size:12px;color:#999}
  18. }
  19. }
  20. .content{position:absolute;bottom:0;left:0;right:0;top:70px;padding:20px;background:#fff;}
  21. .tabContent{
  22. display:none;height:100%;box-sizing:border-box;position:relative;
  23. &.on{display:block}
  24. input.search{display:block;width:100%;box-sizing:border-box;height:36px;border-radius:18px;border:1px solid #ccc;outline:none;padding:0 50px 0 20px;font-size:16px;text-align: center;background:url(../img/search.png) no-repeat;background-position:right 5px center;background-size:24px;color:#999}
  25. .list{
  26. position:absolute;top:56px;bottom:0;right:0;left:0;overflow-y:scroll;
  27. &:first-child{padding-bottom: 60px;}
  28. li{
  29. height:32px;border-bottom:1px dashed #ccc;line-height:32px;position: relative;font-size:16px;padding:0 15px;
  30. &:last-child{border:none}
  31. &:hover{background:#eee}
  32. .btn{position:absolute;right:0;top:0;height:32px;}
  33. a{padding:0 5px;font-size:16px;margin:0 5px;}
  34. }
  35. }
  36. .control{}
  37. }
  38. .loading{display:none;width:100%;height:100%;position: absolute;top:0;left:0;right:0;z-index:100;bottom:0;background:rgba(0,0,0,0.6);justify-content:center;align-items:center;
  39. &.on{display:flex}
  40. p{color:#fff;line-height:40px;font-size:28px}
  41. }
  42. .settings{
  43. a.save{display:block;width:100px;height:40px;line-height:40px;background:#ff5858;color:#fff;text-align:center;margin:20px auto}
  44. }
  45. }
  46. #popup{
  47. background:#49A3D4;color:#fff;padding:20px;box-sizing:border-box;overflow:scroll;position: relative;
  48. .movebar{-webkit-app-region: drag;position:absolute;top:0;left:0;right:60px;height:20px;}
  49. .loading{display:none;width:100%;height:100%;position: absolute;top:0;left:0;right:0;z-index:100;bottom:0;background:rgba(0,0,0,0.6);justify-content:center;align-items:center;
  50. &.on{display:flex}
  51. p{color:#fff;line-height:40px;font-size:16px}
  52. }
  53. a.close{
  54. position: absolute;right:5px;top:5px;background:#FF5858;font-size:10px;display:block;width:40px;height:14px;border-radius:20px;text-align:center;line-height:12px;
  55. }
  56. .word{
  57. line-height:20px;height:49px;border-bottom:1px solid #fff;position: relative;margin-bottom:10px;padding-bottom:5px;
  58. .w{font-size:24px;line-height:24px}
  59. .pron{font-size:14px;}
  60. a{
  61. font-size:14px;color:rgba(255,255,255,0.8);margin-left:10px;
  62. &:hover{color:#fff}
  63. }
  64. }
  65. .def{
  66. line-height:20px;font-size:12px;border-bottom:1px solid #fff;padding-bottom:10px;
  67. }
  68. .example{
  69. .ex{
  70. border-bottom:1px dashed #eee;padding:10px 0;
  71. &:last-child{border:none;margin-bottom:10px}
  72. &:hover{
  73. background:rgba(255,255,255,0.3);
  74. p:last-child{
  75. color:rgba(255,255,255,1);
  76. &:after{content:''}
  77. }
  78. }
  79. p{line-height:12px;}
  80. p:last-child{
  81. padding-top:10px;color:rgba(255,255,255,0);position:relative;
  82. &:after{content:'********************';position: absolute;left:0;right:0;top:10px;bottom:0;z-index:10;color:rgba(255,255,255,1);line-height:12px;}
  83. }
  84. }
  85. }
  86. .from{
  87. line-height:24px;text-align: center;background:rgba(255,255,255,0.3);border-radius:20px;font-size:12px;
  88. a{color:#fff}
  89. }
  90. }
  91. #import{
  92. padding:20px;text-align:center;
  93. .importForm{width:260px}
  94. textarea{width:260px;height:320px;border:1px #ddd solid;outline:none;padding:10px;box-sizing:border-box;resize:none;line-height:20px;display:block;margin-bottom:20px;}
  95. a{display:inline-block;width:80px;height:30px;margin:0 auto;border:1px solid #ccc;background:#eee;line-height:30px}
  96. .loading{display:none;width:100%;height:100%;position: absolute;top:0;left:0;right:0;z-index:100;bottom:0;background:rgba(0,0,0,0.6);justify-content:center;align-items:center;
  97. &.on{display:flex}
  98. p{color:#fff;line-height:40px;font-size:16px}
  99. }
  100. }