style.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. :root {
  2. --green-color: #5CB85C;
  3. --white-color: #ffffff;
  4. --light-grey-color: #bbbbbb;
  5. --grey-color: #999999;
  6. --black-color: #373a3c;
  7. --red-color: #b85c5c;
  8. --input-color: #66afe9;
  9. --dark-green-color: #3c8a3c;
  10. }
  11. .col-1 {
  12. width: 8.33%;
  13. padding-left: 15px;
  14. padding-right: 15px;
  15. }
  16. .col-2 {
  17. width: 16.66%;
  18. padding-left: 15px;
  19. padding-right: 15px;
  20. }
  21. .col-3 {
  22. width: 25%;
  23. padding-left: 15px;
  24. padding-right: 15px;
  25. }
  26. .col-4 {
  27. width: 33.33%;
  28. padding-left: 15px;
  29. padding-right: 15px;
  30. }
  31. .col-5 {
  32. width: 41.66%;
  33. padding-left: 15px;
  34. padding-right: 15px;
  35. }
  36. .col-6 {
  37. width: 50%;
  38. padding-left: 15px;
  39. padding-right: 15px;
  40. }
  41. .col-7 {
  42. width: 58.33%;
  43. padding-left: 15px;
  44. padding-right: 15px;
  45. }
  46. .col-8 {
  47. width: 66.66%;
  48. padding-left: 15px;
  49. padding-right: 15px;
  50. }
  51. .col-9 {
  52. width: 75%;
  53. padding-left: 15px;
  54. padding-right: 15px;
  55. }
  56. .col-10 {
  57. width: 83.33%;
  58. padding-left: 15px;
  59. padding-right: 15px;
  60. }
  61. .col-11 {
  62. width: 91.66%;
  63. padding-left: 15px;
  64. padding-right: 15px;
  65. }
  66. .col-12 {
  67. width: 100%;
  68. padding-left: 15px;
  69. padding-right: 15px;
  70. }
  71. html {
  72. font-size: 16px;
  73. }
  74. body {
  75. margin: 0;
  76. font-family: 'Source Sans Pro', sans-serif;
  77. font-size: 1rem;
  78. line-height: 1.5;
  79. color: var(--black-color);
  80. }
  81. * {
  82. padding: 0;
  83. margin: 0;
  84. box-sizing: border-box;
  85. }
  86. ul, li {
  87. list-style: none;
  88. }
  89. a {
  90. text-decoration: none;
  91. color: var(--green-color);
  92. cursor: pointer;
  93. }
  94. button {
  95. font-family: 'Source Sans Pro', sans-serif;
  96. background-color: transparent;
  97. cursor: pointer;
  98. border: 1px solid transparent;
  99. }
  100. .container {
  101. margin-left: auto;
  102. margin-right: auto;
  103. padding-left: 1rem;
  104. padding-right: 1rem;
  105. }
  106. @media (min-width: 544px) {
  107. .container {
  108. max-width: 576px; }
  109. }
  110. @media (min-width: 768px) {
  111. .container {max-width: 720px; }
  112. }
  113. @media (min-width: 992px) {
  114. .container {
  115. max-width: 940px; }
  116. }
  117. @media (min-width: 1200px) {
  118. .container {
  119. max-width: 1140px; }
  120. }
  121. .navbar {
  122. padding: 0.5rem 1rem;
  123. }
  124. .navbar .container {
  125. display: flex;
  126. justify-content: space-between;
  127. align-items: center;
  128. }
  129. .navbar #logo {
  130. vertical-align: middle;
  131. width: 120px;
  132. height: auto;
  133. border-radius: 0;
  134. }
  135. .navbar .navbar-menu .nav-item {
  136. float: left;
  137. margin-left: 1rem;
  138. cursor: pointer;
  139. font-weight: 300;
  140. }
  141. .navbar .navbar-menu .nav-item .link {
  142. color: var(--light-grey-color);
  143. }
  144. .navbar .navbar-menu .nav-item a:hover {
  145. color: var(--black-color);
  146. }
  147. .navbar .navbar-menu .link.active {
  148. color: var(--black-color);
  149. font-weight: 400;
  150. }
  151. .navbar .navbar-menu .link.active:hover {
  152. filter: none;
  153. }
  154. .navbar .navbar-menu .nav-item .fas {
  155. font-size: 0.85rem;
  156. }
  157. /* banner */
  158. .home-page .banner {
  159. background-color: var(--green-color);
  160. padding: 2rem;
  161. text-align: center;
  162. color: var(--white-color);
  163. }
  164. .home-page .banner .banner-title {
  165. font-family: 'Titillium Web',sans-serif;
  166. font-size: 3.5rem;
  167. text-shadow: 1px 1px 2px rgb(0,0,0,0.4);
  168. line-height: 1.1;
  169. padding-bottom: 0.5rem;
  170. }
  171. .home-page .banner .banner-description {
  172. font-size: 1.5rem;
  173. font-weight: 300;
  174. }
  175. /* article */
  176. .container.main {
  177. margin-top: 1.5rem;
  178. }
  179. .row {
  180. display: flex;
  181. flex-wrap: wrap;
  182. margin-left: -15px;
  183. margin-right: -15px;
  184. }
  185. .toggle .nav {
  186. overflow: hidden;
  187. /* border-bottom: 1px solid rgb(0, 0, 0, 0.2); */
  188. margin-bottom: -1px;
  189. }
  190. .toggle .nav .nav-item {
  191. float: left;
  192. padding: 0.5rem 1rem;
  193. margin-bottom: -1px;
  194. }
  195. .toggle .nav .nav-item a {
  196. color: var(--light-grey-color);
  197. }
  198. /* 추가 */
  199. .toggle .nav .nav-item div {
  200. color: var(--light-grey-color);
  201. }
  202. .toggle .nav .nav-item.active {
  203. float: left;
  204. padding: 0.5rem 1rem;
  205. margin-bottom: -1px;
  206. border-bottom: 3px solid var(--green-color);
  207. }
  208. .toggle .nav .nav-item.active a {
  209. cursor: default;
  210. color: var(--green-color);
  211. }
  212. /* 추가 */
  213. .toggle .nav .nav-item.active div {
  214. cursor: default;
  215. color: var(--green-color);
  216. }
  217. .article {
  218. clear: both;
  219. }
  220. .article-preview, #article-loading, .noArticle {
  221. border-top: 1px solid rgb(0, 0, 0, 0.2);
  222. padding: 1.5rem 0;
  223. }
  224. .article-preview .article-meta {
  225. display: flex;
  226. justify-content: space-between;
  227. margin-bottom: 0.8rem;
  228. }
  229. .article-meta .metadata {
  230. display: flex;
  231. }
  232. img {
  233. width: 2rem;
  234. height: 2rem;
  235. border-radius: 50%;
  236. }
  237. .article-meta .metadata .article-info {
  238. display: flex;
  239. flex-direction: column;
  240. font-weight: 300;
  241. margin-left: 0.5rem;
  242. line-height: 1rem;
  243. margin-right: 1.5rem;
  244. }
  245. .article-meta .metadata .article-info .name {
  246. font-weight: 500;
  247. }
  248. .article-info a:hover {
  249. text-decoration: underline;
  250. color: var(--dark-green-color);
  251. }
  252. .article-info .date {
  253. font-size: 0.8rem;
  254. color: var(--light-grey-color);
  255. }
  256. .favorite-btn {
  257. color: var(--green-color);
  258. font-weight: normal;
  259. line-height: 1.25;
  260. border: 1px solid transparent;
  261. cursor: pointer;
  262. border-color: var(--green-color);
  263. padding: 0.25rem 0.5rem;
  264. border-radius: 0.2rem;
  265. font-size: 0.8rem;
  266. }
  267. .favorite-btn i {
  268. font-size: 0.725rem;
  269. pointer-events: none;
  270. }
  271. .favorite-btn.active,
  272. .favorite-btn:hover {
  273. color: var(--white-color);
  274. background-color: var(--green-color);
  275. }
  276. .favorite-btn span {
  277. pointer-events: none;
  278. }
  279. .preview-link h1{
  280. color: var(--black-color);
  281. line-height: 1.1;
  282. font-weight: 600;
  283. font-size: 1.5rem;
  284. margin-bottom: 0.2rem;
  285. }
  286. .preview-link p {
  287. color: var(--grey-color);
  288. font-weight: 300;
  289. margin-bottom: 1rem;
  290. line-height: 1.3;
  291. }
  292. .tag-data {
  293. display: flex;
  294. justify-content: space-between;
  295. color: var(--light-grey-color);
  296. font-weight: 300;
  297. font-size: 0.8rem;
  298. }
  299. .tag-list .tag {
  300. border: 1px solid #dddddd;
  301. border-radius: 10rem;
  302. padding: 0 0.5rem;
  303. color: var(--grey-color);
  304. font-weight: 300;
  305. font-size: 0.8rem;
  306. margin-left: 3px;
  307. }
  308. .aside {
  309. background-color: #f2f2f2;
  310. border-radius: 3px;
  311. padding: 5px 10px 10px 10px;
  312. }
  313. .home-page .aside .tag-list {
  314. display: inline-block;
  315. }
  316. .home-page .aside .tag-list .tag {
  317. color: var(--white-color);
  318. font-size: 0.8rem;
  319. padding-top: 0.1rem;
  320. padding-bottom: 0.1rem;
  321. white-space: nowrap;
  322. margin-right: 3px;
  323. margin-bottom: 0.2rem;
  324. display: inline-block;
  325. background-color: #818a92;
  326. margin-left: 0;
  327. font-weight: normal;
  328. border: none;
  329. }
  330. .home-page .aside .tag-list .tag:hover,
  331. .home-page .aside .tag-list .tag.active {
  332. background-color: #646d74;
  333. }
  334. .home-page #article-list .more-button {
  335. float: right;
  336. margin-top: 0.6rem;
  337. margin-bottom: 1.2rem;
  338. border: 1px solid #818a92;
  339. padding: 0.25rem 0.5rem;
  340. border-radius: 3px;
  341. }
  342. .home-page #article-list .more-button:hover {
  343. background-color: #dddddd;
  344. }
  345. #loading {
  346. display: inline-block;
  347. position: absolute;
  348. left: 33%;
  349. width: 50px;
  350. height: 50px;
  351. border: 3px solid rgba(255,255,255, 0.1);
  352. border-radius: 50%;
  353. border-top-color: #aaa;
  354. animation: spin 1s ease-in-out infinite;
  355. -webkit-animation: spin 1s ease-in-out infinite;
  356. }
  357. @keyframes spin {
  358. to { -webkit-transform: rotate(360deg); }
  359. }
  360. @-webkit-keyframes spin {
  361. to { -webkit-transform: rotate(360deg); }
  362. }
  363. /* Sign in & Sign up */
  364. .container .col-6 {
  365. text-align: center;
  366. float: none;
  367. margin: auto;
  368. }
  369. .container .col-6 .sign-in-title {
  370. font-size: 2.5rem;
  371. font-weight: 500;
  372. line-height: 1.1;
  373. margin-bottom: 0.5rem;
  374. }
  375. .container .col-6 p {
  376. text-align: center;
  377. margin-bottom: 1rem;
  378. }
  379. .container .row .col-6 a:hover {
  380. text-decoration: underline;
  381. color: var(--dark-green-color);
  382. }
  383. .container .col-6 .form-data {
  384. margin-bottom: 1rem;
  385. }
  386. .form-group {
  387. display: flex;
  388. flex-direction: column;
  389. }
  390. .form-data .form-control {
  391. padding: 0.8rem 1.5rem;
  392. font-size: 1.25rem;
  393. border-radius: 0.3rem;
  394. width: 100%;
  395. line-height: 1.25;
  396. color: var(--black-color);
  397. border: 1px solid #dddddd;
  398. font-family: 'Source Sans Pro', sans-serif;
  399. }
  400. input::placeholder,
  401. textarea::placeholder{
  402. color: var(--grey-color);
  403. }
  404. .form-control:focus {
  405. outline: none;
  406. border-color: var(--input-color);
  407. }
  408. .btn-signIn,
  409. .btn-signUp,
  410. .btn-settings,
  411. .btn-card {
  412. padding: 0.8rem 1.5rem;
  413. font-size: 1.1rem;
  414. border-radius: 0.3rem;
  415. border-color: var(--green-color);
  416. background-color: var(--green-color);
  417. color: var(--white-color);
  418. }
  419. button:last-child {
  420. align-self: end;
  421. }
  422. .navbar-menu .username {
  423. display: flex;
  424. align-items: center;
  425. }
  426. .navbar-menu .nav-item img {
  427. width: 26px;
  428. height: 26px;
  429. border-radius: 50%;
  430. vertical-align: middle;
  431. }
  432. /* editor */
  433. .container .col-10 {
  434. text-align: center;
  435. float: none;
  436. margin: auto;
  437. }
  438. .container .col-10 .form-data {
  439. margin-bottom: 1rem;
  440. }
  441. .form-data .form-control-sm {
  442. padding: 0.5rem 0.75rem;
  443. font-size: 1rem;
  444. }
  445. textarea {
  446. resize: vertical;
  447. font-family: 'Source Sans Pro', sans-serif;
  448. }
  449. .editor-page .tag-list {
  450. /* margin-top: 0.5rem; */
  451. flex-wrap: wrap;
  452. }
  453. .editor-page .tag-list .tag {
  454. display: flex;
  455. align-items: center;
  456. margin-bottom: 0.2rem;
  457. margin-right: 3px;
  458. margin-left: 0;
  459. padding-top: 0.1rem;
  460. background-color: #818a92;
  461. color: var(--white-color);
  462. font-weight: normal;
  463. border: none;
  464. }
  465. .editor-page .tag-list .tag i {
  466. margin-left: 3px;
  467. }
  468. .editor-page .tag-list .tag i:hover {
  469. cursor: pointer;
  470. }
  471. .editor-page .form-data .tag-form {
  472. margin-bottom: 0.2rem;
  473. }
  474. /* Article Banner */
  475. .article-page .banner {
  476. background-color: var(--black-color);
  477. padding: 2rem;
  478. color: var(--white-color);
  479. }
  480. .article-page .banner .article-banner-title {
  481. font-size: 2.8rem;
  482. font-weight: 600;
  483. }
  484. .article-page .banner .article-meta {
  485. margin-top: 2rem;
  486. }
  487. .article-page .banner .article-info .name {
  488. color: var(--white-color);
  489. }
  490. .article-page .banner .article-info .name:hover {
  491. filter: none;
  492. }
  493. .article-page .edit-article,
  494. .article-page .follow-btn {
  495. color: var(--light-grey-color);
  496. border: 1px solid var(--light-grey-color);
  497. margin-right: 3px;
  498. font-weight: 400;
  499. font-size: 0.9rem;
  500. }
  501. .article-page .edit-article:hover,
  502. .article-page .follow-btn:hover {
  503. color: var(--white-color);
  504. background-color: var(--light-grey-color);
  505. }
  506. .article-page .follow-btn.active {
  507. color: var(--white-color);
  508. background-color: var(--light-grey-color);
  509. }
  510. .article-page .delete-article {
  511. color: var(--red-color);
  512. border-color: var(--red-color);
  513. font-weight: 400;
  514. font-size: 0.9rem;
  515. }
  516. .article-page .favorite-btn {
  517. font-weight: 400;
  518. font-size: 0.9rem;
  519. }
  520. .article-page .delete-article:hover {
  521. color: var(--white-color);
  522. background-color: var(--red-color);
  523. }
  524. .article-page .article-content pre{
  525. font-family: 'Source Serif Pro', serif;
  526. font-size: 1.25rem;
  527. line-height: 1.8rem;
  528. margin-bottom: 2rem;
  529. white-space: pre-line;
  530. }
  531. .tag-list {
  532. display: flex;
  533. }
  534. .article-page .tag-list .tag {
  535. margin-left: 0 !important;
  536. margin-right: 3px;
  537. }
  538. .article-page .article-content ul {
  539. padding-bottom: 1rem;
  540. }
  541. .article-page .col-12 {
  542. padding: 0;
  543. }
  544. .article-page .article-actions {
  545. display: flex;
  546. justify-content: center;
  547. margin-top: 1.5rem;
  548. margin-bottom: 3rem;
  549. }
  550. .article-page .row {
  551. display: flex;
  552. justify-content: center;
  553. }
  554. .card {
  555. margin-bottom: 0.75rem;
  556. border-radius: 0.25rem;;
  557. }
  558. .form-control {
  559. display: block;
  560. width: 100%;
  561. font-size: 1rem;
  562. color: var(--black-color);
  563. line-height: 1.25;
  564. border-radius: 0.25rem;
  565. }
  566. .article-page .card {
  567. border: 1px solid #eeeeee;
  568. box-shadow: none;
  569. }
  570. .article-page .comment-form .card-block {
  571. padding: 0;
  572. }
  573. .article-page .comment-form .card-block textarea {
  574. border: 0px;
  575. padding: 1.25rem;
  576. }
  577. .card-footer {
  578. padding: 0.75rem 1.25rem;
  579. background-color: #f5f5f5;
  580. }
  581. .article-page .comment-form .card-footer {
  582. display: flex;
  583. justify-content: space-between !important;
  584. align-items: center;
  585. }
  586. .article-page .card .card-footer {
  587. border-top: 1px solid #eeeeee;
  588. box-shadow: none;
  589. font-size: 0.8rem;
  590. font-weight: 300;
  591. }
  592. .article-page .card .card-footer .date-posted {
  593. color: var(--light-grey-color);
  594. }
  595. .card-footer:last-child {
  596. border-radius: 0 0 0.25rem 0.25rem;
  597. }
  598. .article-page .comment-form .card-footer .comment-img {
  599. height: 30px;
  600. width: 30px;
  601. }
  602. .article-page .comment-form .card-footer .btn {
  603. font-weight: 700 !important;
  604. }
  605. .card-block {
  606. padding: 1.25rem;
  607. }
  608. .article-page .card .comment-img {
  609. width: 20px;
  610. height: 20px;
  611. margin-right: 5px;
  612. }
  613. .article-page .card .card-footer .comment-author:hover {
  614. text-decoration: underline;
  615. color: var(--dark-green-color);
  616. }
  617. .article-page .card .date-posted {
  618. margin-left: 5px;
  619. }
  620. .article-page .card .card-footer {
  621. display: flex;
  622. justify-content: space-between;
  623. align-items: center;
  624. }
  625. .article-page .card .card-footer i {
  626. color: var(--grey-color);
  627. cursor: pointer;
  628. }
  629. .article-page .card .card-footer i:hover {
  630. color: rgba(0, 0, 0, 0.8);
  631. }
  632. .article-page .card .card-footer .user-info {
  633. display: flex;
  634. align-items: center;
  635. }
  636. /* settings */
  637. hr {
  638. width: 100%;
  639. margin-top: 1rem;
  640. margin-bottom: 1rem;
  641. border-top: 1px solid rgba(0, 0, 0, 0.1);
  642. box-sizing: content-box;
  643. }
  644. .btn-logout {
  645. float: left;
  646. color: var(--red-color);
  647. border-color: var(--red-color);
  648. padding: 0.5rem 1rem;
  649. border-radius: 0.3rem;
  650. font-size: 1rem;
  651. font-weight: normal;
  652. line-height: 1.25;
  653. }
  654. .btn-logout:hover {
  655. background-color: var(--red-color);
  656. color: var(--white-color);
  657. }
  658. .btn-sm {
  659. padding: 0.25rem 0.5rem;
  660. font-size: 0.8rem;
  661. border-radius: 0.2rem;
  662. font-weight: 100;
  663. }
  664. /* user-page */
  665. .user-page .user-info {
  666. background-color: #eeeeee;
  667. padding: 2rem 0 1rem 0;
  668. }
  669. .user-page .user-info .user-img {
  670. width: 100px;
  671. height: 100px;
  672. border-radius: 100px;
  673. margin-bottom: 1rem;;
  674. }
  675. .user-page .user-info h4 {
  676. font-weight: 700;
  677. font-size: 1.5rem;
  678. line-height: 1.1;
  679. margin-bottom: 0.5rem;
  680. }
  681. .user-page .user-info .action-btn {
  682. float: right;
  683. color: var(--grey-color);
  684. border: 1px solid var(--grey-color);
  685. font-weight: normal;
  686. }
  687. .user-page .article-preview {
  688. text-align: start;
  689. }
  690. /* modal.jsp */
  691. #modal-container {
  692. position: fixed;
  693. width: 100%;
  694. height: 100%;
  695. top: 0;
  696. left: 0;
  697. background: rgba(0, 0, 0, 0.3);
  698. }
  699. .modal-body {
  700. z-index: 10000;
  701. position: absolute;
  702. padding: 30px 40px;
  703. display: flex;
  704. justify-content: center;
  705. flex-direction: column;
  706. background: var(--white-color);
  707. cursor: default;
  708. width: 60%;
  709. height: 30%;
  710. margin: auto;
  711. left: 0;
  712. right: 0;
  713. top: 0;
  714. bottom: 0;
  715. border-color: rgba(0, 0, 0, 0.3);
  716. border-style: groove;
  717. border-radius: 1rem;
  718. }
  719. .modal-message {
  720. padding-bottom: 40px;
  721. font-size: 2rem;
  722. font-family: 'Nanum Gothic', sans-serif;
  723. color: var(--green-color);
  724. }
  725. .modal-close-btn {
  726. position: relative;
  727. background-color: var(--green-color);
  728. color: var(--white-color);
  729. font-weight: 700;
  730. font-family: 'Nanum Gothic', sans-serif;
  731. width: 5rem;
  732. height: 2rem;
  733. border-radius: 0.3rem;
  734. cursor: pointer;
  735. margin: 0 auto;
  736. margin-top: 1rem;
  737. }