bootstrap.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. .btn-group-lg > .btn {
  2. padding: 10px 16px;
  3. font-size: 18px;
  4. line-height: 1.3333333;
  5. border-radius: 6px;
  6. }
  7. .btn-sm,
  8. .btn-group-sm > .btn {
  9. padding: 5px 10px;
  10. font-size: 12px;
  11. line-height: 1.5;
  12. border-radius: 3px;
  13. }
  14. .btn-xs,
  15. .btn-group-xs > .btn {
  16. padding: 1px 5px;
  17. font-size: 12px;
  18. line-height: 1.5;
  19. border-radius: 3px;
  20. }
  21. .btn-group,
  22. .btn-group-vertical {
  23. position: relative;
  24. display: inline-block;
  25. vertical-align: top;
  26. }
  27. .btn-group > .btn,
  28. .btn-group-vertical > .btn {
  29. position: relative;
  30. float: left;
  31. }
  32. .btn-group > .btn:hover,
  33. .btn-group-vertical > .btn:hover,
  34. .btn-group > .btn:focus,
  35. .btn-group-vertical > .btn:focus,
  36. .btn-group > .btn:active,
  37. .btn-group-vertical > .btn:active,
  38. .btn-group > .btn.active,
  39. .btn-group-vertical > .btn.active {
  40. z-index: 2;
  41. }
  42. .btn-group .btn + .btn,
  43. .btn-group .btn + .btn-group,
  44. .btn-group .btn-group + .btn,
  45. .btn-group .btn-group + .btn-group {
  46. margin-left: -1px;
  47. }
  48. .btn-toolbar {
  49. margin-left: -5px;
  50. }
  51. .btn-toolbar .btn,
  52. .btn-toolbar .btn-group,
  53. .btn-toolbar .input-group {
  54. float: left;
  55. }
  56. .btn-toolbar > .btn,
  57. .btn-toolbar > .btn-group,
  58. .btn-toolbar > .input-group {
  59. margin-left: 5px;
  60. }
  61. .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
  62. border-radius: 0;
  63. }
  64. .btn-group > .btn:first-child {
  65. margin-left: 0;
  66. }
  67. .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
  68. border-top-right-radius: 0;
  69. border-bottom-right-radius: 0;
  70. }
  71. .btn-group > .btn:last-child:not(:first-child),
  72. .btn-group > .dropdown-toggle:not(:first-child) {
  73. border-top-left-radius: 0;
  74. border-bottom-left-radius: 0;
  75. }
  76. .btn-group > .btn-group {
  77. float: left;
  78. }
  79. .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
  80. border-radius: 0;
  81. }
  82. .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
  83. .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  84. border-top-right-radius: 0;
  85. border-bottom-right-radius: 0;
  86. }
  87. .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
  88. border-top-left-radius: 0;
  89. border-bottom-left-radius: 0;
  90. }
  91. .btn-group .dropdown-toggle:active,
  92. .btn-group.open .dropdown-toggle {
  93. outline: 0;
  94. }
  95. .btn-group > .btn + .dropdown-toggle {
  96. padding-right: 8px;
  97. padding-left: 8px;
  98. }
  99. .btn-group > .btn-lg + .dropdown-toggle {
  100. padding-right: 12px;
  101. padding-left: 12px;
  102. }
  103. .btn-group.open .dropdown-toggle {
  104. -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  105. box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  106. }
  107. .btn-group.open .dropdown-toggle.btn-link {
  108. -webkit-box-shadow: none;
  109. box-shadow: none;
  110. }
  111. .btn .caret {
  112. margin-left: 0;
  113. }
  114. .btn-lg .caret {
  115. border-width: 5px 5px 0;
  116. border-bottom-width: 0;
  117. }
  118. .dropup .btn-lg .caret {
  119. border-width: 0 5px 5px;
  120. }
  121. .btn-group-vertical > .btn,
  122. .btn-group-vertical > .btn-group,
  123. .btn-group-vertical > .btn-group > .btn {
  124. display: block;
  125. float: none;
  126. width: 100%;
  127. max-width: 100%;
  128. }
  129. .btn-group-vertical > .btn-group > .btn {
  130. float: none;
  131. }
  132. .btn-group-vertical > .btn + .btn,
  133. .btn-group-vertical > .btn + .btn-group,
  134. .btn-group-vertical > .btn-group + .btn,
  135. .btn-group-vertical > .btn-group + .btn-group {
  136. margin-top: -1px;
  137. margin-left: 0;
  138. }
  139. .btn-group-vertical > .btn:not(:first-child):not(:last-child) {
  140. border-radius: 0;
  141. }
  142. .btn-group-vertical > .btn:first-child:not(:last-child) {
  143. border-top-left-radius: 4px;
  144. border-top-right-radius: 4px;
  145. border-bottom-right-radius: 0;
  146. border-bottom-left-radius: 0;
  147. }
  148. .btn-group-vertical > .btn:last-child:not(:first-child) {
  149. border-top-left-radius: 0;
  150. border-top-right-radius: 0;
  151. border-bottom-right-radius: 4px;
  152. border-bottom-left-radius: 4px;
  153. }
  154. .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
  155. border-radius: 0;
  156. }
  157. .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
  158. .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  159. border-bottom-right-radius: 0;
  160. border-bottom-left-radius: 0;
  161. }
  162. .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
  163. border-top-left-radius: 0;
  164. border-top-right-radius: 0;
  165. }
  166. .btn-group-justified {
  167. display: table;
  168. width: 100%;
  169. table-layout: fixed;
  170. border-collapse: separate;
  171. }
  172. .btn-group-justified > .btn,
  173. .btn-group-justified > .btn-group {
  174. display: table-cell;
  175. float: none;
  176. width: 1%;
  177. }
  178. .btn-group-justified > .btn-group .btn {
  179. width: 100%;
  180. }
  181. .btn-group-justified > .btn-group .dropdown-menu {
  182. left: auto;
  183. }
  184. [data-toggle="buttons"] > .btn input[type="radio"],
  185. [data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
  186. [data-toggle="buttons"] > .btn input[type="checkbox"],
  187. [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
  188. position: absolute;
  189. clip: rect(0, 0, 0, 0);
  190. pointer-events: none;
  191. }
  192. .input-group-btn:first-child > .btn-group > .btn,
  193. .input-group-btn:first-child > .dropdown-toggle,
  194. .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
  195. .input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
  196. border-top-right-radius: 0;
  197. border-bottom-right-radius: 0;
  198. }
  199. .input-group-addon:first-child {
  200. border-right: 0;
  201. }
  202. .input-group .form-control:last-child,
  203. .input-group-addon:last-child,
  204. .input-group-btn:last-child > .btn,
  205. .input-group-btn:last-child > .btn-group > .btn,
  206. .input-group-btn:last-child > .dropdown-toggle,
  207. .input-group-btn:first-child > .btn:not(:first-child),
  208. .input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
  209. border-top-left-radius: 0;
  210. border-bottom-left-radius: 0;
  211. }
  212. .input-group-btn:first-child > .btn,
  213. .input-group-btn:first-child > .btn-group {
  214. margin-right: -1px;
  215. }
  216. .input-group-btn:last-child > .btn,
  217. .input-group-btn:last-child > .btn-group {
  218. z-index: 2;
  219. margin-left: -1px;
  220. }
  221. .open > .dropdown-toggle.btn-default {
  222. color: #333;
  223. background-color: #e6e6e6;
  224. border-color: #adadad;
  225. }
  226. .btn-default:active:hover,
  227. .btn-default.active:hover,
  228. .open > .dropdown-toggle.btn-default:hover,
  229. .btn-default:active:focus,
  230. .btn-default.active:focus,
  231. .open > .dropdown-toggle.btn-default:focus,
  232. .btn-default:active.focus,
  233. .btn-default.active.focus,
  234. .open > .dropdown-toggle.btn-default.focus {
  235. color: #333;
  236. background-color: #d4d4d4;
  237. border-color: #8c8c8c;
  238. }
  239. .btn-default:active,
  240. .btn-default.active,
  241. .open > .dropdown-toggle.btn-default {
  242. background-image: none;
  243. }
  244. .open > .dropdown-toggle.btn-primary {
  245. color: #fff;
  246. background-color: #286090;
  247. border-color: #204d74;
  248. }
  249. .btn-primary:active:hover,
  250. .btn-primary.active:hover,
  251. .open > .dropdown-toggle.btn-primary:hover,
  252. .btn-primary:active:focus,
  253. .btn-primary.active:focus,
  254. .open > .dropdown-toggle.btn-primary:focus,
  255. .btn-primary:active.focus,
  256. .btn-primary.active.focus,
  257. .open > .dropdown-toggle.btn-primary.focus {
  258. color: #fff;
  259. background-color: #204d74;
  260. border-color: #122b40;
  261. }
  262. .btn-primary:active,
  263. .btn-primary.active,
  264. .open > .dropdown-toggle.btn-primary {
  265. background-image: none;
  266. }
  267. .open > .dropdown-toggle.btn-success {
  268. color: #fff;
  269. background-color: #449d44;
  270. border-color: #398439;
  271. }
  272. .btn-success:active:hover,
  273. .btn-success.active:hover,
  274. .open > .dropdown-toggle.btn-success:hover,
  275. .btn-success:active:focus,
  276. .btn-success.active:focus,
  277. .open > .dropdown-toggle.btn-success:focus,
  278. .btn-success:active.focus,
  279. .btn-success.active.focus,
  280. .open > .dropdown-toggle.btn-success.focus {
  281. color: #fff;
  282. background-color: #398439;
  283. border-color: #255625;
  284. }
  285. .btn-success:active,
  286. .btn-success.active,
  287. .open > .dropdown-toggle.btn-success {
  288. background-image: none;
  289. }
  290. .open > .dropdown-toggle.btn-info {
  291. color: #fff;
  292. background-color: #31b0d5;
  293. border-color: #269abc;
  294. }
  295. .btn-info:active:hover,
  296. .btn-info.active:hover,
  297. .open > .dropdown-toggle.btn-info:hover,
  298. .btn-info:active:focus,
  299. .btn-info.active:focus,
  300. .open > .dropdown-toggle.btn-info:focus,
  301. .btn-info:active.focus,
  302. .btn-info.active.focus,
  303. .open > .dropdown-toggle.btn-info.focus {
  304. color: #fff;
  305. background-color: #269abc;
  306. border-color: #1b6d85;
  307. }
  308. .btn-info:active,
  309. .btn-info.active,
  310. .open > .dropdown-toggle.btn-info {
  311. background-image: none;
  312. }
  313. .open > .dropdown-toggle.btn-warning {
  314. color: #fff;
  315. background-color: #ec971f;
  316. border-color: #d58512;
  317. }
  318. .btn-warning:active:hover,
  319. .btn-warning.active:hover,
  320. .open > .dropdown-toggle.btn-warning:hover,
  321. .btn-warning:active:focus,
  322. .btn-warning.active:focus,
  323. .open > .dropdown-toggle.btn-warning:focus,
  324. .btn-warning:active.focus,
  325. .btn-warning.active.focus,
  326. .open > .dropdown-toggle.btn-warning.focus {
  327. color: #fff;
  328. background-color: #d58512;
  329. border-color: #985f0d;
  330. }
  331. .btn-warning:active,
  332. .btn-warning.active,
  333. .open > .dropdown-toggle.btn-warning {
  334. background-image: none;
  335. }
  336. .open > .dropdown-toggle.btn-danger {
  337. color: #fff;
  338. background-color: #c9302c;
  339. border-color: #ac2925;
  340. }
  341. .btn-danger:active:hover,
  342. .btn-danger.active:hover,
  343. .open > .dropdown-toggle.btn-danger:hover,
  344. .btn-danger:active:focus,
  345. .btn-danger.active:focus,
  346. .open > .dropdown-toggle.btn-danger:focus,
  347. .btn-danger:active.focus,
  348. .btn-danger.active.focus,
  349. .open > .dropdown-toggle.btn-danger.focus {
  350. color: #fff;
  351. background-color: #ac2925;
  352. border-color: #761c19;
  353. }
  354. .btn-danger:active,
  355. .btn-danger.active,
  356. .open > .dropdown-toggle.btn-danger {
  357. background-image: none;
  358. }
  359. .dropdown-toggle:focus {
  360. outline: 0;
  361. }
  362. .caret {
  363. display: inline-block;
  364. width: 0;
  365. height: 0;
  366. margin-left: 2px;
  367. vertical-align: middle;
  368. border-top: 4px dashed;
  369. border-top: 4px solid \9;
  370. border-right: 4px solid transparent;
  371. border-left: 4px solid transparent;
  372. }
  373. .dropdown-menu {
  374. position: absolute;
  375. top: 100%;
  376. left: 0;
  377. z-index: 1000;
  378. display: none;
  379. float: left;
  380. min-width: 160px;
  381. padding: 5px 0;
  382. margin: 2px 0 0;
  383. font-size: 14px;
  384. text-align: left;
  385. list-style: none;
  386. background-color: #fff;
  387. -webkit-background-clip: padding-box;
  388. background-clip: padding-box;
  389. border: 1px solid #ccc;
  390. border: 1px solid rgba(0, 0, 0, .15);
  391. border-radius: 4px;
  392. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  393. box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  394. }
  395. .dropdown-menu.pull-right {
  396. right: 0;
  397. left: auto;
  398. }
  399. .dropdown-menu .divider {
  400. height: 1px;
  401. margin: 9px 0;
  402. overflow: hidden;
  403. background-color: #e5e5e5;
  404. }
  405. .dropdown-menu > li > a {
  406. display: block;
  407. padding: 3px 20px;
  408. clear: both;
  409. font-weight: normal;
  410. line-height: 1.42857143;
  411. color: #333;
  412. white-space: nowrap;
  413. }
  414. .dropdown-menu > li > a:hover,
  415. .dropdown-menu > li > a:focus {
  416. color: #262626;
  417. text-decoration: none;
  418. background-color: #eaedf1;
  419. }
  420. .dropdown-menu > .active > a,
  421. .dropdown-menu > .active > a:hover,
  422. .dropdown-menu > .active > a:focus {
  423. color: #fff;
  424. text-decoration: none;
  425. background-color: #337ab7;
  426. outline: 0;
  427. }
  428. .dropdown-menu > .disabled > a,
  429. .dropdown-menu > .disabled > a:hover,
  430. .dropdown-menu > .disabled > a:focus {
  431. color: #777;
  432. }
  433. .dropdown-menu > .disabled > a:hover,
  434. .dropdown-menu > .disabled > a:focus {
  435. text-decoration: none;
  436. cursor: not-allowed;
  437. background-color: transparent;
  438. background-image: none;
  439. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  440. }
  441. .open > .dropdown-menu {
  442. display: block;
  443. }
  444. .open > a {
  445. outline: 0;
  446. }
  447. .dropdown-menu-right {
  448. right: 0;
  449. left: auto;
  450. }
  451. .dropdown-menu-left {
  452. right: auto;
  453. left: 0;
  454. }
  455. .dropdown-header {
  456. display: block;
  457. padding: 3px 20px;
  458. font-size: 12px;
  459. line-height: 1.42857143;
  460. color: #777;
  461. white-space: nowrap;
  462. }
  463. .dropdown-backdrop {
  464. position: fixed;
  465. top: 0;
  466. right: 0;
  467. bottom: 0;
  468. left: 0;
  469. z-index: 990;
  470. }
  471. .pull-right > .dropdown-menu {
  472. right: 0;
  473. left: auto;
  474. }
  475. .dropup .caret,
  476. .navbar-fixed-bottom .dropdown .caret {
  477. content: "";
  478. border-top: 0;
  479. border-bottom: 4px dashed;
  480. border-bottom: 4px solid \9;
  481. }
  482. .dropup .dropdown-menu,
  483. .navbar-fixed-bottom .dropdown .dropdown-menu {
  484. top: auto;
  485. bottom: 100%;
  486. margin-bottom: 2px;
  487. }
  488. @media (min-width: 768px) {
  489. .navbar-right .dropdown-menu {
  490. right: 0;
  491. left: auto;
  492. }
  493. .navbar-right .dropdown-menu-left {
  494. right: auto;
  495. left: 0;
  496. }
  497. }
  498. .colorfff{ color: #fff;}