style.scss 6.3 KB

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