通用评论

ImagePreviewer.less 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .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'), auto;
  33. }
  34. &.shrink {
  35. cursor: url('//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/oGPpbJ7Rk.undefined'), auto;
  36. }
  37. &.right {
  38. cursor: url('//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/S8obecP1d.undefined'), auto;
  39. }
  40. }
  41. }
  42. .picture {
  43. max-width: 100%;
  44. max-height: 400px;
  45. }
  46. .tool() {
  47. position: absolute;
  48. width: 50px;
  49. background-color: transparent;
  50. z-index: 100;
  51. opacity: 0.5;
  52. font-size: 50px;
  53. text-align: left;
  54. cursor: pointer;
  55. &:hover {
  56. background-color: #fff;
  57. }
  58. }
  59. .prev {
  60. .tool();
  61. left: 5px;
  62. top: 0;
  63. bottom: 0;
  64. }
  65. .next {
  66. .tool();
  67. right: 5px;
  68. top: 0;
  69. bottom: 0;
  70. }
  71. .middle {
  72. position: absolute;
  73. top: 50%;
  74. transform: translateY(-50%);
  75. } // .picture {
  76. // position: absolute;
  77. // bottom: 0;
  78. // top: 0;
  79. // left: 5px;
  80. // right: 5px;
  81. // background-size: contain;
  82. // background-position: center;
  83. // }
  84. }
  85. .list {
  86. font-size: 0;
  87. margin-top: 25px;
  88. .wrapper {
  89. width: 11.1%;
  90. height: 0;
  91. padding-bottom: 11.1%;
  92. position: relative;
  93. display: inline-block;
  94. border-radius: 5px;
  95. border: 1px solid transparent;
  96. opacity: 0.5;
  97. &.active {
  98. border: 1px solid #fc4747;
  99. opacity: 1;
  100. }
  101. .thumbnail {
  102. position: absolute;
  103. top: 5px;
  104. bottom: 5px;
  105. left: 5px;
  106. right: 5px;
  107. background-size: cover;
  108. background-position: center;
  109. border-radius: 5px;
  110. cursor: pointer;
  111. }
  112. }
  113. }
  114. }