_flexslider.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /*
  2. * jQuery FlexSlider v2.6.1
  3. * http://www.woothemes.com/flexslider/
  4. *
  5. * Copyright 2012 WooThemes
  6. * Free to use under the GPLv2 and later license.
  7. * http://www.gnu.org/licenses/gpl-2.0.html
  8. *
  9. * Contributing author: Tyler Smith (@mbmufffin)
  10. *
  11. */
  12. /* ====================================================================================================================
  13. * RESETS
  14. * ====================================================================================================================*/
  15. .flex-container a:hover,
  16. .flex-slider a:hover {
  17. outline: none;
  18. }
  19. .slides,
  20. .slides > div,
  21. .flex-control-nav,
  22. .flex-direction-nav {
  23. margin: 0;
  24. padding: 0;
  25. list-style: none;
  26. }
  27. .flex-pauseplay span {
  28. text-transform: capitalize;
  29. }
  30. /* ====================================================================================================================
  31. * BASE STYLES
  32. * ====================================================================================================================*/
  33. .flexslider {
  34. margin: 0;
  35. padding: 0;
  36. }
  37. .flexslider .slides > div {
  38. display: none;
  39. -webkit-backface-visibility: hidden;
  40. }
  41. .flexslider .slides img {
  42. display: block;
  43. }
  44. .flexslider .slides:after {
  45. content: "\0020";
  46. display: block;
  47. clear: both;
  48. visibility: hidden;
  49. line-height: 0;
  50. height: 0;
  51. }
  52. html[xmlns] .flexslider .slides {
  53. display: block;
  54. }
  55. * html .flexslider .slides {
  56. height: 1%;
  57. }
  58. .no-js .flexslider .slides > div:first-child {
  59. display: block;
  60. }
  61. /* ====================================================================================================================
  62. * DEFAULT THEME
  63. * ====================================================================================================================*/
  64. .flexslider {
  65. margin: 0 auto ($baseline * 1.75);
  66. background: transparent;
  67. border: none;
  68. position: relative;
  69. zoom: 1;
  70. -webkit-border-radius: 4px;
  71. -moz-border-radius: 4px;
  72. border-radius: 4px;
  73. -webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
  74. -moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
  75. -o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
  76. box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
  77. }
  78. body.rtl .flexslider {
  79. direction: ltr;
  80. }
  81. .flexslider .slides {
  82. direction:ltr;
  83. zoom: 1;
  84. }
  85. .flexslider .slides img {
  86. height: auto;
  87. width: auto;
  88. max-width: 100%;
  89. max-height: inherit;
  90. margin: 0 auto;
  91. -moz-user-select: none;
  92. }
  93. .flex-viewport {
  94. max-height: 900px;
  95. -webkit-transition: all 1s ease;
  96. -moz-transition: all 1s ease;
  97. -ms-transition: all 1s ease;
  98. -o-transition: all 1s ease;
  99. transition: all 1s ease;
  100. }
  101. .loading .flex-viewport {
  102. max-height: 300px;
  103. }
  104. .carousel li {
  105. margin-right: 5px;
  106. }
  107. .flex-direction-nav {
  108. *height: 0;
  109. }
  110. .flex-direction-nav a {
  111. padding: 0;
  112. text-decoration: none;
  113. text-align: center;
  114. display: block;
  115. width: 40px;
  116. height: 40px;
  117. margin: -20px 0 0;
  118. position: absolute;
  119. top: 50%;
  120. z-index: 3;
  121. overflow: hidden;
  122. cursor: pointer;
  123. @include transition( all, 0.3s, ease-in-out );
  124. .meta-nav .arrow-icon {
  125. display: block;
  126. height: 40px;
  127. width: 40px;
  128. .rectangle {
  129. fill: none;
  130. }
  131. .arrow {
  132. fill: none;
  133. stroke: $color__text-main;
  134. stroke-width: 3px;
  135. stroke-miterlimit: 10;
  136. }
  137. }
  138. &:hover {
  139. @include animation( 'bounce-reveal-large 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)' );
  140. .meta-nav {
  141. .rectangle {
  142. fill: none;
  143. }
  144. .arrow {
  145. fill: none;
  146. stroke: $color__link;
  147. stroke-miterlimit: 10;
  148. }
  149. color: $color__link;
  150. }
  151. }
  152. }
  153. .flex-direction-nav .flex-prev {
  154. left: 0;
  155. }
  156. .flex-direction-nav .flex-next {
  157. right: 0;
  158. }
  159. .flex-direction-nav .flex-disabled {
  160. opacity: 0 !important;
  161. filter: alpha(opacity=0);
  162. cursor: default;
  163. z-index: -1;
  164. }
  165. .flex-pauseplay a {
  166. display: block;
  167. width: 20px;
  168. height: 20px;
  169. position: absolute;
  170. bottom: 5px;
  171. left: 10px;
  172. opacity: 0.8;
  173. z-index: 10;
  174. overflow: hidden;
  175. cursor: pointer;
  176. color: #222;
  177. }
  178. .flex-pauseplay a:before {
  179. font-family: "genericons";
  180. font-size: 20px;
  181. display: inline-block;
  182. content: '\f004';
  183. }
  184. .flex-pauseplay a:hover {
  185. opacity: 1;
  186. }
  187. .flex-pauseplay a.flex-play:before {
  188. content: '\f003';
  189. }
  190. .flex-control-nav {
  191. bottom: -40px;
  192. position: absolute;
  193. text-align: center;
  194. width: 100%;
  195. }
  196. .flex-control-nav li {
  197. margin: 0 6px;
  198. display: inline-block;
  199. zoom: 1;
  200. *display: inline;
  201. }
  202. .flex-control-paging li a {
  203. background: #666;
  204. background: rgba(0, 0, 0, 0.5);
  205. display: block;
  206. cursor: pointer;
  207. height: 11px;
  208. text-indent: -9999px;
  209. width: 11px;
  210. -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  211. -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  212. -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  213. box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  214. -webkit-border-radius: 20px;
  215. -moz-border-radius: 20px;
  216. border-radius: 20px;
  217. }
  218. .flex-control-paging li a:hover {
  219. background: #333;
  220. background: rgba(0, 0, 0, 0.7);
  221. }
  222. .flex-control-paging li a.flex-active {
  223. background: #222;
  224. background: rgba(0, 0, 0, 0.9);
  225. cursor: default;
  226. }
  227. .flex-control-thumbs {
  228. margin: 5px 0 0;
  229. position: static;
  230. overflow: hidden;
  231. }
  232. .flex-control-thumbs li {
  233. width: 25%;
  234. float: left;
  235. margin: 0;
  236. }
  237. .flex-control-thumbs img {
  238. width: 100%;
  239. height: auto;
  240. display: block;
  241. opacity: .7;
  242. cursor: pointer;
  243. -moz-user-select: none;
  244. -webkit-transition: all 1s ease;
  245. -moz-transition: all 1s ease;
  246. -ms-transition: all 1s ease;
  247. -o-transition: all 1s ease;
  248. transition: all 1s ease;
  249. }
  250. .flex-control-thumbs img:hover {
  251. opacity: 1;
  252. }
  253. .flex-control-thumbs .flex-active {
  254. opacity: 1;
  255. cursor: default;
  256. }
  257. /**
  258. * Tablet and Down
  259. */
  260. @include breakpoint( tabletonly ) {
  261. .flexslider {
  262. margin-bottom: ($baseline * 2);
  263. }
  264. .flex-control-nav {
  265. bottom: -40px;
  266. left: 5%;
  267. right: 5%;
  268. position: absolute;
  269. text-align: center;
  270. width: 90%;
  271. }
  272. .flex-direction-nav {
  273. bottom: -35px;
  274. position: absolute;
  275. text-align: center;
  276. width: 100%;
  277. .flex-prev {
  278. opacity: 1;
  279. left: -40px;
  280. }
  281. .flex-next {
  282. opacity: 1;
  283. right: -40px;
  284. }
  285. a {
  286. width: 40px;
  287. height: 40px;
  288. margin: -20px 0 0;
  289. position: absolute;
  290. }
  291. }
  292. }
  293. /**
  294. * Tablet and Up
  295. */
  296. @include breakpoint( tablet ) {
  297. .entry-media {
  298. .flex-direction-nav {
  299. opacity: 0;
  300. @include transition( opacity, .2s, ease-in-out );
  301. .flex-prev {
  302. left: -40px;
  303. }
  304. .flex-next {
  305. right: -40px;
  306. }
  307. }
  308. &:hover .flex-direction-nav {
  309. opacity: 1;
  310. }
  311. }
  312. }