thirdparty-colorbox.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. .enable_plugin_colorbox() when(@enable-plugin-colorbox = true) {
  2. //colorbox plugin used in gallery page
  3. #colorbox:focus , #colorbox:active {
  4. outline:none;
  5. }
  6. #cboxTopLeft, #cboxTopCenter, #cboxTopRight,
  7. #cboxMiddleLeft, #cboxMiddleRight,
  8. #cboxBottomLeft, #cboxBottomCenter, #cboxBottomRight
  9. {
  10. background:none !important;
  11. opacity:0;
  12. }
  13. #cboxContent {
  14. border:12px solid #000;
  15. background-color:#FFF;
  16. padding:7px;
  17. }
  18. #cboxOverlay {
  19. background:rgba(0,0,0,0.95);
  20. background:#000;
  21. }
  22. #cboxCurrent {
  23. left: 64px;
  24. margin-bottom:4px;
  25. font-size: @base-font-size + 1;
  26. }
  27. #cboxTitle {
  28. margin-bottom:4px;
  29. font-size: @base-font-size + 1;
  30. color:#777;
  31. }
  32. #cboxNext , #cboxPrevious , #cboxClose {
  33. background:none;
  34. text-indent:0;
  35. width:26px; height:26px; line-height:22px;
  36. padding:0 4px;
  37. text-align:center;
  38. border:2px solid #999;
  39. border-radius:16px;
  40. color:#666;
  41. font-size: @base-font-size - 1;
  42. margin-left: 5px;
  43. margin-bottom: 5px;
  44. }
  45. #cboxNext:hover , #cboxPrevious:hover {
  46. color:#333;
  47. border-color:#666;
  48. }
  49. #cboxContent {
  50. overflow:visible;
  51. }
  52. #cboxClose {
  53. background-color: #000;
  54. border: 2px solid #FFF;
  55. border-radius: 32px;
  56. color: #FFF;
  57. font-size: @font-size-colorbox-close;
  58. height: 28px;
  59. width: 28px;
  60. padding-bottom: 2px;
  61. margin-left: 0;
  62. right: -14px;
  63. top: -14px;
  64. }
  65. #cboxLoadingOverlay {
  66. background:none !important;
  67. }
  68. #cboxLoadingGraphic {
  69. background:#FFF none !important;
  70. text-align:center;
  71. > .@{icon} {
  72. display: inline-block;
  73. background-color: #FFF;
  74. border-radius: 8px;
  75. width: 32px;
  76. height: 32px;
  77. position: relative;
  78. top: 48%;
  79. text-align: center;
  80. vertical-align: middle;
  81. //.animation(~"fa-spin 1.5s infinite linear");
  82. font-size: @font-size-colorbox-icon;
  83. color: #FE7E3E;
  84. }
  85. }
  86. }
  87. .enable_plugin_colorbox();