1
0

style.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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. 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. border-bottom: 2px solid;
  299. margin-bottom: 1.5em;
  300. .post-meta {
  301. margin-top: -1.6em;
  302. margin-bottom: .6em;
  303. @include dimmed;
  304. }
  305. }
  306. hr.post-end {
  307. width: 50%;
  308. margin-top: 1.6em;
  309. margin-bottom: .8em;
  310. margin-left: 0;
  311. border-style: dotted;
  312. border-bottom-width: 4px;
  313. }
  314. .content {
  315. text-align: justify;
  316. text-justify: inter-ideograph; //For IE/Edge
  317. @include aTag;
  318. figure {
  319. max-width: 100;
  320. height: auto;
  321. margin: 0;
  322. text-align: center;
  323. p {
  324. margin-top: 0;
  325. }
  326. }
  327. img {
  328. max-width: 100%;
  329. height: auto;
  330. border-radius: 4px;
  331. }
  332. ul, ol {
  333. padding: 0;
  334. margin-left: 1.8em;
  335. }
  336. }
  337. figure.left {
  338. float: left;
  339. margin-right: 1em;
  340. }
  341. figure.right {
  342. float: right;
  343. margin-left: 1em;
  344. }
  345. .footnote-ref a, a.footnote-return {
  346. border: none;
  347. &:hover {
  348. background: transparent;
  349. }
  350. }
  351. .post-info {
  352. font-size: .8rem;
  353. @include dimmed;
  354. .tag {
  355. margin-right: .1em;
  356. &::before {
  357. content: "#"
  358. }
  359. }
  360. }
  361. // Comments
  362. //
  363. #comments-loader {
  364. text-align: center;
  365. font-size: 2.5em;
  366. margin-top: 2.5em;
  367. svg {
  368. animation-duration: 1.2s;
  369. }
  370. }
  371. #comments {
  372. margin-top: 3em;
  373. * {
  374. color: $text;
  375. }
  376. @include aTag;
  377. .vbtn {
  378. background-color: #7d828a;
  379. }
  380. .vsys {
  381. background-color: $highlight-grey;
  382. }
  383. .vat {
  384. color: $theme;
  385. }
  386. .vcontent {
  387. code {
  388. margin: auto 4px;
  389. color: #eee;
  390. background: $highlight-grey;
  391. }
  392. pre {
  393. color: #eee;
  394. background: $midnightblue;
  395. padding: 1em 1.5em;
  396. border-radius: 5px;
  397. display: block;
  398. code {
  399. background: $midnightblue;
  400. }
  401. }
  402. }
  403. }
  404. @media (min-width: 860px) {
  405. .site-main {
  406. margin-top: 4em;
  407. }
  408. }
  409. @media (min-width: 1300px) {
  410. .site-main {
  411. margin-top: 6em;
  412. }
  413. }
  414. @media (max-width: 760px) {
  415. .mobile, .site-nav.mobile {
  416. display: none;
  417. }
  418. #menu-btn, #search-btn {
  419. display: inline-block;
  420. }
  421. .posts-group {
  422. display: block;
  423. margin-bottom: 2.5em;
  424. .post-year {
  425. margin-right: 0;
  426. margin-bottom: 8px;
  427. border-bottom: 1px dashed;
  428. }
  429. }
  430. #spotlight.error-404 {
  431. flex-direction: column;
  432. text-align: center;
  433. .banner-404 {
  434. margin: 0;
  435. }
  436. }
  437. }
  438. @media (max-width: 520px) {
  439. figure.left, figure.right {
  440. float: unset;
  441. margin: 0;
  442. }
  443. }