You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

319 lines
5.3 KiB

2 years ago
  1. /* dm-serif-display-regular - latin */
  2. @font-face {
  3. font-family: 'DM Serif Display';
  4. font-style: normal;
  5. font-weight: 400;
  6. src: url('../fonts/dm-serif-display-v4-latin-regular.eot'); /* IE9 Compat Modes */
  7. src: local('DM Serif Display Regular'), local('DMSerifDisplay-Regular'),
  8. url('../fonts/dm-serif-display-v4-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  9. url('../fonts/dm-serif-display-v4-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
  10. url('../fonts/dm-serif-display-v4-latin-regular.woff') format('woff'), /* Modern Browsers */
  11. url('../fonts/dm-serif-display-v4-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
  12. url('../fonts/dm-serif-display-v4-latin-regular.svg#DMSerifDisplay') format('svg'); /* Legacy iOS */
  13. }
  14. /* inter-regular - latin */
  15. @font-face {
  16. font-family: 'Inter';
  17. font-style: normal;
  18. font-weight: 400;
  19. src: url('../fonts/inter-v2-latin-regular.eot'); /* IE9 Compat Modes */
  20. src: local(''),
  21. url('../fonts/inter-v2-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  22. url('../fonts/inter-v2-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
  23. url('../fonts/inter-v2-latin-regular.woff') format('woff'), /* Modern Browsers */
  24. url('../fonts/inter-v2-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
  25. url('../fonts/inter-v2-latin-regular.svg#Inter') format('svg'); /* Legacy iOS */
  26. }
  27. html {
  28. overflow: auto;
  29. }
  30. img {
  31. max-width: 100%;
  32. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  33. -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  34. box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  35. margin-bottom: 1%;
  36. }
  37. @media (min-width: 550px) {
  38. /*
  39. Side by side gallery
  40. use with </> alignment
  41. e.g.
  42. [_gallery >](imgages/test.jpg)
  43. */
  44. img[alt~="_gallery"] {
  45. max-width: 49.5%;
  46. }
  47. /* Aligned to the right */
  48. img[alt$=">"] {
  49. float: right;
  50. }
  51. /* Aligned to the left */
  52. img[alt$="<"] {
  53. float: left;
  54. }
  55. /* Centered image */
  56. img[alt$="><"] {
  57. display: block;
  58. margin: auto;
  59. float: none !important;
  60. }
  61. }
  62. .center {
  63. text-align: center;
  64. }
  65. .left {
  66. margin-left: 0;
  67. }
  68. .lit {
  69. font-size: 1.5rem;
  70. font-weight: 300;
  71. }
  72. .little-svg {
  73. fill: #fff;
  74. }
  75. .ml-0 {
  76. margin-left: 0.7rem;
  77. }
  78. .ml {
  79. margin-left: 2rem;
  80. }
  81. .ml-1 {
  82. margin-left: 5rem;
  83. }
  84. .bottom {
  85. margin-block-start: 0px;
  86. margin-block-end: 0px;
  87. margin-bottom: 0px;
  88. }
  89. .mb-1 {
  90. margin-bottom: 0px;
  91. }
  92. .mb-2 {
  93. margin-bottom: 5px;
  94. }
  95. .mb-3 {
  96. margin-bottom: 20px;
  97. }
  98. .mr {
  99. margin-right: 32px;
  100. }
  101. .mt-0 {
  102. margin-top: 0px;
  103. }
  104. .mt-2 {
  105. margin-top: 3rem;
  106. }
  107. .mt-3 {
  108. margin-top: 4rem;
  109. }
  110. .mx-auto {
  111. margin: auto;
  112. }
  113. .mode {
  114. position: absolute;
  115. display: block;
  116. cursor: pointer;
  117. -webkit-touch-callout: none; /* iOS Safari */
  118. -webkit-user-select: none; /* Safari */
  119. -khtml-user-select: none; /* Konqueror HTML */
  120. -moz-user-select: none; /* Old versions of Firefox */
  121. -ms-user-select: none; /* Internet Explorer/Edge */
  122. user-select: none; /* Non-prefixed version, currently
  123. supported by Chrome, Edge, Opera and Firefox */
  124. }
  125. .text-center {
  126. text-align: center;
  127. }
  128. .text-right {
  129. text-align: right;
  130. }
  131. .tag-link {
  132. margin-right: 10px;
  133. }
  134. .about {
  135. width: 150px;
  136. height: 150px;
  137. border-radius: 50%;
  138. }
  139. li p code {
  140. background-color: rgb(230, 230, 230);
  141. border-radius: 5px;
  142. padding: 0px 2px;
  143. font-size: 85%;
  144. }
  145. body.darkmode li p code {
  146. background-color: rgb(65, 65, 65);
  147. }
  148. /* blockquote */
  149. blockquote {
  150. font-family: 'Inter';
  151. background-color: rgba(148, 148, 149, 0.08) ;
  152. margin: 1.5em 0px;
  153. padding: 1.1em 20px 1px 20px;
  154. font-style: italic;
  155. }
  156. blockquote footer {
  157. font-family: 'Inter';
  158. font-size: 16px;
  159. padding-bottom: 10px;
  160. margin-top: -10px;
  161. }
  162. blockquote footer cite:before {
  163. content: "—";
  164. padding: 0 0.5em;
  165. }
  166. /* Scroll bar */
  167. ::-webkit-scrollbar {
  168. width: 8px;
  169. height: 8px;
  170. }
  171. ::-webkit-scrollbar-thumb {
  172. background: rgb(128 128 128 / 70%);
  173. }
  174. ::-webkit-scrollbar-thumb:window-inactive {
  175. background: rgb(128 128 128 / 20%);
  176. }
  177. ::-webkit-scrollbar-thumb:active {
  178. background-color: rgb(128 128 128 / 100%);
  179. }
  180. /* Footer */
  181. a.footer-link:hover,
  182. a.footer-link:focus {
  183. cursor: pointer;
  184. }
  185. .svg-hov {
  186. transition: all .2s ease-in-out;
  187. }
  188. .svg-hov:hover {
  189. transform: translateY(-3px);
  190. transition: all .2s ease-in-out;
  191. }
  192. .hexo {
  193. fill: #03adfc;
  194. vertical-align: middle;
  195. padding-bottom: 4px;
  196. }
  197. .github {
  198. fill: #63636F;
  199. }
  200. .linkedin {
  201. fill: #0073b1;
  202. }
  203. .twitter {
  204. fill: #1DA1F2;
  205. }
  206. .instagram {
  207. fill: #E4405F
  208. }
  209. .nanobar {
  210. left: 0;
  211. }
  212. body {
  213. position: absolute;
  214. top: 10px;
  215. left: 10px;
  216. bottom: 10px;
  217. right: 10px;
  218. padding: 5px;
  219. overflow-y: scroll;
  220. overflow-x: hidden;
  221. transition: all 0.3s ease-in-out;
  222. }
  223. body.darkmode {
  224. background: rgb(34, 34, 38);
  225. color: rgb(230, 230, 230);
  226. }
  227. .trans {
  228. animation: transitionPlay 0.7s;
  229. }
  230. @keyframes transitionPlay {
  231. from {
  232. opacity: 0;
  233. transform: translateY(20px);
  234. }
  235. to {
  236. opacity: 1;
  237. transform: none;
  238. }
  239. }
  240. .hidden {
  241. display: none;
  242. }
  243. #comments {
  244. text-align: center;
  245. }
  246. #madewith {
  247. text-align: center;
  248. }
  249. .posisi {
  250. text-align: center;
  251. }
  252. @media (min-width: 550px) {
  253. .posisi {
  254. text-align: right;
  255. }
  256. #comments {
  257. text-align: left;
  258. }
  259. #madewith {
  260. text-align: left;
  261. }
  262. }