Last active
October 21, 2015 16:53
-
-
Save SvitlanaShepitsena/99cd41666f2bbfeabdcc to your computer and use it in GitHub Desktop.
angular-flexslider custom styles for displaying portrait and landscape images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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