style.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. @import "predefined.scss";
  2. @import "normalize.scss";
  3. @import "syntax.scss";
  4. @import "animate.scss";
  5. /* Webkit Scrollbar Customize */
  6. ::-webkit-scrollbar {
  7. width: .5em;
  8. }
  9. ::-webkit-scrollbar-track {
  10. background: $midnightblue;
  11. }
  12. ::-webkit-scrollbar-thumb {
  13. background: #888;
  14. &:hover{
  15. background: $text;
  16. }
  17. }
  18. html {
  19. background: $light-grey;
  20. line-height: 1.6;
  21. letter-spacing: .1em;
  22. }
  23. body, button, input, select, textarea {
  24. color: $text;
  25. font-family: $fonts;
  26. }
  27. pre, code, pre tt {
  28. font-family: $code-fonts;
  29. }
  30. pre {
  31. color: #eee;
  32. background: $midnightblue;
  33. padding: 1em 1.5em;
  34. border-radius: 5px;
  35. display: block;
  36. overflow: auto;
  37. // -webkit-overflow-scrolling: touch;
  38. code {
  39. display: inline-block;
  40. background: $midnightblue;
  41. }
  42. }
  43. code {
  44. display: inline;
  45. color: #eee;
  46. background: $highlight-grey;
  47. border-radius: 3px;
  48. padding: 0 2px;
  49. margin: auto 4px;
  50. word-break: break-all;
  51. }
  52. blockquote {
  53. border-left: .25em solid;
  54. margin: 1em;
  55. padding: 0 1em;
  56. font-style: italic;
  57. cite {
  58. font-weight: bold;
  59. font-style: normal;
  60. &::before {
  61. content: "—— ";
  62. }
  63. }
  64. }
  65. a {
  66. color: $text;
  67. text-decoration: none;
  68. border-bottom: 1px solid $text;
  69. transition-property: color, border-color;
  70. transition-duration: .5s;
  71. transition-timing-function: ease-out;
  72. &:hover {
  73. color: #fff;
  74. border-bottom: 1px solid #fff;
  75. }
  76. }
  77. hr {
  78. opacity: .2;
  79. border-width: 0 0 5px 0;
  80. border-style: dashed;
  81. background: transparent;
  82. width: 80%;
  83. margin: auto;
  84. }
  85. .section-inner {
  86. margin: 0 auto;
  87. max-width: 1200px;
  88. width: 93%;
  89. }
  90. .thin {
  91. max-width: 720px;
  92. margin: auto;
  93. }
  94. .social-icons a {
  95. border: none;
  96. }
  97. .feather {
  98. display: inline-block;
  99. vertical-align: -.125em;
  100. width: 1em;
  101. height: 1em;
  102. }
  103. // Header & Footer
  104. //
  105. #site-header {
  106. position: fixed;
  107. z-index: 1;
  108. bottom: 0;
  109. width: 100%;
  110. box-sizing: border-box;
  111. box-shadow: -1px -2px 3px rgba(0,0,0,0.45);
  112. background-color: $dark-grey;
  113. }
  114. .hdr-wrapper {
  115. display: flex;
  116. justify-content: space-between;
  117. padding: .5em 0;
  118. font-size: 1.2rem;
  119. a {
  120. border: none;
  121. }
  122. .site-branding {
  123. display: inline-block;
  124. font-size: 1.2em;
  125. }
  126. .site-nav {
  127. display: inline-block;
  128. font-size: 1.1em;
  129. opacity: .8;
  130. a {
  131. margin-left: .8em;
  132. }
  133. }
  134. }
  135. .hdr-icons {
  136. display: inline-block;
  137. font-size: 1.2em;
  138. }
  139. .hdr-btn {
  140. border: none;
  141. background: none;
  142. padding: 0;
  143. }
  144. #menu-btn, #search-btn {
  145. display: none;
  146. cursor: pointer;
  147. }
  148. #mobile-menu {
  149. position: fixed;
  150. bottom: 4.5em;
  151. right: 1.5em;
  152. padding: .6em 1.8em;
  153. z-index: 1;
  154. box-sizing: border-box;
  155. box-shadow: -1px -2px 3px 0px rgba(0,0,0,0.45);
  156. background-color: $dark-grey;
  157. a {
  158. border: none;
  159. }
  160. ul {
  161. list-style: none;
  162. margin: 0;
  163. padding: 0;
  164. line-height: 2;
  165. font-size: 1.2em;
  166. }
  167. }
  168. #site-footer {
  169. text-align: center;
  170. margin-bottom: 96px;
  171. margin-top: 64px;
  172. p {
  173. margin: 0;
  174. }
  175. }
  176. #copyright a {
  177. border: none;
  178. }
  179. // Spotlight
  180. //
  181. #spotlight {
  182. display: flex;
  183. height: 100vh;
  184. flex-direction: column;
  185. align-items: center;
  186. justify-content: center;
  187. font-size: 1.5rem;
  188. &.error-404 {
  189. flex-direction: row;
  190. }
  191. }
  192. .catguard img {
  193. max-width: 250px;
  194. height: auto;
  195. }
  196. .banner-404 {
  197. margin-left: 2em;
  198. h1 {
  199. font-size: 3em;
  200. margin: 0;
  201. }
  202. p {
  203. margin-top: 0;
  204. margin-bottom: .5em;
  205. }
  206. .btn-404 {
  207. font-size: 1em;
  208. a {
  209. display: inline-block;
  210. border-bottom: 2px solid $theme;
  211. padding: 1px 2px;
  212. transition-property: background-color;
  213. word-break: break-all;
  214. &:first-child {
  215. margin-right: 1em;
  216. }
  217. &:hover {
  218. background-color: $theme;
  219. }
  220. }
  221. }
  222. }
  223. #me {
  224. font-size: 2em;
  225. }
  226. #home-social {
  227. margin-top: .2em;
  228. font-size: 1.4em;
  229. }
  230. #home-nav {
  231. margin-top: .5em;
  232. a {
  233. display: block;
  234. border: none;
  235. text-align: center;
  236. margin-top: .5em;
  237. }
  238. }
  239. // list.html
  240. //
  241. .posts-group {
  242. display: flex;
  243. .post-year{
  244. font-size: 1.6em;
  245. margin: 0.4em 2em 1em 0;
  246. @include dimmed;
  247. }
  248. .posts-list {
  249. flex-grow: 1;
  250. margin: 16px 0;
  251. padding: 0;
  252. list-style: none;
  253. }
  254. .post-item {
  255. display: flex;
  256. justify-content: space-between;
  257. align-items: baseline;
  258. margin-bottom: 8px;
  259. padding: 2px 4px;
  260. border-radius: 3px;
  261. transition-property: background-color;
  262. transition-duration: .5s;
  263. transition-timing-function: ease-out;
  264. a {
  265. border: none;
  266. }
  267. &:hover {
  268. background-color: $highlight-grey;
  269. }
  270. }
  271. .post-day {
  272. flex-shrink: 0;
  273. margin-left: 1em;
  274. @include dimmed;
  275. }
  276. }
  277. // single.html
  278. //
  279. .post-header {
  280. border-bottom: 2px solid;
  281. margin-bottom: 1.5em;
  282. .post-meta {
  283. margin-top: -1em;
  284. margin-bottom: .6em;
  285. @include dimmed;
  286. }
  287. }
  288. hr.post-end {
  289. width: 50%;
  290. margin-top: 1.6em;
  291. margin-bottom: .8em;
  292. margin-left: 0;
  293. border-style: dotted;
  294. border-bottom-width: 4px;
  295. }
  296. .content {
  297. text-align: justify;
  298. text-justify: inter-ideograph; //For IE/Edge
  299. @include aTag;
  300. figure {
  301. max-width: 100;
  302. height: auto;
  303. margin: 0;
  304. text-align: center;
  305. p {
  306. margin-top: 0;
  307. }
  308. }
  309. img {
  310. max-width: 100%;
  311. height: auto;
  312. border-radius: 4px;
  313. }
  314. }
  315. figure.left {
  316. float: left;
  317. margin-right: 1em;
  318. }
  319. figure.right {
  320. float: right;
  321. margin-left: 1em;
  322. }
  323. .post-info {
  324. font-size: .8rem;
  325. @include dimmed;
  326. .tag {
  327. margin-right: .1em;
  328. &::before {
  329. content: "#"
  330. }
  331. }
  332. }
  333. // Comments
  334. //
  335. #comments-loader {
  336. text-align: center;
  337. font-size: 2.5em;
  338. margin-top: 2.5em;
  339. svg {
  340. animation-duration: 1.2s;
  341. }
  342. }
  343. #comments {
  344. margin-top: 3em;
  345. * {
  346. color: $text;
  347. }
  348. @include aTag;
  349. .vbtn {
  350. background-color: #7d828a;
  351. }
  352. .vsys {
  353. background-color: $highlight-grey;
  354. }
  355. .vat {
  356. color: $theme;
  357. }
  358. .vcontent {
  359. code {
  360. margin: auto 4px;
  361. color: #eee;
  362. background: $highlight-grey;
  363. }
  364. pre {
  365. color: #eee;
  366. background: $midnightblue;
  367. padding: 1em 1.5em;
  368. border-radius: 5px;
  369. display: block;
  370. code {
  371. background: $midnightblue;
  372. }
  373. }
  374. }
  375. }
  376. @media (min-width: 860px) {
  377. .site-main {
  378. margin-top: 4em;
  379. }
  380. }
  381. @media (min-width: 1300px) {
  382. .site-main {
  383. margin-top: 6em;
  384. }
  385. }
  386. @media (max-width: 760px) {
  387. .mobile, .site-nav.mobile {
  388. display: none;
  389. }
  390. #menu-btn, #search-btn {
  391. display: inline-block;
  392. }
  393. .posts-group {
  394. display: block;
  395. margin-bottom: 2.5em;
  396. .post-year {
  397. margin-right: 0;
  398. margin-bottom: 8px;
  399. border-bottom: 1px dashed;
  400. }
  401. }
  402. #spotlight.error-404 {
  403. flex-direction: column;
  404. text-align: center;
  405. .banner-404 {
  406. margin: 0;
  407. }
  408. }
  409. }
  410. @media (max-width: 520px) {
  411. figure.left, figure.right {
  412. float: unset;
  413. margin: 0;
  414. }
  415. }