main.css 6.0 KB

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