_comment_growi.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. .comment-form {
  82. position: relative;
  83. margin-top: 2em;
  84. // user icon
  85. .picture {
  86. @extend %picture;
  87. }
  88. // seciton
  89. .comment-form-main {
  90. @extend %comment-section;
  91. }
  92. // textarea
  93. .comment-write {
  94. margin-bottom: 0.5em;
  95. }
  96. .tab-content{
  97. padding-top: 10px;
  98. }
  99. .comment-form-comment {
  100. height: 80px;
  101. &:focus, &:not(:invalid) {
  102. transition: height 0.2s ease-out;
  103. height: 180px;
  104. }
  105. }
  106. }
  107. }