layout2.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. /* Essentials */
  2. html, body {
  3. height: 100%;
  4. margin: 0;
  5. padding: 0;
  6. font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
  7. background: #F8F8F8;
  8. font-size: 12px;
  9. }
  10. h1, h2, h3, h4, h5, h6 {
  11. line-height: 16px;
  12. }
  13. label, input, button, select, textarea {
  14. font-size: 12px;
  15. font-weight: normal;
  16. line-height: 20px;
  17. }
  18. select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
  19. font-size: 12px;
  20. height: 16px;
  21. line-height: 16px;
  22. }
  23. textarea {
  24. height: auto;
  25. }
  26. select {
  27. height: 26px;
  28. }
  29. a:link, a:visited {
  30. color: #77BACE;
  31. text-decoration: none;
  32. }
  33. a:hover {
  34. text-decoration: underline;
  35. }
  36. fieldset {
  37. -webkit-border-radius: 5px;
  38. -moz-border-radius: 5px;
  39. border-radius: 5px;
  40. background: #F6F6F6;
  41. border: 1px solid #ccc;
  42. padding: 1% 0%;
  43. margin: 10px 0;
  44. }
  45. fieldset label {
  46. display: block;
  47. float: left;
  48. width: 200px;
  49. height: 25px;
  50. line-height: 25px;
  51. text-shadow: 0 1px 0 #fff;
  52. font-weight: bold;
  53. padding-left: 10px;
  54. margin: -5px 0 5px 0;
  55. text-transform: uppercase;
  56. font-size: 12px;
  57. }
  58. fieldset input[type=text] {
  59. -webkit-border-radius: 5px;
  60. -moz-border-radius: 5px;
  61. border-radius: 5px;
  62. border: 1px solid #BBBBBB;
  63. height: 20px;
  64. color: #666666;
  65. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  66. -moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  67. box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  68. padding-left: 10px;
  69. background-position: 10px 6px;
  70. margin: 0;
  71. display: block;
  72. float: left;
  73. width: 96%;
  74. margin: 0 10px;
  75. }
  76. fieldset input[type=text]:focus {
  77. outline: none;
  78. border: 1px solid #77BACE;
  79. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  80. -moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  81. box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  82. }
  83. fieldset select {
  84. width: 96%;
  85. margin: 0 10px;
  86. border: 1px solid #bbb;
  87. height: 20px;
  88. color: #666666;
  89. }
  90. fieldset textarea {
  91. -webkit-border-radius: 5px;
  92. -moz-border-radius: 5px;
  93. border-radius: 5px;
  94. border: 1px solid #BBBBBB;
  95. color: #666666;
  96. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  97. -moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  98. box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  99. padding-left: 10px;
  100. background-position: 10px 6px;
  101. margin: 0 0.5%;
  102. display: block;
  103. float: left;
  104. width: 96%;
  105. margin: 0 10px;
  106. }
  107. fieldset textarea:focus {
  108. outline: none;
  109. border: 1px solid #77BACE;
  110. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  111. -moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  112. box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  113. }
  114. .m-clear {
  115. clear: both;
  116. }
  117. .m-spacer {
  118. height: 20px;
  119. }
  120. /* Header */
  121. header#m-header {
  122. margin-bottom: 0px;
  123. }
  124. header#m-header .navbar-inner {
  125. border-radius: 0px;
  126. }
  127. header#m-header h1.m-site-title {
  128. float: left;
  129. margin: 0;
  130. font-size: 22px;
  131. display: block;
  132. width: 15%;
  133. height: 55px;
  134. font-weight: normal;
  135. text-align: left;
  136. text-indent: 1.8%;
  137. line-height: 55px;
  138. color: #fff;
  139. text-shadow: 0 -1px 0 #000;
  140. }
  141. header#m-header h1.m-site-title a {
  142. color: #fff;
  143. text-decoration: none;
  144. }
  145. /* Secondary Header Bar */
  146. section#m-secondary-bar {
  147. height: 38px;
  148. width: 100%;
  149. background: #F1F1F4 url(../img/secondary_bar.png) repeat-x;
  150. }
  151. section#m-secondary-bar .m-user {
  152. float: left;
  153. width: 15%;
  154. height: 38px;
  155. }
  156. .m-user .m-user-info {
  157. margin: 0;
  158. padding: 0;
  159. color: #666666;
  160. font-weight: bold;
  161. display: inline-block;
  162. width: 85%;
  163. height: 35px;
  164. line-height: 35px;
  165. text-indent: 25px;
  166. text-shadow: 0 1px 0 #fff;
  167. background: url(../img/icn_user.png) no-repeat center left;
  168. margin-left: 6%;
  169. }
  170. .m-user .m-user-info i {
  171. text-indent: 0px;
  172. }
  173. .m-user a {
  174. text-decoration: none;
  175. color: #666666;
  176. }
  177. .m-user a:hover {
  178. color: #77BACE;
  179. }
  180. .m-user a.m-logout-user {
  181. float: left;
  182. display: block;
  183. width: 16px;
  184. height: 35px;
  185. text-indent: -5000px;
  186. background: url(../img/icn_logout.png) center no-repeat;
  187. }
  188. /* Breadcrumbs */
  189. section#m-secondary-bar .m-breadcrumbs-container {
  190. float: left;
  191. width: 85%;
  192. background: url(../img/secondary_bar_shadow.png) no-repeat left top;
  193. height: 38px;
  194. }
  195. article.m-breadcrumbs {
  196. float: left;
  197. padding: 0 10px;
  198. border: 1px solid #ccc;
  199. -webkit-border-radius: 5px;
  200. -moz-border-radius: 5px;
  201. border-radius: 5px;
  202. -webkit-box-shadow: 0 1px 0 #fff;
  203. -moz-box-shadow: 0 1px 0 #fff;
  204. box-shadow: 0 1px 0 #fff;
  205. height: 23px;
  206. margin: 4px 3%;
  207. }
  208. .m-breadcrumbs a {
  209. display: inline-block;
  210. float: left;
  211. height: 24px;
  212. line-height: 23px;
  213. }
  214. .m-breadcrumbs a.m-current, .m-breadcrumbs a.m-current:hover {
  215. color: #9E9E9E;
  216. font-weight: bold;
  217. text-shadow: 0 1px 0 #fff;
  218. text-decoration: none;
  219. }
  220. .m-breadcrumbs a:link, .m-breadcrumbs a:visited {
  221. color: #44474F;
  222. text-decoration: none;
  223. text-shadow: 0 1px 0 #fff;
  224. font-weight: bold;
  225. }
  226. .m-breadcrumbs a:hover {
  227. color: #222222;
  228. }
  229. .m-breadcrumb-divider {
  230. display: inline-block;
  231. width: 12px;
  232. height: 24px;
  233. background: url(../img/breadcrumb_divider.png) no-repeat;
  234. float: left;
  235. margin: 0 5px;
  236. }
  237. /* Sidebar */
  238. aside#m-sidebar {
  239. width: 15%;
  240. background: #E0E0E3 url(../img/sidebar.png) repeat;
  241. float: left;
  242. min-height: 500px;
  243. margin-top: -4px;
  244. }
  245. #m-sidebar hr {
  246. border: none;
  247. outline: none;
  248. background: url(../img/sidebar_divider.png) repeat-x;
  249. display: block;
  250. width: 100%;
  251. height: 2px;
  252. margin: 0px;
  253. }
  254. /* Sidebar Menu */
  255. #m-sidebar h3 {
  256. color: #1F1F20;
  257. text-transform: uppercase;
  258. text-shadow: 0 1px 0 #fff;
  259. font-size: 13px;
  260. margin: 10px 0 10px 6%;
  261. display: block;
  262. float: left;
  263. width: 90%;
  264. }
  265. .m-toggle-link {
  266. color: #999999;
  267. font-size: 10px;
  268. text-decoration: none;
  269. display: block;
  270. float: right;
  271. margin-right: 2%;
  272. cursor: pointer;
  273. }
  274. .m-toggle-link .m-toggle-link {
  275. background-position: -313px -119px;
  276. }
  277. .m-toggle-link.current .m-toggle-link {
  278. background-position: -288px -120px;
  279. }
  280. #sidebar .m-toggle-link:hover {
  281. color: #77BACE;
  282. text-decoration: none;
  283. }
  284. #m-sidebar ul {
  285. clear: both;
  286. margin: 0;
  287. padding: 0;
  288. }
  289. #m-sidebar li {
  290. list-style: none;
  291. margin: 0 0 0 12%;
  292. padding: 0;
  293. }
  294. #m-sidebar li a {
  295. color: #666666;
  296. padding-left: 25px;
  297. text-decoration: none;
  298. display: inline-block;
  299. height: 17px;
  300. line-height: 17px;
  301. text-shadow: 0 1px 0 #fff;
  302. margin: 2px 0;
  303. }
  304. #m-sidebar li a:hover {
  305. color: #444444;
  306. }
  307. #m-sidebar li.m-icn-add-user a {
  308. background: url(../img/icn_add_user.png) no-repeat center left;
  309. }
  310. #m-sidebar li.m-icn-view-users a {
  311. background: url(../img/icn_view_users.png) no-repeat center left;
  312. }
  313. #m-sidebar p {
  314. color: #666666;
  315. padding-left: 6%;
  316. text-shadow: 0 1px 0 #fff;
  317. margin: 10px 0 0 0;
  318. }
  319. #m-sidebar a {
  320. color: #666666;
  321. text-decoration: none;
  322. }
  323. #m-sidebar a:hover {
  324. text-decoration: underline;
  325. }
  326. #m-sidebar footer {
  327. margin-top: 20%;
  328. text-align: center;
  329. }
  330. /* Main Content */
  331. section#m-main {
  332. width: 85%;
  333. min-height: 500px;
  334. background: url(../img/sidebar_shadow.png) repeat-y left top;
  335. float: left;
  336. margin-top: -2px;
  337. }
  338. #m-main h3 {
  339. color: #1F1F20;
  340. text-transform: uppercase;
  341. text-shadow: 0 1px 0 #fff;
  342. font-size: 13px;
  343. margin: 8px 20px;
  344. }
  345. /* Modules */
  346. .m-module {
  347. border: 1px solid #9BA0AF;
  348. width: 100%;
  349. margin: 10px 3% 0 3%;
  350. -webkit-border-radius: 5px;
  351. -moz-border-radius: 5px;
  352. border-radius: 5px;
  353. background: #ffffff;
  354. }
  355. .m-module-blank {
  356. width: 100%;
  357. margin: 10px 3% 0 3%;
  358. }
  359. #m-main .m-module header h3 {
  360. display: block;
  361. width: 90%;
  362. float: left;
  363. }
  364. .m-module header {
  365. height: 38px;
  366. width: 100%;
  367. background: #F1F1F4 url(../img/secondary_bar.png) repeat-x;
  368. -webkit-border-top-left-radius: 5px;
  369. -webkit-border-top-right-radius: 5px;
  370. -moz-border-radius-topleft: 5px;
  371. -moz-border-radius-topright: 5px;
  372. border-top-left-radius: 5px;
  373. border-top-right-radius: 5px;
  374. }
  375. .m-module footer {
  376. height: 32px;
  377. width: 100%;
  378. border-top: 1px solid #9CA1B0;
  379. background: #F1F1F4 url(../img/module_footer_bg.png) repeat-x;
  380. -webkit-border-bottom-left-radius: 5px;
  381. -webkit-border-bottom-right-radius: 5px;
  382. -moz-border-radius-bottomleft: 5px;
  383. -moz-border-radius-bottomright: 5px;
  384. -webkit-border-bottom-left-radius: 5px;
  385. -webkit-border-bottom-right-radius: 5px;
  386. }
  387. .m-module-content {
  388. margin: 10px 20px;
  389. color: #666;
  390. }
  391. .m-module-content p {
  392. margin: 12px 0px 12px 0px;
  393. }
  394. /* Module Widths */
  395. .m-width-full {
  396. width: 95%;
  397. }
  398. .m-width-half {
  399. width: 46%;
  400. margin-right: 0;
  401. float: left;
  402. }
  403. .m-width-quarter {
  404. width: 26%;
  405. margin-right: 0;
  406. float: left;
  407. }
  408. .m-width-3-quarter {
  409. width: 66%;
  410. margin-right: 0;
  411. float: left;
  412. }
  413. .m-width-third {
  414. width: 29.6%;
  415. margin-right: 0;
  416. float: left;
  417. }
  418. /* Main Table */
  419. .m-table {
  420. width: 100%;
  421. margin: -5px 0 0 0;
  422. line-height: 16px;
  423. }
  424. .m-table td {
  425. margin: 0;
  426. padding: 0;
  427. border-bottom: 1px dotted #ccc;
  428. }
  429. .m-table thead tr {
  430. height: 20px;
  431. background: url(../img/table_sorter_header.png) repeat-x;
  432. text-align: left;
  433. text-indent: 10px;
  434. cursor: pointer;
  435. }
  436. .m-table td {
  437. padding: 4px 10px;
  438. }
  439. .m-table input[type=image] {
  440. margin-right: 10px;
  441. }
  442. .m-table input[type=checkbox] {
  443. margin: 3px 3px 3px 4px;
  444. }
  445. .m-table th.sorting {
  446. background: no-repeat url(../img/sorting.png);
  447. background-position: right -52px;
  448. cursor: pointer;
  449. }
  450. .m-table th.sorting-asc {
  451. background-position: right -2px;
  452. }
  453. .m-table th.sorting-desc {
  454. background-position: right -29px;
  455. }
  456. #sliding_message_box li {
  457. line-height: 55px;
  458. }
  459. .form-inline .chzn-container {
  460. vertical-align: middle;
  461. }
  462. /* Alerts */
  463. div.m-alert-info {
  464. display: block;
  465. width: 95%;
  466. margin: 10px 3% 0 3%;
  467. -webkit-border-radius: 5px;
  468. -moz-border-radius: 5px;
  469. border-radius: 5px;
  470. background: #B5E5EF url(../img/icn_alert_info.png) no-repeat;
  471. background-position: 10px 10px;
  472. border: 1px solid #77BACE;
  473. color: #082B33;
  474. padding: 10px 0;
  475. text-indent: 40px;
  476. font-size: 14px;
  477. }
  478. div.m-alert-warning {
  479. display: block;
  480. width: 95%;
  481. margin: 10px 3% 0 3%;
  482. -webkit-border-radius: 5px;
  483. -moz-border-radius: 5px;
  484. border-radius: 5px;
  485. background: #F5F3BA url(../img/icn_alert_warning.png) no-repeat;
  486. background-position: 10px 10px;
  487. border: 1px solid #C7A20D;
  488. color: #796616;
  489. padding: 10px 0;
  490. text-indent: 40px;
  491. font-size: 14px;
  492. }
  493. div.m-alert-error {
  494. display: block;
  495. width: 95%;
  496. margin: 10px 3% 0 3%;
  497. -webkit-border-radius: 5px;
  498. -moz-border-radius: 5px;
  499. border-radius: 5px;
  500. background: #F3D9D9 url(../img/icn_alert_error.png) no-repeat;
  501. background-position: 10px 10px;
  502. border: 1px solid #D20009;
  503. color: #7B040F;
  504. padding: 10px 0;
  505. text-indent: 40px;
  506. font-size: 14px;
  507. }
  508. div.m-alert-success {
  509. display: block;
  510. width: 95%;
  511. margin: 10px 3% 0 3%;
  512. -webkit-border-radius: 5px;
  513. -moz-border-radius: 5px;
  514. border-radius: 5px;
  515. background: #E2F6C5 url(../img/icn_alert_success.png) no-repeat;
  516. background-position: 10px 10px;
  517. border: 1px solid #79C20D;
  518. color: #32510F;
  519. padding: 10px 0;
  520. text-indent: 40px;
  521. font-size: 14px;
  522. }
  523. /**
  524. * bootstrap modal
  525. */
  526. .modal {
  527. top: 50%;
  528. }
  529. .modal-backdrop, .modal-backdrop.fade.in {
  530. opacity: 0.2;
  531. filter: alpha(opacity=20);
  532. }
  533. /**
  534. * uniform
  535. * 美化中文下的字体大小
  536. */
  537. div.uploader span.filename {
  538. font-size: 12px;
  539. }
  540. div.uploader span.action {
  541. font-size: 12px;
  542. }
  543. /**
  544. * boostrap里的配置会导致radio样式下包裹的radio样式margin-left:-20px;
  545. * 导致被uniform渲染后的radio会跑到显示的radio的左边,无法点击到
  546. * 这里设置为0px,让用户可以简单点击到
  547. */
  548. .radio input[type="radio"],
  549. .checkbox input[type="checkbox"] {
  550. float: left;
  551. margin-left: 0px;
  552. }
  553. /**
  554. * uniform里用的是checker,要和bootstrap里保持一致
  555. */
  556. .radio.inline + .radio.inline,
  557. .checkbox.inline + .checkbox.inline,
  558. .checker.inline + .checker.inline {
  559. margin-left: 10px;
  560. }
  561. /**
  562. * uniform里checkbox的margin-right是5px,radio的margin-right是3px
  563. * 为了避免上下不对齐,统一改成5px
  564. */
  565. div.radio {
  566. margin-right: 5px;
  567. }
  568. /**
  569. * 输入框背景显示标尺
  570. */
  571. input.measure-input {
  572. background: url("../img/ruler.gif") repeat-x scroll 0 9px transparent;
  573. border-color: #AAAAAA #CCCCCC #CCCCCC #AAAAAA;
  574. border-radius: 3px 3px 3px 3px;
  575. border-style: solid;
  576. border-width: 1px;
  577. color: #777777;
  578. font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;
  579. font-size: 12px;
  580. font-weight: normal;
  581. outline: 0 none;
  582. padding: 3px;
  583. }
  584. .dropdown-menu li.with-image {
  585. margin-bottom: 15px;
  586. margin-top: 15px;
  587. text-align: center;
  588. }
  589. .dropdown-menu li.with-image span {
  590. color: #9EA1AA;
  591. display: block;
  592. font-size: 16px;
  593. font-weight: 600;
  594. margin-top: 15px;
  595. text-shadow: 0 1px white;
  596. }
  597. .navbar-inverse .navbar-search .search-query.animated {
  598. transition: width 0.3s ease 0s;
  599. width: 100px;
  600. }
  601. .navbar-inverse .navbar-search .search-query {
  602. border-radius: 15px 15px 15px 15px;
  603. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  604. font-size: 13px;
  605. font-weight: 400;
  606. line-height: 1;
  607. margin-bottom: 0;
  608. height: 20px;
  609. background: none repeat scroll 0 0 rgba(35, 43, 48, 0.83);
  610. border-color: #111111;
  611. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.15);
  612. color: gray;
  613. transition: none 0s ease 0s;
  614. }
  615. .navbar-inverse .navbar-search .search-query:focus {
  616. background: white;
  617. }
  618. .navbar-inverse .navbar-search i {
  619. position: absolute;
  620. right: 10px;
  621. top: 5px;
  622. }