style.scss 6.2 KB

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