style.scss 7.5 KB

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