layout3.css 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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: white;
  8. font-size: 12px;
  9. }
  10. label, input, button, select, textarea {
  11. font-size: 12px;
  12. font-weight: normal;
  13. line-height: 20px;
  14. }
  15. 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 {
  16. font-size: 12px;
  17. height: 16px;
  18. line-height: 16px;
  19. }
  20. textarea {
  21. height: auto;
  22. }
  23. select {
  24. height: 26px;
  25. }
  26. a:link, a:visited {
  27. color: #77BACE;
  28. text-decoration: none;
  29. }
  30. a:hover {
  31. text-decoration: underline;
  32. }
  33. fieldset {
  34. -webkit-border-radius: 5px;
  35. -moz-border-radius: 5px;
  36. border-radius: 5px;
  37. background: #F6F6F6;
  38. border: 1px solid #ccc;
  39. padding: 1% 0%;
  40. margin: 10px 0;
  41. }
  42. fieldset label {
  43. display: block;
  44. float: left;
  45. width: 200px;
  46. height: 25px;
  47. line-height: 25px;
  48. text-shadow: 0 1px 0 #fff;
  49. font-weight: bold;
  50. padding-left: 10px;
  51. margin: -5px 0 5px 0;
  52. text-transform: uppercase;
  53. font-size: 12px;
  54. }
  55. fieldset input[type=text] {
  56. -webkit-border-radius: 5px;
  57. -moz-border-radius: 5px;
  58. border-radius: 5px;
  59. border: 1px solid #BBBBBB;
  60. height: 20px;
  61. color: #666666;
  62. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  63. -moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  64. box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  65. padding-left: 10px;
  66. background-position: 10px 6px;
  67. margin: 0;
  68. display: block;
  69. float: left;
  70. width: 96%;
  71. margin: 0 10px;
  72. }
  73. fieldset input[type=text]:focus {
  74. outline: none;
  75. border: 1px solid #77BACE;
  76. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  77. -moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  78. box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  79. }
  80. fieldset select {
  81. width: 96%;
  82. margin: 0 10px;
  83. border: 1px solid #bbb;
  84. height: 20px;
  85. color: #666666;
  86. }
  87. fieldset textarea {
  88. -webkit-border-radius: 5px;
  89. -moz-border-radius: 5px;
  90. border-radius: 5px;
  91. border: 1px solid #BBBBBB;
  92. color: #666666;
  93. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  94. -moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  95. box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
  96. padding-left: 10px;
  97. background-position: 10px 6px;
  98. margin: 0 0.5%;
  99. display: block;
  100. float: left;
  101. width: 96%;
  102. margin: 0 10px;
  103. }
  104. fieldset textarea:focus {
  105. outline: none;
  106. border: 1px solid #77BACE;
  107. -webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  108. -moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  109. box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
  110. }
  111. .m-clear {
  112. clear: both;
  113. }
  114. .m-spacer {
  115. height: 20px;
  116. }
  117. /* header */
  118. #m-header h3.title {
  119. padding-left:20px;
  120. line-height:20px;
  121. }
  122. #m-header h3.title a {
  123. text-decoration: none;
  124. color: black;
  125. }
  126. #m-header div.info {
  127. padding-top:10px;
  128. padding-right:20px;
  129. }
  130. #m-header div.info a {
  131. margin-left:15px;
  132. }
  133. #m-header .navbar-inner {
  134. border-radius:0px;
  135. }
  136. /* sidebar */
  137. #m-sidebar .accordion-group {
  138. margin-left: 10px;
  139. border:1px solid #C2C2C3;
  140. }
  141. #m-sidebar .accordion-heading {
  142. border-radius: 3px 3px 0px 0px;
  143. background-color: #CCCCCC;
  144. box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.5) inset;
  145. background: linear-gradient(to bottom, #FAFAFA 0%, #EFEFEF 100%) repeat scroll 0 0 transparent;
  146. text-shadow: 0 1px 0 #FFFFFF;
  147. color: #333333;
  148. }
  149. #m-sidebar .accordion-heading .accordion-toggle {
  150. display: block;
  151. padding: 5px 15px;
  152. }
  153. #m-sidebar .title {
  154. color:black;
  155. font-size:14px;
  156. font-weight: bold;
  157. }
  158. /* footer */
  159. #m-footer hr {
  160. margin-left: 10px;
  161. }
  162. /* main */
  163. #m-main {
  164. float: right;
  165. padding-right: 10px;
  166. }
  167. /* widget */
  168. .m-widget {
  169. margin-top: 0px;
  170. margin-bottom: 10px;
  171. border-radius: 3px;
  172. box-shadow: #E6E6E6 0px 1px 1px 0px;
  173. }
  174. .m-widget .header {
  175. height: 20px;
  176. padding: 5px 15px;
  177. border:1px solid #C2C2C3;
  178. padding-left: 10px;
  179. border-radius: 3px 3px 0px 0px;
  180. background-color: #CCCCCC;
  181. box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.5) inset;
  182. background: linear-gradient(to bottom, #FAFAFA 0%, #EFEFEF 100%) repeat scroll 0 0 transparent;
  183. text-shadow: 0 1px 0 #FFFFFF;
  184. color: #333333;
  185. }
  186. .m-widget .header .title {
  187. float: left;
  188. margin: 0px;
  189. font-size:14px;
  190. }
  191. .m-widget .header .ctrl {
  192. float: right;
  193. }
  194. .m-widget .header .ctrl .btn {
  195. margin: 0px;
  196. padding-left: 3px;
  197. padding-right: 3px;
  198. padding-top: 0px;
  199. padding-bottom: 0px;
  200. }
  201. .m-widget .content {
  202. border-left: 1px solid #C2C2C3;
  203. border-right: 1px solid #C2C2C3;
  204. border-bottom: 1px solid #C2C2C3;
  205. border-radius: 0px 0px 3px 3px;
  206. }
  207. .m-widget .content.content-inner {
  208. padding-left: 10px;
  209. padding-top:10px;
  210. font-size: 12px;
  211. }
  212. .m-widget .content .table {
  213. margin-bottom: 0px;
  214. }
  215. /* page */
  216. .m-page-size {
  217. margin-bottom:0px;
  218. width:55px;
  219. display:inline;
  220. }
  221. /* Main Table */
  222. .m-table {
  223. width: 100%;
  224. margin: -5px 0 0 0;
  225. line-height: 16px;
  226. }
  227. .m-table td {
  228. margin: 0;
  229. padding: 0;
  230. border-bottom: 1px dotted #ccc;
  231. }
  232. .m-table thead tr {
  233. height: 20px;
  234. background: url(../img/table_sorter_header.png) repeat-x;
  235. text-align: left;
  236. text-indent: 10px;
  237. cursor: pointer;
  238. }
  239. .m-table td {
  240. padding: 4px 10px;
  241. }
  242. .m-table input[type=image] {
  243. margin-right: 10px;
  244. }
  245. .m-table input[type=checkbox] {
  246. margin: 3px 3px 3px 4px;
  247. }
  248. .m-table th.sorting {
  249. background: no-repeat url(../img/sorting.png);
  250. background-position: right -52px;
  251. cursor: pointer;
  252. }
  253. .m-table th.sorting-asc {
  254. background-position: right -2px;
  255. }
  256. .m-table th.sorting-desc {
  257. background-position: right -29px;
  258. }
  259. /* etc */
  260. .m-form-blank {
  261. margin: 0px;
  262. }
  263. .m-form-bottom {
  264. margin-bottom: 10px;
  265. }
  266. .m-table-check {
  267. text-indent: 0px;
  268. text-align: center;
  269. }
  270. .m-blank {
  271. margin-bottom: 10px;
  272. }
  273. .form-inline .chzn-container {
  274. vertical-align: middle;
  275. }
  276. /* Alerts */
  277. div.m-alert-info {
  278. display: block;
  279. width: 95%;
  280. margin: 10px 3% 0 3%;
  281. -webkit-border-radius: 5px;
  282. -moz-border-radius: 5px;
  283. border-radius: 5px;
  284. background: #B5E5EF url(../img/icn_alert_info.png) no-repeat;
  285. background-position: 10px 10px;
  286. border: 1px solid #77BACE;
  287. color: #082B33;
  288. padding: 10px 0;
  289. text-indent: 40px;
  290. font-size: 14px;
  291. }
  292. div.m-alert-warning {
  293. display: block;
  294. width: 95%;
  295. margin: 10px 3% 0 3%;
  296. -webkit-border-radius: 5px;
  297. -moz-border-radius: 5px;
  298. border-radius: 5px;
  299. background: #F5F3BA url(../img/icn_alert_warning.png) no-repeat;
  300. background-position: 10px 10px;
  301. border: 1px solid #C7A20D;
  302. color: #796616;
  303. padding: 10px 0;
  304. text-indent: 40px;
  305. font-size: 14px;
  306. }
  307. div.m-alert-error {
  308. display: block;
  309. width: 95%;
  310. margin: 10px 3% 0 3%;
  311. -webkit-border-radius: 5px;
  312. -moz-border-radius: 5px;
  313. border-radius: 5px;
  314. background: #F3D9D9 url(../img/icn_alert_error.png) no-repeat;
  315. background-position: 10px 10px;
  316. border: 1px solid #D20009;
  317. color: #7B040F;
  318. padding: 10px 0;
  319. text-indent: 40px;
  320. font-size: 14px;
  321. }
  322. div.m-alert-success {
  323. display: block;
  324. width: 95%;
  325. margin: 10px 3% 0 3%;
  326. -webkit-border-radius: 5px;
  327. -moz-border-radius: 5px;
  328. border-radius: 5px;
  329. background: #E2F6C5 url(../img/icn_alert_success.png) no-repeat;
  330. background-position: 10px 10px;
  331. border: 1px solid #79C20D;
  332. color: #32510F;
  333. padding: 10px 0;
  334. text-indent: 40px;
  335. font-size: 14px;
  336. }
  337. /**
  338. * bootstrap modal
  339. */
  340. .modal {
  341. top: 50%;
  342. }
  343. .modal-backdrop, .modal-backdrop.fade.in {
  344. opacity: 0.2;
  345. filter: alpha(opacity=20);
  346. }
  347. /**
  348. * uniform
  349. * 美化中文下的字体大小
  350. */
  351. div.uploader span.filename {
  352. font-size: 12px;
  353. }
  354. div.uploader span.action {
  355. font-size: 12px;
  356. }
  357. /**
  358. * boostrap里的配置会导致radio样式下包裹的radio样式margin-left:-20px;
  359. * 导致被uniform渲染后的radio会跑到显示的radio的左边,无法点击到
  360. * 这里设置为0px,让用户可以简单点击到
  361. */
  362. .radio input[type="radio"],
  363. .checkbox input[type="checkbox"] {
  364. float: left;
  365. margin-left: 0px;
  366. }
  367. /**
  368. * uniform里用的是checker,要和bootstrap里保持一致
  369. */
  370. .radio.inline + .radio.inline,
  371. .checkbox.inline + .checkbox.inline,
  372. .checker.inline + .checker.inline {
  373. margin-left: 10px;
  374. }
  375. /**
  376. * uniform里checkbox的margin-right是5px,radio的margin-right是3px
  377. * 为了避免上下不对齐,统一改成5px
  378. */
  379. div.radio {
  380. margin-right: 5px;
  381. }
  382. /**
  383. * 输入框背景显示标尺
  384. */
  385. input.measure-input {
  386. background: url("../img/ruler.gif") repeat-x scroll 0 9px transparent;
  387. border-color: #AAAAAA #CCCCCC #CCCCCC #AAAAAA;
  388. border-radius: 3px 3px 3px 3px;
  389. border-style: solid;
  390. border-width: 1px;
  391. color: #777777;
  392. font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;
  393. font-size: 12px;
  394. font-weight: normal;
  395. outline: 0 none;
  396. padding-bottom: 3px;
  397. }
  398. .navbar-inverse .navbar-search .search-query {
  399. border-radius: 15px 15px 15px 15px;
  400. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  401. font-size: 13px;
  402. font-weight: 400;
  403. line-height: 1;
  404. margin-bottom: 0;
  405. height: 20px;
  406. background: none repeat scroll 0 0 rgba(35, 43, 48, 0.83);
  407. border-color: #111111;
  408. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.15);
  409. color: gray;
  410. transition: width 0.3s ease 0s;
  411. width: 100px;
  412. }
  413. .navbar-inverse .navbar-search .search-query:focus {
  414. transition: width 0.3s ease 0s;
  415. width: 150px;
  416. background: white;
  417. }
  418. .navbar-inverse .navbar-search i {
  419. position: absolute;
  420. right: 10px;
  421. top: 5px;
  422. }
  423. /**
  424. * chozen中single select的search input高度过小的问题
  425. */
  426. .chzn-search input[type="text"] {
  427. height: 24px;
  428. }