_comment_crowi-plus.scss 1.7 KB

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