main.css 6.0 KB

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