관리-도구
편집 파일: _post.scss
/*=============================================================== 18. Posts and Post Details =================================================================*/ .cs_post_style_1 { .cs_post_thumbnail { display: block; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); transform: scale(1); } &:hover { img { transform: scale(1.03); } } } .cs_post_title { &:hover { color: var(--accent-color); } } } .cs_post_style_2, .cs_post_style_5 { width: 100%; .cs_post_thumbnail { display: block; width: 100%; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.55, 1, 0.66, 1); } &:has(img[src=""]) { display: none; margin-bottom: 0; } &:hover { img { transform: scale(1.03); } } } .cs_post_title a { &:hover { color: var(--accent-color); } } .cs_post_meta { display: flex; gap: 8px; .cs_date { padding-left: 58px; position: relative; &::before { content: ""; width: 50px; height: 1px; background-color: currentColor; position: absolute; top: 12px; left: 0; } } &:last-child { margin-bottom: 0; } } hr { margin-top: 0; border-color: var(--border-color); &:last-child { margin-bottom: 0; } } .cs_text_btn_style_1 { &:hover { color: var(--accent-color); letter-spacing: 1px; } } .cs_posted_date { width: 90px; height: 90px; left: 0; top: 0; padding: 15px; } &.cs_feature_post { padding-right: 18px; } &.cs_type_1 { .cs_post_thumbnail { border-radius: 175px 10px 10px 10px; } } @media (max-width:991px) { &.cs_feature_post { padding-right: 0; } } } .cs_post_style_3 { width: 100%; padding: 10px 10px 30px; .cs_post_thumbnail { display: block; width: 100%; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.55, 1, 0.66, 1); } &:hover { img { transform: scale(1.03); } } } .cs_post_info { padding: 0 20px; } .cs_post_title a { &:hover { color: var(--accent-color); } } .cs_post_meta_wrapper { display: flex; gap: 10px 20px; flex-wrap: wrap; .cs_post_meta { padding: 9px 30px; border-radius: 60px; line-height: 1em; color: var(--border-color); border: 1px solid currentColor; &:hover { color: var(--accent-color); } } } .cs_text_btn_style_1 { &:hover { color: var(--accent-color); letter-spacing: 1px; } } @media (max-width:991px) {} } .cs_post_style_4 { width: 100%; height: 100%; .cs_post_thumbnail { display: block; width: 100%; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.55, 1, 0.66, 1); } &:hover { img { transform: scale(1.03); } } } .cs_post_title a { &:hover { color: var(--accent-color); } } .cs_post_meta_wrapper { display: flex; gap: 10px 20px; flex-wrap: wrap; justify-content: space-between; } .cs_category { padding: 6px 16px; border-radius: 60px; line-height: 1em; color: var(--accent-color); background-color: var(--white-color); } &.cs_featured_post { position: relative; .cs_post_thumbnail { width: 100%; height: 100%; position: relative; margin-bottom: 0; &::before { content: ""; width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%); } } .cs_post_info { width: min(100%, 750px); padding: 0 20px 60px 60px; position: absolute; left: 0; bottom: 0; z-index: 2; pointer-events: none; } .cs_category { display: none; } .cs_date { padding: 6px 30px; border-radius: 60px; color: var(--accent-color); background-color: var(--white-color); } .cs_post_title { margin-bottom: 0; } .cs_post_subtitle { display: none; } &:hover { img { transform: scale(1.03); } } } @media (max-width:1199px) { &.cs_featured_post { .cs_post_info { width: 100%; padding: 0 15px 40px 20px; } } } @media (max-width:991px) { &.cs_featured_post { .cs_post_info { width: 100%; padding: 0 15px 40px; } } } } .cs_post_style_5 { width: 100%; height: 100%; padding: 30px; display: flex; flex-direction: column; .cs_post_thumbnail { max-height: 240px; } .cs_post_info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; } .cs_post_summery { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; } .cs_posted_by, .cs_post_comment { text-wrap: nowrap; line-height: 1em; img { margin-right: 4px; } span { display: inline-block; } } .cs_text_btn_style_1 { margin-top: auto; } @media (max-width:1399px) { padding: 20px 20px 30px; } @media (max-width:1599px) { .cs_post_meta { .cs_date { padding-left: 15px; &::before { width: 10px; } } } } } .cs_post_style_6 { display: flex; gap: 20px; .cs_post_meta i { margin-right: 6px; } .cs_post_thumb { width: 80px; height: 80px; flex: none; overflow: hidden; img { width: 100%; height: 100%; border-radius: inherit; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); } &:hover { img { transform: scale(1.02) rotate(0.5deg); } } } .cs_post_title { a:hover { color: var(--accent-color); } } @media (max-width:575px) { .cs_sidebar_widget { padding: 30px 20px 40px; } } } /*=================================================== Post Grid Layouts =====================================================*/ .cs_posts_grid_1 { display: grid; gap: 30px; grid-template-columns: repeat(1, 1fr); } .cs_posts_grid_2 { width: min(100%, 1520px); margin: 0 auto; display: grid; gap: 30px; grid-template-columns: repeat(12, 1fr); .cs_post_style_4 { grid-column: auto / span 3; &:nth-child(2) { grid-column: auto / span 4; } } .cs_featured_post { grid-column: auto / span 8; } @media (max-width:1199px) { .cs_post_style_4 { grid-column: auto / span 6; &:nth-child(2) { grid-column: auto / span 5; } } .cs_featured_post { grid-column: auto / span 7; } } @media (max-width:767px) { .cs_post_style_4 { &:nth-child(2) { grid-column: auto / span 12; } } .cs_featured_post { grid-column: auto / span 12; } } @media (max-width:575px) { .cs_post_style_4 { grid-column: auto / span 12; } } } .cs_posts_grid_3 { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); @media (max-width:767px) { grid-template-columns: repeat(1, 1fr); } } /*=========================================================== Pagination Box =============================================================*/ .cs_pagination_box { display: flex; justify-content: center; align-items: center; gap: 20px; .cs_pagination_item, .cs_pagination_arrow { border-radius: 10px; background: transparent; height: 40px; width: 40px; color: var(--accent-color); border: 1px solid var(--accent-color); &.active { background-color: var(--accent-color); color: var(--white-color); pointer-events: none; } } a.cs_pagination_item:hover { background-color: var(--accent-color); color: var(--white-color); } .cs_pagination_arrow { color: var(--white-color); background-color: var(--accent-color); &:hover { color: var(--accent-color); background-color: transparent; } } } /*=========================================================== Post Details =============================================================*/ .cs_post_details { .cs_post_banner { img { width: 100%; } } .cs_post_summery { display: flex; gap: 20px; flex-wrap: wrap; .cs_posted_by, .cs_post_comment { text-wrap: nowrap; img { margin-right: 3px; } } } h2 { font-family: var(--primary-font); font-size: 30px; font-style: normal; font-weight: 600; line-height: 1.33em; color: var(--primary-color); margin-bottom: 20px; } h3 { font-family: var(--primary-font); font-size: 24px; font-style: normal; font-weight: 600; line-height: 1.33em; color: var(--primary-color); margin-bottom: 20px; } p { font-family: var(--secondary-font); font-size: 16px; font-style: normal; font-weight: 400; line-height: 1.56em; color: var(--secondary-color); margin-bottom: 20px; &:last-child { margin-bottom: 0; } } blockquote { color: var(--primary-color); font-family: var(--primary-font); font-size: 20px; font-style: normal; font-weight: 600; line-height: 1.5em; padding: 30px; border-radius: 10px; position: relative; margin: 40px 0; background-color: var(--gray-color); &::before { content: ""; width: 5px; height: 100%; position: absolute; left: 0; top: 0; border-radius: 10px 0 0 10px; background-color: var(--accent-color); } } .cs_post_features_list { display: grid; gap: 30px; margin: 40px 0; grid-template-columns: repeat(2, 1fr); li { padding-left: 30px; position: relative; img { width: 24px; height: 24px; position: absolute; left: 0; top: 0; } } } .cs_post_gallery { img { width: 100%; } } .cs_post_shares { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; justify-content: space-between; } .cs_post_tags_wrapper, .cs_post_tags, .cs_post_social_wrapper, .cs_author_social_links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; } .cs_post_tags { a { display: block; padding: 10px 20px; line-height: 1em; text-wrap: nowrap; color: var(--accent-color); background-color: var(--gray-color); &:hover { color: var(--white-color); background-color: var(--accent-color); } } } .cs_author_social_links a { color: var(--accent-color); &:hover { color: var(--primary-color); transform: translateY(-1px); } } @media (max-width:767px) { blockquote { padding: 20px; } .cs_post_features_list { grid-template-columns: repeat(1, 1fr); } } } /*================================================ Post Comments ==================================================*/ .cs_comment_list { display: grid; gap: 40px; margin-bottom: 60px; .cs_comment_body { display: flex; gap: 30px; } .cs_avatar_thumbnail { width: 150px; height: 150px; padding: 15px; flex: none; border-radius: 50%; border: 1px dashed var(--accent-color); img { width: 100%; height: 100%; } } .cs_comment_meta_wrapper { display: flex; gap: 20px; button, p { font-size: 14px; font-weight: 600; font-family: var(--primary-font); color: var(--primary-color); margin-bottom: 0; } button:hover { color: var(--accent-color); } } @media (max-width:991px) { .cs_comment_body { gap: 15px; } .cs_avatar_thumbnail { width: 100px; height: 100px; padding: 10px; } } @media (max-width:575px) { .cs_comment_body { flex-direction: column; } } } .cs_comment_form_wrapper { padding: 40px; @media (max-width:767px) { padding: 30px 20px; } } .cs_comment_form { display: flex; flex-direction: column; gap: 30px; .cs_input_group { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); } .cs_form_field { display: block; width: 100%; border: 0; outline: 0; resize: none; font-weight: 600; color: var(--primary-color); padding: 20px 30px; &::placeholder { color: var(--primary-color); } } @media (max-width:767px) { .cs_input_group { grid-template-columns: repeat(1, 1fr); } } }