pages.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @import "vars";
  2. @import "mixins";
  3. #pages {
  4. #pages-actions {
  5. display: inline-block;
  6. padding-left: 25px;
  7. margin: 20px 0;
  8. }
  9. #pages-options {
  10. position: relative;
  11. display: inline-block;
  12. margin-right: -4px;
  13. padding-right: 0px;
  14. margin: 10px 0;
  15. }
  16. .pages-wrapper {
  17. counter-reset: pages-counter;
  18. }
  19. .page {
  20. counter-increment: pages-counter;
  21. display: block;
  22. position: relative;
  23. .dropdown {
  24. position: absolute;
  25. bottom: 0;
  26. right: -15px;
  27. margin: 10px 25px;
  28. }
  29. &.active {
  30. img {
  31. border: 2px solid white;
  32. }
  33. .page-thumbnail:before {
  34. background-color: white;
  35. }
  36. }
  37. .page-thumbnail {
  38. position: relative;
  39. width: 100%;
  40. margin-top: 25px;
  41. padding: 0 25px;
  42. img {
  43. border-radius: $radius;
  44. display: block;
  45. width: 100%;
  46. }
  47. &:before {
  48. z-index: 100;
  49. content: counter(pages-counter);
  50. right: 0px;
  51. margin-right: 5px;
  52. position: absolute;
  53. top: 50%;
  54. left: 50%;
  55. font-size: 15px;
  56. background-color: white;
  57. border-radius: 100%;
  58. margin: -15px;
  59. line-height: 30px;
  60. width: 30px;
  61. height: 30px;
  62. text-align: center;
  63. background-color: $light;
  64. background-color: $dark;
  65. color: $medium;;
  66. }
  67. }
  68. }
  69. }