diff --git a/view/templates/field/range_percent.tpl b/view/templates/field/range_percent.tpl new file mode 100644 index 0000000000..0336b616d3 --- /dev/null +++ b/view/templates/field/range_percent.tpl @@ -0,0 +1,20 @@ +
+{{if !isset($label) || $label != false }} + +{{/if}} +
+
+ +
+
+
+ + % +
+
+
+{{if $field.3}} + {{$field.3 nofilter}} +{{/if}} +
+
diff --git a/view/theme/frio/scheme/black.css b/view/theme/frio/scheme/black.css index 3b3f092a75..361a77728c 100644 --- a/view/theme/frio/scheme/black.css +++ b/view/theme/frio/scheme/black.css @@ -70,6 +70,10 @@ textarea, box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada; } +input[type=range] { + box-shadow: none; +} + .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: $background_color; color: $font_color_darker; diff --git a/view/theme/frio/scheme/dark.css b/view/theme/frio/scheme/dark.css index d282b501bc..6bd3df21aa 100644 --- a/view/theme/frio/scheme/dark.css +++ b/view/theme/frio/scheme/dark.css @@ -69,6 +69,10 @@ textarea, box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada; } +input[type=range] { + box-shadow: none; +} + .form-control[disabled], .form-control[readonly], .ieldset[disabled] .form-control { diff --git a/view/theme/frio/templates/theme_settings.tpl b/view/theme/frio/templates/theme_settings.tpl index 505aa55c22..c9b350865e 100644 --- a/view/theme/frio/templates/theme_settings.tpl +++ b/view/theme/frio/templates/theme_settings.tpl @@ -56,27 +56,7 @@ {{if $background_color}}{{include file="field_colorinput.tpl" field=$background_color}}{{/if}} -{{* The slider for the content opacity - We use no template for this since it is only used at this page *}} -{{if $contentbg_transp}} -
- - -
-
- -
-
-
- - % -
-
-
- - {{$contentbg_transp.3}} -
-
-{{/if}} +{{if $contentbg_transp}}{{include file="field/range_percent.tpl" field=$contentbg_transp}}{{/if}} {{if $background_image}}{{include file="field_fileinput.tpl" field=$background_image}}{{/if}} diff --git a/view/theme/quattro/dark/style.css b/view/theme/quattro/dark/style.css index afed03ad6b..be48064f40 100644 --- a/view/theme/quattro/dark/style.css +++ b/view/theme/quattro/dark/style.css @@ -2500,50 +2500,7 @@ footer { .videobb:hover { background-position: -112px -16px; } -/** range input css **/ -/* slider root element */ -.slider { - height: 2px; - position: relative; - cursor: pointer; - border: 1px solid #333; - width: 200px; - margin: 10px 0 10px 0; - float: left; -} -/* progress bar (enabled with progress: true) */ -.progress { - height: 9px; - background-color: #C5FF00; - display: none; - opacity: 0.6; -} -/* drag handle */ -.handle { - background-color: #ccc; - height: 16px; - width: 8px; - top: -8px; - position: absolute; - display: block; - margin-top: 1px; - border: 1px solid #000; - cursor: move; - -moz-border-radius: 0 0 5px 5px; - -webkit-border-radius: 0 0 5px 5px; - border-radius: 0 0 5px 5px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); - -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); -} -/* the input field */ -.range { - width: 20px!important; - font-size: 8pt; - margin-left: 10px; - border: 0; - color: #999999; -} + /* buttons for the event view */ .plink-event-link { float: left; diff --git a/view/theme/quattro/green/style.css b/view/theme/quattro/green/style.css index 55c15eeb38..681b9417c3 100644 --- a/view/theme/quattro/green/style.css +++ b/view/theme/quattro/green/style.css @@ -2500,50 +2500,6 @@ footer { .videobb:hover { background-position: -112px -16px; } -/** range input css **/ -/* slider root element */ -.slider { - height: 2px; - position: relative; - cursor: pointer; - border: 1px solid #333; - width: 200px; - margin: 10px 0 10px 0; - float: left; -} -/* progress bar (enabled with progress: true) */ -.progress { - height: 9px; - background-color: #C5FF00; - display: none; - opacity: 0.6; -} -/* drag handle */ -.handle { - background-color: #ccc; - height: 16px; - width: 8px; - top: -8px; - position: absolute; - display: block; - margin-top: 1px; - border: 1px solid #000; - cursor: move; - -moz-border-radius: 0 0 5px 5px; - -webkit-border-radius: 0 0 5px 5px; - border-radius: 0 0 5px 5px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); - -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); -} -/* the input field */ -.range { - width: 20px!important; - font-size: 8pt; - margin-left: 10px; - border: 0; - color: #999999; -} /* buttons for the event view */ .plink-event-link { float: left; diff --git a/view/theme/quattro/lilac/style.css b/view/theme/quattro/lilac/style.css index 2cabdf5cc8..df854a21fd 100644 --- a/view/theme/quattro/lilac/style.css +++ b/view/theme/quattro/lilac/style.css @@ -2500,50 +2500,6 @@ footer { .videobb:hover { background-position: -112px -16px; } -/** range input css **/ -/* slider root element */ -.slider { - height: 2px; - position: relative; - cursor: pointer; - border: 1px solid #333; - width: 200px; - margin: 10px 0 10px 0; - float: left; -} -/* progress bar (enabled with progress: true) */ -.progress { - height: 9px; - background-color: #C5FF00; - display: none; - opacity: 0.6; -} -/* drag handle */ -.handle { - background-color: #ccc; - height: 16px; - width: 8px; - top: -8px; - position: absolute; - display: block; - margin-top: 1px; - border: 1px solid #000; - cursor: move; - -moz-border-radius: 0 0 5px 5px; - -webkit-border-radius: 0 0 5px 5px; - border-radius: 0 0 5px 5px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); - -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); -} -/* the input field */ -.range { - width: 20px!important; - font-size: 8pt; - margin-left: 10px; - border: 0; - color: #999999; -} /* buttons for the event view */ .plink-event-link { float: left; diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index 3d3f94f238..53874be022 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -1668,51 +1668,6 @@ footer { height: 100px; display: table-row; } .videobb { background-position: -112px 0; } .videobb:hover { background-position: -112px -16px; } - -/** range input css **/ -/* slider root element */ -.slider { - height:2px; - position:relative; - cursor:pointer; - border:1px solid #333; - width:200px; - margin:10px 0 10px 0; - float: left; -} - -/* progress bar (enabled with progress: true) */ -.progress { - height:9px; - background-color:#C5FF00; - display:none; - opacity:0.6; -} - -/* drag handle */ -.handle { - background-color:#ccc; - height:16px; - width:8px; - top:-8px; - position:absolute; - display:block; - margin-top:1px; - border:1px solid #000; - cursor:move; - .roundbottom(); - .shadow(); -} - -/* the input field */ -.range { - width: 20px!important; - font-size: 8pt; - margin-left: 10px; - border: 0; - color: @FieldHelpColor; -} - /* buttons for the event view */ .plink-event-link { float: left;