Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <html lang="en">
  2. <head>
  3. <meta charset="utf-8"/>
  4. <title>ul.buttongroup</title>
  5. <style>
  6. ul.buttongroup {
  7. font-family: 'Arial', sans-serif;
  8. margin: 0;
  9. padding: 0;
  10. display: inline-block;
  11. font-size: 11px;
  12. font-weight: bold;
  13. list-style: none;
  14. background-color: #999;
  15. background-image: -webkit-gradient(linear, left top,left bottom ,color-stop(0,#ccc), color-stop(1.00,#999));
  16. background-image: -moz-linear-gradient(left top -90deg, rgba(229,229,229,1) 0%, rgba(102,102,102,1) 100%);
  17. border: 1px solid #999;
  18. -webkit-border-radius: 4px;
  19. -moz-border-radius: 4px;
  20. border-radius: 4px;
  21. -webkit-user-select:none;
  22. -moz-user-select:none;
  23. }
  24. ul.buttongroup li,
  25. ul.buttongroup li.disabled:active,
  26. ul.buttongroup li.disabled:hover {
  27. color: #666;
  28. cursor: pointer;
  29. float: left;
  30. margin: 0;
  31. margin-left: 1px;
  32. padding: 5px 10px;
  33. background: #f3f3f3;
  34. background: -webkit-gradient(linear, left top, left bottom,color-stop(0,rgba(253,253,253,1)), color-stop(1.00,rgba(228,228,228,1))), #f3f3f3;
  35. background: -moz-linear-gradient(left top -90deg, rgba(243,243,243,1) 0%, rgba(228,228,228,1) 100%), #f3f3f3;
  36. text-shadow: #fff 0 1px 0;
  37. -webkit-box-shadow: inset rgba(255,255,255,1) 1px 1px 0px;
  38. -moz-box-shadow: inset rgba(255,255,255,1) 1px 1px 0px;
  39. box-shadow: inset rgba(255,255,255,1) 1px 1px 0px;
  40. }
  41. ul.buttongroup li:first-child {
  42. margin-left: 0;
  43. -webkit-border-radius: 3px 0 0 3px;
  44. -moz-border-radius: 3px 0 0 3px;
  45. border-radius: 3px 0 0 3px;
  46. border-left: none;
  47. }
  48. ul.buttongroup li:last-child {
  49. -webkit-border-radius: 0 3px 3px 0;
  50. -moz-border-radius: 0 3px 3px 0;
  51. border-radius: 0 3px 3px 0;
  52. }
  53. ul.buttongroup li:hover,
  54. ul.buttongroup li.hover {
  55. color: rgba(0,0,0,0.7);
  56. background: #deecf0;
  57. background: -webkit-gradient(linear, left top, left bottom,color-stop(0,#fff), color-stop(1,rgba(214,235,242,1))), #deecf0;
  58. background: -moz-linear-gradient(left top -90deg, #fff 0%, rgba(214,235,242,1) 100%), #deecf0;
  59. }
  60. ul.buttongroup li:active,
  61. ul.buttongroup li.active {
  62. color: rgba(0,0,0,0.8);
  63. -webkit-box-shadow: inset rgba(0,80,100,0.3) 1px 2px 2px;
  64. -moz-box-shadow: inset rgba(0,80,100,0.3) 1px 2px 2px;
  65. border-left: 1px solid #999;
  66. border-top: 1px solid #aaa;
  67. padding-left: 9px;
  68. padding-bottom: 4px;
  69. text-shadow: none;
  70. }
  71. ul.buttongroup li.disabled,
  72. ul.buttongroup li.disabled:hover {
  73. color: #ccc;
  74. cursor: default;
  75. text-shadow: none;
  76. }
  77. ul.buttongroup li.disabled:active {
  78. color: #ccc;
  79. border: none;
  80. }
  81. </style>
  82. </head>
  83. <body>
  84.  
  85. <ul class="buttongroup">
  86. <li>First item</li>
  87. <li>Second item</li>
  88. <li>Third item</li>
  89. </ul>
  90.  
  91. <ul class="buttongroup">
  92. <li>Normal button</li>
  93. <li class="hover">Hover</li>
  94. <li class="hover active">Active</li>
  95. <li class="disabled">Disabled</li>
  96. </ul>
  97.  
  98. </body>
  99. </html>
Add Comment
Please, Sign In to add comment