slider: increase the margin
[platform/framework/web/web-ui-fw.git] / src / themes / tizen / common / jquery.mobile.tizen.slider.less
old mode 100644 (file)
new mode 100755 (executable)
index cdf7f8e..6644c72
 @import "config.less";
 
-@popup-size: 102 * @unit_base;
-@padding-size: 18 * @unit_base;
-@img-height: 80 * @unit_base;
-@img-width: 80 * @unit_base;
+@popup-height: 54 * @unit_base;
+@popup-width: 45 * @unit_base;
+@img-height: 37 * @unit_base;
+@img-width: 37 * @unit_base;
+@handle-height: 36 * @unit_base;
+@handle-width: 36 * @unit_base;
 
 label.ui-slider {
        display: block;
 }
 
-input.ui-slider-input {
-       display: inline-block;
-       width: 50 * @unit_base;
-}
-
 select.ui-slider-switch {
        display: none;
 }
 
-.ui-slider-bg,
-.ui-slider-icon-bg {
+.ui-slider-container {
        position: relative;
-       margin-left: 32 * @unit_base;
-       margin-right: 32 * @unit_base;
-       margin-bottom: 0.2em;
        vertical-align: middle;
+
+       height: 18 * @unit_base;
+       margin-left: 16 * @unit_base;
+       margin-right: 16 * @unit_base;
+       margin-top: 18 * @unit_base;
+       margin-bottom: 18 * @unit_base;
+
+       background-image: -webkit-gradient(
+               linear,
+               left bottom,
+               left top,
+               color-stop(0, @color_progress_bar1),
+               color-stop(1, @color_progress_bar0)
+       );
+       .LESSbox-shadow(1px, 1px, 0px, white);
+       .LESSborder-radius-all( 10 * @unit_base );
 }
 
-.ui-slider-icon-bg {
-       margin-left: 96 * @unit_base;
-       margin-right: 96 * @unit_base;
+.ui-li > .ui-slider-container {
+       margin-top: 0;
+       margin-bottom: 0;
 }
 
 .ui-slider-left-volume,
 .ui-slider-left-bright {
        position: absolute;
-       top: -0.2em;
-       left: -96 * @unit_base;
+       vertical-align: middle;
+
+       top: -0.5rem;
+       left: -50 * @unit_base;
        height: @img-height;
        width: @img-width;
-       vertical-align: middle;
-       background: url(images/00_slider_btn_brightness01.png) no-repeat;
+
+       background: url(images/controls/00_slider_button_brightness_01.png) no-repeat;
        .LESSbackground-size(@img-width, @img-height);
 }
 
 .ui-slider-left-volume {
-       background: url(images/00_slider_btn_volume01.png) no-repeat;
+       background: url(images/controls/00_slider_button_volume_01.png) no-repeat;
        .LESSbackground-size(@img-width, @img-height);
 }
 
 .ui-slider-right-volume,
 .ui-slider-right-bright {
        position: absolute;
-       top: -0.2em;
-       right: -96 * @unit_base;
+
+       top: -0.5rem;
+       right: -50 * @unit_base;
        height: @img-height;
        width: @img-width;
+
        vertical-align: middle;
-       background: url(images/00_slider_btn_brightness02.png) no-repeat;
+
+       background: url(images/controls/00_slider_button_brightness_02.png) no-repeat;
        .LESSbackground-size(@img-width, @img-height);
 }
 
 .ui-slider-right-volume {
-       background: url(images/00_slider_btn_volume02.png) no-repeat;
+       background: url(images/controls/00_slider_button_volume_02.png) no-repeat;
        .LESSbackground-size(@img-width, @img-height);
 }
 
 .ui-slider-left-text {
        position: absolute;
-       top: -0.2em;
-       left: -96 * @unit_base;
-       height: 80 * @unit_base;
-       width: 80 * @unit_base;
+
+       top: -0.5rem;
+       height: 37 * @unit_base;
+
        text-align: center;
        color: rgb(100, 100, 100);
 }
 
 .ui-slider-right-text {
        position: absolute;
-       top: -0.2em;
-       right: -96 * @unit_base;
-       height: 80 * @unit_base;
-       width: 80 * @unit_base;
+
+       top: -0.5rem;
+       height: 37 * @unit_base;
+
        text-align: center;
        color: rgb(100, 100, 100);
 }
 
-div.ui-slider {
-       display: inline-block;
-       overflow: visible;
-       height: 16 * @unit_base;
-       width: 100%;
-       background-image: url(images/00_winset_list_progress_bg.png);
+div.ui-slider:not(.ui-toggle-switch) {
+       position: relative;
+
+       top: 5 * @unit_base;
+       height: 7 * @unit_base;
+       margin-left: 5 * @unit_base;
+       margin-right: 5 * @unit_base;
+
+       .LESSborder-radius-all( 10 * @unit_base );
+       border: 1px;
+       border-style: solid;
+       border-color: @color_progress_border;
+       .LESSbox-shadow(1px, -1px, 1px, @color_progress_border);
+       background-color: @color_progress_bar0;
 
        .ui-btn {
-               top: 0.15em !important;
+               top: -0.75rem;
+               margin-top: 0;
        }
        .ui-btn-inner {
-               padding: 0.3em 0 * @unit_base;
+               padding: 0.3rem 0 0 0;
        }
        .ui-btn-text {
                color: @color_slider_handle_text;
@@ -107,41 +130,60 @@ div.ui-slider {
 a.ui-slider-handle {
        position: relative;
        z-index: 10;
-       top: -21 * @unit_base;
-       width: 58 * @unit_base;
-       height: 58 * @unit_base;
-       margin-top: -29 * @unit_base;
-       margin-left: -29 * @unit_base;
+
+       width: 36 * @unit_base;
+       height: 36 * @unit_base;
+       margin-left: -19 * @unit_base;
+
        color: @color_slider_handle_text;
-       background: url(images/00_slider_handle.png) no-repeat;
-       .LESSbackground-size(58 * @unit_base, 58 * @unit_base);
+       font-size: 0.95rem;
+
+       background: url(images/controls/00_slider_handle.png) no-repeat;
+       .LESSbackground-size(@handle-width, @handle-height);
 }
 
 .ui-slider-popup {
        position: absolute !important;
-       width: @popup-size;
-       height: @popup-size;
-       text-align: center;
-       padding-top: 0.6em;
        z-index: 100;
+
+       width: @popup-width;
+       height: @popup-height;
+       top: -60 * @unit_base;
+       padding-top: 0.1rem;
+
        color: @color_slider_popup_text;
-       background: url(images/00_slider_popup_bg.png) no-repeat;
-       .LESSbackground-size(@popup-size, @popup-size);
+       text-align: center;
+       font-size: 1.5rem;
+
+       background: url(images/controls/00_slider_popup_bg.png) no-repeat;
+       .LESSbackground-size(@popup-width, @popup-height);
 }
 
-.ui-slider-bar {
+.ui-slider-bg {
        position: absolute;
-       top: 0.75em;
-       height: 16 * @unit_base;
+
+       height: 7 * @unit_base;
        width: 0;
-       background-image: url(images/00_winset_list_progress_bar.png);
+
+       background-image: -webkit-gradient(
+               linear,
+               left bottom,
+               left top,
+               color-stop(0, @color_progress_value0),
+               color-stop(1, @color_progress_value1)
+       );
+       .LESSborder-radius-all( 10 * @unit_base );
+       .LESSbox-shadow(-1px, -1px, 1px, rgb(179, 200, 226));
 }
 
 .ui-slider-handle-press {
        position: absolute;
        z-index: 15;
-       width: 58 * @unit_base;
-       height: 58 * @unit_base;
-       background: url(images/00_slider_handle_press.png) no-repeat;
-       .LESSbackground-size(58 * @unit_base, 58 * @unit_base);
+
+       width: 37 * @unit_base;
+       height: 37 * @unit_base;
+
+       //FIXME
+       background: url(images/controls/00_slider_handle_press.png) no-repeat;
+       .LESSbackground-size(@handle-width, @handle-height);
 }