base.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  1. /*
  2. DJANGO Admin styles
  3. */
  4. @import url(fonts.css);
  5. body {
  6. margin: 0;
  7. padding: 0;
  8. font-size: 14px;
  9. font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
  10. color: #333;
  11. background: #fff;
  12. }
  13. /* LINKS */
  14. a:link, a:visited {
  15. color: #447e9b;
  16. text-decoration: none;
  17. }
  18. a:focus, a:hover {
  19. color: #036;
  20. }
  21. a:focus {
  22. text-decoration: underline;
  23. }
  24. a img {
  25. border: none;
  26. }
  27. a.section:link, a.section:visited {
  28. color: #fff;
  29. text-decoration: none;
  30. }
  31. a.section:focus, a.section:hover {
  32. text-decoration: underline;
  33. }
  34. /* GLOBAL DEFAULTS */
  35. p, ol, ul, dl {
  36. margin: .2em 0 .8em 0;
  37. }
  38. p {
  39. padding: 0;
  40. line-height: 140%;
  41. }
  42. h1,h2,h3,h4,h5 {
  43. font-weight: bold;
  44. }
  45. h1 {
  46. margin: 0 0 20px;
  47. font-weight: 300;
  48. font-size: 20px;
  49. color: #666;
  50. }
  51. h2 {
  52. font-size: 16px;
  53. margin: 1em 0 .5em 0;
  54. }
  55. h2.subhead {
  56. font-weight: normal;
  57. margin-top: 0;
  58. }
  59. h3 {
  60. font-size: 14px;
  61. margin: .8em 0 .3em 0;
  62. color: #666;
  63. font-weight: bold;
  64. }
  65. h4 {
  66. font-size: 12px;
  67. margin: 1em 0 .8em 0;
  68. padding-bottom: 3px;
  69. }
  70. h5 {
  71. font-size: 10px;
  72. margin: 1.5em 0 .5em 0;
  73. color: #666;
  74. text-transform: uppercase;
  75. letter-spacing: 1px;
  76. }
  77. ul li {
  78. list-style-type: square;
  79. padding: 1px 0;
  80. }
  81. li ul {
  82. margin-bottom: 0;
  83. }
  84. li, dt, dd {
  85. font-size: 13px;
  86. line-height: 20px;
  87. }
  88. dt {
  89. font-weight: bold;
  90. margin-top: 4px;
  91. }
  92. dd {
  93. margin-left: 0;
  94. }
  95. form {
  96. margin: 0;
  97. padding: 0;
  98. }
  99. fieldset {
  100. margin: 0;
  101. padding: 0;
  102. border: none;
  103. border-top: 1px solid #eee;
  104. }
  105. blockquote {
  106. font-size: 11px;
  107. color: #777;
  108. margin-left: 2px;
  109. padding-left: 10px;
  110. border-left: 5px solid #ddd;
  111. }
  112. code, pre {
  113. font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
  114. color: #666;
  115. font-size: 12px;
  116. }
  117. pre.literal-block {
  118. margin: 10px;
  119. background: #eee;
  120. padding: 6px 8px;
  121. }
  122. code strong {
  123. color: #930;
  124. }
  125. hr {
  126. clear: both;
  127. color: #eee;
  128. background-color: #eee;
  129. height: 1px;
  130. border: none;
  131. margin: 0;
  132. padding: 0;
  133. font-size: 1px;
  134. line-height: 1px;
  135. }
  136. /* TEXT STYLES & MODIFIERS */
  137. .small {
  138. font-size: 11px;
  139. }
  140. .tiny {
  141. font-size: 10px;
  142. }
  143. p.tiny {
  144. margin-top: -2px;
  145. }
  146. .mini {
  147. font-size: 10px;
  148. }
  149. p.mini {
  150. margin-top: -3px;
  151. }
  152. .help, p.help, form p.help {
  153. font-size: 11px;
  154. color: #999;
  155. }
  156. .help-tooltip {
  157. cursor: help;
  158. }
  159. p img, h1 img, h2 img, h3 img, h4 img, td img {
  160. vertical-align: middle;
  161. }
  162. .quiet, a.quiet:link, a.quiet:visited {
  163. color: #999;
  164. font-weight: normal;
  165. }
  166. .float-right {
  167. float: right;
  168. }
  169. .float-left {
  170. float: left;
  171. }
  172. .clear {
  173. clear: both;
  174. }
  175. .align-left {
  176. text-align: left;
  177. }
  178. .align-right {
  179. text-align: right;
  180. }
  181. .example {
  182. margin: 10px 0;
  183. padding: 5px 10px;
  184. background: #efefef;
  185. }
  186. .nowrap {
  187. white-space: nowrap;
  188. }
  189. /* TABLES */
  190. table {
  191. border-collapse: collapse;
  192. border-color: #ccc;
  193. }
  194. td, th {
  195. font-size: 13px;
  196. line-height: 16px;
  197. border-bottom: 1px solid #eee;
  198. vertical-align: top;
  199. padding: 8px;
  200. font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
  201. }
  202. th {
  203. font-weight: 600;
  204. text-align: left;
  205. }
  206. thead th,
  207. tfoot td {
  208. color: #666;
  209. padding: 5px 10px;
  210. font-size: 11px;
  211. background: #fff;
  212. border: none;
  213. border-top: 1px solid #eee;
  214. border-bottom: 1px solid #eee;
  215. }
  216. tfoot td {
  217. border-bottom: none;
  218. border-top: 1px solid #eee;
  219. }
  220. tr.alt {
  221. background: #f6f6f6;
  222. }
  223. .row1 {
  224. background: #fff;
  225. }
  226. .row2 {
  227. background: #f9f9f9;
  228. }
  229. /* SORTABLE TABLES */
  230. thead th {
  231. padding: 5px 10px;
  232. line-height: normal;
  233. text-transform: uppercase;
  234. background: #f6f6f6;
  235. }
  236. thead th a:link, thead th a:visited {
  237. color: #666;
  238. }
  239. thead th.sorted {
  240. background: #eee;
  241. }
  242. thead th.sorted .text {
  243. padding-right: 42px;
  244. }
  245. table thead th .text span {
  246. padding: 8px 10px;
  247. display: block;
  248. }
  249. table thead th .text a {
  250. display: block;
  251. cursor: pointer;
  252. padding: 8px 10px;
  253. }
  254. table thead th .text a:focus, table thead th .text a:hover {
  255. background: #eee;
  256. }
  257. thead th.sorted a.sortremove {
  258. visibility: hidden;
  259. }
  260. table thead th.sorted:hover a.sortremove {
  261. visibility: visible;
  262. }
  263. table thead th.sorted .sortoptions {
  264. display: block;
  265. padding: 9px 5px 0 5px;
  266. float: right;
  267. text-align: right;
  268. }
  269. table thead th.sorted .sortpriority {
  270. font-size: .8em;
  271. min-width: 12px;
  272. text-align: center;
  273. vertical-align: 3px;
  274. margin-left: 2px;
  275. margin-right: 2px;
  276. }
  277. table thead th.sorted .sortoptions a {
  278. position: relative;
  279. width: 14px;
  280. height: 14px;
  281. display: inline-block;
  282. background: url(../img/sorting-icons.svg) 0 0 no-repeat;
  283. background-size: 14px auto;
  284. }
  285. table thead th.sorted .sortoptions a.sortremove {
  286. background-position: 0 0;
  287. }
  288. table thead th.sorted .sortoptions a.sortremove:after {
  289. content: '\\';
  290. position: absolute;
  291. top: -6px;
  292. left: 3px;
  293. font-weight: 200;
  294. font-size: 18px;
  295. color: #999;
  296. }
  297. table thead th.sorted .sortoptions a.sortremove:focus:after,
  298. table thead th.sorted .sortoptions a.sortremove:hover:after {
  299. color: #447e9b;
  300. }
  301. table thead th.sorted .sortoptions a.sortremove:focus,
  302. table thead th.sorted .sortoptions a.sortremove:hover {
  303. background-position: 0 -14px;
  304. }
  305. table thead th.sorted .sortoptions a.ascending {
  306. background-position: 0 -28px;
  307. }
  308. table thead th.sorted .sortoptions a.ascending:focus,
  309. table thead th.sorted .sortoptions a.ascending:hover {
  310. background-position: 0 -42px;
  311. }
  312. table thead th.sorted .sortoptions a.descending {
  313. top: 1px;
  314. background-position: 0 -56px;
  315. }
  316. table thead th.sorted .sortoptions a.descending:focus,
  317. table thead th.sorted .sortoptions a.descending:hover {
  318. background-position: 0 -70px;
  319. }
  320. /* FORM DEFAULTS */
  321. input, textarea, select, .form-row p, form .button {
  322. margin: 2px 0;
  323. padding: 2px 3px;
  324. vertical-align: middle;
  325. font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
  326. font-weight: normal;
  327. font-size: 13px;
  328. }
  329. textarea {
  330. vertical-align: top;
  331. }
  332. input[type=text], input[type=password], input[type=email], input[type=url],
  333. input[type=number], textarea, select, .vTextField {
  334. border: 1px solid #ccc;
  335. border-radius: 4px;
  336. padding: 5px 6px;
  337. margin-top: 0;
  338. }
  339. input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
  340. input[type=url]:focus, input[type=number]:focus, textarea:focus, select:focus,
  341. .vTextField:focus {
  342. border-color: #999;
  343. }
  344. select {
  345. height: 30px;
  346. }
  347. select[multiple] {
  348. min-height: 150px;
  349. }
  350. /* FORM BUTTONS */
  351. .button, input[type=submit], input[type=button], .submit-row input, a.button {
  352. background: #79aec8;
  353. padding: 10px 15px;
  354. border: none;
  355. border-radius: 4px;
  356. color: #fff;
  357. cursor: pointer;
  358. }
  359. a.button {
  360. padding: 4px 5px;
  361. }
  362. .button:active, input[type=submit]:active, input[type=button]:active,
  363. .button:focus, input[type=submit]:focus, input[type=button]:focus,
  364. .button:hover, input[type=submit]:hover, input[type=button]:hover {
  365. background: #609ab6;
  366. }
  367. .button[disabled], input[type=submit][disabled], input[type=button][disabled] {
  368. opacity: 0.4;
  369. }
  370. .button.default, input[type=submit].default, .submit-row input.default {
  371. float: right;
  372. border: none;
  373. font-weight: 400;
  374. background: #417690;
  375. }
  376. .button.default:active, input[type=submit].default:active,
  377. .button.default:focus, input[type=submit].default:focus,
  378. .button.default:hover, input[type=submit].default:hover {
  379. background: #205067;
  380. }
  381. .button[disabled].default,
  382. input[type=submit][disabled].default,
  383. input[type=button][disabled].default {
  384. opacity: 0.4;
  385. }
  386. /* MODULES */
  387. .module {
  388. border: none;
  389. margin-bottom: 30px;
  390. background: #fff;
  391. }
  392. .module p, .module ul, .module h3, .module h4, .module dl, .module pre {
  393. padding-left: 10px;
  394. padding-right: 10px;
  395. }
  396. .module blockquote {
  397. margin-left: 12px;
  398. }
  399. .module ul, .module ol {
  400. margin-left: 1.5em;
  401. }
  402. .module h3 {
  403. margin-top: .6em;
  404. }
  405. .module h2, .module caption, .inline-group h2 {
  406. margin: 0;
  407. padding: 8px;
  408. font-weight: 400;
  409. font-size: 13px;
  410. text-align: left;
  411. background: #79aec8;
  412. color: #fff;
  413. }
  414. .module caption,
  415. .inline-group h2 {
  416. font-size: 12px;
  417. letter-spacing: 0.5px;
  418. text-transform: uppercase;
  419. }
  420. .module table {
  421. border-collapse: collapse;
  422. }
  423. /* MESSAGES & ERRORS */
  424. ul.messagelist {
  425. padding: 0;
  426. margin: 0;
  427. }
  428. ul.messagelist li {
  429. display: block;
  430. font-weight: 400;
  431. font-size: 13px;
  432. padding: 10px 10px 10px 65px;
  433. margin: 0 0 10px 0;
  434. background: #dfd url(../img/icon-yes.svg) 40px 12px no-repeat;
  435. background-size: 16px auto;
  436. color: #333;
  437. }
  438. ul.messagelist li.warning {
  439. background: #ffc url(../img/icon-alert.svg) 40px 14px no-repeat;
  440. background-size: 14px auto;
  441. }
  442. ul.messagelist li.error {
  443. background: #ffefef url(../img/icon-no.svg) 40px 12px no-repeat;
  444. background-size: 16px auto;
  445. }
  446. .errornote {
  447. font-size: 14px;
  448. font-weight: 700;
  449. display: block;
  450. padding: 10px 12px;
  451. margin: 0 0 10px 0;
  452. color: #ba2121;
  453. border: 1px solid #ba2121;
  454. border-radius: 4px;
  455. background-color: #fff;
  456. background-position: 5px 12px;
  457. }
  458. ul.errorlist {
  459. margin: 0 0 4px;
  460. padding: 0;
  461. color: #ba2121;
  462. background: #fff;
  463. }
  464. ul.errorlist li {
  465. font-size: 13px;
  466. display: block;
  467. margin-bottom: 4px;
  468. }
  469. ul.errorlist li:first-child {
  470. margin-top: 0;
  471. }
  472. ul.errorlist li a {
  473. color: inherit;
  474. text-decoration: underline;
  475. }
  476. td ul.errorlist {
  477. margin: 0;
  478. padding: 0;
  479. }
  480. td ul.errorlist li {
  481. margin: 0;
  482. }
  483. .form-row.errors {
  484. margin: 0;
  485. border: none;
  486. border-bottom: 1px solid #eee;
  487. background: none;
  488. }
  489. .form-row.errors ul.errorlist li {
  490. padding-left: 0;
  491. }
  492. .errors input, .errors select, .errors textarea {
  493. border: 1px solid #ba2121;
  494. }
  495. div.system-message {
  496. background: #ffc;
  497. margin: 10px;
  498. padding: 6px 8px;
  499. font-size: .8em;
  500. }
  501. div.system-message p.system-message-title {
  502. padding: 4px 5px 4px 25px;
  503. margin: 0;
  504. color: #c11;
  505. background: #ffefef url(../img/icon-no.svg) 5px 5px no-repeat;
  506. }
  507. .description {
  508. font-size: 12px;
  509. padding: 5px 0 0 12px;
  510. }
  511. /* BREADCRUMBS */
  512. div.breadcrumbs {
  513. background: #79aec8;
  514. padding: 10px 40px;
  515. border: none;
  516. font-size: 14px;
  517. color: #c4dce8;
  518. text-align: left;
  519. }
  520. div.breadcrumbs a {
  521. color: #fff;
  522. }
  523. div.breadcrumbs a:focus, div.breadcrumbs a:hover {
  524. color: #c4dce8;
  525. }
  526. /* ACTION ICONS */
  527. .addlink {
  528. padding-left: 16px;
  529. background: url(../img/icon-addlink.svg) 0 1px no-repeat;
  530. }
  531. .changelink, .inlinechangelink {
  532. padding-left: 16px;
  533. background: url(../img/icon-changelink.svg) 0 1px no-repeat;
  534. }
  535. .deletelink {
  536. padding-left: 16px;
  537. background: url(../img/icon-deletelink.svg) 0 1px no-repeat;
  538. }
  539. a.deletelink:link, a.deletelink:visited {
  540. color: #CC3434;
  541. }
  542. a.deletelink:focus, a.deletelink:hover {
  543. color: #993333;
  544. text-decoration: none;
  545. }
  546. /* OBJECT TOOLS */
  547. .object-tools {
  548. font-size: 10px;
  549. font-weight: bold;
  550. padding-left: 0;
  551. float: right;
  552. position: relative;
  553. margin-top: -48px;
  554. }
  555. .form-row .object-tools {
  556. margin-top: 5px;
  557. margin-bottom: 5px;
  558. float: none;
  559. height: 2em;
  560. padding-left: 3.5em;
  561. }
  562. .object-tools li {
  563. display: block;
  564. float: left;
  565. margin-left: 5px;
  566. height: 16px;
  567. }
  568. .object-tools a {
  569. border-radius: 15px;
  570. }
  571. .object-tools a:link, .object-tools a:visited {
  572. display: block;
  573. float: left;
  574. padding: 3px 12px;
  575. background: #999;
  576. font-weight: 400;
  577. font-size: 11px;
  578. text-transform: uppercase;
  579. letter-spacing: 0.5px;
  580. color: #fff;
  581. }
  582. .object-tools a:focus, .object-tools a:hover {
  583. background-color: #417690;
  584. }
  585. .object-tools a:focus{
  586. text-decoration: none;
  587. }
  588. .object-tools a.viewsitelink, .object-tools a.golink,.object-tools a.addlink {
  589. background-repeat: no-repeat;
  590. background-position: 93% center;
  591. padding-right: 26px;
  592. }
  593. .object-tools a.viewsitelink, .object-tools a.golink {
  594. background-image: url(../img/tooltag-arrowright.svg);
  595. }
  596. .object-tools a.addlink {
  597. background-image: url(../img/tooltag-add.svg);
  598. }
  599. /* OBJECT HISTORY */
  600. table#change-history {
  601. width: 100%;
  602. }
  603. table#change-history tbody th {
  604. width: 16em;
  605. }
  606. /* PAGE STRUCTURE */
  607. #container {
  608. position: relative;
  609. width: 100%;
  610. min-width: 980px;
  611. padding: 0;
  612. }
  613. #content {
  614. padding: 20px 40px;
  615. }
  616. .dashboard #content {
  617. width: 600px;
  618. }
  619. #content-main {
  620. float: left;
  621. width: 100%;
  622. }
  623. #content-related {
  624. float: right;
  625. width: 260px;
  626. position: relative;
  627. margin-right: -300px;
  628. }
  629. #footer {
  630. clear: both;
  631. padding: 10px;
  632. }
  633. /* COLUMN TYPES */
  634. .colMS {
  635. margin-right: 300px;
  636. }
  637. .colSM {
  638. margin-left: 300px;
  639. }
  640. .colSM #content-related {
  641. float: left;
  642. margin-right: 0;
  643. margin-left: -300px;
  644. }
  645. .colSM #content-main {
  646. float: right;
  647. }
  648. .popup .colM {
  649. width: auto;
  650. }
  651. /* HEADER */
  652. #header {
  653. width: auto;
  654. height: 40px;
  655. padding: 10px 40px;
  656. background: #417690;
  657. line-height: 40px;
  658. color: #ffc;
  659. overflow: hidden;
  660. }
  661. #header a:link, #header a:visited {
  662. color: #fff;
  663. }
  664. #header a:focus , #header a:hover {
  665. text-decoration: underline;
  666. }
  667. #branding {
  668. float: left;
  669. }
  670. #branding h1 {
  671. padding: 0;
  672. margin: 0 20px 0 0;
  673. font-weight: 300;
  674. font-size: 24px;
  675. color: #f5dd5d;
  676. }
  677. #branding h1, #branding h1 a:link, #branding h1 a:visited {
  678. color: #f5dd5d;
  679. }
  680. #branding h2 {
  681. padding: 0 10px;
  682. font-size: 14px;
  683. margin: -8px 0 8px 0;
  684. font-weight: normal;
  685. color: #ffc;
  686. }
  687. #branding a:hover {
  688. text-decoration: none;
  689. }
  690. #user-tools {
  691. float: right;
  692. padding: 0;
  693. margin: 0 0 0 20px;
  694. font-weight: 300;
  695. font-size: 11px;
  696. letter-spacing: 0.5px;
  697. text-transform: uppercase;
  698. text-align: right;
  699. }
  700. #user-tools a {
  701. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  702. }
  703. #user-tools a:focus, #user-tools a:hover {
  704. text-decoration: none;
  705. border-bottom-color: #79aec8;
  706. color: #79aec8;
  707. }
  708. /* SIDEBAR */
  709. #content-related {
  710. background: #f8f8f8;
  711. }
  712. #content-related .module {
  713. background: none;
  714. }
  715. #content-related h3 {
  716. font-size: 14px;
  717. color: #666;
  718. padding: 0 16px;
  719. margin: 0 0 16px;
  720. }
  721. #content-related h4 {
  722. font-size: 13px;
  723. }
  724. #content-related p {
  725. padding-left: 16px;
  726. padding-right: 16px;
  727. }
  728. #content-related .actionlist {
  729. padding: 0;
  730. margin: 16px;
  731. }
  732. #content-related .actionlist li {
  733. line-height: 1.2;
  734. margin-bottom: 10px;
  735. padding-left: 18px;
  736. }
  737. #content-related .module h2 {
  738. background: none;
  739. padding: 16px;
  740. margin-bottom: 16px;
  741. border-bottom: 1px solid #eaeaea;
  742. font-size: 18px;
  743. color: #333;
  744. }
  745. .delete-confirmation form input[type="submit"] {
  746. background: #ba2121;
  747. border-radius: 4px;
  748. padding: 10px 15px;
  749. color: #fff;
  750. }
  751. .delete-confirmation form input[type="submit"]:active,
  752. .delete-confirmation form input[type="submit"]:focus,
  753. .delete-confirmation form input[type="submit"]:hover {
  754. background: #a41515;
  755. }
  756. .delete-confirmation form .cancel-link {
  757. display: inline-block;
  758. vertical-align: middle;
  759. height: 15px;
  760. line-height: 15px;
  761. background: #ddd;
  762. border-radius: 4px;
  763. padding: 10px 15px;
  764. color: #333;
  765. margin: 0 0 0 10px;
  766. }
  767. .delete-confirmation form .cancel-link:active,
  768. .delete-confirmation form .cancel-link:focus,
  769. .delete-confirmation form .cancel-link:hover {
  770. background: #ccc;
  771. }
  772. /* POPUP */
  773. .popup #content {
  774. padding: 20px;
  775. }
  776. .popup #container {
  777. min-width: 0;
  778. }
  779. .popup #header {
  780. padding: 10px 20px;
  781. }