通用评论

ImagePreviewer.css 2.3KB

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