_comment_crowi-plus.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .crowi-plus.main-container {
  2. %comment-section {
  3. background: #f5f5f5;
  4. padding: 1em;
  5. position: relative;
  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. position: absolute;
  23. top: 1em;
  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. .picture.picture-rounded {
  40. @extend %picture-rounded;
  41. }
  42. // コメントセクション
  43. .page-comment-main {
  44. @extend %comment-section;
  45. }
  46. // コメント本文
  47. .page-comment-body {
  48. margin-bottom: 0.5em;
  49. }
  50. // ユーザー名
  51. .page-comment-creator {
  52. margin-bottom: 0.5em;
  53. }
  54. }
  55. .comment-form {
  56. position: relative;
  57. margin-top: 2em;
  58. // ユーザーアイコン
  59. .picture.picture-rounded {
  60. @extend %picture-rounded;
  61. }
  62. // コメントフォームセクション
  63. .comment-form-main {
  64. @extend %comment-section;
  65. }
  66. // コメント入力フォーム
  67. .comment-write {
  68. margin-bottom: 0.5em;
  69. }
  70. }
  71. }