Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
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.

397 lines
7.6KB

  1. /* Global Box Sizing and Font-Smoothing */
  2. *, *:after, *:before {
  3. box-sizing:border-box;
  4. -webkit-box-sizing:border-box;
  5. -moz-box-sizing:border-box;
  6. -webkit-font-smoothing:antialiased;
  7. -moz-font-smoothing:antialiased;
  8. -o-font-smoothing:antialiased;
  9. font-smoothing:antialiased;
  10. text-rendering:optimizeLegibility;
  11. }
  12. html { font-size: 100%; -webkit-text-size-adjust: 100%;
  13. -ms-text-size-adjust: 100%; }
  14. body {
  15. font-family: 'Open Sans', sans-serif;
  16. line-height:18px;
  17. color: #1c1c1c; /* Lighter on the eyes than #000 Black */
  18. margin: 0px; background: #cccccc; background-size: cover;
  19. }
  20. img {
  21. border: 0px;
  22. max-width: 100%;
  23. height: auto;
  24. width: auto\9; /* ie8 */
  25. }
  26. /* ==========================================================================
  27. Typography stuff goes here
  28. ========================================================================== */
  29. h1,h2,h3,h4,h5,h6 { font-weight: bold; margin:0; padding:0;}
  30. /*h1 see mediaqueries*/
  31. h2 {font-size: 1.2em;}
  32. h3 {font-size: 1.1em;}
  33. h4 {font-size: 1.0em; }
  34. h5 {font-size: 0.83em;}
  35. h6 {font-size: 0.75em;}
  36. a:hover, a:focus, a:active { outline: none; }
  37. a { color: #000066; font-weight: 800; text-decoration: none;}
  38. a:hover { color:#000; text-decoration: none; }
  39. .frontpage a {display:block; }
  40. .frontpage a:hover { width: 100%; background-color: #778899;}
  41. .books:hover { width: 100%; background-color: #778899; }
  42. .link a:hover { display:inline-block; width: 100%; background-color: #778899; /*Dirty IE Hack*/ zoom: 1; *display: inline;}
  43. .mfp-content .bookpopup {
  44. position: relative;
  45. background: #FFF;
  46. padding: 20px;
  47. width: auto;
  48. max-width: 700px;
  49. margin: 20px auto;
  50. }
  51. #email {
  52. width: 300px;
  53. }
  54. .filtered {
  55. display: none;
  56. }
  57. #filter {
  58. clear:both;
  59. }
  60. #filter ul {
  61. margin: 0;
  62. padding: 0;
  63. list-style-type: none;
  64. text-align: left;
  65. text-transform:none;
  66. }
  67. li {
  68. display: inline-block;
  69. padding: .2em 1em;
  70. margin: 2px;
  71. color: black;
  72. background-color: white;
  73. opacity: 0.5;
  74. }
  75. .filter-include {
  76. border-left:thick solid blue;
  77. opacity: 1;
  78. }
  79. .filter-exclude {
  80. border-right:thick solid red;
  81. opacity: 1;
  82. }
  83. img
  84. {
  85. margin:0;
  86. padding:0;
  87. border:0;
  88. }
  89. /* =============================================================================
  90. Main container stuff goes here and other globals
  91. ========================================================================== */
  92. .container{
  93. background: #414141; border:1px solid #000; border-radius:10px;
  94. max-width:800px;width:95%;margin:0 auto;position:relative; }
  95. /* =============================================================================
  96. Header stuff goes here
  97. ========================================================================== */
  98. header {
  99. clear:both;
  100. color:white;
  101. text-align:center;
  102. text-transform:uppercase;
  103. display:block;
  104. box-shadow:inset 0px -5px 8px #000000;
  105. min-height:70px;
  106. border-radius: 10px 10px 0px 0px;
  107. }
  108. .hicon{
  109. display:inline-block;
  110. color:lightgray;
  111. text-align: center;
  112. vertical-align: bottom;
  113. text-shadow: 2px 2px 2px black;
  114. }
  115. .submit {
  116. color: lightgray;
  117. cursor: pointer;
  118. background-color: transparent;
  119. background-image: none;
  120. border-color: transparent;
  121. -webkit-border-radius: 0;
  122. -moz-border-radius: 0;
  123. border-radius: 0;
  124. -webkit-box-shadow: none;
  125. -moz-box-shadow: none;
  126. box-shadow: none;
  127. }
  128. .hicon64{
  129. font-size: 64px;
  130. line-height: 64px;
  131. width: 64px;
  132. height: 64px;
  133. }
  134. .hicon32{
  135. font-size: 24px;
  136. line-height: 32px;
  137. width: 32px;
  138. height: 32px;
  139. }
  140. .headleft {
  141. float: left;
  142. }
  143. .headcenter
  144. {
  145. float:none;
  146. margin:auto;
  147. text-align:center;
  148. height:70px;
  149. display:table;
  150. }
  151. header h1{
  152. display: table-cell;
  153. vertical-align: middle;
  154. text-align: center;
  155. line-height: 100%;
  156. text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
  157. 0px 8px 13px rgba(0,0,0,0.1),
  158. 0px 18px 23px rgba(0,0,0,0.1);
  159. }
  160. .headright {
  161. float: right;
  162. /*for ios compatibility*/
  163. cursor: pointer;
  164. }
  165. /* =============================================================================
  166. Section and Article stuff goes here
  167. ========================================================================== */
  168. section {
  169. clear:both;
  170. background-color: #fff;
  171. }
  172. article {
  173. border-bottom: 1px solid black;
  174. max-width:800px;
  175. }
  176. /*-------------frontpage article-------------*/
  177. .frontpage h2 {
  178. padding: 5px 0 0 5px;
  179. }
  180. .frontpage h4 {
  181. padding: 5px 0 5px 20px;
  182. font-style: italic;
  183. }
  184. /*-------------books article-------------*/
  185. .books {
  186. clear: both;
  187. min-height: 90px;
  188. }
  189. .books .cover {
  190. float:left;
  191. margin: 4px 10px 4px 4px;
  192. width: 60px;
  193. height: 82px;
  194. }
  195. .bookpopup .cover {
  196. float:left;
  197. margin: 4px 10px 4px 4px;
  198. width: 100px;
  199. height: 150px;
  200. }
  201. .cover img {
  202. max-width:100%;
  203. max-height:100%;
  204. color: white;
  205. }
  206. .download {
  207. float: right;
  208. line-height:40px;
  209. text-align: right;
  210. margin: 6px;
  211. }
  212. .download a {
  213. border-radius: 6px;
  214. box-shadow:0 0 10px #000;
  215. background: darkgray;
  216. background: radial-gradient(#666, black);
  217. color: #EEE;
  218. text-decoration : none;
  219. font-weight: bold;
  220. padding: 5px 10px 5px 10px;
  221. text-align: center;
  222. }
  223. .download img {
  224. vertical-align:middle;
  225. }
  226. .books h4{
  227. display: inline;
  228. font-style: italic;
  229. }
  230. /*-------------books popup article-------------*/
  231. .bookpopup h2{
  232. margin: 15px 15px;
  233. }
  234. .bookpopup h3{
  235. display:inline; /*Dirty IE Hack*/ zoom: 1; *display: inline;
  236. }
  237. .bookpopup h4{
  238. border-top: 1px solid black;
  239. }
  240. .fullclickpopup{
  241. display: block;
  242. }
  243. section .bookpopup{
  244. padding: 8px 8px;
  245. }
  246. /* =============================================================================
  247. Footer stuff goes here
  248. ========================================================================== */
  249. footer
  250. {
  251. clear:both;
  252. color:white;
  253. box-shadow:inset 0px 5px 8px #000000;
  254. border-radius: 0px 0px 10px 10px;
  255. height:32px;
  256. }
  257. .footleft
  258. {
  259. float:left;
  260. height:32px;
  261. }
  262. .footright
  263. {
  264. float:right;
  265. height:32px;
  266. }
  267. .footcenter
  268. {
  269. margin:auto;
  270. text-align:center;
  271. height:32px;
  272. display:table;
  273. font-weight: bold;
  274. }
  275. .footcenter p, .footcenter a
  276. {
  277. display: table-cell;
  278. vertical-align: middle;
  279. text-align: center;
  280. line-height: 100%;
  281. }
  282. /* =============================================================================
  283. Aside stuff goes here
  284. ========================================================================== */
  285. #tool
  286. {
  287. width:100%;
  288. overflow: hidden;
  289. }
  290. /*-------------Search Aside-------------*/
  291. #tool input[type=search]
  292. {
  293. vertical-align: middle;
  294. width: 100%;
  295. margin: 3px;
  296. }
  297. .stop select
  298. {
  299. vertical-align: middle;
  300. margin: 4px;
  301. }
  302. #sort
  303. {
  304. cursor:pointer;
  305. }
  306. .stop
  307. {
  308. display: block;
  309. overflow: hidden;
  310. }
  311. /* =============================================================================
  312. Mediaquerie stuff goes here
  313. ========================================================================== */
  314. /* 100px and greater */
  315. @media only screen and (min-width: 100px) {
  316. h1 {font-size: 1em;}
  317. .container { width:100%; }
  318. }
  319. /* 320px and greater */
  320. @media only screen and (min-width: 320px) {
  321. h1 {font-size: 1.2em;}
  322. }
  323. /* 480px and greater */
  324. @media only screen and (min-width: 480px) {
  325. h1 {font-size: 1.5em;}
  326. body { font-size: 1em;/*12px/16px */
  327. font-weight:450; /* Better supported than 'lighter' attribute */
  328. }
  329. }
  330. /* 768px and greater */
  331. @media only screen and (min-width: 768px) {
  332. h1 {font-size: 2em; line-height: 1em;}
  333. .container { box-shadow:0 0 20px #000; }
  334. body { margin: 5px;
  335. font-size: 0.85em;/*12px/16px */
  336. font-weight:400; /* Better supported than 'lighter' attribute */
  337. }
  338. }