style.scss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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: 1em 1.5em;
  34. border-radius: 5px;
  35. display: block;
  36. overflow: auto;
  37. letter-spacing: normal;
  38. line-height: 1.5em;
  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. margin-bottom: 96px;
  189. margin-top: 64px;
  190. p {
  191. margin: 0;
  192. }
  193. }
  194. #copyright a {
  195. border: none;
  196. }
  197. // Spotlight
  198. //
  199. #spotlight {
  200. display: flex;
  201. height: 100vh;
  202. flex-direction: column;
  203. align-items: center;
  204. justify-content: center;
  205. font-size: 1.5rem;
  206. &.error-404 {
  207. flex-direction: row;
  208. }
  209. }
  210. .catguard img {
  211. max-width: 250px;
  212. height: auto;
  213. }
  214. .banner-404 {
  215. margin-left: 2em;
  216. h1 {
  217. font-size: 3em;
  218. margin: 0;
  219. }
  220. p {
  221. margin-top: 0;
  222. margin-bottom: .5em;
  223. }
  224. .btn-404 {
  225. font-size: 1em;
  226. a {
  227. display: inline-block;
  228. border-bottom: 2px solid $theme;
  229. padding: 1px 2px;
  230. transition-property: background-color;
  231. word-break: break-all;
  232. &:first-child {
  233. margin-right: 1em;
  234. }
  235. &:hover {
  236. background-color: $theme;
  237. }
  238. }
  239. }
  240. }
  241. #me {
  242. font-size: 2em;
  243. }
  244. #home-social {
  245. margin-top: .2em;
  246. font-size: 1.4em;
  247. }
  248. #home-nav {
  249. margin-top: .5em;
  250. a {
  251. display: block;
  252. border: none;
  253. text-align: center;
  254. margin-top: .5em;
  255. }
  256. }
  257. // list.html
  258. //
  259. .posts-group {
  260. display: flex;
  261. .post-year{
  262. font-size: 1.6em;
  263. margin: 0.4em 2em 1em 0;
  264. @include dimmed;
  265. }
  266. .posts-list {
  267. flex-grow: 1;
  268. margin: 16px 0;
  269. padding: 0;
  270. list-style: none;
  271. }
  272. .post-item {
  273. display: flex;
  274. justify-content: space-between;
  275. align-items: baseline;
  276. margin-bottom: 8px;
  277. padding: 2px 4px;
  278. border-radius: 3px;
  279. transition-property: background-color;
  280. transition-duration: .5s;
  281. transition-timing-function: ease-out;
  282. a {
  283. border: none;
  284. }
  285. &:hover {
  286. background-color: $highlight-grey;
  287. }
  288. }
  289. .post-day {
  290. flex-shrink: 0;
  291. margin-left: 1em;
  292. @include dimmed;
  293. }
  294. }
  295. // single.html
  296. //
  297. .post-header {
  298. margin-top: 1.2em;
  299. margin-bottom: 2em;
  300. border-bottom: 2px solid;
  301. line-height: normal;
  302. .post-meta {
  303. margin: 0;
  304. letter-spacing: normal;
  305. @include dimmed;
  306. }
  307. h1 {
  308. margin-top: 0;
  309. margin-bottom: .3em;
  310. }
  311. }
  312. hr.post-end {
  313. width: 50%;
  314. margin-top: 1.6em;
  315. margin-bottom: .8em;
  316. margin-left: 0;
  317. border-style: dotted;
  318. border-bottom-width: 4px;
  319. }
  320. .content {
  321. text-align: justify;
  322. text-justify: inter-ideograph; //For IE/Edge
  323. @include aTag;
  324. figure {
  325. max-width: 100;
  326. height: auto;
  327. margin: 0;
  328. text-align: center;
  329. p {
  330. margin-top: 0;
  331. }
  332. }
  333. img {
  334. max-width: 100%;
  335. height: auto;
  336. border-radius: 4px;
  337. }
  338. ul, ol {
  339. padding: 0;
  340. margin-left: 1.8em;
  341. }
  342. }
  343. figure.left {
  344. float: left;
  345. margin-right: 1em;
  346. }
  347. figure.right {
  348. float: right;
  349. margin-left: 1em;
  350. }
  351. .footnote-ref a, a.footnote-return {
  352. border: none;
  353. &:hover {
  354. background: transparent;
  355. }
  356. }
  357. .post-info {
  358. font-size: .8rem;
  359. @include dimmed;
  360. .tag {
  361. margin-right: .1em;
  362. &::before {
  363. content: "#"
  364. }
  365. }
  366. }
  367. // Comments
  368. //
  369. #comments-loader {
  370. text-align: center;
  371. font-size: 2.5em;
  372. margin-top: 2.5em;
  373. svg {
  374. animation-duration: 1.2s;
  375. }
  376. }
  377. #comments {
  378. margin-top: 3em;
  379. * {
  380. color: $text;
  381. }
  382. @include aTag;
  383. .vbtn {
  384. background-color: #7d828a;
  385. }
  386. .vsys {
  387. background-color: $highlight-grey;
  388. }
  389. .vat {
  390. color: $theme;
  391. }
  392. .vcontent {
  393. code {
  394. margin: auto 4px;
  395. color: #eee;
  396. background: $highlight-grey;
  397. }
  398. pre {
  399. color: #eee;
  400. background: $midnightblue;
  401. padding: 1em 1.5em;
  402. border-radius: 5px;
  403. display: block;
  404. code {
  405. background: $midnightblue;
  406. }
  407. }
  408. }
  409. }
  410. @media (min-width: 800px) {
  411. .site-main {
  412. margin-top: 3em;
  413. }
  414. }
  415. @media (min-width: 960px) {
  416. .site-main {
  417. margin-top: 6em;
  418. }
  419. }
  420. @media (min-width: 1300px) {
  421. .site-main {
  422. margin-top: 8em;
  423. }
  424. }
  425. @media (min-width: 1800px) {
  426. .site-main {
  427. margin-top: 10em;
  428. }
  429. .section-inner {
  430. max-width: 1600px;
  431. }
  432. .thin {
  433. max-width: 960px;
  434. }
  435. }
  436. @media (max-width: 760px) {
  437. .mobile, .site-nav.mobile {
  438. display: none;
  439. }
  440. #menu-btn, #search-btn {
  441. display: inline-block;
  442. }
  443. .posts-group {
  444. display: block;
  445. margin-bottom: 2.5em;
  446. .post-year {
  447. margin-right: 0;
  448. margin-bottom: 8px;
  449. border-bottom: 1px dashed;
  450. }
  451. }
  452. #spotlight.error-404 {
  453. flex-direction: column;
  454. text-align: center;
  455. .banner-404 {
  456. margin: 0;
  457. }
  458. }
  459. }
  460. @media (max-width: 520px) {
  461. figure.left, figure.right {
  462. float: unset;
  463. margin: 0;
  464. }
  465. }