main.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. body {
  2. max-width: 100%;
  3. word-break: break-all;
  4. word-wrap: break-word;
  5. margin: 0;
  6. font-family: '나눔고딕', 'Nanum Gothic', 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
  7. }
  8. ul {
  9. padding: 0;
  10. padding-left: 10px;
  11. }
  12. input {
  13. padding: 5px;
  14. }
  15. select {
  16. padding: 5px;
  17. }
  18. hr {
  19. border: 0;
  20. border-top: 1px solid gainsboro;
  21. }
  22. button {
  23. padding: 10px;
  24. border: 2px solid gainsboro;
  25. background: white;
  26. cursor: pointer;
  27. }
  28. code {
  29. background: gainsboro;
  30. }
  31. td {
  32. border: 1px solid gainsboro;
  33. }
  34. li {
  35. margin-left: 20px;
  36. }
  37. #background {
  38. background: gainsboro;
  39. }
  40. #top {
  41. width: 100%;
  42. background: #4a4a4a;
  43. padding: 20px;
  44. padding-right: 0;
  45. padding-left: 0;
  46. position: relative;
  47. top: 0;
  48. left: 0;
  49. height: 20px;
  50. }
  51. #main {
  52. margin: auto;
  53. margin-top: -20px;
  54. padding: 20px;
  55. padding-bottom: 20px;
  56. background: white;
  57. min-height: 350px;
  58. }
  59. #bottom {
  60. width: 100%;
  61. background: white;
  62. padding-bottom: 20px;
  63. }
  64. #top_main {
  65. margin: auto;
  66. }
  67. #bottom_main {
  68. margin: auto;
  69. padding-top: 20px;
  70. }
  71. #tool {
  72. float: right;
  73. border: none;
  74. }
  75. @media (min-width: 780px) and (max-width: 1350px) {
  76. #main {
  77. width: 90%;
  78. }
  79. #top_main {
  80. width: 90%;
  81. }
  82. #bottom_main {
  83. width: 90%;
  84. }
  85. .is_mobile {
  86. display: none;
  87. }
  88. }
  89. @media (min-width: 1350px) and (max-width: 1590px) {
  90. #main {
  91. width: 70%;
  92. }
  93. #top_main {
  94. width: 70%;
  95. }
  96. #bottom_main {
  97. width: 70%;
  98. }
  99. .is_mobile {
  100. display: none;
  101. }
  102. }
  103. @media (min-width: 1590px) {
  104. #main {
  105. width: 55%;
  106. }
  107. #top_main {
  108. width: 55%;
  109. }
  110. #bottom_main {
  111. width: 55%;
  112. }
  113. .is_mobile {
  114. display: none;
  115. }
  116. }
  117. @media (max-width: 780px) {
  118. #main {
  119. width: 90%;
  120. border-left: none;
  121. border-right: none;
  122. }
  123. #top_main {
  124. width: 90%;
  125. }
  126. #bottom_main {
  127. width: 90%;
  128. }
  129. .not_mobile {
  130. display: none;
  131. }
  132. #tool {
  133. float: none;
  134. width: 90%;
  135. margin-bottom: 10px;
  136. }
  137. }
  138. h1 {
  139. border-bottom: 1px solid gainsboro;
  140. padding-bottom: 10px;
  141. }
  142. h2 {
  143. border-bottom: 1px solid gainsboro;
  144. padding-bottom: 10px;
  145. }
  146. h3 {
  147. border-bottom: 1px solid gainsboro;
  148. padding-bottom: 10px;
  149. }
  150. h4 {
  151. border-bottom: 1px solid gainsboro;
  152. padding-bottom: 10px;
  153. }
  154. h5 {
  155. border-bottom: 1px solid gainsboro;
  156. padding-bottom: 10px;
  157. }
  158. h6 {
  159. border-bottom: 1px solid gainsboro;
  160. padding-bottom: 10px;
  161. }
  162. #tool_cel {
  163. display: inline-block;
  164. }
  165. #main_top {
  166. width: 100%;
  167. }
  168. #logo {
  169. display: inline-block;
  170. }
  171. #top_tool {
  172. float: right;
  173. color: white;
  174. margin-top: -5px;
  175. }
  176. .cel_in_cel {
  177. border: 2px solid gainsboro;
  178. padding: 10px;
  179. position: absolute;
  180. background: white;
  181. margin-top: 10px;
  182. border-radius: 10px;
  183. }
  184. #top_tool_cel {
  185. display: inline-block;
  186. }
  187. #search {
  188. display: inline-block;
  189. width: 300px;
  190. }
  191. #mobile_search {
  192. width: 100%;
  193. }
  194. #search_input {
  195. width: 220px;
  196. height: 35px;
  197. border-radius: 17.5px;
  198. padding-left: 10px;
  199. background-color: gray;
  200. border: solid 1px gray;
  201. color: #fff;
  202. transition: .2s ease-in-out;
  203. outline: none;
  204. }
  205. #search_input::placeholder {
  206. color: #fff;
  207. }
  208. #search_input:hover, #search_input:focus {
  209. border-color: #ababab;
  210. background-color: #eaeaea;
  211. color: #000;
  212. transition: .2s ease-in-out;
  213. }
  214. #search_input:hover::placeholder, #search_input:focus::placeholder {
  215. color: #000;
  216. }
  217. div#pre_search {
  218. padding: 10px;
  219. border: 2px solid #4a4a4a;
  220. width: 200px;
  221. color: black;
  222. margin-top: 5px;
  223. background: white;
  224. border-radius: 10px;
  225. position: absolute;
  226. }
  227. div#pre_search a {
  228. color: dodgerblue;
  229. }
  230. #search button {
  231. padding: 0;
  232. border: none;
  233. background: transparent;
  234. color: white;
  235. }
  236. #mobile_search button {
  237. padding: 0;
  238. border: none;
  239. background: transparent;
  240. }
  241. #mobile_button_first {
  242. margin-top: 10px;
  243. }
  244. #top_tool_mobile {
  245. float: right;
  246. }
  247. #mobile_menu {
  248. width: 200px;
  249. height: 100%;
  250. position: fixed;
  251. top: 0;
  252. right: 0;
  253. background: white;
  254. border-left: 2px solid gainsboro;
  255. z-index: 1;
  256. overflow-y: scroll;
  257. }
  258. #mobile_menu button {
  259. color: dodgerblue;
  260. }
  261. #mobile_menu_main {
  262. width: 90%;
  263. margin: auto;
  264. margin-top: 5%;
  265. }
  266. #toc {
  267. max-width: 300px;
  268. }
  269. #top a {
  270. color: white;
  271. }
  272. #top .cel_in_cel a {
  273. color: black;
  274. }
  275. a {
  276. color: dodgerblue;
  277. }
  278. #syntax {
  279. background: #f0f0f0;
  280. padding: 5px;
  281. border-radius: 10px;
  282. }
  283. pre {
  284. border: 2px solid gainsboro;
  285. border-radius: 10px;
  286. }
  287. textarea {
  288. border: 2px solid gainsboro;
  289. font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  290. padding: 0;
  291. }
  292. input {
  293. border: 2px solid gainsboro;
  294. font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  295. }
  296. #toc {
  297. border: 2px solid gainsboro;
  298. border-radius: 10px;
  299. }
  300. #cate, #redirect {
  301. border: 2px solid gainsboro;
  302. border-radius: 10px;
  303. }
  304. #syntax code {
  305. background: transparent;
  306. }
  307. #go_toc {
  308. display: inline-block;
  309. padding: 10px;
  310. width: 25px;
  311. }
  312. #go_top {
  313. display: inline-block;
  314. padding: 10px;
  315. width: 25px;
  316. }
  317. #go_bottom {
  318. display: inline-block;
  319. padding-left: 5px;
  320. padding-right: 5px;
  321. width: 25px;
  322. }
  323. #nav_bar {
  324. font-size: 24px;
  325. position: fixed;
  326. bottom: 0;
  327. right: 0;
  328. border: 2px solid #4a4a4a;
  329. background: #4a4a4a;
  330. text-align: center;
  331. border-radius: 10px 0px 0px 0px;
  332. }
  333. #nav_bar a {
  334. color: white;
  335. }
  336. blockquote {
  337. padding: 1em calc(2em + 25px) 1em 1em;
  338. margin: 1em 0em 0em;
  339. background: #eeeeee;
  340. border: 2px dashed #ccc;
  341. border-left: 5px solid black;
  342. }
  343. #out_link::before {
  344. content: 'ⓔ';
  345. font-weight: 900;
  346. background: transparent;
  347. color: green;
  348. }
  349. a:hover {
  350. text-decoration: underline;
  351. }
  352. #mobile_menu a:hover, #top a:hover {
  353. text-decoration: none;
  354. }
  355. h1#title {
  356. margin-bottom: 10px;
  357. }
  358. div#last_edit {
  359. margin-bottom: 20px;
  360. }
  361. #topic_color {
  362. color: limegreen;
  363. }
  364. #mobile_search_input {
  365. border-radius: 10px;
  366. }