style.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. #postWrite {
  2. padding: 1.5625rem 2rem 2rem 2rem;
  3. h1 {
  4. font-size: 1.375rem;
  5. margin-bottom: 1.25rem;
  6. }
  7. min-width: 25.75rem;
  8. max-width: 80rem;
  9. margin: 0 auto;
  10. fieldset {
  11. display: flex;
  12. flex-direction: column;
  13. gap: 0;
  14. min-width: 0;
  15. section {
  16. margin-bottom: 0.4375rem;
  17. select, input, textarea {
  18. padding: 0.625rem;
  19. border-color: var(--border-strong);
  20. border-width: 0.0625rem;
  21. &:focus {
  22. border: 0.0625rem solid hsl(218, 81.8%, 56.9%);
  23. box-shadow: 0.125rem 0.125rem 0.1875rem var(--shadow-color) inset, 0 0;
  24. outline: none;
  25. }
  26. }
  27. // 분류, 말머리, 비밀글, 공지, 전체 공지
  28. &:nth-of-type(1) {
  29. display: grid;
  30. grid-template-columns: repeat(auto-fit, minmax(0, max-content));
  31. justify-content: flex-start;
  32. align-items: center;
  33. gap: 0.4375rem;
  34. article {
  35. &:last-of-type {
  36. margin-left: 0.625rem;
  37. }
  38. label {
  39. padding-left: 0.625rem;
  40. padding-right: 0.75rem;
  41. cursor: pointer;
  42. }
  43. }
  44. }
  45. // 제목
  46. &:nth-of-type(2) {
  47. input {
  48. width: 100%;
  49. }
  50. }
  51. // CKEditor
  52. &:nth-of-type(3) {
  53. overflow: visible;
  54. box-sizing: border-box;
  55. margin-bottom: 0;
  56. > textarea {
  57. display: block;
  58. width: 100%;
  59. min-height: 18.75rem;
  60. border-bottom-left-radius: 0;
  61. border-bottom-right-radius: 0;
  62. }
  63. }
  64. // 이미지 필수 안내
  65. .write-image-required {
  66. margin-top: 0.5rem;
  67. font-size: 0.8125rem;
  68. color: hsl(0, 72%, 51%);
  69. }
  70. // 태그
  71. &#postTag {
  72. margin-bottom: 0;
  73. padding: 0.5rem 0.625rem 0.4375rem 0.625rem;
  74. border: 0.0625rem solid var(--border-strong);
  75. border-width: 0 0.0625rem 0.0625rem 0.0625rem;
  76. position: relative;
  77. bottom: 0.0625rem;
  78. > .tag-input {
  79. display: flex;
  80. flex-direction: row;
  81. flex-wrap: wrap;
  82. justify-content: flex-start;
  83. align-items: center;
  84. gap: 0.625rem;
  85. > .tag {
  86. border: 0.0625rem solid var(--border-strong);
  87. border-radius: 0.125rem;
  88. padding: 0.0625rem 0.625rem;
  89. background-color: var(--bg-elevated);
  90. > small {
  91. font-weight: normal;
  92. color: var(--text-primary);
  93. &:hover {
  94. text-decoration: underline;
  95. }
  96. }
  97. > button {
  98. display: inline-block;
  99. vertical-align: text-bottom;
  100. margin-left: 0.4375rem;
  101. color: rgb(173, 0, 0);
  102. &:hover {
  103. color: red;
  104. }
  105. }
  106. }
  107. > input {
  108. border: transparent;
  109. flex-grow: 1;
  110. flex-basis: 0;
  111. &:hover,
  112. &:focus {
  113. border: transparent;
  114. box-shadow: none;
  115. outline: none;
  116. }
  117. }
  118. }
  119. }
  120. // 비회원 글쓰기
  121. &#anonymous {
  122. display: grid;
  123. grid-template-columns: repeat(auto-fit, minmax(0, max-content));
  124. justify-content: flex-start;
  125. align-items: center;
  126. gap: 0.4375rem;
  127. margin-top: 0.4375rem;
  128. }
  129. // 확인, 취소
  130. &:last-of-type {
  131. display: grid;
  132. grid-template-columns: auto auto;
  133. justify-content: center;
  134. align-items: center;
  135. gap: 0.4375rem;
  136. }
  137. }
  138. }
  139. }