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.

401 lines
6.6 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. -webkit-transition: padding 1s linear, border 0.5s linear;
  63. -webkit-transition-timing-function: linear;
  64. transition: padding 0.3s linear, border 0.3s linear;
  65. transition-timing-function: linear;
  66. }
  67. .pc-links li:hover {
  68. border-bottom: 5px solid #ff7607;
  69. padding-left: 17px;
  70. padding-right: 17px;
  71. }
  72. .container {
  73. min-height: calc( 100% - 300px );
  74. height: calc( 100% - 200px );
  75. width: 100%;
  76. overflow: hidden;
  77. position: relative;
  78. bottom: 20px;
  79. display: table;
  80. border-collapse: separate;
  81. border-spacing: 40px;
  82. }
  83. .left-bar {
  84. position: relative;
  85. padding: 15px;
  86. background: rgba(0, 0, 0, 0.7);
  87. width: 150px;
  88. display: table-cell;
  89. vertical-align: top;
  90. }
  91. .left-bar ul {
  92. list-style: none;
  93. padding-left: 10px;
  94. }
  95. .left-bar ul li {
  96. padding: 3px;
  97. -webkit-transition: background 0.3s linear;
  98. -webkit-transition-timing-function: linear;
  99. transition: background 0.3s linear;
  100. transition-timing-function: linear;
  101. }
  102. .left-bar ul li:hover {
  103. background: rgba(0, 0, 0, 0.8);
  104. }
  105. .expand-links li {
  106. -webkit-transition: padding 0.3s linear, background 0.3s linear;
  107. -webkit-transition-timing-function: linear;
  108. transition: padding 0.3s linear, background 0.3s linear;
  109. transition-timing-function: linear;
  110. }
  111. .expand-links li:hover {
  112. padding: 5px;
  113. background: rgba(0, 0, 0, 0.8);
  114. }
  115. .recent-post li {
  116. padding-bottom: 10px !important;
  117. }
  118. .main {
  119. position: relative;
  120. padding: 15px;
  121. padding-left: 25px;
  122. padding-right: 25px;
  123. background: rgba(0, 0, 0, 0.7);
  124. word-wrap: break-word;
  125. height: 100%;
  126. display: table-cell;
  127. vertical-align: top;
  128. word-wrap: break-word;
  129. }
  130. .main a {
  131. color: #99ffff;
  132. text-decoration: none;
  133. }
  134. .main a:hover {
  135. color: #0091c9;
  136. text-decoration: underline;
  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. }
  205. .post-icon {
  206. max-width: 200px !important;
  207. }
  208. .icon-div {
  209. text-align: center;
  210. }
  211. .index-recent-posts li
  212. {
  213. list-style: none;
  214. -webkit-transition: background 0.3s linear;
  215. -webkit-transition-timing-function: linear;
  216. transition: background 0.3s linear;
  217. transition-timing-function: linear;
  218. padding: 10px;
  219. margin-bottom: 10px;
  220. background: rgba(0, 0, 0, 0.65);
  221. }
  222. .index-recent-posts li:hover {
  223. background: rgba(0, 0, 0, 0.9);
  224. }
  225. .index-recent-posts-title {
  226. font-size: 1.3em;
  227. }
  228. .datetimebox {
  229. display: inline-block;
  230. float: right;
  231. font-size: 0.9em;
  232. }
  233. @media all and (max-width : 950px) {
  234. .container {
  235. border-spacing: 20px;
  236. max-width: 100%;
  237. }
  238. pre {
  239. overflow: scroll !important;
  240. }
  241. footer {
  242. width: calc( 100% - 70px );
  243. margin-right: 20px;
  244. margin-left: 20px;
  245. }
  246. .left-bar {
  247. display: none;
  248. }
  249. header h2 {
  250. top: 15px;
  251. }
  252. .pc-links {
  253. display: none;
  254. }
  255. .nav-toggle {
  256. display: inline-block;
  257. }
  258. .links {
  259. display: block;
  260. position: absolute;
  261. top: 80px;
  262. right: -230px;
  263. z-index: 1;
  264. background: rgba(0, 0, 0, 0.8);
  265. padding-top: 20px;
  266. padding-bottom: 20px;
  267. padding-left: 35px;
  268. padding-right: 35px;
  269. transition: 1s;
  270. }
  271. .links.expanded {
  272. right: 0px;
  273. transition: 1s;
  274. padding-top: 20px;
  275. padding-bottom: 20px;
  276. padding-left: 35px;
  277. padding-right: 35px;
  278. }
  279. .links ul {
  280. list-style: none;
  281. padding: 0;
  282. }
  283. .links ul li {
  284. padding-top: 6px;
  285. padding-bottom: 6px;
  286. }
  287. .nav-toggle {
  288. -webkit-user-select: none;
  289. -moz-user-select: none;
  290. user-select: none;
  291. cursor: pointer;
  292. height: 2rem;
  293. position: relative;
  294. float: right;
  295. right: 2rem;
  296. top: 2.0rem;
  297. width: 3.0rem;
  298. z-index: 2;
  299. }
  300. .nav-toggle:hover { opacity: 0.8; }
  301. .nav-toggle .nav-toggle-bar, .nav-toggle .nav-toggle-bar::after, .nav-toggle .nav-toggle-bar::before {
  302. position: absolute;
  303. top: 50%;
  304. -webkit-transform: translateY(-50%);
  305. -ms-transform: translateY(-50%);
  306. transform: translateY(-50%);
  307. -webkit-transition: all 0.5s ease;
  308. -moz-transition: all 0.5s ease;
  309. -ms-transition: all 0.5s ease;
  310. -o-transition: all 0.5s ease;
  311. transition: all 0.5s ease;
  312. background: white;
  313. content: '';
  314. height: 0.4rem;
  315. width: 100%;
  316. }
  317. .nav-toggle .nav-toggle-bar { margin-top: 0; }
  318. .nav-toggle .nav-toggle-bar::after { margin-top: 0.8rem; }
  319. .nav-toggle .nav-toggle-bar::before { margin-top: -0.8rem; }
  320. .nav-toggle.expanded .nav-toggle-bar { background: transparent; }
  321. .nav-toggle.expanded .nav-toggle-bar::after, .nav-toggle.expanded .nav-toggle-bar::before {
  322. background: white;
  323. margin-top: 0;
  324. }
  325. .nav-toggle.expanded .nav-toggle-bar::after {
  326. -ms-transform: rotate(45deg);
  327. -webkit-transform: rotate(45deg);
  328. transform: rotate(45deg);
  329. }
  330. .nav-toggle.expanded .nav-toggle-bar::before {
  331. -ms-transform: rotate(-45deg);
  332. -webkit-transform: rotate(-45deg);
  333. transform: rotate(-45deg);
  334. }
  335. }