main.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. #main{
  4. .title{
  5. height:30px;background:#49A3D4;color:#fff;font-size:14px;text-align:center;line-height:30px;position:relative;;
  6. span{-webkit-app-region: drag;}
  7. a{position:absolute;height:14px;border-radius:10px;width:40px;top:8px;font-size:9px;line-height:12px;display:block;-webkit-app-region: nodrag;}
  8. .minimize{background:#F9B148;right:10px;}
  9. .close{background:#FF5858;left:10px}
  10. }
  11. .tabs{
  12. display:flex;flex-flow:row;justify-content:center;align-items:stretch;height:40px;
  13. a{
  14. flex-grow:1;text-align:center;font-size:16px;line-height:40px;color:#666;background:#eee;
  15. &.on{font-weight:bold;background:#fff;}
  16. span{font-size:12px;color:#999}
  17. }
  18. }
  19. .content{position:absolute;bottom:0;left:0;right:0;top:70px;padding:20px;background:#fff;}
  20. .tabContent{
  21. display:none;height:100%;box-sizing:border-box;position:relative;
  22. &.on{display:block}
  23. 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}
  24. .list{
  25. position:absolute;top:56px;bottom:0;right:0;left:0;overflow-y:scroll;
  26. &:first-child{padding-bottom: 60px;}
  27. li{
  28. height:32px;border-bottom:1px dashed #ccc;line-height:32px;position: relative;font-size:16px;padding:0 15px;
  29. &:last-child{border:none}
  30. &:hover{background:#eee}
  31. .btn{position:absolute;right:0;top:0;height:32px;}
  32. a{padding:0 5px;font-size:16px;margin:0 5px;}
  33. }
  34. }
  35. .control{}
  36. }
  37. .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;
  38. &.on{display:flex}
  39. p{color:#fff;line-height:40px;font-size:28px}
  40. }
  41. .settings{
  42. a.save{display:block;width:100px;height:40px;line-height:40px;background:#ff5858;color:#fff;text-align:center;margin:20px auto}
  43. }
  44. }
  45. #popup{
  46. background:#49A3D4;color:#fff;padding:20px;box-sizing:border-box;overflow:scroll;
  47. .info{-webkit-app-region: drag;}
  48. .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;
  49. &.on{display:flex}
  50. p{color:#fff;line-height:40px;font-size:16px}
  51. }
  52. a.close{
  53. 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;
  54. }
  55. .word{
  56. line-height:20px;height:49px;border-bottom:1px solid #fff;position: relative;margin-bottom:10px;padding-bottom:5px;
  57. .w{font-size:24px;line-height:24px}
  58. .pron{font-size:14px;}
  59. a{
  60. font-size:14px;color:rgba(255,255,255,0.8);margin-left:10px;
  61. &:hover{color:#fff}
  62. }
  63. }
  64. .def{
  65. line-height:20px;font-size:12px;border-bottom:1px solid #fff;padding-bottom:10px;
  66. }
  67. .example{
  68. .ex{
  69. border-bottom:1px dashed #eee;padding:10px 0;
  70. &:last-child{border:none;margin-bottom:10px}
  71. &:hover{
  72. background:rgba(255,255,255,0.3);
  73. p:last-child{
  74. color:rgba(255,255,255,1);
  75. &:after{content:''}
  76. }
  77. }
  78. p{line-height:12px;}
  79. p:last-child{
  80. padding-top:10px;color:rgba(255,255,255,0);position:relative;
  81. &:after{content:'********************';position: absolute;left:0;right:0;top:10px;bottom:0;z-index:10;color:rgba(255,255,255,1);line-height:12px;}
  82. }
  83. }
  84. }
  85. .from{
  86. line-height:24px;text-align: center;background:rgba(255,255,255,0.3);border-radius:20px;font-size:12px;
  87. a{color:#fff}
  88. }
  89. }