_comment_growi.scss 1.7 KB

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