style.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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. // Spotlight
  161. //
  162. #spotlight {
  163. display: flex;
  164. height: 100vh;
  165. flex-direction: column;
  166. align-items: center;
  167. justify-content: center;
  168. font-size: 1.5rem;
  169. &.error-404 {
  170. flex-direction: row;
  171. }
  172. }
  173. .catguard img {
  174. max-width: 250px;
  175. height: auto;
  176. }
  177. .banner-404 {
  178. margin-left: 2em;
  179. h1 {
  180. font-size: 3em;
  181. margin: 0;
  182. }
  183. p {
  184. margin-top: 0;
  185. margin-bottom: .5em;
  186. }
  187. .btn-404 {
  188. font-size: 1em;
  189. a {
  190. display: inline-block;
  191. border-bottom: 2px solid $theme;
  192. padding: 1px 2px;
  193. transition-property: background-color;
  194. word-break: break-all;
  195. &:first-child {
  196. margin-right: 1em;
  197. }
  198. &:hover {
  199. background-color: $theme;
  200. }
  201. }
  202. }
  203. }
  204. #me {
  205. font-size: 2em;
  206. }
  207. #home-social {
  208. margin-top: .2em;
  209. font-size: 1.4em;
  210. }
  211. #home-nav {
  212. margin-top: .5em;
  213. a {
  214. display: block;
  215. border: none;
  216. text-align: center;
  217. margin-top: .5em;
  218. }
  219. }
  220. // list.html
  221. //
  222. .posts-group {
  223. display: flex;
  224. .post-year{
  225. font-size: 1.6em;
  226. margin: 0.4em 2em 1em 0;
  227. @include dimmed;
  228. }
  229. .posts-list {
  230. flex-grow: 1;
  231. margin: 16px 0;
  232. padding: 0;
  233. list-style: none;
  234. }
  235. .post-item {
  236. display: flex;
  237. justify-content: space-between;
  238. align-items: baseline;
  239. margin-bottom: 8px;
  240. padding: 2px 4px;
  241. border-radius: 3px;
  242. transition-property: background-color;
  243. transition-duration: .5s;
  244. transition-timing-function: ease-out;
  245. a {
  246. border: none;
  247. }
  248. &:hover {
  249. background-color: $highlight-grey;
  250. }
  251. }
  252. .post-day {
  253. flex-shrink: 0;
  254. margin-left: 1em;
  255. @include dimmed;
  256. }
  257. }
  258. // single.html
  259. //
  260. .post-header {
  261. border-bottom: 2px solid;
  262. margin-bottom: 1.5em;
  263. .post-meta {
  264. margin-top: -1em;
  265. margin-bottom: .6em;
  266. @include dimmed;
  267. }
  268. }
  269. hr.post-end {
  270. width: 50%;
  271. margin-top: 1.6em;
  272. margin-bottom: .8em;
  273. margin-left: 0;
  274. border-style: dotted;
  275. border-bottom-width: 4px;
  276. }
  277. .content {
  278. text-align: justify;
  279. text-justify: inter-ideograph; //For IE/Edge
  280. @include aTag;
  281. figure {
  282. max-width: 100;
  283. height: auto;
  284. margin: 0;
  285. text-align: center;
  286. p {
  287. margin-top: 0;
  288. }
  289. }
  290. img {
  291. max-width: 100%;
  292. height: auto;
  293. border-radius: 4px;
  294. }
  295. }
  296. figure.left {
  297. float: left;
  298. margin-right: 1em;
  299. }
  300. figure.right {
  301. float: right;
  302. margin-left: 1em;
  303. }
  304. .post-info {
  305. font-size: .8rem;
  306. @include dimmed;
  307. .tag {
  308. margin-right: .1em;
  309. &::before {
  310. content: "#"
  311. }
  312. }
  313. }
  314. // Comments
  315. //
  316. #comments-loader {
  317. text-align: center;
  318. font-size: 2.5em;
  319. margin-top: 2.5em;
  320. svg {
  321. animation-duration: 1.2s;
  322. }
  323. }
  324. #comments {
  325. margin-top: 3em;
  326. * {
  327. color: $text;
  328. }
  329. @include aTag;
  330. .vbtn {
  331. background-color: #7d828a;
  332. }
  333. .vsys {
  334. background-color: $highlight-grey;
  335. }
  336. .vat {
  337. color: $theme;
  338. }
  339. }
  340. @media (min-width: 860px) {
  341. .site-main {
  342. margin-top: 4em;
  343. }
  344. }
  345. @media (min-width: 1300px) {
  346. .site-main {
  347. margin-top: 6em;
  348. }
  349. }
  350. @media (max-width: 760px) {
  351. .mobile, .site-nav.mobile {
  352. display: none;
  353. }
  354. #menu-btn, #search-btn {
  355. display: inline-block;
  356. }
  357. .posts-group {
  358. display: block;
  359. margin-bottom: 2.5em;
  360. .post-year {
  361. margin-right: 0;
  362. margin-bottom: 8px;
  363. border-bottom: 1px dashed;
  364. }
  365. }
  366. #spotlight.error-404 {
  367. flex-direction: column;
  368. text-align: center;
  369. .banner-404 {
  370. margin: 0;
  371. }
  372. }
  373. }
  374. @media (max-width: 520px) {
  375. figure.left, figure.right {
  376. float: unset;
  377. margin: 0;
  378. }
  379. }