style.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #myComments {
  2. padding: 0 32px 32px 32px;
  3. h1 {
  4. font-size: 22px;
  5. margin-bottom: 10px;
  6. }
  7. .summary {
  8. font-size: 16px;
  9. margin-bottom: 10px;
  10. }
  11. .mypage-list {
  12. border-top: 1px solid var(--border-default);
  13. margin: 0.75rem 0;
  14. article:nth-of-type(1) {
  15. background-color: #f9fafb;
  16. border-bottom: 1px solid var(--border-default);
  17. padding: 0.5rem 0;
  18. ul {
  19. display: grid;
  20. grid-template-columns:
  21. clamp(40px, 5%, 60px)
  22. clamp(60px, 10%, 120px)
  23. clamp(100px, 18%, 200px)
  24. 1fr
  25. clamp(40px, 7%, 70px)
  26. clamp(70px, 12%, 110px);
  27. column-gap: 0.75rem;
  28. li {
  29. text-align: center;
  30. font-size: 0.875rem;
  31. color: var(--text-secondary);
  32. }
  33. }
  34. @media (max-width: 1024px) {
  35. display: none;
  36. }
  37. }
  38. article:nth-of-type(2) {
  39. box-sizing: border-box;
  40. section {
  41. padding: 0.5rem 0;
  42. box-sizing: inherit;
  43. border-bottom: 1px solid var(--border-default);
  44. &:hover {
  45. background-color: #faffd1;
  46. }
  47. // PC
  48. ol {
  49. display: grid;
  50. grid-template-columns:
  51. clamp(40px, 5%, 60px)
  52. clamp(60px, 10%, 120px)
  53. clamp(100px, 18%, 200px)
  54. 1fr
  55. clamp(40px, 7%, 70px)
  56. clamp(70px, 12%, 110px);
  57. column-gap: 0.75rem;
  58. align-items: center;
  59. li {
  60. text-align: center;
  61. font-size: 0.875rem;
  62. &:nth-child(3) {
  63. min-width: 0;
  64. text-align: left;
  65. word-break: keep-all;
  66. overflow-wrap: break-word;
  67. }
  68. &.comment-content {
  69. min-width: 0;
  70. text-align: left;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. white-space: nowrap;
  74. }
  75. }
  76. }
  77. // Mobile
  78. dl {
  79. dt {
  80. font-size: 1.063rem;
  81. word-break: keep-all;
  82. overflow-wrap: break-word;
  83. display: -webkit-box;
  84. -webkit-line-clamp: 2;
  85. -webkit-box-orient: vertical;
  86. overflow: hidden;
  87. }
  88. dd {
  89. ul {
  90. display: flex;
  91. flex-direction: row;
  92. flex-wrap: nowrap;
  93. justify-content: start;
  94. padding-top: 0.4rem;
  95. column-gap: 1rem;
  96. li {
  97. font-size: 0.813rem;
  98. color: var(--text-muted);
  99. &:first-child {
  100. min-width: 0;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. &:last-child {
  106. flex-shrink: 0;
  107. text-align: right;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. a {
  114. color: var(--text-link);
  115. text-decoration: none;
  116. &:hover {
  117. text-decoration: underline;
  118. color: var(--text-link-hover);
  119. }
  120. > em {
  121. display: inherit;
  122. font-style: normal;
  123. }
  124. }
  125. @media (max-width: 1024px) {
  126. ol {
  127. display: none;
  128. }
  129. dl {
  130. display: block;
  131. }
  132. }
  133. }
  134. > .empty {
  135. text-align: center;
  136. padding: 2.5rem;
  137. color: var(--text-muted);
  138. }
  139. }
  140. }
  141. }