style.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // NEWS
  2. #news {
  3. padding: 1.563rem 2rem 2rem 2rem;
  4. min-width: 410px;
  5. max-width: 1920px;
  6. margin: 0 auto;
  7. > p {
  8. font-weight: 600;
  9. font-size: 1.375rem;
  10. margin-bottom: 1.25rem;
  11. }
  12. > article {
  13. position: relative;
  14. overflow: hidden;
  15. padding: 1rem 0;
  16. // NEWS
  17. > div {
  18. // 기사 대표 이미지
  19. &:nth-of-type(1) {
  20. float: left;
  21. display: block;
  22. padding-right: 1rem;
  23. width: clamp(8.75rem, 20%, 12.125rem);
  24. > img {
  25. display: block;
  26. width: 100%;
  27. height: auto;
  28. object-fit: cover;
  29. border-radius: 0.125rem;
  30. transition: transform 0.07s ease-in-out;
  31. &:hover, &:focus {
  32. cursor: pointer;
  33. transform: scale(1.03);
  34. }
  35. }
  36. }
  37. // 기사 정보
  38. &:nth-of-type(2) {
  39. display: flex;
  40. flex-direction: column;
  41. flex-wrap: wrap;
  42. align-items: baseline;
  43. // 기사 제목
  44. > a {
  45. flex: 1 1 auto;
  46. min-width: 0;
  47. white-space: normal;
  48. font-size: 1.275rem;
  49. font-weight: 500;
  50. &:hover, &:focus {
  51. text-decoration: underline;
  52. }
  53. }
  54. // 기사 작성일시
  55. > span {
  56. flex: 0 0 auto;
  57. white-space: nowrap;
  58. display: block;
  59. font-size: 0.938rem;
  60. font-weight: 300;
  61. margin-top: 0.25rem;
  62. margin-bottom: 0.625rem;
  63. }
  64. }
  65. // 기사 내용
  66. &:nth-of-type(3) {
  67. font-size: 0.875rem;
  68. font-weight: 300;
  69. text-align: justify;
  70. overflow-wrap: break-word;
  71. }
  72. }
  73. }
  74. }