/*
 * Copyright (C) 2013 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
.THIS {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.THIS > .carousel-body {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

.THIS.flex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    
    -webkit-box-orient: vertical;
    -ms-box-orient    : vertical;
    box-orient        : vertical;
    
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;
}
.THIS.flex > .carousel-body {
    -webkit-box-flex: 1;
    -ms-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* This selector is this long to avoid CSS problems when nested scrollers */
.THIS > .carousel-body > .scroller > .carousel-page {
    position: relative;
    white-space: normal;
    width: 100%;
    display: inline-block;
}

.THIS .scroll-horizontal > .carousel-page {
    height: 100%;
}