Skip to content

Instantly share code, notes, and snippets.

@SvitlanaShepitsena
Last active October 21, 2015 16:53
Show Gist options
  • Save SvitlanaShepitsena/99cd41666f2bbfeabdcc to your computer and use it in GitHub Desktop.
Save SvitlanaShepitsena/99cd41666f2bbfeabdcc to your computer and use it in GitHub Desktop.
angular-flexslider custom styles for displaying portrait and landscape images
using-slider.jade
=======================================
.card.card-flex-slider.bgc-grey-50.m
flex-slider(slide='s in home.images', animation='slide')
li()
img.img-flex-slider(ng-src='{{s}}' )
styles.styl
=======================================
.flexslider
background-color #EEEEEE
border 0px
-webkit-border-radius 0px
-moz-border-radius 0px
border-radius 0px
.card-flex-slider
@media screen and (max-width: 450px) {
max-height 260px !important
}
@media screen and (max-width: 350px) {
max-height 220px !important
}
.flex-control-nav
@media screen and (max-width: 450px) {
visibility hidden
}
.img-flex-slider
padding 8px 0px
margin 0px auto
width auto !important
max-height 500px !important
@media screen and (max-width: 600px) {
max-height 400px !important
}
@media screen and (max-width: 450px) {
max-height 260px !important
}
@media screen and (max-width: 350px) {
max-height 220px !important
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment