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.

424 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: 200px !important;
  208. }
  209. .icon-div {
  210. text-align: center;
  211. }
  212. .index-recent-posts {
  213. padding: 0;
  214. }
  215. .index-recent-post-title-container {
  216. padding-bottom: 1em;
  217. }
  218. .index-recent-posts li
  219. {
  220. list-style: none;
  221. -webkit-transition: background 0.3s linear;
  222. -webkit-transition-timing-function: linear;
  223. transition: background 0.3s linear;
  224. transition-timing-function: linear;
  225. padding: 1em;
  226. background: rgba(0, 0, 0, 0.65);
  227. margin-bottom: 1.5em;
  228. }
  229. .index-recent-posts li:hover {
  230. background: rgba(0, 0, 0, 0.9);
  231. }
  232. .index-recent-posts a:hover {
  233. text-decoration: none;
  234. }
  235. .index-post-intro * {
  236. color: #ffffff;
  237. margin: 0;
  238. }
  239. .index-recent-posts-title {
  240. font-size: 1.3em;
  241. width: 80%;
  242. display: inline;
  243. margin: 0;
  244. }
  245. .datetimebox {
  246. display: inline;
  247. float: right;
  248. font-size: 0.9em;
  249. margin: 0;
  250. }
  251. @media all and (max-width : 950px) {
  252. .container {
  253. border-spacing: 20px;
  254. max-width: 100%;
  255. }
  256. pre {
  257. overflow: scroll !important;
  258. }
  259. footer {
  260. width: calc( 100% - 70px );
  261. margin-right: 20px;
  262. margin-left: 20px;
  263. }
  264. .left-bar {
  265. display: none;
  266. }
  267. header h2 {
  268. top: 15px;
  269. }
  270. .pc-links {
  271. display: none;
  272. }
  273. .nav-toggle {
  274. display: inline-block;
  275. }
  276. .links {
  277. display: block;
  278. position: absolute;
  279. top: 80px;
  280. right: -230px;
  281. z-index: 1;
  282. background: rgba(0, 0, 0, 0.8);
  283. padding-top: 20px;
  284. padding-bottom: 20px;
  285. padding-left: 35px;
  286. padding-right: 35px;
  287. transition: 1s;
  288. }
  289. .links.expanded {
  290. right: 0px;
  291. transition: 1s;
  292. padding-top: 20px;
  293. padding-bottom: 20px;
  294. padding-left: 35px;
  295. padding-right: 35px;
  296. }
  297. .links ul {
  298. list-style: none;
  299. padding: 0;
  300. }
  301. .links ul li {
  302. padding-top: 6px;
  303. padding-bottom: 6px;
  304. }
  305. .nav-toggle {
  306. -webkit-user-select: none;
  307. -moz-user-select: none;
  308. user-select: none;
  309. cursor: pointer;
  310. height: 2rem;
  311. position: relative;
  312. float: right;
  313. right: 2rem;
  314. top: 2.0rem;
  315. width: 3.0rem;
  316. z-index: 2;
  317. }
  318. .nav-toggle:hover { opacity: 0.8; }
  319. .nav-toggle .nav-toggle-bar, .nav-toggle .nav-toggle-bar::after, .nav-toggle .nav-toggle-bar::before {
  320. position: absolute;
  321. top: 50%;
  322. -webkit-transform: translateY(-50%);
  323. -ms-transform: translateY(-50%);
  324. transform: translateY(-50%);
  325. -webkit-transition: all 0.5s ease;
  326. -moz-transition: all 0.5s ease;
  327. -ms-transition: all 0.5s ease;
  328. -o-transition: all 0.5s ease;
  329. transition: all 0.5s ease;
  330. background: white;
  331. content: '';
  332. height: 0.4rem;
  333. width: 100%;
  334. }
  335. .nav-toggle .nav-toggle-bar { margin-top: 0; }
  336. .nav-toggle .nav-toggle-bar::after { margin-top: 0.8rem; }
  337. .nav-toggle .nav-toggle-bar::before { margin-top: -0.8rem; }
  338. .nav-toggle.expanded .nav-toggle-bar { background: transparent; }
  339. .nav-toggle.expanded .nav-toggle-bar::after, .nav-toggle.expanded .nav-toggle-bar::before {
  340. background: white;
  341. margin-top: 0;
  342. }
  343. .nav-toggle.expanded .nav-toggle-bar::after {
  344. -ms-transform: rotate(45deg);
  345. -webkit-transform: rotate(45deg);
  346. transform: rotate(45deg);
  347. }
  348. .nav-toggle.expanded .nav-toggle-bar::before {
  349. -ms-transform: rotate(-45deg);
  350. -webkit-transform: rotate(-45deg);
  351. transform: rotate(-45deg);
  352. }
  353. }