Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsiveness #2

Closed
dlzi opened this issue Oct 29, 2013 · 2 comments
Closed

Responsiveness #2

dlzi opened this issue Oct 29, 2013 · 2 comments

Comments

@dlzi
Copy link

dlzi commented Oct 29, 2013

Hi,

I noticed from the examples that the slider is not responsive. Any plans to make it responsive?

@mamod
Copy link
Owner

mamod commented Oct 29, 2013

Well, ayaSlider doesn't force any styling so your slider will be responsive if you wanted it to be, I just updated the example here with a responsive design, I didn't do much except adding a media query for smaller devices, here's what I had to do

@media only screen and (min-width: 600px) {
    #slideShow {
        height:350px;
    }

    #slideShow img {
        height:350px;
    }
}

@media only screen and (min-width: 1px) and (max-width: 600px) {
    #slideShow {
        height:150px;
    }

    #slideShow img {
        height:150px;
    }

    .content {
        padding:5px;
        margin:10px;
        font-size:10px;
    }

    .s2 .content {
        font-size:10px;
    }

    .s3 .content, .s1 .content {
        width:150%;
        height: 20px;
        font-size:10px;
    }

    #slideShow .title {
        display: none;
    }
}

Hope this solves your inquiry

@dlzi
Copy link
Author

dlzi commented Oct 29, 2013

Thanks for your updates.

I'll give a try.

@dlzi dlzi closed this as completed Oct 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants