You are here

jcarousel.css in jCarousel 7.3

/**
 * A simple sample carousel skin.
 *
 * This skin includes a sample arrows.svg file that may be edited with the free
 * illustration application InkScape (http://inkscape.org).
 *
 * CSS and icons by Nathan Haug.
 */

.jcarousel-wrapper {
  position: relative;
  /*border: 10px solid #fff;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: 0 0 2px #999;
  -moz-box-shadow: 0 0 2px #999;
  box-shadow: 0 0 2px #999;*/
}

.jcarousel {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jcarousel-wrapper .jcarousel > ul {
  width: 20000em;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}


/*.jcarousel-skin-default .jcarousel-container-horizontal {
  width: 440px;
  height: 102px;
  padding: 20px 40px;
  margin: auto;
}

.jcarousel-skin-default .jcarousel-container-vertical {
  width: 102px;
  height: 440px;
  padding: 40px 20px;
  margin: auto;
}

.jcarousel-skin-default .jcarousel-clip-horizontal {
  width: 440px;
  overflow: hidden;
}

.jcarousel-skin-default .jcarousel-clip-vertical {
  height: 440px;
  overflow: hidden;
}
*/
.jcarousel-item {
  padding: 0;
  margin: 0;
  float: left;
}
.jcarousel-item img {
  display: block;
  max-width: 100%;
  height: auto !important;
}

/**
 * Carousel controls
 */
.jcarousel-next,
.jcarousel-prev {
  position: absolute;
  top: 50%;
  margin-top: -15px;
  width: 30px;
  height: 30px;
  text-align: center;
  text-decoration: none;
}
.jcarousel-next {
  right: 15px;
}
.jcarousel-prev {
  left: 15px;
}

.jcarousel-next-disabled,
.jcarousel-prev-disabled {
  display: none;
}

/*
.jcarousel-navigation {
  margin: 0;
  padding: 0;
}

.jcarousel-skin-default .jcarousel-navigation li {
  display: inline;
  margin: 0 2px 0 0;
  padding: 0;
  background: none;
}

.jcarousel-skin-default .jcarousel-navigation li.active a {
  font-weight: bold;
  text-decoration: none;
}

*/

File

css/jcarousel.css
View source
  1. /**
  2. * A simple sample carousel skin.
  3. *
  4. * This skin includes a sample arrows.svg file that may be edited with the free
  5. * illustration application InkScape (http://inkscape.org).
  6. *
  7. * CSS and icons by Nathan Haug.
  8. */
  9. .jcarousel-wrapper {
  10. position: relative;
  11. /*border: 10px solid #fff;
  12. -webkit-border-radius: 5px;
  13. -moz-border-radius: 5px;
  14. border-radius: 5px;
  15. -webkit-box-shadow: 0 0 2px #999;
  16. -moz-box-shadow: 0 0 2px #999;
  17. box-shadow: 0 0 2px #999;*/
  18. }
  19. .jcarousel {
  20. text-align: center;
  21. position: relative;
  22. overflow: hidden;
  23. }
  24. .jcarousel-wrapper .jcarousel > ul {
  25. width: 20000em;
  26. position: relative;
  27. list-style: none;
  28. margin: 0;
  29. padding: 0;
  30. }
  31. /*.jcarousel-skin-default .jcarousel-container-horizontal {
  32. width: 440px;
  33. height: 102px;
  34. padding: 20px 40px;
  35. margin: auto;
  36. }
  37. .jcarousel-skin-default .jcarousel-container-vertical {
  38. width: 102px;
  39. height: 440px;
  40. padding: 40px 20px;
  41. margin: auto;
  42. }
  43. .jcarousel-skin-default .jcarousel-clip-horizontal {
  44. width: 440px;
  45. overflow: hidden;
  46. }
  47. .jcarousel-skin-default .jcarousel-clip-vertical {
  48. height: 440px;
  49. overflow: hidden;
  50. }
  51. */
  52. .jcarousel-item {
  53. padding: 0;
  54. margin: 0;
  55. float: left;
  56. }
  57. .jcarousel-item img {
  58. display: block;
  59. max-width: 100%;
  60. height: auto !important;
  61. }
  62. /**
  63. * Carousel controls
  64. */
  65. .jcarousel-next,
  66. .jcarousel-prev {
  67. position: absolute;
  68. top: 50%;
  69. margin-top: -15px;
  70. width: 30px;
  71. height: 30px;
  72. text-align: center;
  73. text-decoration: none;
  74. }
  75. .jcarousel-next {
  76. right: 15px;
  77. }
  78. .jcarousel-prev {
  79. left: 15px;
  80. }
  81. .jcarousel-next-disabled,
  82. .jcarousel-prev-disabled {
  83. display: none;
  84. }
  85. /*
  86. .jcarousel-navigation {
  87. margin: 0;
  88. padding: 0;
  89. }
  90. .jcarousel-skin-default .jcarousel-navigation li {
  91. display: inline;
  92. margin: 0 2px 0 0;
  93. padding: 0;
  94. background: none;
  95. }
  96. .jcarousel-skin-default .jcarousel-navigation li.active a {
  97. font-weight: bold;
  98. text-decoration: none;
  99. }
  100. */