通用评论

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. .comment-image-preview-container {
  2. .toolbar {
  3. border-bottom: 1px solid #f2f2f2;
  4. margin: 0 5px;
  5. padding-bottom: 10px;
  6. .button {
  7. padding: 5px 10px;
  8. cursor: pointer;
  9. &.reversal i {
  10. transform: rotate3d(0, 1, 0, 180deg);
  11. }
  12. }
  13. }
  14. .pictureWrapper {
  15. position: relative; // width: 100%;
  16. // padding-bottom: 68%;
  17. // height: 0;
  18. text-align: center;
  19. margin-top: 15px;
  20. padding: 0 5px;
  21. .tools {
  22. position: absolute;
  23. left: 0;
  24. top: 0;
  25. bottom: 0;
  26. right: 0;
  27. .item {
  28. width: 33%;
  29. display: inline-block;
  30. height: 100%;
  31. &.left {
  32. cursor: url("//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/73_yM_fx-.undefined"),
  33. auto;
  34. }
  35. &.shrink {
  36. cursor: url("//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/oGPpbJ7Rk.undefined"),
  37. auto;
  38. }
  39. &.right {
  40. cursor: url("//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/S8obecP1d.undefined"),
  41. auto;
  42. }
  43. }
  44. }
  45. .picture {
  46. max-width: 100%;
  47. max-height: 400px;
  48. }
  49. .tool() {
  50. position: absolute;
  51. width: 50px;
  52. background-color: transparent;
  53. z-index: 100;
  54. opacity: 0.5;
  55. font-size: 50px;
  56. text-align: left;
  57. cursor: pointer;
  58. &:hover {
  59. background-color: #fff;
  60. }
  61. }
  62. .prev {
  63. .tool();
  64. left: 5px;
  65. top: 0;
  66. bottom: 0;
  67. }
  68. .next {
  69. .tool();
  70. right: 5px;
  71. top: 0;
  72. bottom: 0;
  73. }
  74. .middle {
  75. position: absolute;
  76. top: 50%;
  77. transform: translateY(-50%);
  78. } // .picture {
  79. // position: absolute;
  80. // bottom: 0;
  81. // top: 0;
  82. // left: 5px;
  83. // right: 5px;
  84. // background-size: contain;
  85. // background-position: center;
  86. // }
  87. }
  88. .list {
  89. font-size: 0;
  90. margin-top: 25px;
  91. .wrapper {
  92. width: 11.1%;
  93. height: 0;
  94. padding-bottom: 11.1%;
  95. position: relative;
  96. display: inline-block;
  97. border-radius: 5px;
  98. border: 1px solid transparent;
  99. opacity: 0.5;
  100. &.active {
  101. border: 1px solid #fc4747;
  102. opacity: 1;
  103. }
  104. .thumbnail {
  105. position: absolute;
  106. top: 5px;
  107. bottom: 5px;
  108. left: 5px;
  109. right: 5px;
  110. background-size: cover;
  111. background-position: center;
  112. border-radius: 5px;
  113. cursor: pointer;
  114. }
  115. }
  116. }
  117. }