按钮样式

设置按钮样式

  1. /* ==UserStyle==
  2. @name 按钮样式
  3. @namespace coderWyh
  4. @version 1.0
  5. @description 设置按钮样式
  6. @author coderWyh
  7. ==/UserStyle== */
  8. .button-success
  9. {
  10. background: rgb(28, 184, 65);
  11. }
  12. .pure-button {
  13. display: inline-block;
  14. zoom: 1;
  15. line-height: normal;
  16. white-space: nowrap;
  17. vertical-align: middle;
  18. text-align: center;
  19. cursor: pointer;
  20. -webkit-user-drag: none;
  21. -webkit-user-select: none;
  22. -moz-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. -webkit-box-sizing: border-box;
  26. box-sizing: border-box;
  27. }
  28.  
  29. .pure-button::-moz-focus-inner {
  30. padding: 0;
  31. border: 0;
  32. }
  33.  
  34.  
  35. .pure-button {
  36. letter-spacing: normal;
  37. word-spacing: normal;
  38. vertical-align: top;
  39. text-rendering: auto;
  40. }
  41.  
  42. .pure-button {
  43. font-family: inherit;
  44. font-size: 100%;
  45. padding: .5em 1em;
  46. color: #444;
  47. color: rgba(0,0,0,.8);
  48. border: 1px solid #999;
  49. border: none transparent;
  50. background-color: #e6e6e6;
  51. text-decoration: none;
  52. border-radius: 2px;
  53. }
  54.  
  55. .pure-button:focus,.pure-button:hover {
  56. background-image: -webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));
  57. background-image: -webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));
  58. background-image: linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));
  59. }
  60.  
  61. .pure-button:focus {
  62. outline: 0;
  63. }
  64.  
  65. .pure-button:active {
  66. -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;
  67. box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;
  68. border-color: #000;
  69. }
  70.  
  71.  
  72. .pure-button {
  73. margin: 0;
  74. border-radius: 0;
  75. border-right: 1px solid #111;
  76. border-right: 1px solid rgba(0,0,0,.2);
  77. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址