Changeset 29539


Ignore:
Timestamp:
Sep 15, 2014, 5:18:17 PM (10 years ago)
Author:
mistic100
Message:

use fontello for every checkbox on config screens + split configuration.tpl file

Location:
trunk/admin/themes
Files:
6 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/clear/theme.css

    r29406 r29539  
    382382}
    383383
     384.font-checkbox [class*=icon-check]:before { color:#444; }
  • trunk/admin/themes/default/js/common.js

    r28039 r29539  
     1jQuery.fn.fontCheckbox = function() {
     2  this.find('input[type=checkbox], input[type=radio]').each(function() {
     3    if (!jQuery(this).is(':checked')) {
     4      jQuery(this).prev().toggleClass('icon-check icon-check-empty');
     5    }
     6  });
     7  this.find('input[type=checkbox]').on('change', function() {
     8    jQuery(this).prev().toggleClass('icon-check icon-check-empty');
     9  });
     10  this.find('input[type=radio]').on('change', function() {
     11    jQuery(this).closest('.font-checkbox').find('input[type=radio][name='+ jQuery(this).attr('name') +']')
     12      .prev().toggleClass('icon-check icon-check-empty');
     13  });
     14};
     15
     16// init fontChecbox everywhere
     17jQuery('.font-checkbox').fontCheckbox();
     18
    119function array_delete(arr, item) {
    220  var i = arr.indexOf(item);
  • trunk/admin/themes/default/theme.css

    r29485 r29539  
    12681268  vertical-align:top;
    12691269}
     1270
     1271.font-checkbox [class*=icon-check]:before {
     1272  font-size:16px;
     1273  line-height:16px;
     1274  margin-right:0;
     1275}
     1276.font-checkbox .icon-check-empty {
     1277  position:relative;
     1278  left:-1px;
     1279}
     1280.font-checkbox input[type=checkbox], .font-checkbox input[type=radio] {
     1281  display:none;
     1282}
  • trunk/admin/themes/roma/theme.css

    r29485 r29539  
    1717/* text color */
    1818body, h3, dt, .throw, .content, label, LEGEND {
    19         color:#666;
     19        color:#777;
    2020}
    2121
     
    358358        border-color: #444;
    359359}
     360
     361.font-checkbox [class*=icon-check]:before { color:#aaa; }
Note: See TracChangeset for help on using the changeset viewer.