linkbutton.css 4.3 KB

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