]> git.mxchange.org Git - friendica.git/commitdiff
Removed unneeded CSS and JS stuff
authorMichael <heluecht@pirati.ca>
Wed, 5 Feb 2020 16:30:35 +0000 (16:30 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 5 Feb 2020 16:30:35 +0000 (16:30 +0000)
12 files changed:
doc/AddonStorageBackend.md
view/js/main.js
view/theme/duepuntozero/style.css
view/theme/frio/css/style.css
view/theme/frio/js/theme.js
view/theme/quattro/dark/style.css
view/theme/quattro/green/style.css
view/theme/quattro/lilac/style.css
view/theme/quattro/quattro.less
view/theme/smoothly/style.css
view/theme/vier/mobile.css
view/theme/vier/style.css

index 17c3f0414077ee1dfb4d8a800427aea46372e39c..3e3a2aabae19700210671ee399684ac526ecab05 100644 (file)
@@ -52,7 +52,7 @@ The info array for each option is defined as:
                'type',
 
 define the field used in form, and the type of data.
-one of 'checkbox', 'combobox', 'custom', 'datetime', 'input', 'intcheckbox', 'password', 'radio', 'richtext', 'select', 'select_raw', 'textarea', 'yesno'
+one of 'checkbox', 'combobox', 'custom', 'datetime', 'input', 'intcheckbox', 'password', 'radio', 'richtext', 'select', 'select_raw', 'textarea'
 
                'label',
 
index 95ee4b8ed91e576141a84f6b702a8acab425d4de..41bae7cf23e46d3f058b191521cfa0c7eef23b57 100644 (file)
@@ -160,23 +160,6 @@ $(function() {
                $(textarea).trigger('change');
        });
 
-       /* setup onoff widgets */
-       $(".onoff input").each(function() {
-               val = $(this).val();
-               id = $(this).attr("id");
-               $("#"+id+"_onoff ." + (val == 0 ? "on":"off")).addClass("hidden");
-       });
-
-       $(".onoff > a").click(function(event) {
-               event.preventDefault();
-               var input = $(this).siblings("input");
-               var val = 1-input.val();
-               var id = input.attr("id");
-               $("#"+id+"_onoff ." + (val == 0 ? "on":"off")).addClass("hidden");
-               $("#"+id+"_onoff ." + (val == 1 ? "on":"off")).removeClass("hidden");
-               input.val(val);
-       });
-
        /* popup menus */
        function close_last_popup_menu() {
                if (last_popup_menu) {
index f7b2d7ea18059ec8239519bbbfbbc04262829718..c312d30d1f5dad91836a9ed6867ce9c82798935d 100644 (file)
@@ -2802,36 +2802,6 @@ aside input[type='text'] {
 
 }
 
-
-.field .onoff {
-       float: left;
-       width: 80px;
-}
-.field .onoff a {
-       display: block;
-       border:1px solid #666666;
-       background-image:url("../../../images/onoff.jpg");
-       background-repeat: no-repeat;
-       padding: 4px 2px 2px 2px;
-       height: 16px;
-       text-decoration: none;
-}
-.field .onoff .off {
-       border-color:#666666;
-       padding-left: 40px;
-       background-position: left center;
-       background-color: #cccccc;
-       color: #666666;
-       text-align: right;
-}
-.field .onoff .on {
-       border-color:#204A87;
-       padding-right: 40px;
-       background-position: right center;
-       background-color: #D7E3F1;
-       color: #204A87;
-       text-align: left;
-}
 .hidden { display: none!important; }
 
 .field.radio .field_help { margin-left: 0px; }
index b65c7d6e3847bc6219fd69564a8c48a12eb18480..295c065bb0b605438e809e71241e38f489d12735 100644 (file)
@@ -312,15 +312,6 @@ a.btn:hover {
     border: 1px solid transparent;
     border-color: #ccc;
 }
-.field.yesno:hover .toggle {
-    border-color: $link_hover_color;
-    transition: all 0.25s ease-in-out;
-}
-.field.yesno:hover .toggle-handle {
-    background-color: #fff;
-    transition: all 0.25s ease-in-out;
-}
-
 .form-control-sm, .input-group-sm>.form-control, .input-group-sm>.input-group-addon, .input-group-sm>.input-group-btn>.btn {
     padding: .275rem .75rem;
     /*font-size: .875rem;*/
index f1bef07f2067e943c9aaecd2a55914ab5c5887d7..8fc0d530123d3d681d7ed716cc606d04e96def4d 100644 (file)
@@ -230,24 +230,6 @@ $(document).ready(function(){
                toggleDropdownText(this);
        });
 
-       /* setup onoff widgets */
-       // Add the correct class to the switcher according to the input
-       // value (On/Off)
-       $(".toggle input").each(function(){
-               // Get the value of the input element
-               val = $(this).val();
-               id = $(this).attr("id");
-
-               // The css classes for "on" and "off"
-               onstyle = "btn-primary";
-               offstyle = "btn-default off";
-
-               // Add the correct class in dependence of input value (On/Off)
-               toggleclass = (val == 0 ? offstyle : onstyle);
-               $("#"+id+"_onoff").addClass(toggleclass);
-
-       });
-
        // Change the css class while clicking on the switcher elements
        $(".toggle label, .toggle .toggle-handle").click(function(event){
                event.preventDefault();
index 5f9e233c98d96e6553f388830e4176eb9e68a66a..158a79bb9eee8a37fcc383e1fc064cd243edc50a 100644 (file)
@@ -1925,35 +1925,6 @@ ul.tabs li .active {
   margin-left: 200px;
   color: #999999;
 }
-.field .onoff {
-  float: left;
-  width: 80px;
-}
-.field .onoff a {
-  display: block;
-  border: 1px solid #666666;
-  background-image: url("../../../images/onoff.jpg");
-  background-repeat: no-repeat;
-  padding: 4px 2px 2px 2px;
-  height: 16px;
-  text-decoration: none;
-}
-.field .onoff .off {
-  border-color: #666666;
-  padding-left: 40px;
-  background-position: left center;
-  background-color: #cccccc;
-  color: #666666;
-  text-align: right;
-}
-.field .onoff .on {
-  border-color: #204A87;
-  padding-right: 40px;
-  background-position: right center;
-  background-color: #D7E3F1;
-  color: #204A87;
-  text-align: left;
-}
 .field .hidden {
   display: none!important;
 }
index 81a30cf0884dee6fb40bdf6702b6c6a64cef885f..516742378babfea834192a7f1bf1e7dc41503170 100644 (file)
@@ -1925,35 +1925,6 @@ ul.tabs li .active {
   margin-left: 200px;
   color: #999999;
 }
-.field .onoff {
-  float: left;
-  width: 80px;
-}
-.field .onoff a {
-  display: block;
-  border: 1px solid #666666;
-  background-image: url("../../../images/onoff.jpg");
-  background-repeat: no-repeat;
-  padding: 4px 2px 2px 2px;
-  height: 16px;
-  text-decoration: none;
-}
-.field .onoff .off {
-  border-color: #666666;
-  padding-left: 40px;
-  background-position: left center;
-  background-color: #cccccc;
-  color: #666666;
-  text-align: right;
-}
-.field .onoff .on {
-  border-color: #204A87;
-  padding-right: 40px;
-  background-position: right center;
-  background-color: #D7E3F1;
-  color: #204A87;
-  text-align: left;
-}
 .field .hidden {
   display: none!important;
 }
index 7585877ae20681f1ddd6e994e976eef78ef057da..8577e625919b67aea7c3a51466adbd6ef695242c 100644 (file)
@@ -1925,35 +1925,6 @@ ul.tabs li .active {
   margin-left: 200px;
   color: #999999;
 }
-.field .onoff {
-  float: left;
-  width: 80px;
-}
-.field .onoff a {
-  display: block;
-  border: 1px solid #666666;
-  background-image: url("../../../images/onoff.jpg");
-  background-repeat: no-repeat;
-  padding: 4px 2px 2px 2px;
-  height: 16px;
-  text-decoration: none;
-}
-.field .onoff .off {
-  border-color: #666666;
-  padding-left: 40px;
-  background-position: left center;
-  background-color: #cccccc;
-  color: #666666;
-  text-align: right;
-}
-.field .onoff .on {
-  border-color: #204A87;
-  padding-right: 40px;
-  background-position: right center;
-  background-color: #D7E3F1;
-  color: #204A87;
-  text-align: left;
-}
 .field .hidden {
   display: none!important;
 }
index 5f435241c9e2de6a9e6e633baa455056e984ac67..b7269f649bec5f744e91df2c0b0d5bc7a1ed8cbc 100644 (file)
@@ -1216,36 +1216,6 @@ ul.tabs {
                color: @FieldHelpColor;
        }
 
-
-       .onoff {
-               float: left;
-               width: 80px;
-       }
-       .onoff a {
-               display: block;
-               border:1px solid #666666;
-               background-image:url("../../../images/onoff.jpg");
-               background-repeat: no-repeat;
-               padding: 4px 2px 2px 2px;
-               height: 16px;
-               text-decoration: none;
-       }
-       .onoff .off {
-               border-color:#666666;
-               padding-left: 40px;
-               background-position: left center;
-               background-color: #cccccc;
-               color: #666666;
-               text-align: right;
-       }
-       .onoff .on {
-               border-color:#204A87;
-               padding-right: 40px;
-               background-position: right center;
-               background-color: #D7E3F1;
-               color: #204A87;
-               text-align: left;
-       }
        .hidden { display: none!important; }
 
        &.radio .field_help { margin-left: 0; }
index cc541fb87b1a4838120c45817818d4eb0ced7ffa..235bc396264e74b54a7132da86e76ce46c55667c 100644 (file)
@@ -3919,37 +3919,6 @@ margin-left: 0px;
        color: #666666;
 }
 
-.field .onoff {
-       float: left;
-       width: 80px;
-}
-.field .onoff a {
-       display: block;
-       border: 1px solid #c1c1c1;
-       background-image: url("../../../images/onoff.jpg");
-       background-repeat: no-repeat;
-       padding: 4px 2px 2px 2px;
-       height: 16px;
-       text-decoration: none;
-}
-.field .onoff .off {
-       border-color: #c1c1c1;
-       padding-left: 40px;
-       background-position: left center;
-       background-color: #cccccc;
-       color: #666666;
-       text-align: right;
-}
-
-.field .onoff .on {
-       border-color: #c1c1c1;
-       padding-right: 40px;
-       background-position: right center;
-       background-color: #1873a2;
-       color: #FFFFFF;
-       text-align: left;
-}
-
 .field .radio .field_help {
        margin-left: 0px;
 }
@@ -4653,10 +4622,6 @@ div #datebrowse-sidebar.widget {
        margin-bottom: 5px !important;
 }
 
-.onoff {
-       margin-right: 10px;
-}
-
 .settings-heading {
        margin: 25px 0 25px 0;
 }
index caadf66ba1636b8c54bb70aa94b81ac31e1dd356..6a70d55b145e4fe16aa49cb346ef45d70de91445 100644 (file)
@@ -266,9 +266,7 @@ select:focus {
 .field, .field > * {  box-sizing: border-box; }
 .field label { width: 100%; float: none; display: block; }
 .field input, .field textarea, .field select { max-width: 100%; width: 100%; }
-.field.yesno .onoff,
 .field.checkbox input { width: auto; float: right; }
-.field.yesno label,
 .field.checkbox label { width: 70%; float: left; }
 .field .field_help { margin: 0; }
 
index f28f8b556f3e40647bd82736bbfba4a31ac9bc8b..0ef69f2caa97c65a8df69112592dac106f743f52 100644 (file)
@@ -2272,40 +2272,6 @@ ul.tabs li .active, span.pager_current a {
        margin-left: 200px;
        color: #666666;
 }
-.field .onoff {
-       float: left;
-       width: 80px;
-       margin-right:1em;
-}
-.field .onoff a {
-       display: block;
-       border: 1px solid #666666;
-       background-image: url("../../../images/onoff.jpg");
-       background-repeat: no-repeat;
-       padding: 4px 2px 2px 2px;
-       font-size:14px;
-       height: 16px;
-       line-height:16px;
-       text-decoration: none;
-       text-align: center;
-       text-transform: uppercase;
-       border-radius:4px;
-}
-.field .onoff .off {
-       border-color: #B0B0B0;
-       padding-left: 36px;
-       background-position: left center;
-       background-color: #cccccc;
-       color: #9C9C9C;
-}
-.field .onoff .on {
-       font-weight:bold;
-       border-color: #8EB8EE;
-       padding-right: 36px;
-       background-position: right center;
-       background-color: #D7E3F1;
-       color: #36c;
-}
 .field .hidden {
        display: none!important;
 }