main.css 5.7 KB

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