PageRenderTime 32ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/django/contrib/admin/media/css/base.css

https://code.google.com/p/mango-py/
CSS | 772 lines | 596 code | 155 blank | 21 comment | 0 complexity | ec4ad7970455bbf8677155013c35c61a MD5 | raw file
Possible License(s): BSD-3-Clause
  1. /*
  2. DJANGO Admin styles
  3. */
  4. body {
  5. margin: 0;
  6. padding: 0;
  7. font-size: 12px;
  8. font-family: "Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
  9. color: #333;
  10. background: #fff;
  11. }
  12. /* LINKS */
  13. a:link, a:visited {
  14. color: #5b80b2;
  15. text-decoration: none;
  16. }
  17. a:hover {
  18. color: #036;
  19. }
  20. a img {
  21. border: none;
  22. }
  23. a.section:link, a.section:visited {
  24. color: white;
  25. text-decoration: none;
  26. }
  27. /* GLOBAL DEFAULTS */
  28. p, ol, ul, dl {
  29. margin: .2em 0 .8em 0;
  30. }
  31. p {
  32. padding: 0;
  33. line-height: 140%;
  34. }
  35. h1,h2,h3,h4,h5 {
  36. font-weight: bold;
  37. }
  38. h1 {
  39. font-size: 18px;
  40. color: #666;
  41. padding: 0 6px 0 0;
  42. margin: 0 0 .2em 0;
  43. }
  44. h2 {
  45. font-size: 16px;
  46. margin: 1em 0 .5em 0;
  47. }
  48. h2.subhead {
  49. font-weight: normal;
  50. margin-top: 0;
  51. }
  52. h3 {
  53. font-size: 14px;
  54. margin: .8em 0 .3em 0;
  55. color: #666;
  56. font-weight: bold;
  57. }
  58. h4 {
  59. font-size: 12px;
  60. margin: 1em 0 .8em 0;
  61. padding-bottom: 3px;
  62. }
  63. h5 {
  64. font-size: 10px;
  65. margin: 1.5em 0 .5em 0;
  66. color: #666;
  67. text-transform: uppercase;
  68. letter-spacing: 1px;
  69. }
  70. ul li {
  71. list-style-type: square;
  72. padding: 1px 0;
  73. }
  74. ul.plainlist {
  75. margin-left: 0 !important;
  76. }
  77. ul.plainlist li {
  78. list-style-type: none;
  79. }
  80. li ul {
  81. margin-bottom: 0;
  82. }
  83. li, dt, dd {
  84. font-size: 11px;
  85. line-height: 14px;
  86. }
  87. dt {
  88. font-weight: bold;
  89. margin-top: 4px;
  90. }
  91. dd {
  92. margin-left: 0;
  93. }
  94. form {
  95. margin: 0;
  96. padding: 0;
  97. }
  98. fieldset {
  99. margin: 0;
  100. padding: 0;
  101. }
  102. blockquote {
  103. font-size: 11px;
  104. color: #777;
  105. margin-left: 2px;
  106. padding-left: 10px;
  107. border-left: 5px solid #ddd;
  108. }
  109. code, pre {
  110. font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
  111. background: inherit;
  112. color: #666;
  113. font-size: 11px;
  114. }
  115. pre.literal-block {
  116. margin: 10px;
  117. background: #eee;
  118. padding: 6px 8px;
  119. }
  120. code strong {
  121. color: #930;
  122. }
  123. hr {
  124. clear: both;
  125. color: #eee;
  126. background-color: #eee;
  127. height: 1px;
  128. border: none;
  129. margin: 0;
  130. padding: 0;
  131. font-size: 1px;
  132. line-height: 1px;
  133. }
  134. /* TEXT STYLES & MODIFIERS */
  135. .small {
  136. font-size: 11px;
  137. }
  138. .tiny {
  139. font-size: 10px;
  140. }
  141. p.tiny {
  142. margin-top: -2px;
  143. }
  144. .mini {
  145. font-size: 9px;
  146. }
  147. p.mini {
  148. margin-top: -3px;
  149. }
  150. .help, p.help {
  151. font-size: 10px !important;
  152. color: #999;
  153. }
  154. p img, h1 img, h2 img, h3 img, h4 img, td img {
  155. vertical-align: middle;
  156. }
  157. .quiet, a.quiet:link, a.quiet:visited {
  158. color: #999 !important;
  159. font-weight: normal !important;
  160. }
  161. .quiet strong {
  162. font-weight: bold !important;
  163. }
  164. .float-right {
  165. float: right;
  166. }
  167. .float-left {
  168. float: left;
  169. }
  170. .clear {
  171. clear: both;
  172. }
  173. .align-left {
  174. text-align: left;
  175. }
  176. .align-right {
  177. text-align: right;
  178. }
  179. .example {
  180. margin: 10px 0;
  181. padding: 5px 10px;
  182. background: #efefef;
  183. }
  184. .nowrap {
  185. white-space: nowrap;
  186. }
  187. /* TABLES */
  188. table {
  189. border-collapse: collapse;
  190. border-color: #ccc;
  191. }
  192. td, th {
  193. font-size: 11px;
  194. line-height: 13px;
  195. border-bottom: 1px solid #eee;
  196. vertical-align: top;
  197. padding: 5px;
  198. font-family: "Lucida Grande", Verdana, Arial, sans-serif;
  199. }
  200. th {
  201. text-align: left;
  202. font-size: 12px;
  203. font-weight: bold;
  204. }
  205. thead th,
  206. tfoot td {
  207. color: #666;
  208. padding: 2px 5px;
  209. font-size: 11px;
  210. background: #e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x;
  211. border-left: 1px solid #ddd;
  212. border-bottom: 1px solid #ddd;
  213. }
  214. tfoot td {
  215. border-bottom: none;
  216. border-top: 1px solid #ddd;
  217. }
  218. thead th:first-child,
  219. tfoot td:first-child {
  220. border-left: none !important;
  221. }
  222. thead th.optional {
  223. font-weight: normal !important;
  224. }
  225. fieldset table {
  226. border-right: 1px solid #eee;
  227. }
  228. tr.row-label td {
  229. font-size: 9px;
  230. padding-top: 2px;
  231. padding-bottom: 0;
  232. border-bottom: none;
  233. color: #666;
  234. margin-top: -1px;
  235. }
  236. tr.alt {
  237. background: #f6f6f6;
  238. }
  239. .row1 {
  240. background: #EDF3FE;
  241. }
  242. .row2 {
  243. background: white;
  244. }
  245. /* SORTABLE TABLES */
  246. thead th a:link, thead th a:visited {
  247. color: #666;
  248. display: block;
  249. }
  250. table thead th.sorted {
  251. background-position: bottom left !important;
  252. }
  253. table thead th.sorted a {
  254. padding-right: 13px;
  255. }
  256. table thead th.ascending a {
  257. background: url(../img/admin/arrow-up.gif) right .4em no-repeat;
  258. }
  259. table thead th.descending a {
  260. background: url(../img/admin/arrow-down.gif) right .4em no-repeat;
  261. }
  262. /* ORDERABLE TABLES */
  263. table.orderable tbody tr td:hover {
  264. cursor: move;
  265. }
  266. table.orderable tbody tr td:first-child {
  267. padding-left: 14px;
  268. background-image: url(../img/admin/nav-bg-grabber.gif);
  269. background-repeat: repeat-y;
  270. }
  271. table.orderable-initalized .order-cell, body>tr>td.order-cell {
  272. display: none;
  273. }
  274. /* FORM DEFAULTS */
  275. input, textarea, select, .form-row p {
  276. margin: 2px 0;
  277. padding: 2px 3px;
  278. vertical-align: middle;
  279. font-family: "Lucida Grande", Verdana, Arial, sans-serif;
  280. font-weight: normal;
  281. font-size: 11px;
  282. }
  283. textarea {
  284. vertical-align: top !important;
  285. }
  286. input[type=text], input[type=password], textarea, select, .vTextField {
  287. border: 1px solid #ccc;
  288. }
  289. /* FORM BUTTONS */
  290. .button, input[type=submit], input[type=button], .submit-row input {
  291. background: white url(../img/admin/nav-bg.gif) bottom repeat-x;
  292. padding: 3px 5px;
  293. color: black;
  294. border: 1px solid #bbb;
  295. border-color: #ddd #aaa #aaa #ddd;
  296. }
  297. .button:active, input[type=submit]:active, input[type=button]:active {
  298. background-image: url(../img/admin/nav-bg-reverse.gif);
  299. background-position: top;
  300. }
  301. .button[disabled], input[type=submit][disabled], input[type=button][disabled] {
  302. background-image: url(../img/admin/nav-bg.gif);
  303. background-position: bottom;
  304. opacity: 0.4;
  305. }
  306. .button.default, input[type=submit].default, .submit-row input.default {
  307. border: 2px solid #5b80b2;
  308. background: #7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x;
  309. font-weight: bold;
  310. color: white;
  311. float: right;
  312. }
  313. .button.default:active, input[type=submit].default:active {
  314. background-image: url(../img/admin/default-bg-reverse.gif);
  315. background-position: top;
  316. }
  317. .button[disabled].default, input[type=submit][disabled].default, input[type=button][disabled].default {
  318. background-image: url(../img/admin/default-bg.gif);
  319. background-position: bottom;
  320. opacity: 0.4;
  321. }
  322. /* MODULES */
  323. .module {
  324. border: 1px solid #ccc;
  325. margin-bottom: 5px;
  326. background: white;
  327. }
  328. .module p, .module ul, .module h3, .module h4, .module dl, .module pre {
  329. padding-left: 10px;
  330. padding-right: 10px;
  331. }
  332. .module blockquote {
  333. margin-left: 12px;
  334. }
  335. .module ul, .module ol {
  336. margin-left: 1.5em;
  337. }
  338. .module h3 {
  339. margin-top: .6em;
  340. }
  341. .module h2, .module caption, .inline-group h2 {
  342. margin: 0;
  343. padding: 2px 5px 3px 5px;
  344. font-size: 11px;
  345. text-align: left;
  346. font-weight: bold;
  347. background: #7CA0C7 url(../img/admin/default-bg.gif) top left repeat-x;
  348. color: white;
  349. }
  350. .module table {
  351. border-collapse: collapse;
  352. }
  353. /* MESSAGES & ERRORS */
  354. ul.messagelist {
  355. padding: 0 0 5px 0;
  356. margin: 0;
  357. }
  358. ul.messagelist li {
  359. font-size: 12px;
  360. display: block;
  361. padding: 4px 5px 4px 25px;
  362. margin: 0 0 3px 0;
  363. border-bottom: 1px solid #ddd;
  364. color: #666;
  365. background: #ffc url(../img/admin/icon_success.gif) 5px .3em no-repeat;
  366. }
  367. ul.messagelist li.warning{
  368. background-image: url(../img/admin/icon_alert.gif);
  369. }
  370. ul.messagelist li.error{
  371. background-image: url(../img/admin/icon_error.gif);
  372. }
  373. .errornote {
  374. font-size: 12px !important;
  375. display: block;
  376. padding: 4px 5px 4px 25px;
  377. margin: 0 0 3px 0;
  378. border: 1px solid red;
  379. color: red;
  380. background: #ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat;
  381. }
  382. ul.errorlist {
  383. margin: 0 !important;
  384. padding: 0 !important;
  385. }
  386. .errorlist li {
  387. font-size: 12px !important;
  388. display: block;
  389. padding: 4px 5px 4px 25px;
  390. margin: 0 0 3px 0;
  391. border: 1px solid red;
  392. color: white;
  393. background: red url(../img/admin/icon_alert.gif) 5px .3em no-repeat;
  394. }
  395. .errorlist li a {
  396. color: white;
  397. text-decoration: underline;
  398. }
  399. td ul.errorlist {
  400. margin: 0 !important;
  401. padding: 0 !important;
  402. }
  403. td ul.errorlist li {
  404. margin: 0 !important;
  405. }
  406. .errors {
  407. background: #ffc;
  408. }
  409. .errors input, .errors select, .errors textarea {
  410. border: 1px solid red;
  411. }
  412. div.system-message {
  413. background: #ffc;
  414. margin: 10px;
  415. padding: 6px 8px;
  416. font-size: .8em;
  417. }
  418. div.system-message p.system-message-title {
  419. padding: 4px 5px 4px 25px;
  420. margin: 0;
  421. color: red;
  422. background: #ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat;
  423. }
  424. .description {
  425. font-size: 12px;
  426. padding: 5px 0 0 12px;
  427. }
  428. /* BREADCRUMBS */
  429. div.breadcrumbs {
  430. background: white url(../img/admin/nav-bg-reverse.gif) 0 -10px repeat-x;
  431. padding: 2px 8px 3px 8px;
  432. font-size: 11px;
  433. color: #999;
  434. border-top: 1px solid white;
  435. border-bottom: 1px solid #ccc;
  436. text-align: left;
  437. }
  438. /* ACTION ICONS */
  439. .addlink {
  440. padding-left: 12px;
  441. background: url(../img/admin/icon_addlink.gif) 0 .2em no-repeat;
  442. }
  443. .changelink {
  444. padding-left: 12px;
  445. background: url(../img/admin/icon_changelink.gif) 0 .2em no-repeat;
  446. }
  447. .deletelink {
  448. padding-left: 12px;
  449. background: url(../img/admin/icon_deletelink.gif) 0 .25em no-repeat;
  450. }
  451. a.deletelink:link, a.deletelink:visited {
  452. color: #CC3434;
  453. }
  454. a.deletelink:hover {
  455. color: #993333;
  456. }
  457. /* OBJECT TOOLS */
  458. .object-tools {
  459. font-size: 10px;
  460. font-weight: bold;
  461. font-family: Arial,Helvetica,sans-serif;
  462. padding-left: 0;
  463. float: right;
  464. position: relative;
  465. margin-top: -2.4em;
  466. margin-bottom: -2em;
  467. }
  468. .form-row .object-tools {
  469. margin-top: 5px;
  470. margin-bottom: 5px;
  471. float: none;
  472. height: 2em;
  473. padding-left: 3.5em;
  474. }
  475. .object-tools li {
  476. display: block;
  477. float: left;
  478. background: url(../img/admin/tool-left.gif) 0 0 no-repeat;
  479. padding: 0 0 0 8px;
  480. margin-left: 2px;
  481. height: 16px;
  482. }
  483. .object-tools li:hover {
  484. background: url(../img/admin/tool-left_over.gif) 0 0 no-repeat;
  485. }
  486. .object-tools a:link, .object-tools a:visited {
  487. display: block;
  488. float: left;
  489. color: white;
  490. padding: .1em 14px .1em 8px;
  491. height: 14px;
  492. background: #999 url(../img/admin/tool-right.gif) 100% 0 no-repeat;
  493. }
  494. .object-tools a:hover, .object-tools li:hover a {
  495. background: #5b80b2 url(../img/admin/tool-right_over.gif) 100% 0 no-repeat;
  496. }
  497. .object-tools a.viewsitelink, .object-tools a.golink {
  498. background: #999 url(../img/admin/tooltag-arrowright.gif) top right no-repeat;
  499. padding-right: 28px;
  500. }
  501. .object-tools a.viewsitelink:hover, .object-tools a.golink:hover {
  502. background: #5b80b2 url(../img/admin/tooltag-arrowright_over.gif) top right no-repeat;
  503. }
  504. .object-tools a.addlink {
  505. background: #999 url(../img/admin/tooltag-add.gif) top right no-repeat;
  506. padding-right: 28px;
  507. }
  508. .object-tools a.addlink:hover {
  509. background: #5b80b2 url(../img/admin/tooltag-add_over.gif) top right no-repeat;
  510. }
  511. /* OBJECT HISTORY */
  512. table#change-history {
  513. width: 100%;
  514. }
  515. table#change-history tbody th {
  516. width: 16em;
  517. }
  518. /* PAGE STRUCTURE */
  519. #container {
  520. position: relative;
  521. width: 100%;
  522. min-width: 760px;
  523. padding: 0;
  524. }
  525. #content {
  526. margin: 10px 15px;
  527. }
  528. #header {
  529. width: 100%;
  530. }
  531. #content-main {
  532. float: left;
  533. width: 100%;
  534. }
  535. #content-related {
  536. float: right;
  537. width: 18em;
  538. position: relative;
  539. margin-right: -19em;
  540. }
  541. #footer {
  542. clear: both;
  543. padding: 10px;
  544. }
  545. /* COLUMN TYPES */
  546. .colMS {
  547. margin-right: 20em !important;
  548. }
  549. .colSM {
  550. margin-left: 20em !important;
  551. }
  552. .colSM #content-related {
  553. float: left;
  554. margin-right: 0;
  555. margin-left: -19em;
  556. }
  557. .colSM #content-main {
  558. float: right;
  559. }
  560. .popup .colM {
  561. width: 95%;
  562. }
  563. .subcol {
  564. float: left;
  565. width: 46%;
  566. margin-right: 15px;
  567. }
  568. .dashboard #content {
  569. width: 500px;
  570. }
  571. /* HEADER */
  572. #header {
  573. background: #417690;
  574. color: #ffc;
  575. overflow: hidden;
  576. }
  577. #header a:link, #header a:visited {
  578. color: white;
  579. }
  580. #header a:hover {
  581. text-decoration: underline;
  582. }
  583. #branding h1 {
  584. padding: 0 10px;
  585. font-size: 18px;
  586. margin: 8px 0;
  587. font-weight: normal;
  588. color: #f4f379;
  589. }
  590. #branding h2 {
  591. padding: 0 10px;
  592. font-size: 14px;
  593. margin: -8px 0 8px 0;
  594. font-weight: normal;
  595. color: #ffc;
  596. }
  597. #user-tools {
  598. position: absolute;
  599. top: 0;
  600. right: 0;
  601. padding: 1.2em 10px;
  602. font-size: 11px;
  603. text-align: right;
  604. }
  605. /* SIDEBAR */
  606. #content-related h3 {
  607. font-size: 12px;
  608. color: #666;
  609. margin-bottom: 3px;
  610. }
  611. #content-related h4 {
  612. font-size: 11px;
  613. }
  614. #content-related .module h2 {
  615. background: #eee url(../img/admin/nav-bg.gif) bottom left repeat-x;
  616. color: #666;
  617. }