:root { --green-color: #5CB85C; --white-color: #ffffff; --light-grey-color: #bbbbbb; --grey-color: #999999; --black-color: #373a3c; --red-color: #b85c5c; --input-color: #66afe9; --dark-green-color: #3c8a3c; } .col-1 { width: 8.33%; padding-left: 15px; padding-right: 15px; } .col-2 { width: 16.66%; padding-left: 15px; padding-right: 15px; } .col-3 { width: 25%; padding-left: 15px; padding-right: 15px; } .col-4 { width: 33.33%; padding-left: 15px; padding-right: 15px; } .col-5 { width: 41.66%; padding-left: 15px; padding-right: 15px; } .col-6 { width: 50%; padding-left: 15px; padding-right: 15px; } .col-7 { width: 58.33%; padding-left: 15px; padding-right: 15px; } .col-8 { width: 66.66%; padding-left: 15px; padding-right: 15px; } .col-9 { width: 75%; padding-left: 15px; padding-right: 15px; } .col-10 { width: 83.33%; padding-left: 15px; padding-right: 15px; } .col-11 { width: 91.66%; padding-left: 15px; padding-right: 15px; } .col-12 { width: 100%; padding-left: 15px; padding-right: 15px; } html { font-size: 16px; } body { margin: 0; font-family: 'Source Sans Pro', sans-serif; font-size: 1rem; line-height: 1.5; color: var(--black-color); } * { padding: 0; margin: 0; box-sizing: border-box; } ul, li { list-style: none; } a { text-decoration: none; color: var(--green-color); cursor: pointer; } button { font-family: 'Source Sans Pro', sans-serif; background-color: transparent; cursor: pointer; border: 1px solid transparent; } .container { margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; } @media (min-width: 544px) { .container { max-width: 576px; } } @media (min-width: 768px) { .container {max-width: 720px; } } @media (min-width: 992px) { .container { max-width: 940px; } } @media (min-width: 1200px) { .container { max-width: 1140px; } } .navbar { padding: 0.5rem 1rem; } .navbar .container { display: flex; justify-content: space-between; align-items: center; } .navbar #logo { vertical-align: middle; width: 120px; height: auto; border-radius: 0; } .navbar .navbar-menu .nav-item { float: left; margin-left: 1rem; cursor: pointer; font-weight: 300; } .navbar .navbar-menu .nav-item .link { color: var(--light-grey-color); } .navbar .navbar-menu .nav-item a:hover { color: var(--black-color); } .navbar .navbar-menu .link.active { color: var(--black-color); font-weight: 400; } .navbar .navbar-menu .link.active:hover { filter: none; } .navbar .navbar-menu .nav-item .fas { font-size: 0.85rem; } /* banner */ .home-page .banner { background-color: var(--green-color); padding: 2rem; text-align: center; color: var(--white-color); } .home-page .banner .banner-title { font-family: 'Titillium Web',sans-serif; font-size: 3.5rem; text-shadow: 1px 1px 2px rgb(0,0,0,0.4); line-height: 1.1; padding-bottom: 0.5rem; } .home-page .banner .banner-description { font-size: 1.5rem; font-weight: 300; } /* article */ .container.main { margin-top: 1.5rem; } .row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; } .toggle .nav { overflow: hidden; /* border-bottom: 1px solid rgb(0, 0, 0, 0.2); */ margin-bottom: -1px; } .toggle .nav .nav-item { float: left; padding: 0.5rem 1rem; margin-bottom: -1px; } .toggle .nav .nav-item a { color: var(--light-grey-color); } /* 추가 */ .toggle .nav .nav-item div { color: var(--light-grey-color); } .toggle .nav .nav-item.active { float: left; padding: 0.5rem 1rem; margin-bottom: -1px; border-bottom: 3px solid var(--green-color); } .toggle .nav .nav-item.active a { cursor: default; color: var(--green-color); } /* 추가 */ .toggle .nav .nav-item.active div { cursor: default; color: var(--green-color); } .article { clear: both; } .article-preview, #article-loading, .noArticle { border-top: 1px solid rgb(0, 0, 0, 0.2); padding: 1.5rem 0; } .article-preview .article-meta { display: flex; justify-content: space-between; margin-bottom: 0.8rem; } .article-meta .metadata { display: flex; } img { width: 2rem; height: 2rem; border-radius: 50%; } .article-meta .metadata .article-info { display: flex; flex-direction: column; font-weight: 300; margin-left: 0.5rem; line-height: 1rem; margin-right: 1.5rem; } .article-meta .metadata .article-info .name { font-weight: 500; } .article-info a:hover { text-decoration: underline; color: var(--dark-green-color); } .article-info .date { font-size: 0.8rem; color: var(--light-grey-color); } .favorite-btn { color: var(--green-color); font-weight: normal; line-height: 1.25; border: 1px solid transparent; cursor: pointer; border-color: var(--green-color); padding: 0.25rem 0.5rem; border-radius: 0.2rem; font-size: 0.8rem; } .favorite-btn i { font-size: 0.725rem; pointer-events: none; } .favorite-btn.active, .favorite-btn:hover { color: var(--white-color); background-color: var(--green-color); } .favorite-btn span { pointer-events: none; } .preview-link h1{ color: var(--black-color); line-height: 1.1; font-weight: 600; font-size: 1.5rem; margin-bottom: 0.2rem; } .preview-link p { color: var(--grey-color); font-weight: 300; margin-bottom: 1rem; line-height: 1.3; } .tag-data { display: flex; justify-content: space-between; color: var(--light-grey-color); font-weight: 300; font-size: 0.8rem; } .tag-list .tag { border: 1px solid #dddddd; border-radius: 10rem; padding: 0 0.5rem; color: var(--grey-color); font-weight: 300; font-size: 0.8rem; margin-left: 3px; } .aside { background-color: #f2f2f2; border-radius: 3px; padding: 5px 10px 10px 10px; } .home-page .aside .tag-list { display: inline-block; } .home-page .aside .tag-list .tag { color: var(--white-color); font-size: 0.8rem; padding-top: 0.1rem; padding-bottom: 0.1rem; white-space: nowrap; margin-right: 3px; margin-bottom: 0.2rem; display: inline-block; background-color: #818a92; margin-left: 0; font-weight: normal; border: none; } .home-page .aside .tag-list .tag:hover, .home-page .aside .tag-list .tag.active { background-color: #646d74; } .home-page #article-list .more-button { float: right; margin-top: 0.6rem; margin-bottom: 1.2rem; border: 1px solid #818a92; padding: 0.25rem 0.5rem; border-radius: 3px; } .home-page #article-list .more-button:hover { background-color: #dddddd; } #loading { display: inline-block; position: absolute; left: 33%; width: 50px; height: 50px; border: 3px solid rgba(255,255,255, 0.1); border-radius: 50%; border-top-color: #aaa; animation: spin 1s ease-in-out infinite; -webkit-animation: spin 1s ease-in-out infinite; } @keyframes spin { to { -webkit-transform: rotate(360deg); } } @-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } } /* Sign in & Sign up */ .container .col-6 { text-align: center; float: none; margin: auto; } .container .col-6 .sign-in-title { font-size: 2.5rem; font-weight: 500; line-height: 1.1; margin-bottom: 0.5rem; } .container .col-6 p { text-align: center; margin-bottom: 1rem; } .container .row .col-6 a:hover { text-decoration: underline; color: var(--dark-green-color); } .container .col-6 .form-data { margin-bottom: 1rem; } .form-group { display: flex; flex-direction: column; } .form-data .form-control { padding: 0.8rem 1.5rem; font-size: 1.25rem; border-radius: 0.3rem; width: 100%; line-height: 1.25; color: var(--black-color); border: 1px solid #dddddd; font-family: 'Source Sans Pro', sans-serif; } input::placeholder, textarea::placeholder{ color: var(--grey-color); } .form-control:focus { outline: none; border-color: var(--input-color); } .btn-signIn, .btn-signUp, .btn-settings, .btn-card { padding: 0.8rem 1.5rem; font-size: 1.1rem; border-radius: 0.3rem; border-color: var(--green-color); background-color: var(--green-color); color: var(--white-color); } button:last-child { align-self: end; } .navbar-menu .username { display: flex; align-items: center; } .navbar-menu .nav-item img { width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; } /* editor */ .container .col-10 { text-align: center; float: none; margin: auto; } .container .col-10 .form-data { margin-bottom: 1rem; } .form-data .form-control-sm { padding: 0.5rem 0.75rem; font-size: 1rem; } textarea { resize: vertical; font-family: 'Source Sans Pro', sans-serif; } .editor-page .tag-list { /* margin-top: 0.5rem; */ flex-wrap: wrap; } .editor-page .tag-list .tag { display: flex; align-items: center; margin-bottom: 0.2rem; margin-right: 3px; margin-left: 0; padding-top: 0.1rem; background-color: #818a92; color: var(--white-color); font-weight: normal; border: none; } .editor-page .tag-list .tag i { margin-left: 3px; } .editor-page .tag-list .tag i:hover { cursor: pointer; } .editor-page .form-data .tag-form { margin-bottom: 0.2rem; } /* Article Banner */ .article-page .banner { background-color: var(--black-color); padding: 2rem; color: var(--white-color); } .article-page .banner .article-banner-title { font-size: 2.8rem; font-weight: 600; } .article-page .banner .article-meta { margin-top: 2rem; } .article-page .banner .article-info .name { color: var(--white-color); } .article-page .banner .article-info .name:hover { filter: none; } .article-page .edit-article, .article-page .follow-btn { color: var(--light-grey-color); border: 1px solid var(--light-grey-color); margin-right: 3px; font-weight: 400; font-size: 0.9rem; } .article-page .edit-article:hover, .article-page .follow-btn:hover { color: var(--white-color); background-color: var(--light-grey-color); } .article-page .follow-btn.active { color: var(--white-color); background-color: var(--light-grey-color); } .article-page .delete-article { color: var(--red-color); border-color: var(--red-color); font-weight: 400; font-size: 0.9rem; } .article-page .favorite-btn { font-weight: 400; font-size: 0.9rem; } .article-page .delete-article:hover { color: var(--white-color); background-color: var(--red-color); } .article-page .article-content pre{ font-family: 'Source Serif Pro', serif; font-size: 1.25rem; line-height: 1.8rem; margin-bottom: 2rem; white-space: pre-line; } .tag-list { display: flex; } .article-page .tag-list .tag { margin-left: 0 !important; margin-right: 3px; } .article-page .article-content ul { padding-bottom: 1rem; } .article-page .col-12 { padding: 0; } .article-page .article-actions { display: flex; justify-content: center; margin-top: 1.5rem; margin-bottom: 3rem; } .article-page .row { display: flex; justify-content: center; } .card { margin-bottom: 0.75rem; border-radius: 0.25rem;; } .form-control { display: block; width: 100%; font-size: 1rem; color: var(--black-color); line-height: 1.25; border-radius: 0.25rem; } .article-page .card { border: 1px solid #eeeeee; box-shadow: none; } .article-page .comment-form .card-block { padding: 0; } .article-page .comment-form .card-block textarea { border: 0px; padding: 1.25rem; } .card-footer { padding: 0.75rem 1.25rem; background-color: #f5f5f5; } .article-page .comment-form .card-footer { display: flex; justify-content: space-between !important; align-items: center; } .article-page .card .card-footer { border-top: 1px solid #eeeeee; box-shadow: none; font-size: 0.8rem; font-weight: 300; } .article-page .card .card-footer .date-posted { color: var(--light-grey-color); } .card-footer:last-child { border-radius: 0 0 0.25rem 0.25rem; } .article-page .comment-form .card-footer .comment-img { height: 30px; width: 30px; } .article-page .comment-form .card-footer .btn { font-weight: 700 !important; } .card-block { padding: 1.25rem; } .article-page .card .comment-img { width: 20px; height: 20px; margin-right: 5px; } .article-page .card .card-footer .comment-author:hover { text-decoration: underline; color: var(--dark-green-color); } .article-page .card .date-posted { margin-left: 5px; } .article-page .card .card-footer { display: flex; justify-content: space-between; align-items: center; } .article-page .card .card-footer i { color: var(--grey-color); cursor: pointer; } .article-page .card .card-footer i:hover { color: rgba(0, 0, 0, 0.8); } .article-page .card .card-footer .user-info { display: flex; align-items: center; } /* settings */ hr { width: 100%; margin-top: 1rem; margin-bottom: 1rem; border-top: 1px solid rgba(0, 0, 0, 0.1); box-sizing: content-box; } .btn-logout { float: left; color: var(--red-color); border-color: var(--red-color); padding: 0.5rem 1rem; border-radius: 0.3rem; font-size: 1rem; font-weight: normal; line-height: 1.25; } .btn-logout:hover { background-color: var(--red-color); color: var(--white-color); } .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; border-radius: 0.2rem; font-weight: 100; } /* user-page */ .user-page .user-info { background-color: #eeeeee; padding: 2rem 0 1rem 0; } .user-page .user-info .user-img { width: 100px; height: 100px; border-radius: 100px; margin-bottom: 1rem;; } .user-page .user-info h4 { font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-bottom: 0.5rem; } .user-page .user-info .action-btn { float: right; color: var(--grey-color); border: 1px solid var(--grey-color); font-weight: normal; } .user-page .article-preview { text-align: start; } /* modal.jsp */ #modal-container { position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.3); } .modal-body { z-index: 10000; position: absolute; padding: 30px 40px; display: flex; justify-content: center; flex-direction: column; background: var(--white-color); cursor: default; width: 60%; height: 30%; margin: auto; left: 0; right: 0; top: 0; bottom: 0; border-color: rgba(0, 0, 0, 0.3); border-style: groove; border-radius: 1rem; } .modal-message { padding-bottom: 40px; font-size: 2rem; font-family: 'Nanum Gothic', sans-serif; color: var(--green-color); } .modal-close-btn { position: relative; background-color: var(--green-color); color: var(--white-color); font-weight: 700; font-family: 'Nanum Gothic', sans-serif; width: 5rem; height: 2rem; border-radius: 0.3rem; cursor: pointer; margin: 0 auto; margin-top: 1rem; }