_comment_crowi-plus.scss 2.0 KB

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