buttons.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. /* Buttons */
  2. .fc-button,
  3. .btn {
  4. font-size: 14px;
  5. font-weight: normal;
  6. position: relative;
  7. display: inline-block;
  8. padding: 0 12px;
  9. cursor: pointer;
  10. -webkit-user-select: none;
  11. -moz-user-select: none;
  12. -ms-user-select: none;
  13. user-select: none;
  14. text-align: center;
  15. white-space: nowrap;
  16. border-width: 1px;
  17. border-style: solid;
  18. border-color: transparent;
  19. background-image: none;
  20. -o-user-select: none;
  21. }
  22. .fc-button,
  23. .btn,
  24. .size-md {
  25. line-height: 32px;
  26. height: 34px;
  27. min-width: 34px;
  28. }
  29. .btn-abs {
  30. position: absolute;
  31. top: 50%;
  32. right: 0;
  33. margin-top: -17px;
  34. }
  35. /* Rounded Buttons */
  36. .btn.hover-round:hover {
  37. border-radius: 100px;
  38. }
  39. .ui-datepicker .ui-datepicker-prev:active,
  40. .ui-datepicker .ui-datepicker-next:active,
  41. .ui-datepicker .ui-datepicker-buttonpane button:active,
  42. .ui-dialog .ui-dialog-titlebar-close:active,
  43. .ui-dialog-buttonset button:active,
  44. .fc-state-down,
  45. .fc-state-active,
  46. .btn:active,
  47. .btn.active {
  48. outline: 0;
  49. background-image: none;
  50. -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  51. box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  52. }
  53. .fc-state-disabled,
  54. .disabled,
  55. .btn.disabled,
  56. .btn[disabled],
  57. fieldset[disabled] .btn {
  58. cursor: not-allowed;
  59. pointer-events: none;
  60. opacity: .65;
  61. -webkit-box-shadow: none;
  62. box-shadow: none;
  63. filter: alpha(opacity=65);
  64. }
  65. .btn-link {
  66. cursor: pointer;
  67. border-radius: 0;
  68. }
  69. .btn-link,
  70. .btn-link:active,
  71. .btn-link[disabled] {
  72. background-color: transparent;
  73. -webkit-box-shadow: none;
  74. box-shadow: none;
  75. }
  76. .btn-link,
  77. .btn-link:hover,
  78. .btn-link:focus,
  79. .btn-link:active {} .btn-link:hover,
  80. .btn-link:focus {
  81. text-decoration: underline;
  82. background-color: transparent;
  83. }
  84. .size-lg,
  85. .btn-lg,
  86. .btn-group-lg > .btn {
  87. line-height: 44px;
  88. min-width: 56px;
  89. height: 46px;
  90. }
  91. .btn-lg-abs {
  92. margin-top: -23px;
  93. }
  94. .btn-lg,
  95. .btn-group-lg > .btn {
  96. font-size: 18px;
  97. padding: 0 16px;
  98. }
  99. .size-sm,
  100. .btn-sm,
  101. .btn-group-sm > .btn {
  102. line-height: 28px;
  103. height: 30px;
  104. }
  105. .btn-sm-abs {
  106. margin-top: -15px;
  107. }
  108. .btn-sm,
  109. .btn-group-sm > .btn {
  110. font-size: 13px;
  111. padding: 0 10px;
  112. }
  113. .size-xs,
  114. .btn-xs,
  115. .btn-group-xs > .btn {
  116. line-height: 20px;
  117. min-width: 22px;
  118. height: 22px;
  119. }
  120. .btn-xs-abs {
  121. margin-top: -11px;
  122. }
  123. .btn-xs,
  124. .btn-group-xs > .btn {
  125. font-size: 11px;
  126. padding: 0 5px;
  127. }
  128. .btn .caret {
  129. margin-left: 0;
  130. }
  131. .btn-lg .caret {
  132. border-width: 5px 5px 0;
  133. border-bottom-width: 0;
  134. }
  135. .dropup .btn-lg .caret {
  136. border-width: 0 5px 5px;
  137. }
  138. .btn-block {
  139. display: block;
  140. width: 100%;
  141. padding-right: 0;
  142. padding-left: 0;
  143. }
  144. .btn-block + .btn-block {
  145. margin-top: 5px;
  146. }
  147. input[type='submit'].btn-block,
  148. input[type='reset'].btn-block,
  149. input[type='button'].btn-block {
  150. width: 100%;
  151. }
  152. .btn-group,
  153. .btn-group-vertical {
  154. position: relative;
  155. display: inline-block;
  156. vertical-align: middle;
  157. }
  158. .btn-group > .btn,
  159. .btn-group-vertical > .btn {
  160. position: relative;
  161. float: left;
  162. }
  163. .btn-group > .btn:hover,
  164. .btn-group-vertical > .btn:hover,
  165. .btn-group > .btn:focus,
  166. .btn-group-vertical > .btn:focus,
  167. .btn-group > .btn:active,
  168. .btn-group-vertical > .btn:active,
  169. .btn-group > .btn.active,
  170. .btn-group-vertical > .btn.active {
  171. z-index: 2;
  172. }
  173. .btn-group > .btn:focus,
  174. .btn-group-vertical > .btn:focus {
  175. outline: none;
  176. }
  177. .btn-group .btn + .btn,
  178. .btn-group .btn + .btn-group,
  179. .btn-group .btn-group + .btn,
  180. .btn-group .btn-group + .btn-group {
  181. margin-left: -1px;
  182. }
  183. .btn-toolbar {
  184. margin-left: -5px;
  185. }
  186. .btn-toolbar .btn-group,
  187. .btn-toolbar .input-group {
  188. float: left;
  189. }
  190. .btn-toolbar > .btn,
  191. .btn-toolbar > .btn-group,
  192. .btn-toolbar > .input-group {
  193. margin-left: 10px;
  194. }
  195. .btn-group > .btn:first-child {
  196. margin-left: 0;
  197. }
  198. .btn-group > .btn-group {
  199. float: left;
  200. }
  201. .btn-group > .btn + .dropdown-toggle {
  202. padding-right: 8px;
  203. padding-left: 8px;
  204. }
  205. .btn-group > .btn-lg + .dropdown-toggle {
  206. padding-right: 12px;
  207. padding-left: 12px;
  208. }
  209. .btn-group.open .dropdown-toggle {
  210. -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  211. box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  212. }
  213. .btn-group.open .dropdown-toggle.btn-link {
  214. -webkit-box-shadow: none;
  215. box-shadow: none;
  216. }
  217. .btn-group-vertical > .btn,
  218. .btn-group-vertical > .btn-group,
  219. .btn-group-vertical > .btn-group > .btn {
  220. display: block;
  221. float: none;
  222. width: 100%;
  223. max-width: 100%;
  224. }
  225. .btn-group-vertical > .btn-group > .btn {
  226. float: none;
  227. }
  228. .btn-group-vertical > .btn + .btn,
  229. .btn-group-vertical > .btn + .btn-group,
  230. .btn-group-vertical > .btn-group + .btn,
  231. .btn-group-vertical > .btn-group + .btn-group {
  232. margin-top: -1px;
  233. margin-left: 0;
  234. }
  235. .btn-group-justified {
  236. display: table;
  237. width: 100%;
  238. table-layout: fixed;
  239. border-collapse: separate;
  240. }
  241. .btn-group-justified > .btn,
  242. .btn-group-justified > .btn-group {
  243. display: table-cell;
  244. float: none;
  245. }
  246. .btn-group-justified > .btn-group .btn {
  247. width: 100%;
  248. }
  249. .btn-group-vertical > .btn:not(:first-child):not(:last-child) {
  250. border-radius: 0;
  251. }
  252. .btn-group-vertical > .btn:first-child:not(:last-child) {
  253. border-top-right-radius: 3px;
  254. border-bottom-right-radius: 0;
  255. border-bottom-left-radius: 0;
  256. }
  257. .btn-group-vertical > .btn:last-child:not(:first-child) {
  258. border-top-left-radius: 0;
  259. border-top-right-radius: 0;
  260. border-bottom-left-radius: 3px;
  261. }
  262. .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn,
  263. .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle),
  264. .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
  265. border-radius: 0;
  266. }
  267. .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
  268. .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  269. border-bottom-right-radius: 0;
  270. border-bottom-left-radius: 0;
  271. }
  272. .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
  273. border-top-left-radius: 0;
  274. border-top-right-radius: 0;
  275. }
  276. .btn-group > .btn-group:first-child > .btn:last-child,
  277. .btn-group > .btn-group:first-child > .dropdown-toggle,
  278. .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
  279. border-top-right-radius: 0;
  280. border-bottom-right-radius: 0;
  281. }
  282. .btn-group > .btn-group:last-child > .btn:first-child,
  283. .btn-group > .btn:last-child:not(:first-child),
  284. .btn-group > .dropdown-toggle:not(:first-child) {
  285. border-top-left-radius: 0;
  286. border-bottom-left-radius: 0;
  287. }
  288. /* Pagination */
  289. .pagination {
  290. /*display:inline-block;*/
  291. padding-left: 0;
  292. }
  293. .pagination > li {
  294. display: inline;
  295. }
  296. .pagination > li > a,
  297. .pagination > li > span {
  298. line-height: 1.42857143;
  299. position: relative;
  300. float: left;
  301. margin-left: -1px;
  302. padding: 6px 12px;
  303. text-decoration: none;
  304. border-width: 1px;
  305. border-style: solid;
  306. }
  307. .pagination > .active > a,
  308. .pagination > .active > span,
  309. .pagination > .active > a:hover,
  310. .pagination > .active > span:hover,
  311. .pagination > .active > a:focus,
  312. .pagination > .active > span:focus {
  313. z-index: 2;
  314. }
  315. .pagination > li:first-child > a,
  316. .pagination > li:first-child > span {
  317. margin-left: 0;
  318. }
  319. .pagination-lg > li > a,
  320. .pagination-lg > li > span {
  321. font-size: 18px;
  322. padding: 10px 16px;
  323. }
  324. .pagination-sm > li > a,
  325. .pagination-sm > li > span {
  326. font-size: 12px;
  327. padding: 5px 10px;
  328. }
  329. .pager {
  330. margin-top: 0;
  331. padding-left: 0;
  332. list-style: none;
  333. text-align: center;
  334. }
  335. .pager li {
  336. display: inline;
  337. }
  338. .pager li > a,
  339. .pager li > span {
  340. display: inline-block;
  341. padding: 5px 14px;
  342. border: 1px solid #ddd;
  343. border-radius: 15px;
  344. background-color: #fff;
  345. }
  346. .pager li > a:hover,
  347. .pager li > a:focus {
  348. text-decoration: none;
  349. background-color: #eee;
  350. }
  351. .pager .next > a,
  352. .pager .next > span {
  353. float: right;
  354. }
  355. .pager .previous > a,
  356. .pager .previous > span {
  357. float: left;
  358. }
  359. .pagination > .disabled > span,
  360. .pagination > .disabled > span:hover,
  361. .pagination > .disabled > span:focus,
  362. .pagination > .disabled > a,
  363. .pagination > .disabled > a:hover,
  364. .pagination > .disabled > a:focus,
  365. .pager .disabled > a,
  366. .pager .disabled > a:hover,
  367. .pager .disabled > a:focus,
  368. .pager .disabled > span {
  369. cursor: not-allowed;
  370. color: #999;
  371. background-color: #fff;
  372. }
  373. /* Icon separator */
  374. .btn > .icon-separator {
  375. position: absolute;
  376. top: 0;
  377. left: 0;
  378. width: 32px;
  379. height: 100%;
  380. border-top-right-radius: 0 !important;
  381. border-bottom-right-radius: 0 !important;
  382. border-bottom-left-radius: 0 !important;
  383. }
  384. .icon-separator + .button-content {
  385. margin-left: 32px;
  386. }
  387. .btn-xs .icon-separator {
  388. width: 22px;
  389. }
  390. .btn-xs .icon-separator + .button-content {
  391. margin-left: 22px;
  392. }
  393. .btn-sm .icon-separator {
  394. width: 25px;
  395. }
  396. .btn-sm .icon-separator + .button-content {
  397. margin-left: 25px;
  398. }
  399. .btn-lg .icon-separator {
  400. width: 44px;
  401. }
  402. .btn-lg .icon-separator + .button-content {
  403. margin-left: 44px;
  404. }
  405. .icon-separator.float-right {
  406. border-top-left-radius: 0 !important;
  407. border-bottom-right-radius: 0 !important;
  408. border-bottom-left-radius: 0 !important;
  409. }
  410. /* Vertical button */
  411. .vertical-button {
  412. line-height: 1.6em;
  413. height: auto;
  414. padding: 10px 0 5px;
  415. }
  416. .vertical-button .button-content {
  417. opacity: .7;
  418. filter: alpha(opacity=70);
  419. }
  420. .icon-separator-vertical {
  421. font-size: 25px;
  422. display: block;
  423. margin: 5px auto;
  424. }
  425. .dashboard-buttons .btn {
  426. width: 93px;
  427. margin: 5px 3px;
  428. }
  429. /* Outline buttons inverse */
  430. .btn-outline,
  431. .btn-outline-inverse {
  432. display: inline-block;
  433. text-align: center;
  434. color: #fff;
  435. box-sizing: initial;
  436. border-width: 2px;
  437. border-style: solid;
  438. text-transform: uppercase;
  439. }
  440. .btn-outline-inverse {
  441. border-color: rgba(255, 255, 255, 0.47);
  442. }
  443. .btn-outline-inverse:hover {
  444. background: rgba(255,255,255,0.2);
  445. border-color: #fff;
  446. }
  447. .btn-outline-inverse.hero-btn {
  448. color: #fff;
  449. }
  450. /* Outline buttons */
  451. .btn-outline {
  452. color: rgba(0, 0, 0, .8);
  453. border-color: rgba(0, 0, 0, .6);
  454. }
  455. .btn-outline:hover {
  456. color: #fff;
  457. border-color: rgba(0, 0, 0, .8);
  458. background: rgba(0, 0, 0, .8);
  459. }
  460. /* Rounded buttons */
  461. .btn.btn-round {
  462. border-radius: 150px;
  463. padding: 0;
  464. }
  465. .btn-round.btn-lg {
  466. width: 46px;
  467. min-width: 46px;
  468. }
  469. .btn-round.btn-xlg {
  470. width: 66px;
  471. min-width: 66px;
  472. height: 66px;
  473. line-height: 66px;
  474. }
  475. .btn-round.btn-xlg .glyph-icon {
  476. font-size: 24px;
  477. }
  478. .btn-round.btn-md {
  479. width: 34px;
  480. }
  481. .btn-round.btn-sm {
  482. width: 30px;
  483. }
  484. .btn-round.btn-xs {
  485. width: 22px;
  486. }
  487. /* Alternate style */
  488. .btn-alt {
  489. font-weight: bold;
  490. text-transform: uppercase;
  491. font-size: 12px;
  492. }
  493. /* Animated icon hover */
  494. .btn-hover span {
  495. padding: 0 20px;
  496. left: 0;
  497. position: relative;
  498. transition: opacity 0.2s ease-out, left 0.2s ease-out;
  499. -webkit-transition: opacity 0.2s ease-out, left 0.2s ease-out;
  500. }
  501. .btn-hover .glyph-icon {
  502. opacity: 0;
  503. -ms-filter: "alpha(opacity=0)";
  504. position: absolute;
  505. right: 20px;
  506. transition: all 0.2s ease-out;
  507. -webkit-transition: all 0.2s ease-out;
  508. }
  509. .btn-hover:hover .glyph-icon {
  510. opacity: 1;
  511. right: 15px;
  512. -ms-filter: "alpha(opacity=100)";
  513. }
  514. .btn-hover:hover span {
  515. left: -15px;
  516. }
  517. /* Bordered buttons */
  518. .btn-border {
  519. border-width: 2px;
  520. border-style: solid;
  521. }
  522. .btn-border span {
  523. opacity: .75;
  524. filter: alpha(opacity=75);
  525. }
  526. .btn-border:hover {
  527. text-decoration: none;
  528. }
  529. .btn-border:hover span {
  530. opacity: 1;
  531. filter: alpha(opacity=100);
  532. }
  533. .btn-group-justified > .btn, .btn-group-justified > .btn-group
  534. { width:auto; }
  535. .demo-margin .btn { margin-bottom:10px; }