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.

426 lines
6.9 KiB

  1. html {
  2. margin: 0;
  3. padding: 0;
  4. overflow-x: hidden;
  5. background: url(/static/background.png) no-repeat center center fixed;
  6. -webkit-background-size: cover;
  7. -moz-background-size: cover;
  8. -o-background-size: cover;
  9. background-size: cover;
  10. height: 100%;
  11. min-height: 100%;
  12. }
  13. body {
  14. min-height: 100%;
  15. overflow-x: hidden;
  16. margin: 0;
  17. padding: 0;
  18. position: absolute;
  19. width: 100%;
  20. top: 0;
  21. border: none;
  22. color: white;
  23. height: 100%;
  24. font-family: "Montserrat", sans-serif;
  25. }
  26. a {
  27. color: white;
  28. text-decoration: none;
  29. }
  30. header {
  31. background: rgba(0, 0, 0, 0.7);
  32. height: 80px;
  33. position: relative;
  34. bottom: 17px;
  35. }
  36. header h2 {
  37. position: relative;
  38. float: left;
  39. display: inline-block;
  40. top: 5px;
  41. margin-left: 30px;
  42. -webkit-transition: padding 1s linear, border 0.5s linear;
  43. -webkit-transition-timing-function: linear;
  44. transition: padding 0.3s linear, border 0.3s linear;
  45. transition-timing-function: linear;
  46. }
  47. header h2:hover {
  48. border-bottom: 5px solid #ff7607;
  49. padding-left: 5px;
  50. padding-right: 5px;
  51. }
  52. .pc-links {
  53. padding-right: 40px;
  54. padding-top: 20px;
  55. }
  56. .pc-links li {
  57. display: inline-block;
  58. float: right;
  59. padding-left: 15px;
  60. padding-right: 15px;
  61. padding-top: 10px;
  62. margin-right: 20px;
  63. -webkit-transition: padding 1s linear, border 0.5s linear;
  64. -webkit-transition-timing-function: linear;
  65. transition: padding 0.3s linear, border 0.3s linear;
  66. transition-timing-function: linear;
  67. }
  68. .pc-links li:hover {
  69. border-bottom: 5px solid #ff7607;
  70. padding-left: 17px;
  71. padding-right: 17px;
  72. }
  73. .container {
  74. min-height: calc( 100% - 300px );
  75. height: calc( 100% - 200px );
  76. width: 100%;
  77. overflow: hidden;
  78. position: relative;
  79. bottom: 20px;
  80. display: table;
  81. border-collapse: separate;
  82. border-spacing: 40px;
  83. }
  84. .left-bar {
  85. position: relative;
  86. padding: 15px;
  87. background: rgba(0, 0, 0, 0.7);
  88. width: 150px;
  89. display: table-cell;
  90. vertical-align: top;
  91. }
  92. .left-bar ul {
  93. list-style: none;
  94. padding-left: 10px;
  95. }
  96. .left-bar ul li {
  97. padding: 3px;
  98. -webkit-transition: background 0.3s linear;
  99. -webkit-transition-timing-function: linear;
  100. transition: background 0.3s linear;
  101. transition-timing-function: linear;
  102. }
  103. .left-bar ul li:hover {
  104. background: rgba(0, 0, 0, 0.8);
  105. }
  106. .expand-links li {
  107. -webkit-transition: padding 0.3s linear, background 0.3s linear;
  108. -webkit-transition-timing-function: linear;
  109. transition: padding 0.3s linear, background 0.3s linear;
  110. transition-timing-function: linear;
  111. }
  112. .expand-links li:hover {
  113. padding: 5px;
  114. background: rgba(0, 0, 0, 0.8);
  115. }
  116. .recent-post li {
  117. padding-bottom: 10px !important;
  118. }
  119. .main {
  120. position: relative;
  121. padding: 15px;
  122. padding-left: 25px;
  123. padding-right: 25px;
  124. background: rgba(0, 0, 0, 0.7);
  125. word-wrap: break-word;
  126. height: 100%;
  127. display: table-cell;
  128. vertical-align: top;
  129. word-wrap: break-word;
  130. }
  131. .main a {
  132. color: #99ffff;
  133. text-decoration: none;
  134. }
  135. .main a:hover {
  136. color: #0091c9;
  137. }
  138. .main img {
  139. max-width: 100%;
  140. }
  141. .paginate {
  142. width: calc(100% - 22px);
  143. text-align: center;
  144. position: absolute;
  145. bottom: 0;
  146. }
  147. .paginate ul {
  148. padding: 0;
  149. }
  150. .paginate ul a li {
  151. display: inline-block;
  152. padding-left: 4px;
  153. padding-right: 4px;
  154. }
  155. footer {
  156. width: calc( 100% - 110px );
  157. margin-right: 40px;
  158. margin-left: 40px;
  159. padding: 15px;
  160. padding-top: 20px;
  161. background: rgba(0, 0, 0, 0.7);
  162. height: 80px;
  163. text-align: center;
  164. }
  165. footer p {
  166. color: grey;
  167. font-size: 0.9em;
  168. }
  169. footer a {
  170. color: #99ffff;
  171. text-decoration: none;
  172. }
  173. footer a:hover {
  174. color: #0091c9;
  175. text-decoration: underline;
  176. }
  177. .active {
  178. border-bottom: 3px solid #ff760799;
  179. }
  180. .nav-toggle {
  181. display: none;
  182. }
  183. .links {
  184. display: none;
  185. }
  186. .main-links ul {
  187. list-style: none;
  188. }
  189. pre::-webkit-scrollbar-color {
  190. background-color: red;
  191. outline: 1px solid red;
  192. }
  193. .list-post-title {
  194. margin-top: 5px;
  195. margin-bottom: 2px;
  196. }
  197. .datetime {
  198. margin-top: 0;
  199. margin-bottom: 5px;
  200. }
  201. .post-title {
  202. padding: 10px;
  203. text-align: center;
  204. font-size: 2em;
  205. }
  206. .post-icon {
  207. max-width: 50% !important;
  208. max-height: 20em !important;
  209. padding-bottom: 2em;
  210. }
  211. .icon-div {
  212. text-align: center;
  213. }
  214. .index-recent-posts {
  215. padding: 0;
  216. }
  217. .index-recent-post-title-container {
  218. padding-bottom: 1em;
  219. }
  220. .index-recent-posts li
  221. {
  222. list-style: none;
  223. -webkit-transition: background 0.3s linear;
  224. -webkit-transition-timing-function: linear;
  225. transition: background 0.3s linear;
  226. transition-timing-function: linear;
  227. padding: 1em;
  228. background: rgba(0, 0, 0, 0.65);
  229. margin-bottom: 1.5em;
  230. }
  231. .index-recent-posts li:hover {
  232. background: rgba(0, 0, 0, 0.9);
  233. }
  234. .index-recent-posts a:hover {
  235. text-decoration: none;
  236. }
  237. .index-post-intro * {
  238. color: #ffffff;
  239. margin: 0;
  240. }
  241. .index-recent-posts-title {
  242. font-size: 1.3em;
  243. width: 80%;
  244. display: inline;
  245. margin: 0;
  246. }
  247. .datetimebox {
  248. display: inline;
  249. float: right;
  250. font-size: 0.9em;
  251. margin: 0;
  252. }
  253. @media all and (max-width : 950px) {
  254. .container {
  255. border-spacing: 20px;
  256. max-width: 100%;
  257. }
  258. pre {
  259. overflow: scroll !important;
  260. }
  261. footer {
  262. width: calc( 100% - 70px );
  263. margin-right: 20px;
  264. margin-left: 20px;
  265. }
  266. .left-bar {
  267. display: none;
  268. }
  269. header h2 {
  270. top: 15px;
  271. }
  272. .pc-links {
  273. display: none;
  274. }
  275. .nav-toggle {
  276. display: inline-block;
  277. }
  278. .links {
  279. display: block;
  280. position: absolute;
  281. top: 80px;
  282. right: -230px;
  283. z-index: 1;
  284. background: rgba(0, 0, 0, 0.8);
  285. padding-top: 20px;
  286. padding-bottom: 20px;
  287. padding-left: 35px;
  288. padding-right: 35px;
  289. transition: 1s;
  290. }
  291. .links.expanded {
  292. right: 0px;
  293. transition: 1s;
  294. padding-top: 20px;
  295. padding-bottom: 20px;
  296. padding-left: 35px;
  297. padding-right: 35px;
  298. }
  299. .links ul {
  300. list-style: none;
  301. padding: 0;
  302. }
  303. .links ul li {
  304. padding-top: 6px;
  305. padding-bottom: 6px;
  306. }
  307. .nav-toggle {
  308. -webkit-user-select: none;
  309. -moz-user-select: none;
  310. user-select: none;
  311. cursor: pointer;
  312. height: 2rem;
  313. position: relative;
  314. float: right;
  315. right: 2rem;
  316. top: 2.0rem;
  317. width: 3.0rem;
  318. z-index: 2;
  319. }
  320. .nav-toggle:hover { opacity: 0.8; }
  321. .nav-toggle .nav-toggle-bar, .nav-toggle .nav-toggle-bar::after, .nav-toggle .nav-toggle-bar::before {
  322. position: absolute;
  323. top: 50%;
  324. -webkit-transform: translateY(-50%);
  325. -ms-transform: translateY(-50%);
  326. transform: translateY(-50%);
  327. -webkit-transition: all 0.5s ease;
  328. -moz-transition: all 0.5s ease;
  329. -ms-transition: all 0.5s ease;
  330. -o-transition: all 0.5s ease;
  331. transition: all 0.5s ease;
  332. background: white;
  333. content: '';
  334. height: 0.4rem;
  335. width: 100%;
  336. }
  337. .nav-toggle .nav-toggle-bar { margin-top: 0; }
  338. .nav-toggle .nav-toggle-bar::after { margin-top: 0.8rem; }
  339. .nav-toggle .nav-toggle-bar::before { margin-top: -0.8rem; }
  340. .nav-toggle.expanded .nav-toggle-bar { background: transparent; }
  341. .nav-toggle.expanded .nav-toggle-bar::after, .nav-toggle.expanded .nav-toggle-bar::before {
  342. background: white;
  343. margin-top: 0;
  344. }
  345. .nav-toggle.expanded .nav-toggle-bar::after {
  346. -ms-transform: rotate(45deg);
  347. -webkit-transform: rotate(45deg);
  348. transform: rotate(45deg);
  349. }
  350. .nav-toggle.expanded .nav-toggle-bar::before {
  351. -ms-transform: rotate(-45deg);
  352. -webkit-transform: rotate(-45deg);
  353. transform: rotate(-45deg);
  354. }
  355. }