style.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #registForm {
  2. width: 100%;
  3. fieldset {
  4. position: relative;
  5. border: 1px solid var(--border-strong);
  6. border-radius: 3px;
  7. padding: 20px 26px;
  8. align-content: center;
  9. max-width: 800px;
  10. margin: 0 auto;
  11. > legend {
  12. position: absolute;
  13. top: -0.625rem;
  14. left: 1.25rem;
  15. padding: 0 5px;
  16. background: var(--bg-page);
  17. font-size: 1rem;
  18. font-weight: bold;
  19. }
  20. // 좌측 안내문구
  21. dl {
  22. dt {
  23. font-weight: bold;
  24. padding-bottom: 5px;
  25. }
  26. dd {
  27. font-size: 0.938rem;
  28. }
  29. }
  30. // 회원가입 창
  31. form {
  32. label {
  33. cursor: pointer;
  34. margin-bottom: 7px;
  35. }
  36. input[type="email"],
  37. input[type="password"] {
  38. margin-bottom: 15px;
  39. }
  40. input[type="password"] {
  41. letter-spacing: 1px;
  42. &:last-child {
  43. margin-bottom: 0;
  44. }
  45. }
  46. p {
  47. padding-bottom: 5px;
  48. }
  49. section {
  50. &:nth-of-type(2n+1) {
  51. flex: 0 0 57%;
  52. max-width: 57%;
  53. }
  54. &:nth-of-type(2n) {
  55. flex: 0 0 43%;
  56. max-width: 43%;
  57. label {
  58. small {
  59. padding-right: 5px;
  60. }
  61. button {
  62. color: var(--text-link);
  63. &:hover {
  64. text-decoration: underline;
  65. color: var(--text-link-hover);
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. hr {
  73. margin: 20px 0;
  74. }
  75. }
  76. }
  77. @media (max-width: 420px) {
  78. #registForm {
  79. fieldset {
  80. padding: 1rem 0 0 0;
  81. border: none;
  82. > legend {
  83. position: initial;
  84. padding: initial;
  85. font-size: 1rem;
  86. font-weight: bold;
  87. }
  88. > form {
  89. padding: 0;
  90. }
  91. }
  92. }
  93. }
  94. @media (max-width: 660px) {
  95. #registForm {
  96. fieldset {
  97. form {
  98. section {
  99. &:nth-of-type(2n+1) {
  100. flex-basis: 100%;
  101. }
  102. &:nth-of-type(2n) {
  103. flex-basis: 100%;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }