linkbutton.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. .l-btn {
  2. text-decoration: none;
  3. display: inline-block;
  4. overflow: hidden;
  5. margin: 0;
  6. padding: 0;
  7. cursor: pointer;
  8. outline: none;
  9. text-align: center;
  10. vertical-align: middle;
  11. }
  12. .l-btn-plain {
  13. border: 0;
  14. padding: 1px;
  15. }
  16. .l-btn-left {
  17. display: inline-block;
  18. position: relative;
  19. overflow: hidden;
  20. margin: 0;
  21. padding: 0;
  22. vertical-align: top;
  23. }
  24. .l-btn-text {
  25. display: inline-block;
  26. vertical-align: top;
  27. width: auto;
  28. line-height: 24px;
  29. font-size: 12px;
  30. padding: 0;
  31. margin: 0 4px;
  32. }
  33. .l-btn-icon {
  34. display: inline-block;
  35. width: 16px;
  36. height: 16px;
  37. line-height: 16px;
  38. position: absolute;
  39. top: 50%;
  40. margin-top: -8px;
  41. font-size: 1px;
  42. }
  43. .l-btn span span .l-btn-empty {
  44. display: inline-block;
  45. margin: 0;
  46. width: 16px;
  47. height: 24px;
  48. font-size: 1px;
  49. vertical-align: top;
  50. }
  51. .l-btn span .l-btn-icon-left {
  52. padding: 0 0 0 20px;
  53. background-position: left center;
  54. }
  55. .l-btn span .l-btn-icon-right {
  56. padding: 0 20px 0 0;
  57. background-position: right center;
  58. }
  59. .l-btn-icon-left .l-btn-text {
  60. margin: 0 4px 0 24px;
  61. }
  62. .l-btn-icon-left .l-btn-icon {
  63. left: 4px;
  64. }
  65. .l-btn-icon-right .l-btn-text {
  66. margin: 0 24px 0 4px;
  67. }
  68. .l-btn-icon-right .l-btn-icon {
  69. right: 4px;
  70. }
  71. .l-btn-icon-top .l-btn-text {
  72. margin: 20px 4px 0 4px;
  73. }
  74. .l-btn-icon-top .l-btn-icon {
  75. top: 4px;
  76. left: 50%;
  77. margin: 0 0 0 -8px;
  78. }
  79. .l-btn-icon-bottom .l-btn-text {
  80. margin: 0 4px 20px 4px;
  81. }
  82. .l-btn-icon-bottom .l-btn-icon {
  83. top: auto;
  84. bottom: 4px;
  85. left: 50%;
  86. margin: 0 0 0 -8px;
  87. }
  88. .l-btn-left .l-btn-empty {
  89. margin: 0 4px;
  90. width: 16px;
  91. }
  92. .l-btn-plain:hover {
  93. padding: 0;
  94. }
  95. .l-btn-focus {
  96. outline: #0000FF dotted thin;
  97. }
  98. .l-btn-large .l-btn-text {
  99. line-height: 40px;
  100. }
  101. .l-btn-large .l-btn-icon {
  102. width: 32px;
  103. height: 32px;
  104. line-height: 32px;
  105. margin-top: -16px;
  106. }
  107. .l-btn-large .l-btn-icon-left .l-btn-text {
  108. margin-left: 40px;
  109. }
  110. .l-btn-large .l-btn-icon-right .l-btn-text {
  111. margin-right: 40px;
  112. }
  113. .l-btn-large .l-btn-icon-top .l-btn-text {
  114. margin-top: 36px;
  115. line-height: 24px;
  116. min-width: 32px;
  117. }
  118. .l-btn-large .l-btn-icon-top .l-btn-icon {
  119. margin: 0 0 0 -16px;
  120. }
  121. .l-btn-large .l-btn-icon-bottom .l-btn-text {
  122. margin-bottom: 36px;
  123. line-height: 24px;
  124. min-width: 32px;
  125. }
  126. .l-btn-large .l-btn-icon-bottom .l-btn-icon {
  127. margin: 0 0 0 -16px;
  128. }
  129. .l-btn-large .l-btn-left .l-btn-empty {
  130. margin: 0 4px;
  131. width: 32px;
  132. }
  133. .l-btn {
  134. color: #fff;
  135. background: #777;
  136. background-repeat: repeat-x;
  137. border: 1px solid #555;
  138. background: -webkit-linear-gradient(top,#919191 0,#6a6a6a 100%);
  139. background: -moz-linear-gradient(top,#919191 0,#6a6a6a 100%);
  140. background: -o-linear-gradient(top,#919191 0,#6a6a6a 100%);
  141. background: linear-gradient(to bottom,#919191 0,#6a6a6a 100%);
  142. background-repeat: repeat-x;
  143. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#919191,endColorstr=#6a6a6a,GradientType=0);
  144. -moz-border-radius: 5px 5px 5px 5px;
  145. -webkit-border-radius: 5px 5px 5px 5px;
  146. border-radius: 5px 5px 5px 5px;
  147. }
  148. .l-btn:hover {
  149. background: #777;
  150. color: #fff;
  151. border: 1px solid #555;
  152. filter: none;
  153. }
  154. .l-btn-plain {
  155. background: transparent;
  156. border: 0;
  157. filter: none;
  158. }
  159. .l-btn-plain:hover {
  160. background: #777;
  161. color: #fff;
  162. border: 1px solid #555;
  163. -moz-border-radius: 5px 5px 5px 5px;
  164. -webkit-border-radius: 5px 5px 5px 5px;
  165. border-radius: 5px 5px 5px 5px;
  166. }
  167. .l-btn-disabled,
  168. .l-btn-disabled:hover {
  169. opacity: 0.5;
  170. cursor: default;
  171. background: #777;
  172. color: #fff;
  173. background: -webkit-linear-gradient(top,#919191 0,#6a6a6a 100%);
  174. background: -moz-linear-gradient(top,#919191 0,#6a6a6a 100%);
  175. background: -o-linear-gradient(top,#919191 0,#6a6a6a 100%);
  176. background: linear-gradient(to bottom,#919191 0,#6a6a6a 100%);
  177. background-repeat: repeat-x;
  178. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#919191,endColorstr=#6a6a6a,GradientType=0);
  179. }
  180. .l-btn-disabled .l-btn-text,
  181. .l-btn-disabled .l-btn-icon {
  182. filter: alpha(opacity=50);
  183. }
  184. .l-btn-plain-disabled,
  185. .l-btn-plain-disabled:hover {
  186. background: transparent;
  187. filter: alpha(opacity=50);
  188. }
  189. .l-btn-selected,
  190. .l-btn-selected:hover {
  191. background: #000;
  192. filter: none;
  193. }
  194. .l-btn-plain-selected,
  195. .l-btn-plain-selected:hover {
  196. background: #000;
  197. }