暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

family-edit.scss 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. :host {
  2. position: relative;
  3. display: block;
  4. min-height: 100vh;
  5. background: #f6f0e7;
  6. color: #2f2720;
  7. }
  8. .danka-edit-page {
  9. display: grid;
  10. grid-template-columns: 172px minmax(0, 1fr);
  11. gap: 20px;
  12. padding: 0 38px 36px 0;
  13. background: #f6f0e7;
  14. }
  15. .danka-edit-main {
  16. min-width: 0;
  17. box-sizing: border-box;
  18. }
  19. .edit-panel {
  20. min-height: 760px;
  21. padding: 34px 42px 40px;
  22. background: #fffdf9;
  23. border: 2px solid #d8caba;
  24. border-radius: 64px;
  25. box-sizing: border-box;
  26. }
  27. .page-title-area {
  28. margin-bottom: 22px;
  29. }
  30. .page-title-area h1 {
  31. margin: 0;
  32. color: #2f2720;
  33. font-size: 34px;
  34. line-height: 1.1;
  35. font-weight: 800;
  36. }
  37. .edit-form {
  38. display: block;
  39. width: 100%;
  40. margin: 0;
  41. color: #2f2720;
  42. }
  43. .edit-form input,
  44. .edit-form select,
  45. .edit-form textarea,
  46. .edit-form button {
  47. font-family: inherit;
  48. }
  49. .edit-content {
  50. display: grid;
  51. grid-template-columns: 1fr;
  52. gap: 16px;
  53. align-items: start;
  54. }
  55. .basic-edit-section,
  56. .family-tree-edit-section {
  57. overflow: hidden;
  58. padding: 0 22px 24px;
  59. border: 2px solid #d8caba;
  60. border-radius: 12px;
  61. background: #fffdf9;
  62. box-sizing: border-box;
  63. }
  64. .basic-edit-section h2,
  65. .family-tree-edit-section h2,
  66. .section-heading h2 {
  67. margin: 0 -22px 18px;
  68. padding: 12px 22px;
  69. background: #eadfce;
  70. border-bottom: 2px solid #d8caba;
  71. color: #2f2720;
  72. font-size: 22px;
  73. line-height: 1.3;
  74. font-weight: 800;
  75. }
  76. .section-heading {
  77. margin-bottom: 18px;
  78. }
  79. .section-heading p {
  80. margin: 3px 0 0;
  81. color: #7b6b5c;
  82. font-size: 14px;
  83. }
  84. .section-description {
  85. margin: 6px 0 0;
  86. color: #7b6b5c;
  87. font-size: 14px;
  88. line-height: 1.6;
  89. }
  90. .form-list {
  91. width: min(100%, 620px);
  92. margin-top: 14px;
  93. }
  94. .form-row {
  95. display: grid;
  96. grid-template-columns: 150px minmax(0, 1fr);
  97. align-items: center;
  98. gap: 14px;
  99. margin-bottom: 12px;
  100. }
  101. .form-row label {
  102. color: #4b3c31;
  103. font-size: 15px;
  104. font-weight: 800;
  105. }
  106. .form-field {
  107. width: 100%;
  108. }
  109. .form-row input,
  110. .form-row select,
  111. .form-row textarea {
  112. width: 100%;
  113. border: 2px solid #d8caba;
  114. border-radius: 8px;
  115. background: #fffdf9;
  116. color: #2f2720;
  117. font-size: 16px;
  118. font-weight: 600;
  119. font-family: inherit;
  120. box-sizing: border-box;
  121. outline: none;
  122. }
  123. .form-row input,
  124. .form-row select {
  125. height: 46px;
  126. padding: 0 14px;
  127. }
  128. .form-row textarea {
  129. min-height: 112px;
  130. padding: 12px 14px;
  131. resize: vertical;
  132. line-height: 1.6;
  133. }
  134. .form-row input:focus,
  135. .form-row select:focus,
  136. .form-row textarea:focus {
  137. border-color: #8a6543;
  138. background: #ffffff;
  139. box-shadow: 0 0 0 3px rgba(138, 101, 67, 0.15);
  140. }
  141. .form-row input[readonly] {
  142. background: #f6efe6;
  143. color: #7b6b5c;
  144. }
  145. .error-message {
  146. margin: 6px 0 0;
  147. color: #9a3f32;
  148. font-size: 13px;
  149. font-weight: 700;
  150. }
  151. .form-row-heading {
  152. margin: 24px 0 14px;
  153. align-items: start;
  154. }
  155. .form-row-heading label {
  156. padding-top: 0;
  157. }
  158. .sub-section-title {
  159. margin: 0;
  160. color: #2f2720;
  161. font-size: 17px;
  162. font-weight: 800;
  163. }
  164. .sub-section-description {
  165. margin: 6px 0 0;
  166. color: #7b6b5c;
  167. font-size: 14px;
  168. line-height: 1.6;
  169. }
  170. .set-householder-button {
  171. width: auto;
  172. min-width: 170px;
  173. height: 46px;
  174. border: 2px solid #d8caba;
  175. border-radius: 6px;
  176. background: #ffffff;
  177. color: #2f2720;
  178. font-size: 16px;
  179. font-weight: 800;
  180. cursor: pointer;
  181. box-sizing: border-box;
  182. }
  183. .set-householder-button:hover {
  184. background: #f6efe6;
  185. }
  186. .bottom-actions {
  187. display: flex;
  188. justify-content: flex-end;
  189. align-items: center;
  190. gap: 12px;
  191. margin-top: 28px;
  192. }
  193. .delete-button,
  194. .cancel-button,
  195. .save-button {
  196. min-width: 116px;
  197. height: 46px;
  198. border-radius: 8px;
  199. font-size: 16px;
  200. font-weight: 800;
  201. cursor: pointer;
  202. box-sizing: border-box;
  203. }
  204. .delete-button,
  205. .cancel-button {
  206. border: 2px solid #d8caba;
  207. background: #ffffff;
  208. color: #2f2720;
  209. }
  210. .delete-button:hover {
  211. border-color: #9a3f32;
  212. color: #9a3f32;
  213. }
  214. .cancel-button:hover {
  215. background: #f6efe6;
  216. }
  217. .save-button {
  218. border: 2px solid #8a6543;
  219. background: #8a6543;
  220. color: #ffffff;
  221. }
  222. .save-button:hover {
  223. background: #765639;
  224. }
  225. .save-button:disabled {
  226. opacity: 0.5;
  227. cursor: not-allowed;
  228. }
  229. /* 画面幅が狭い場合 */
  230. @media (max-width: 1100px) {
  231. .danka-edit-page {
  232. grid-template-columns: 1fr;
  233. padding: 0 24px 32px;
  234. }
  235. .edit-panel {
  236. min-height: auto;
  237. border-radius: 28px;
  238. padding: 28px 24px 32px;
  239. }
  240. .edit-content {
  241. grid-template-columns: 1fr;
  242. }
  243. }
  244. @media (max-width: 800px) {
  245. .page-title-area h1 {
  246. font-size: 26px;
  247. }
  248. .form-row {
  249. grid-template-columns: 1fr;
  250. row-gap: 6px;
  251. }
  252. .form-row label {
  253. padding-top: 0;
  254. }
  255. .bottom-actions {
  256. flex-direction: column;
  257. align-items: stretch;
  258. }
  259. .delete-button,
  260. .cancel-button,
  261. .save-button {
  262. width: 100%;
  263. }
  264. }