_comment_growi.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .growi.main-container {
  2. %comment-section {
  3. position: relative;
  4. padding: 1em;
  5. margin-left: 4.5em;
  6. margin-bottom: 1em;
  7. // screen-xs
  8. @media (max-width: $screen-xs) {
  9. margin-left: 3.5em;
  10. }
  11. // speech balloon
  12. &:before {
  13. border: 1em solid transparent;
  14. border-left-width: 0;
  15. left: -1em;
  16. content: "";
  17. display: block;
  18. top: 1.5em;
  19. position: absolute;
  20. width: 0;
  21. // screen-xs
  22. @media (max-width: $screen-xs) {
  23. top: 1em;
  24. }
  25. }
  26. }
  27. %picture {
  28. float: left;
  29. margin-top: 0.8em;
  30. width: 3em;
  31. height: 3em;
  32. // screen-xs
  33. @media (max-width: $screen-xs) {
  34. width: 2em;
  35. height: 2em;
  36. }
  37. }
  38. .page-comments-row {
  39. border-top: 5px solid;
  40. margin: 30px 0px;
  41. }
  42. .page-comments {
  43. h4 {
  44. margin-bottom: 1em;
  45. }
  46. }
  47. .page-comment {
  48. position: relative;
  49. // ユーザー名
  50. .page-comment-creator {
  51. margin-top: -0.5em;
  52. margin-bottom: 0.5em;
  53. font-weight: bold;
  54. }
  55. // ユーザーアイコン
  56. .picture {
  57. @extend %picture;
  58. }
  59. // コメントセクション
  60. .page-comment-main {
  61. @extend %comment-section;
  62. }
  63. // コメント本文
  64. .page-comment-body {
  65. margin-bottom: 0.5em;
  66. word-wrap: break-word;
  67. }
  68. .page-comment-meta {
  69. color: #999;
  70. font-size: .9em;
  71. text-align: right;
  72. * {
  73. vertical-align: 25%;
  74. }
  75. }
  76. }
  77. // show when hover
  78. .page-comment-main:hover > .page-comment-control {
  79. display: block;
  80. }
  81. // display cheatsheet for comment form only
  82. .comment-form {
  83. .cheatsheet-1 {
  84. display: none;
  85. }
  86. position: relative;
  87. margin-top: 2em;
  88. // user icon
  89. .picture {
  90. @extend %picture;
  91. }
  92. // seciton
  93. .comment-form-main {
  94. @extend %comment-section;
  95. }
  96. // textarea
  97. .comment-write {
  98. margin-bottom: 0.5em;
  99. }
  100. .tab-content{
  101. padding-top: 10px;
  102. }
  103. .comment-form-comment {
  104. height: 80px;
  105. &:focus, &:not(:invalid) {
  106. transition: height 0.2s ease-out;
  107. height: 180px;
  108. }
  109. }
  110. }
  111. }