Django Library Themes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

base.css 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. {% load static %}
  2. /*
  3. * Common
  4. */
  5. html {
  6. color: #0A1E2D;
  7. font-family: sans-serif;
  8. -ms-text-size-adjust: 100%;
  9. -webkit-text-size-adjust: 100%;
  10. }
  11. body {
  12. margin-bottom: 0;
  13. }
  14. .app-content {
  15. padding-top: 30px;
  16. padding-bottom: 30px;
  17. padding-left: 10px;
  18. padding-right: 10px;
  19. }
  20. h1 {
  21. padding: 6px;
  22. background-color: #f2f2f2;
  23. border-left:5px solid #0A1E2D;
  24. border-bottom:5px solid #0A1E2D;
  25. font-size: 22px;
  26. }
  27. .image_bg h1 {
  28. margin: 2px 0px;
  29. margin-bottom: 4px;
  30. border-left:0px;
  31. border-bottom:0px;
  32. }
  33. h2 {
  34. padding: 6px;
  35. background-color: #f2f2f2;
  36. border-left:3px solid #0A1E2D;
  37. border-bottom:3px solid #0A1E2D;
  38. font-size: 18px;
  39. }
  40. h3 {
  41. padding: 6px;
  42. background-color: #f2f2f2;
  43. font-size: 14px;
  44. }
  45. ul {
  46. list-style-type: square;
  47. padding: 10px 30px;
  48. }
  49. a {
  50. color: #007076;
  51. font-weight: bold;
  52. }
  53. a:hover {
  54. background: #01D0DA;
  55. }
  56. table {
  57. opacity: 0.75;
  58. background-color: #ffffff;
  59. border-collapse: collapse;
  60. width: 100%;
  61. margin: 2px 0px;
  62. }
  63. td, th {
  64. border: 1px solid #dddddd;
  65. text-align: left;
  66. padding: 8px;
  67. }
  68. tr:nth-child(even) {
  69. background-color: #dddddd;
  70. }
  71. /*
  72. * Forms
  73. */
  74. .form {
  75. background-color: #f2f2f2;
  76. padding: 10px 20px;
  77. margin: 5px 10px;
  78. margin-bottom: 10px;
  79. }
  80. input[type=text], select {
  81. width: 100%;
  82. padding: 5px 10px;
  83. margin: 4px 0;
  84. display: inline-block;
  85. border: 1px solid #cccccc;
  86. border-radius: 3px;
  87. box-sizing: border-box;
  88. }
  89. textarea {
  90. width: 100%;
  91. padding: 5px 10px;
  92. margin: 4px 0;
  93. display: inline-block;
  94. border: 1px solid #cccccc;
  95. border-radius: 3px;
  96. box-sizing: border-box;
  97. }
  98. input[type=password], select {
  99. width: 100%;
  100. padding: 5px 10px;
  101. margin: 4px 0;
  102. display: inline-block;
  103. border: 1px solid #ccc;
  104. border-radius: 3px;
  105. box-sizing: border-box;
  106. }
  107. input[type=email], select {
  108. width: 100%;
  109. padding: 5px 10px;
  110. margin: 4px 0;
  111. display: inline-block;
  112. border: 1px solid #cccccc;
  113. border-radius: 3px;
  114. box-sizing: border-box;
  115. }
  116. input[type=select], select {
  117. width: 100%;
  118. padding: 5px 10px;
  119. margin: 4px 0;
  120. display: inline-block;
  121. border: 1px solid #cccccc;
  122. border-radius: 3px;
  123. box-sizing: border-box;
  124. }
  125. input[type=file], select {
  126. width: 100%;
  127. padding: 5px 10px;
  128. margin: 4px 0;
  129. display: inline-block;
  130. border: 1px solid #ccc;
  131. border-radius: 3px;
  132. box-sizing: border-box;
  133. }
  134. p {
  135. margin: 12px 0;
  136. }
  137. input[type=submit] {
  138. width: 100%;
  139. background-color: #4CAF50;
  140. color: white;
  141. padding: 10px 15px;
  142. margin: 8px 0;
  143. border: none;
  144. border-radius: 3px;
  145. cursor: pointer;
  146. }
  147. input[type=submit]:hover {
  148. background-color: #45a049;
  149. }
  150. label {
  151. font-weight: bold;
  152. }
  153. ul.errorlist {
  154. color: red;
  155. }
  156. /*
  157. * Navigation- and Menubars
  158. */
  159. .titlebar {
  160. overflow: hidden;
  161. background-color: #0A1E2D;
  162. color: #01D0DA;
  163. padding: 14px 16px;
  164. padding-left:75px;
  165. font-size: 22px;
  166. max-height: 50px;
  167. }
  168. .page-logo {
  169. display: inline;
  170. position: absolute;
  171. top: 0px;
  172. left: 0px;
  173. }
  174. .page-logo:hover {
  175. background-color: transparent;
  176. }
  177. .titlebar input[type=text] {
  178. color: #3796f0;
  179. font-weight: bold;
  180. float: right;
  181. width: 34px;
  182. height: 34px;
  183. border: none;
  184. padding: 7px 7px;
  185. padding-left: 5px;
  186. padding-right: 34px;
  187. border-radius: 2px;
  188. margin: 0;
  189. -webkit-transition: width 0.4s ease-in-out;
  190. transition: width 0.4s ease-in-out;
  191. background-color: #4285f4;
  192. background-image: url('{% static 'themes/'|add:settings.page_theme|add:'/search.png' %}');
  193. background-position: 0px 0px;
  194. background-repeat: no-repeat;
  195. }
  196. .titlebar input[type=text]/*:focus*/ {
  197. float: right;
  198. display: block;
  199. padding-right: 43px;
  200. text-align: left;
  201. width: 300px;
  202. background-position: 263px 0px;
  203. max-width: 100%;
  204. margin: 0;
  205. background-color: white;
  206. }
  207. /*
  208. * MENUBAR
  209. */
  210. .menubar {
  211. overflow: hidden;
  212. background-color: #0A1E2D;
  213. z-index: 50;
  214. }
  215. .bottombar {
  216. position: fixed;
  217. bottom: 0;
  218. left: 0;
  219. width: calc(100% - 16px);
  220. margin-left: 8px;
  221. max-height: 53px;
  222. }
  223. .bottomspace {
  224. min-height: 53px;
  225. }
  226. .menubar a {
  227. float: left;
  228. font-size: 18px;
  229. color: #01D0DA;
  230. text-align: center;
  231. padding: 4px 15px;
  232. text-decoration: none;
  233. font-weight: normal;
  234. }
  235. .menubar-slim a {
  236. padding: 2px 2px;
  237. font-weight: normal;
  238. }
  239. .dropdown {
  240. float: left;
  241. overflow: hidden;
  242. }
  243. .dropdown .dropbtn {
  244. font-size: 18px;
  245. border: none;
  246. outline: none;
  247. color: #01D0DA;
  248. padding: 4px 15px;
  249. background-color: inherit;
  250. font-family: inherit;
  251. margin: 0;
  252. }
  253. .dropdown-slim .dropbtn-slim {
  254. padding: 2px 2px;
  255. }
  256. .menubar a:hover, .dropdown:hover .dropbtn {
  257. background-color: #007076;
  258. }
  259. .dropdown-content {
  260. display: none;
  261. position: absolute;
  262. background-color: #f9f9f9;
  263. min-width: 50px;
  264. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  265. z-index: 25;
  266. }
  267. .dropdown-content a {
  268. float: none;
  269. color: #0A1E2D;
  270. padding: 12px 16px;
  271. text-decoration: none;
  272. display: block;
  273. text-align: left;
  274. font-weight: normal;
  275. }
  276. .dropdown-content a:hover {
  277. background-color: #ddd;
  278. }
  279. .dropdown:hover .dropdown-content {
  280. display: block;
  281. }
  282. /*
  283. * NAVIGATIONBAR
  284. */
  285. ul.navigationbar {
  286. list-style-type: none;
  287. margin: 0;
  288. padding: 0;
  289. overflow: hidden;
  290. background-color: #007076;
  291. max-height: 24px;
  292. }
  293. li.navigationbar {
  294. color: #0A1E2D;
  295. float: left;
  296. font-size: 16px;
  297. }
  298. li.navigationbar a {
  299. display: block;
  300. color: #0A1E2D;
  301. text-align: center;
  302. padding: 2px 2px;
  303. text-decoration: none;
  304. font-weight: normal;
  305. }
  306. li.navigationbar a:hover {
  307. background-color: #01D0DA;
  308. }
  309. .active_menu {
  310. background-color: #007076;
  311. }
  312. /* When the screen is less than (n*100+250)px wide, reduce content to be shown */
  313. @media screen and (max-width: calc({{actionbar|length}} * 100px + 250px)) {
  314. .action_menu_hide {
  315. display: none
  316. }
  317. }
  318. /* When the screen is less than (n*100+250)px wide, reduce content to be shown */
  319. @media screen and (max-width: calc({{menubar|length}} * 100px + 250px)) {
  320. .menu_hide {
  321. display: none
  322. }
  323. }
  324. /* When the screen is less than (n*14+75+350)px wide, reduce content to be shown */
  325. @media screen and (max-width: calc({{title|length}} * 15px + 75px + 350px)) {
  326. .title_hide {
  327. display: none
  328. }
  329. }
  330. /*
  331. * Flash (Hint, Info, Error)
  332. */
  333. .hidden {
  334. display: none;
  335. }
  336. .fixed {
  337. position: fixed;
  338. top: 30px;
  339. width: 100%; /* so wie flash */
  340. padding-right:15px;
  341. cursor: cell;
  342. }
  343. .flash{
  344. margin: 0px;
  345. display: block;
  346. padding-top: 16px;
  347. padding-bottom: 16px;
  348. padding-left: 10px;
  349. padding-right: 10px;
  350. font-size: 16px;
  351. }
  352. .flash > a {
  353. text-decoration: none;
  354. font-weight: bold;
  355. }
  356. .flash > a:hover {
  357. background: none;
  358. text-decoration: underline;
  359. }
  360. .flash-hint {
  361. color: #205b00;
  362. background-color: rgba(221, 255, 221, 0.9);
  363. border-left: 6px solid #205b00;
  364. }
  365. .flash-hint > a {
  366. color: #205b00;
  367. }
  368. .flash-info {
  369. color: #204a87;
  370. background-color: rgba(212, 239, 255, 0.9);
  371. border-left: 6px solid #204a87;
  372. }
  373. .flash-info > a {
  374. color: #204a87;
  375. }
  376. .flash-error {
  377. color: #a40000;
  378. background-color: rgba(255, 221, 221, 0.9);
  379. border-left: 6px solid #a40000;
  380. }
  381. .flash-error > a {
  382. color: #a40000;
  383. }
  384. .close-flash {
  385. background: #323232;
  386. opacity:1;
  387. color: #FFFFFF;
  388. line-height: 25px;
  389. position: absolute;
  390. top: 12px;
  391. right: 30px;
  392. text-align: center;
  393. width: 24px;
  394. text-decoration: none;
  395. font-weight: bold;
  396. -webkit-border-radius: 12px;
  397. -moz-border-radius: 12px;
  398. border-radius: 12px;
  399. -moz-box-shadow: 1px 1px 3px #000000;
  400. -webkit-box-shadow: 1px 1px 3px #000000;
  401. box-shadow: 1px 1px 3px #000000;
  402. }
  403. #fixed:hover .close-flash {
  404. background: #a40000;
  405. opacity:1;
  406. color: #FFFFFF;
  407. }
  408. /*
  409. * Items
  410. */
  411. div.itemname {
  412. font-weight: bold;
  413. padding: 2px;
  414. font-size: 14px;
  415. text-align: center;
  416. }
  417. div.datetime {
  418. font-style: italic;
  419. padding: 2px;
  420. font-size: 12px;
  421. text-align: center;
  422. }
  423. audio {
  424. width: 100%;
  425. margin: 2px 0px;
  426. padding: 1px;
  427. min-width: 300px;
  428. display: block;
  429. }
  430. * {
  431. box-sizing: border-box;
  432. }
  433. .container {
  434. position: relative;
  435. z-index: 1;
  436. }
  437. .tag {
  438. border: 2px solid rgba(255,100,100,.55);
  439. display:block;
  440. position:absolute;
  441. }
  442. .tag:hover {
  443. border: 3px solid rgba(255,100,100,.85);
  444. background-color: transparent;
  445. }
  446. .image {
  447. float: left;
  448. margin: 6px;
  449. }
  450. .image_bg {
  451. background: #0A1E2D;
  452. padding: 6px;
  453. }
  454. .image_bg:hover {
  455. background: #007076;
  456. }
  457. .webnail {
  458. max-width: 90vw;
  459. max-height: 90vh;
  460. }
  461. .clearfix:after {
  462. content: "";
  463. display: table;
  464. clear: both;
  465. }
  466. /*
  467. * Modal Dialog
  468. */
  469. .modalDialog {
  470. position: fixed;
  471. top: 0;
  472. right: 0;
  473. bottom: 0;
  474. left: 0;
  475. background: rgba(0,0,0,0.8);
  476. z-index: 99999;
  477. opacity:0;
  478. -webkit-transition: opacity 400ms ease-in;
  479. -moz-transition: opacity 400ms ease-in;
  480. transition: opacity 400ms ease-in;
  481. pointer-events: none;
  482. }
  483. .modalDialog:target {
  484. opacity:1;
  485. pointer-events: auto;
  486. }
  487. .modalDialog > div {
  488. width:calc(100% - 60px);
  489. height: calc(100vh - 60px);
  490. overflow-y: auto;
  491. position: relative;
  492. margin-top: 30px;
  493. margin-left: 30px;
  494. padding: 5px 20px 13px 20px;
  495. border-radius: 10px;
  496. background: #ffffff;
  497. background: -moz-linear-gradient(#ffffff, #999999);
  498. background: -webkit-linear-gradient(#ffffff, #999999);
  499. background: -o-linear-gradient(#ffffff, #999999);
  500. opacity:0.9;
  501. }
  502. .close {
  503. background: #606061;
  504. opacity:1;
  505. color: #FFFFFF;
  506. line-height: 25px;
  507. position: absolute;
  508. right: 20px;
  509. text-align: center;
  510. top: 20px;
  511. width: 24px;
  512. text-decoration: none;
  513. font-weight: bold;
  514. -webkit-border-radius: 12px;
  515. -moz-border-radius: 12px;
  516. border-radius: 12px;
  517. -moz-box-shadow: 1px 1px 3px #000000;
  518. -webkit-box-shadow: 1px 1px 3px #000000;
  519. box-shadow: 1px 1px 3px #000000;
  520. }
  521. .close:hover {
  522. background: #007076;
  523. opacity:1;
  524. color: #FFFFFF;
  525. }
  526. .modal-info {
  527. margin: 0px;
  528. display: block;
  529. padding-top: 16px;
  530. padding-bottom: 16px;
  531. padding-left: 10px;
  532. padding-right: 10px;
  533. font-size: 16px;
  534. color: #204a87;
  535. background-color: #daefff;
  536. border-left: 6px solid #204a87;
  537. }
  538. .modal-info > a {
  539. text-decoration: none;
  540. font-weight: bold;
  541. color: #204a87;
  542. }
  543. .modal-info > a:hover {
  544. background: none;
  545. text-decoration: underline;
  546. }
  547. .image_modal {
  548. display: flex;
  549. vertical-align: middle;
  550. }
  551. .webnail_modal {
  552. display: block;
  553. max-width: 100%;
  554. max-height: 100%;
  555. margin: auto;
  556. zoom: 2;
  557. }
  558. /*
  559. * Sticky Header
  560. */
  561. /* Page content */
  562. .content {
  563. }
  564. /* The sticky class is added to the header with JS when it reaches its scroll position */
  565. .sticky {
  566. position: fixed;
  567. top: 0;
  568. width: calc(100% - 16px);
  569. }
  570. .sticky-submenu {
  571. position: fixed;
  572. }
  573. /* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
  574. .sticky + .content {
  575. padding-top: 30px;
  576. }