PHRAS-2327_report_refacto_41

This commit is contained in:
Filip Vilic
2018-12-11 13:15:03 +01:00
parent 35d0b0fad2
commit eec09e55cd
58 changed files with 13589 additions and 8931 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

View File

@@ -1,632 +0,0 @@
/*
* jQuery clueTip plugin
* Version 1.1pre (May 16, 2010)
* @requires jQuery v1.3+
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/*
*
* Full list of options/settings can be found at the bottom of this file and at http://plugins.learningjquery.com/cluetip/
*
* Examples can be found at http://plugins.learningjquery.com/cluetip/demo/
*
*/
(function($) {
$.cluetip = {version: '1.1pre'};
var $cluetip, $cluetipInner, $cluetipOuter, $cluetipTitle, $cluetipArrows, $cluetipWait, $dropShadow, imgCount;
var insertionType = 'appendTo', insertionElement = 'body';
$.fn.cluetip = function(js, options) {
if (typeof js == 'object') {
options = js;
js = null;
}
if (js == 'destroy') {
return this.removeData('cluetip').unbind('.cluetip');
}
// merge per-call options with defaults
options = $.extend(true, {}, $.fn.cluetip.defaults, options || {});
/** =create cluetip divs **/
if (!$('#cluetip').length) {
$(['<div id="cluetip">',
'<div id="cluetip-outer">',
'<h3 id="cluetip-title"></h3>',
'<div id="cluetip-inner"></div>',
'</div>',
'<div id="cluetip-extra"></div>',
'<div id="cluetip-arrows" class="cluetip-arrows"></div>',
'</div>'].join(''))
[insertionType](insertionElement).hide();
var cluezIndex = +options.cluezIndex;
$cluetip = $('#cluetip').css({position: 'absolute'});
$cluetipOuter = $('#cluetip-outer').css({position: 'relative', zIndex: cluezIndex});
$cluetipInner = $('#cluetip-inner');
$cluetipTitle = $('#cluetip-title');
$cluetipArrows = $('#cluetip-arrows');
$cluetipWait = $('<div id="cluetip-waitimage"></div>')
.css({position: 'absolute'}).insertBefore($cluetip).hide();
}
var cluetipPadding = (parseInt($cluetip.css('paddingLeft'),10)||0) + (parseInt($cluetip.css('paddingRight'),10)||0);
this.each(function(index) {
var link = this, $this = $(this);
// support metadata plugin (v1.0 and 2.0)
var opts = $.extend(true, {}, options, $.metadata ? $this.metadata() : $.meta ? $this.data() : {});
// start out with no contents (for ajax activation)
var cluetipContents = false;
cluezIndex = +opts.cluezIndex;
$this.data('cluetip', {title: link.title, zIndex: cluezIndex});
var isActive = false, closeOnDelay = 0;
var tipAttribute = $this.attr(opts.attribute), ctClass = opts.cluetipClass;
if (!tipAttribute && !opts.splitTitle && !js) {
return true;
}
// if hideLocal is set to true, on DOM ready hide the local content that will be displayed in the clueTip
if (opts.local && opts.localPrefix) {tipAttribute = opts.localPrefix + tipAttribute;}
if (opts.local && opts.hideLocal) { $(tipAttribute + ':first').hide(); }
var tOffset = parseInt(opts.topOffset, 10), lOffset = parseInt(opts.leftOffset, 10);
// vertical measurement variables
var tipHeight, wHeight,
defHeight = isNaN(parseInt(opts.height, 10)) ? 'auto' : (/\D/g).test(opts.height) ? opts.height : opts.height + 'px';
var sTop, linkTop, posY, tipY, mouseY, baseline;
// horizontal measurement variables
var tipInnerWidth = parseInt(opts.width, 10) || 275,
tipWidth = tipInnerWidth + cluetipPadding + opts.dropShadowSteps,
linkWidth = this.offsetWidth,
linkLeft, posX, tipX, mouseX, winWidth;
// parse the title
var tipParts;
var tipTitle = (opts.attribute != 'title') ? $this.attr(opts.titleAttribute) : '';
if (opts.splitTitle) {
if (tipTitle == undefined) {tipTitle = '';}
tipParts = tipTitle.split(opts.splitTitle);
tipTitle = tipParts.shift();
}
if (opts.escapeTitle) {
tipTitle = tipTitle.replace(/&/g,'&amp;').replace(/>/g,'&gt;').replace(/</g,'&lt;');
}
var localContent;
function returnFalse() { return false; }
/***************************************
* ACTIVATION
****************************************/
//activate clueTip
var activate = function(event) {
if (!opts.onActivate($this)) {
return false;
}
isActive = true;
$cluetip.removeClass().css({width: tipInnerWidth});
if (tipAttribute == $this.attr('href')) {
$this.css('cursor', opts.cursor);
}
if (opts.hoverClass) {
$this.addClass(opts.hoverClass);
}
linkTop = posY = $this.offset().top;
linkLeft = $this.offset().left;
mouseX = event.pageX;
mouseY = event.pageY;
if (link.tagName.toLowerCase() != 'area') {
sTop = $(document).scrollTop();
winWidth = $(window).width();
}
// position clueTip horizontally
if (opts.positionBy == 'fixed') {
posX = linkWidth + linkLeft + lOffset;
$cluetip.css({left: posX});
} else {
posX = (linkWidth > linkLeft && linkLeft > tipWidth)
|| linkLeft + linkWidth + tipWidth + lOffset > winWidth
? linkLeft - tipWidth - lOffset
: linkWidth + linkLeft + lOffset;
if (link.tagName.toLowerCase() == 'area' || opts.positionBy == 'mouse' || linkWidth + tipWidth > winWidth) { // position by mouse
if (mouseX + 20 + tipWidth > winWidth) {
$cluetip.addClass(' cluetip-' + ctClass);
posX = (mouseX - tipWidth - lOffset) >= 0 ? mouseX - tipWidth - lOffset - parseInt($cluetip.css('marginLeft'),10) + parseInt($cluetipInner.css('marginRight'),10) : mouseX - (tipWidth/2);
} else {
posX = mouseX + lOffset;
}
}
var pY = posX < 0 ? event.pageY + tOffset : event.pageY;
$cluetip.css({
left: (posX > 0 && opts.positionBy != 'bottomTop') ? posX : (mouseX + (tipWidth/2) > winWidth) ? winWidth/2 - tipWidth/2 : Math.max(mouseX - (tipWidth/2),0),
zIndex: $this.data('cluetip').zIndex
});
$cluetipArrows.css({zIndex: $this.data('cluetip').zIndex+1});
}
wHeight = $(window).height();
/***************************************
* load a string from cluetip method's first argument
***************************************/
if (js) {
if (typeof js == 'function') {
js = js.call(link);
}
$cluetipInner.html(js);
cluetipShow(pY);
}
/***************************************
* load the title attribute only (or user-selected attribute).
* clueTip title is the string before the first delimiter
* subsequent delimiters place clueTip body text on separate lines
***************************************/
else if (tipParts) {
var tpl = tipParts.length;
$cluetipInner.html(tpl ? tipParts[0] : '');
if (tpl > 1) {
for (var i=1; i < tpl; i++){
$cluetipInner.append('<div class="split-body">' + tipParts[i] + '</div>');
}
}
cluetipShow(pY);
}
/***************************************
* load external file via ajax
***************************************/
else if (!opts.local && tipAttribute.indexOf('#') !== 0) {
if (/\.(jpe?g|tiff?|gif|png)$/i.test(tipAttribute)) {
$cluetipInner.html('<img src="' + tipAttribute + '" alt="' + tipTitle + '" />');
cluetipShow(pY);
} else if (cluetipContents && opts.ajaxCache) {
$cluetipInner.html(cluetipContents);
cluetipShow(pY);
} else {
var optionBeforeSend = opts.ajaxSettings.beforeSend,
optionError = opts.ajaxSettings.error,
optionSuccess = opts.ajaxSettings.success,
optionComplete = opts.ajaxSettings.complete;
var ajaxSettings = {
cache: false, // force requested page not to be cached by browser
url: tipAttribute,
beforeSend: function(xhr) {
if (optionBeforeSend) {optionBeforeSend.call(link, xhr, $cluetip, $cluetipInner);}
$cluetipOuter.children().empty();
if (opts.waitImage) {
$cluetipWait
.css({top: mouseY+20, left: mouseX+20, zIndex: $this.data('cluetip').zIndex-1})
.show();
}
},
error: function(xhr, textStatus) {
if (isActive) {
if (optionError) {
optionError.call(link, xhr, textStatus, $cluetip, $cluetipInner);
} else {
$cluetipInner.html('<i>sorry, the contents could not be loaded</i>');
}
}
},
success: function(data, textStatus) {
cluetipContents = opts.ajaxProcess.call(link, data);
if (isActive) {
if (optionSuccess) {optionSuccess.call(link, data, textStatus, $cluetip, $cluetipInner);}
$cluetipInner.html(cluetipContents);
}
},
complete: function(xhr, textStatus) {
if (optionComplete) {optionComplete.call(link, xhr, textStatus, $cluetip, $cluetipInner);}
var imgs = $cluetipInner[0].getElementsByTagName('img');
imgCount = imgs.length;
for (var i=0, l = imgs.length; i < l; i++) {
if (imgs[i].complete) {
imgCount--;
}
}
if (imgCount && !$.browser.opera) {
$(imgs).bind('load error', function() {
imgCount--;
if (imgCount<1) {
$cluetipWait.hide();
if (isActive) { cluetipShow(pY); }
}
});
} else {
$cluetipWait.hide();
if (isActive) { cluetipShow(pY); }
}
}
};
var ajaxMergedSettings = $.extend(true, {}, opts.ajaxSettings, ajaxSettings);
$.ajax(ajaxMergedSettings);
}
/***************************************
* load an element from the same page
***************************************/
} else if (opts.local) {
var $localContent = $(tipAttribute + (/#\S+$/.test(tipAttribute) ? '' : ':eq(' + index + ')')).clone(true).show();
if (opts.localIdSuffix) {
$localContent.attr('id', $localContent[0].id + opts.localIdSuffix);
}
$cluetipInner.html($localContent);
cluetipShow(pY);
}
};
// get dimensions and options for cluetip and prepare it to be shown
var cluetipShow = function(bpY) {
$cluetip.addClass('cluetip-' + ctClass);
if (opts.truncate) {
var $truncloaded = $cluetipInner.text().slice(0,opts.truncate) + '...';
$cluetipInner.html($truncloaded);
}
function doNothing() {}; //empty function
tipTitle ? $cluetipTitle.show().html(tipTitle) : (opts.showTitle) ? $cluetipTitle.show().html('&nbsp;') : $cluetipTitle.hide();
if (opts.sticky) {
var $closeLink = $('<div id="cluetip-close"><a href="#">' + opts.closeText + '</a></div>');
(opts.closePosition == 'bottom') ? $closeLink.appendTo($cluetipInner) : (opts.closePosition == 'title') ? $closeLink.prependTo($cluetipTitle) : $closeLink.prependTo($cluetipInner);
$closeLink.bind('click.cluetip', function() {
cluetipClose();
return false;
});
if (opts.mouseOutClose) {
$cluetip.bind('mouseleave.cluetip', function() {
cluetipClose();
});
} else {
$cluetip.unbind('mouseleave.cluetip');
}
}
// now that content is loaded, finish the positioning
var direction = '';
$cluetipOuter.css({zIndex: $this.data('cluetip').zIndex, overflow: defHeight == 'auto' ? 'visible' : 'auto', height: defHeight});
tipHeight = defHeight == 'auto' ? Math.max($cluetip.outerHeight(),$cluetip.height()) : parseInt(defHeight,10);
tipY = posY;
baseline = sTop + wHeight;
if (opts.positionBy == 'fixed') {
tipY = posY - opts.dropShadowSteps + tOffset;
} else if ( (posX < mouseX && Math.max(posX, 0) + tipWidth > mouseX) || opts.positionBy == 'bottomTop') {
if (posY + tipHeight + tOffset > baseline && mouseY - sTop > tipHeight + tOffset) {
tipY = mouseY - tipHeight - tOffset;
direction = 'top';
} else {
tipY = mouseY + tOffset;
direction = 'bottom';
}
} else if ( posY + tipHeight + tOffset > baseline ) {
tipY = (tipHeight >= wHeight) ? sTop : baseline - tipHeight - tOffset;
} else if ($this.css('display') == 'block' || link.tagName.toLowerCase() == 'area' || opts.positionBy == "mouse") {
tipY = bpY - tOffset;
} else {
tipY = posY - opts.dropShadowSteps;
}
if (direction == '') {
posX < linkLeft ? direction = 'left' : direction = 'right';
}
$cluetip.css({top: tipY + 'px'}).removeClass().addClass('clue-' + direction + '-' + ctClass).addClass(' cluetip-' + ctClass);
if (opts.arrows) { // set up arrow positioning to align with element
var bgY = (posY - tipY - opts.dropShadowSteps);
$cluetipArrows.css({top: (/(left|right)/.test(direction) && posX >=0 && bgY > 0) ? bgY + 'px' : /(left|right)/.test(direction) ? 0 : ''}).show();
} else {
$cluetipArrows.hide();
}
// (first hide, then) ***SHOW THE CLUETIP***
// handle dropshadow divs first
$dropShadow = createDropShadows(opts);
if ($dropShadow && $dropShadow.length) {
$dropShadow.hide().css({height: tipHeight, width: tipInnerWidth, zIndex: $this.data('cluetip').zIndex-1}).show();
}
$cluetip.hide()[opts.fx.open](opts.fx.openSpeed || 0);
if ($.fn.bgiframe) { $cluetip.bgiframe(); }
// delayed close (not fully tested)
if (opts.delayedClose > 0) {
closeOnDelay = setTimeout(cluetipClose, opts.delayedClose);
}
// trigger the optional onShow function
opts.onShow.call(link, $cluetip, $cluetipInner);
};
/***************************************
=INACTIVATION
-------------------------------------- */
var inactivate = function(event) {
isActive = false;
$cluetipWait.hide();
if (!opts.sticky || (/click|toggle/).test(opts.activation) ) {
cluetipClose();
clearTimeout(closeOnDelay);
}
if (opts.hoverClass) {
$this.removeClass(opts.hoverClass);
}
};
// close cluetip and reset some things
var cluetipClose = function() {
$cluetipOuter
.parent().hide().removeClass();
opts.onHide.call(link, $cluetip, $cluetipInner);
$this.removeClass('cluetip-clicked');
if (tipTitle) {
$this.attr(opts.titleAttribute, tipTitle);
}
$this.css('cursor','');
if (opts.arrows) {
$cluetipArrows.css({top: ''});
}
};
$(document).bind('hideCluetip', function(e) {
cluetipClose();
});
/***************************************
=BIND EVENTS
-------------------------------------- */
// activate by click
if ( (/click|toggle/).test(opts.activation) ) {
$this.bind('click.cluetip', function(event) {
if ($cluetip.is(':hidden') || !$this.is('.cluetip-clicked')) {
activate(event);
$('.cluetip-clicked').removeClass('cluetip-clicked');
$this.addClass('cluetip-clicked');
} else {
inactivate(event);
}
this.blur();
return false;
});
// activate by focus; inactivate by blur
} else if (opts.activation == 'focus') {
$this.bind('focus.cluetip', function(event) {
activate(event);
});
$this.bind('blur.cluetip', function(event) {
inactivate(event);
});
// activate by hover
} else {
// clicking is returned false if clickThrough option is set to false
$this[opts.clickThrough ? 'unbind' : 'bind']('click', returnFalse);
//set up mouse tracking
var mouseTracks = function(evt) {
if (opts.tracking == true) {
var trackX = posX - evt.pageX;
var trackY = tipY ? tipY - evt.pageY : posY - evt.pageY;
$this.bind('mousemove.cluetip', function(evt) {
$cluetip.css({left: evt.pageX + trackX, top: evt.pageY + trackY });
});
}
};
if ($.fn.hoverIntent && opts.hoverIntent) {
$this.hoverIntent({
sensitivity: opts.hoverIntent.sensitivity,
interval: opts.hoverIntent.interval,
over: function(event) {
activate(event);
mouseTracks(event);
},
timeout: opts.hoverIntent.timeout,
out: function(event) {inactivate(event); $this.unbind('mousemove.cluetip');}
});
} else {
$this.bind('mouseenter.cluetip', function(event) {
activate(event);
mouseTracks(event);
})
.bind('mouseleave.cluetip', function(event) {
inactivate(event);
$this.unbind('mousemove.cluetip');
});
}
$this.bind('mouseover.cluetip', function(event) {
$this.attr('title','');
}).bind('mouseleave.cluetip', function(event) {
$this.attr('title', $this.data('cluetip').title);
});
}
});
/** =private functions
************************************************************/
/** =create dropshadow divs **/
function createDropShadows(options, newDropShadow) {
var dropShadowSteps = (options.dropShadow && options.dropShadowSteps) ? +options.dropShadowSteps : 0;
if ($.support.boxShadow) {
var dsOffsets = dropShadowSteps === 0 ? '0 0 ' : '1px 1px ';
$('#cluetip').css($.support.boxShadow, dsOffsets + dropShadowSteps + 'px rgba(0,0,0,0.5)');
return false;
}
var oldDropShadow = $('#cluetip .cluetip-drop-shadow');
if (dropShadowSteps == oldDropShadow.length) {
return oldDropShadow;
}
oldDropShadow.remove();
var dropShadows = [];
for (var i=0; i < dropShadowSteps;) {
dropShadows[i++] = '<div style="top:' + i + 'px;left:' + i + 'px;"></div>';
}
newDropShadow = $(dropShadows.join(''))
.css({
position: 'absolute',
backgroundColor: '#FFF',
zIndex: cluezIndex -1
})
.addClass('cluetip-drop-shadow')
.prependTo('#cluetip');
return newDropShadow;
}
return this;
};
(function() {
$.support = $.support || {};
// check support for CSS3 properties (currently only boxShadow)
var div = document.createElement('div'),
divStyle = div.style,
styleProps = ['boxShadow'],
prefixes = ['moz', 'Moz', 'webkit', 'o'];
for (var i=0, sl = styleProps.length; i < sl; i++) {
var prop = styleProps[i],
uProp = prop.charAt(0).toUpperCase() + prop.slice(1);
if ( typeof divStyle[ prop ] !== 'undefined' ) {
$.support[ prop ] = prop;
} else {
for (var j=0, pl = prefixes.length; j < pl; j++) {
if (typeof divStyle[ prefixes[j] + uProp ] !== 'undefined') {
$.support[ prop ] = prefixes[j] + uProp;
break;
}
}
}
}
div = null; delete div;
})();
/*
* options for clueTip
*
* each one can be explicitly overridden by changing its value.
* for example: $.fn.cluetip.defaults.width = 200;
* would change the default width for all clueTips to 200.
*
* each one can also be overridden by passing an options map to the cluetip method.
* for example: $('a.example').cluetip({width: 200});
* would change the default width to 200 for clueTips invoked by a link with class of "example"
*
*/
$.fn.cluetip.defaults = { // set up default options
width: 'auto', // The width of the clueTip
height: 'auto', // The height of the clueTip
cluezIndex: 9999, // Sets the z-index style property of the clueTip
positionBy: 'auto', // Sets the type of positioning: 'auto', 'mouse','bottomTop', 'fixed'
topOffset: 5, // Number of px to offset clueTip from top of invoking element
leftOffset: 5, // Number of px to offset clueTip from left of invoking element
local: false, // Whether to use content from the same page for the clueTip's body
localPrefix: null, // string to be prepended to the tip attribute if local is true
localIdSuffix: null, // string to be appended to the cluetip content element's id if local is true
hideLocal: true, // If local option is set to true, this determines whether local content
// to be shown in clueTip should be hidden at its original location
attribute: 'rel', // the attribute to be used for fetching the clueTip's body content
titleAttribute: 'title', // the attribute to be used for fetching the clueTip's title
splitTitle: '', // A character used to split the title attribute into the clueTip title and divs
// within the clueTip body. more info below [6]
escapeTitle: false, // whether to html escape the title attribute
showTitle: false, // show title bar of the clueTip, even if title attribute not set
cluetipClass: '',// class added to outermost clueTip div in the form of 'cluetip-' + clueTipClass.
hoverClass: '', // class applied to the invoking element onmouseover and removed onmouseout
waitImage: true, // whether to show a "loading" img, which is set in jquery.cluetip.css
cursor: 'help',
arrows: false, // if true, displays arrow on appropriate side of clueTip
dropShadow: false, // set to false if you don't want the drop-shadow effect on the clueTip
dropShadowSteps: 6, // adjusts the size of the drop shadow
sticky: false, // keep visible until manually closed
mouseOutClose: false, // close when clueTip is moused out
activation: 'hover', // set to 'click' to force user to click to show clueTip
// set to 'focus' to show on focus of a form element and hide on blur
clickThrough: false, // if true, and activation is not 'click', then clicking on link will take user to the link's href,
// even if href and tipAttribute are equal
tracking: false, // if true, clueTip will track mouse movement (experimental)
delayedClose: 0, // close clueTip on a timed delay (experimental)
closePosition: 'top', // location of close text for sticky cluetips; can be 'top' or 'bottom' or 'title'
closeText: 'Close', // text (or HTML) to to be clicked to close sticky clueTips
truncate: 0, // number of characters to truncate clueTip's contents. if 0, no truncation occurs
// effect and speed for opening clueTips
fx: {
open: 'show', // can be 'show' or 'slideDown' or 'fadeIn'
openSpeed: ''
},
// settings for when hoverIntent plugin is used
hoverIntent: {
sensitivity: 3,
interval: 50,
timeout: 0
},
// short-circuit function to run just before clueTip is shown.
onActivate: function(e) {return true;},
// function to run just after clueTip is shown.
onShow: function(ct, ci){},
// function to run just after clueTip is hidden.
onHide: function(ct, ci){},
// whether to cache results of ajax request to avoid unnecessary hits to server
ajaxCache: true,
// process data retrieved via xhr before it's displayed
ajaxProcess: function(data) {
data = data.replace(/<(script|style|title)[^<]+<\/(script|style|title)>/gm, '').replace(/<(link|meta)[^>]+>/g,'');
return data;
},
// can pass in standard $.ajax() parameters. Callback functions, such as beforeSend,
// will be queued first within the default callbacks.
// The only exception is error, which overrides the default
ajaxSettings: {
// error: function(ct, ci) { /* override default error callback */ }
// beforeSend: function(ct, ci) { /* called first within default beforeSend callback }
dataType: 'html'
},
debug: false
};
/*
* Global defaults for clueTips. Apply to all calls to the clueTip plugin.
*
* @example $.cluetip.setup({
* insertionType: 'prependTo',
* insertionElement: '#container'
* });
*
* @property
* @name $.cluetip.setup
* @type Map
* @cat Plugins/tooltip
* @option String insertionType: Default is 'appendTo'. Determines the method to be used for inserting the clueTip into the DOM. Permitted values are 'appendTo', 'prependTo', 'insertBefore', and 'insertAfter'
* @option String insertionElement: Default is 'body'. Determines which element in the DOM the plugin will reference when inserting the clueTip.
*
*/
var insertionType = 'appendTo', insertionElement = 'body';
$.cluetip.setup = function(options) {
if (options && options.insertionType && (options.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)) {
insertionType = options.insertionType;
}
if (options && options.insertionElement) {
insertionElement = options.insertionElement;
}
};
})(jQuery);

View File

@@ -1,86 +0,0 @@
/*
* jQuery gvChart plugin
* This plugin was created to simplify things when using Google Visualisation Charts.
* It still needs to be used with google script import tag, however now you can
* crate chart from your table.
* All examples you will find on http://www.ivellios.toron.pl/technikalia/demos/gvChart/
* @name jquery.gvChart-1.0.1.js
* @author Janusz Kamieński - http://www.ivellios.toron.pl/technikalia
* @version 1.0.1
* @date December 04, 2010
* @category jQuery plugin google charts
* @copyright (c) 2010 Janusz Kamieński (www.ivellios.toron.pl)
* @license CC Attribution Works 3.0 Poland - http://creativecommons.org/licenses/by/3.0/pl/deed.en_US
* @example Visit http://www.ivellios.toron.pl/technikalia/demos/gvChart/ for more informations about this jQuery plugin
*/
(function (jQuery){
jQuery.fn.gvChart = function(settings){
defaults={
hideTable: true,
chartType: 'AreaChart',
chartDivID: 'gvChartDiv',
gvSettings: null
};
var el = document.createElement('div');
jQuery(el).insertBefore(this);
gvChartCount++;
gvChartID = defaults.chartDivID+gvChartCount;
jQuery(el).attr('id',gvChartID);
jQuery(el).addClass('gvChart');
if(settings){
jQuery.extend(defaults,settings);
}
if(defaults.hideTable)
$(this).hide();
var data = new google.visualization.DataTable();
// add X label
data.addColumn('string','X labels');
var a = new Array();
var headers = $(this).find('thead').find('th');
var rows = $(this).find('tbody').find('tr');
rows.each(function(index){
data.addColumn('number',$(this).find('th').text());
});
data.addRows(headers.length-1);
headers.each(function(index){
if(index){
data.setCell(index-1, 0, $(this).text());
}
});
rows.each(function(index){
$(this).find('td').each(function(index2){
data.setCell(index2, index+1, parseFloat($(this).text()));
});
});
chartSettings = {
title : $(this).find('caption').text()
};
if(defaults.gvSettings){
jQuery.extend(chartSettings,defaults.gvSettings);
}
eval("var chart = new google.visualization."+defaults.chartType+"(document.getElementById('"+gvChartID+"'))");
chart.draw(data, chartSettings);
}
})(jQuery);
function gvChartInit(){
gvChartCount = 0;
google.load('visualization', '1', {packages: ['corechart']});
}

View File

@@ -1,138 +0,0 @@
(function ($) {
$.fn.nicoslider = function (options) {
var defaults = {
start: 0,
color: '#F6F2F1',
sliderHeight: false
};
var opts = $.extend({}, $.fn.nicoslider.defaults, defaults, options);
return this.each(function () {
new nicoslide(this, opts);
});
};
var nicoslide = function (slider, o) {
var $slider = $(slider);
$sliderWidth = $slider.parent().innerWidth();
$sliderCss = {
'width': $sliderWidth,
'background-color': o.color
};
$slider.css($sliderCss);
var ul = $slider.find("ul");
var ulWidth = 0;
var liHeight = 0;
$slider.find("li").each(function () {
ulWidth += $(this).width() + 5;
ulWidth += parseInt($(this).css("padding-left"));
ulWidth += parseInt($(this).css("padding-right"));
ulWidth += parseInt($(this).css("margin-left"));
ulWidth += parseInt($(this).css("margin-right"));
liHeight = Math.max(liHeight, $(this).outerHeight());
});
//5 % of slider width
$scrollWidth = Math.round(parseInt($sliderWidth) * parseFloat("0.05"));
//min 30 px;
if ($scrollWidth < 30) {
$scrollWidth = 30;
}
var $wrapperWidth = Math.round(parseInt($sliderWidth) - ( 2 * $scrollWidth ));
if (ulWidth > $wrapperWidth) {
ul.wrapAll("<div class='wrapper'></div>");
$wrapper = $slider.find(".wrapper");
$ulHeight = ul.height();
$wrapper.width($wrapperWidth);
$wrapper.height($ulHeight);
$wrapperCss = {
'overflow': 'hidden',
'float': 'left',
'position': 'relative'
};
$wrapper.css($wrapperCss);
ul.css('position', 'absolute');
ul.width(ulWidth);
$slider.prepend("<div class='scrollleft'></div>");
$slider.append("<div class='scrollright'></div>");
var rightScroll = $slider.find(".scrollright");
var leftScroll = $slider.find(".scrollleft");
rightScroll.append("<div class='rb'>&gt;</div>");
leftScroll.append("<div class='lb'>&lt;</div>");
$("div.rb").css('float', 'right');
rightCss = {
'width': $scrollWidth - ($wrapper.outerWidth(true) - $wrapper.innerWidth()),
'height': liHeight + 5,
'float': 'right',
'background-color': o.color,
'cursor': 'pointer',
' user-select': 'none'
};
leftCss = {
'width': $scrollWidth - ($wrapper.outerWidth(true) - $wrapper.innerWidth()),
'height': liHeight + 5,
'float': 'left',
'background-color': o.color,
'cursor': 'pointer',
' user-select': 'none'
};
leftScroll.css(leftCss);
rightScroll.css(rightCss);
var rightScrollWidth = rightScroll.width();
var leftScrollWidth = leftScroll.width();
var scrollXpos = 0;
var scrollStepSpeed = 40;
var speed = 8;
var shift = o.start;
//scroll a droite
rightScroll.bind("click", function (e) {
var x = e.pageX - ($(this).offset().left);
scrollXpos = Math.round((x / rightScrollWidth) * scrollStepSpeed);
shift += (scrollXpos * speed);
if (shift > (ulWidth - $wrapperWidth) + 50) {
shift = (ulWidth - $wrapperWidth) + 50;
}
ul.animate({
left: -shift
}, 1);
});
//scroll a gauche
leftScroll.bind("click", function (e) {
var x = $(this).innerWidth() - (e.pageX - $(this).offset().left);
scrollXpos = Math.round((x / leftScrollWidth) * scrollStepSpeed);
shift -= (scrollXpos * speed);
if (shift < 0) {
shift = 0;
}
ul.animate({
left: -shift
}, 1);
});
}
};
})(jQuery);

View File

@@ -1,75 +0,0 @@
// -----------------------------------------------------------------------
// Eros Fratini - eros@recoding.it
// jqprint 0.3
//
// - 19/06/2009 - some new implementations, added Opera support
// - 11/05/2009 - first sketch
//
// Printing plug-in for jQuery, evolution of jPrintArea: http://plugins.jquery.com/project/jPrintArea
// requires jQuery 1.3.x
//
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
//------------------------------------------------------------------------
(function($) {
var opt;
$.fn.jqprint = function (options) {
opt = $.extend({}, $.fn.jqprint.defaults, options);
var $element = (this instanceof jQuery) ? this : $(this), doc;
if (opt.operaSupport && $.browser.opera)
{
var tab = window.open("","jqPrint-preview");
tab.document.open();
doc = tab.document;
}
else
{
var $iframe = $("<iframe />");
if (!opt.debug) { $iframe.css({ position: "absolute", width: "0px", height: "0px", left: "-600px", top: "-600px" }); }
$iframe.appendTo("body");
doc = $iframe[0].contentWindow.document;
}
if (opt.importCSS)
{
if ($("link[media=print]").length > 0)
{
$("link[media=print]").each( function() {
doc.write("<link type='text/css' rel='stylesheet' href='" + $(this).attr("href") + "' media='print' />");
});
}
else
{
$("link").each( function() {
doc.write("<link type='text/css' rel='stylesheet' href='" + $(this).attr("href") + "' />");
});
}
}
if (opt.printContainer) { doc.write($element.outer()); }
else { $element.each( function() { doc.write($(this).html()); }); }
doc.close();
(opt.operaSupport && $.browser.opera ? tab : $iframe[0].contentWindow).focus();
setTimeout( function() { (opt.operaSupport && $.browser.opera ? tab : $iframe[0].contentWindow).print(); if (tab) { tab.close(); } }, 1000);
};
$.fn.jqprint.defaults = {
debug: false,
importCSS: true,
printContainer: true,
operaSupport: true
};
// Thanks to 9__, found at http://users.livejournal.com/9__/380664.html
jQuery.fn.outer = function() {
return $($('<div></div>').html(this.clone())).html();
};
})(jQuery);

File diff suppressed because it is too large Load Diff

View File

@@ -1,51 +0,0 @@
/* global */
#cluetip-close img {
border: 0;
}
#cluetip-title {
overflow: hidden;
}
#cluetip-title #cluetip-close {
float: right;
position: relative;
}
#cluetip-waitimage {
width: 43px;
height: 11px;
position: absolute;
background-image: url(images/wait.gif); //@TODO fix url
}
.cluetip-arrows {
display: none;
position: absolute;
top: 0;
left: -11px;
height: 22px;
width: 11px;
background-repeat: no-repeat;
background-position: 0 0;
}
#cluetip-extra {
display: none;
}
/* stupid IE6 HasLayout hack */
.cluetip-rounded #cluetip-title,
.cluetip-rounded #cluetip-inner {
zoom: 1;
}
#cluetip{
background-color: #333;
border: 1px solid #333;
}
#cluetip table{
border: 1px solid #333;
border-collapse:collapse;
}
#cluetip thead th, #cluetip tfoot{
background-color:white;
color:white;
}

View File

@@ -1,531 +0,0 @@
.clearLeft {
clear: left;
}
#chart_detail {
cursor: pointer;
}
.form_csv {
width: 15px;
height: 16px;
margin-left: 10px;
margin-left: 5px;
}
/*hack tout sauf ie 6-7-8*/
:root * > .form_csv {
margin-top: 6px;
}
.lt-ie9 .form_csv {
margin-top: -8px;
}
.lt-ie9 th {
height: 50px;
}
#query {
background: #555;
border: none;
color: #F3852B;
}
.form label {
display: inline-block;
vertical-align: baseline;
color: #FFF;
}
form.report_form input[type=text] {
width: 40px;
}
.form_csv input[name=submit] {
background: url('#{$reportImagesPath}csv.gif') top right no-repeat;
width: 15px;
height: 16px;
cursor: pointer;
border: 0;
}
.left {
float: left;
}
iframe {
border: none;
}
.columnjson_title {
color: #555555;
font-weight: bolder;
}
.report_form fieldset {
margin: 0;
padding: 0;
}
.curfilter {
font-size: 12px;
color: #333;
}
.curfilter em {
font-size: 16px;
color: #333;
}
.columnjson_link_box {
margin: 2px;
width: 100px;
float: left;
}
.columnjson_link {
color: black;
margin: 2px;
font-size: 10px;
text-decoration: none;
}
.no_results {
margin-top: 50px;
}
.horizontal-scroller {
position: relative;
top: 0;
left: 0;
}
#mainTabs {
border: none;
}
.answers {
background-color: $reportBackgroundColor;
}
.report-table tr.odd {
background-color: #CDCDCD;
}
.report-table tr.even {
background-color: #FFF;
}
.imgdash {
margin-bottom: 20px;
}
#holder {
height: 250px;
width: 800px;
}
#title_dash {
float: left;
font-size: 18px;
color: $reportBackgroundColor;
}
#periode_dash {
float: right;
font-size: 18px;
color: #FF9000;
font-weight: bolder;
}
#liste_dash {
clear: both;
width: 100%;
border-top: 2px solid #212121;
font-weight: lighter;
font-size: x-small;
font-style: italic;
padding-top: 10px;
padding-bottom: 10px;
color: white;
}
.report-table {
padding: 0 auto;
clear: both;
margin-bottom: 10px;
overflow: auto;
}
.report-table table {
border-collapse: collapse;
border-color: white;
font-family: "Trebuchet MS", "Lucida Sans Unicode", verdana, lucida, helvetica, sans-serif;
font-size: 0.8em;
margin: 0 auto;
width: 100%;
padding-top: 2px;
}
.orderby:hover {
cursor: pointer;
}
.report-table caption {
font-size: x-large;
font-weight: 900;
padding: 2px;
text-align: left;
background-color: $reportBackgroundColor;
color: #202020;
border-bottom: 1px solid #9C9B99;
border-top: 1px solid #9C9B99;
}
.report-table th {
border: 1px solid white;
text-align: center;
font-weight: bolder;
}
.report-table td {
border: 1px solid white;
vertical-align: 4px;
text-align: center;
color: #202020;
min-width: 50px;
width: auto;
white-space: nowrap;
}
.report-table thead th {
text-align: center;
font-weight: bolder;
font-size: small;
border-bottom: 3px solid $reportBackgroundColor;
border-top: 3px solid $reportBackgroundColor;
background-color: #FF9000;
min-width: 50px;
width: auto;
white-space: nowrap;
}
.report-table tfoot td {
background-color: #FF9000;
}
.report-table tbody a {
color: #333;
}
.report-table tbody a:hover {
color: white;
}
.report-table tr:hover {
background-color: #FF9000;
}
.report-table tbody td a {
padding-right: 12px;
}
.report-table tfoot {
background-color: FF9000;
border: 1px solid #505050;
}
#dash .answers {
background-color: #555555;
min-height: 400px;
}
.spacer {
clear: both;
}
div.left {
float: left;
padding-left: 10px;
}
div.right {
float: right;
padding-right: 10px;
}
.jqprint {
margin-left: 10px;
}
.config {
margin-left: 10px;
}
.center {
margin: 0 auto;
text-align: center;
}
table.center {
margin: 0 auto;
text-align: center;
}
.current_filter {
color: #708090;
width: 100%;
clear: left;
text-align: center;
font-size: 12px;
font-style: italic;
padding-left: 45px;
padding-right: 45px;
}
.floatleft {
float: left;
padding: 20px 5px 20px 5px;
}
.leftControl {
float: left;
margin-right: 5px;
margin-top: 10px;
cursor: pointer;
}
.rightControl {
float: left;
margin-left: 5px;
margin-top: 10px;
cursor: pointer;
}
#dashboard.loading {
background: url('#{$reportImagesPath}dash-ajax-loader.gif') #696969 no-repeat center center;
}
#dashboard-table table {
font: normal 76%/150% "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
border: none;
color: #000;
width: 400px;
}
#dashboard-table caption {
font-size: medium;
text-align: center;
font-weight: bolder;
color: #FF9000;
padding: 3px;
border-top: 1px solid white;
}
#dashboard-table table a {
color: #523A0B;
text-decoration: none;
border-bottom: 1px dotted;
}
#dashboard-table table a:visited {
color: #444;
font-weight: normal;
}
#dashboard-table table a:hover {
border-bottom-style: solid;
}
#dashboard-table thead th, thead td {
border-top: 5px solid #555555;
border-left: none;
border-bottom: none;
border-right: none;
background: #FF9000;
}
#dashboard-table thead th.grey {
background: #555555;
}
#dashboard-table tbody tr:hover td, tbody tr:hover th {
background-color: #FF9000;
}
#dashboard-table tbody th, td {
text-align: center;
vertical-align: top;
}
#dashboard-table tbody td {
background-color: white;
}
#dashboard-table tbody th {
font-weight: normal;
white-space: nowrap;
}
#dashboard-table tbody th a:link, tbody th a:visited {
font-weight: bold;
}
#dashboard-table tbody td, tbody th {
border: 1px solid #fff;
border-width: 1px 0;
}
#dashboard-table tfoot td {
color: white;
border-left: none;
border-right: none;
border-top: none;
}
#mainTabs fieldset {
width: 400px;
}
#title_dash {
font-weight: bold;
font-size: x-large;
}
#dashboard-table {
padding-top: 30px;
}
.form_titre {
padding: 10px 5px;
font-size: 15px;
text-align: left;
color: $reportBackgroundColor;
font-weight: bold;
// border-bottom: 1px solid #323232;
margin: 0;
}
/*
.form1 {
float: left;
width: 140px;
padding: 3px;
border-right: 1px groove #454545;
}
.form2 {
float: left;
width: 400px;
padding: 3px;
border-right: 1px groove #454545;
}
.form3 {
float: left;
width: 420px;
padding: 3px;
}
*/
input {
font-family: Verdana, sans-serif;
padding: 2px;
border: 1px solid #555555;
}
table.tablesorter tr th {
background-image: url('#{$sharedIconPath}bg.gif');
background-repeat: no-repeat;
background-position: center right;
cursor: pointer;
background-color: #777777
}
table.tablesorter tr th.SortUp {
background-image: url('#{$sharedIconPath}desc.gif');
}
table.tablesorter tr th.hover {
background-color: #376974;
}
table.tablesorter tr th.active {
background-color: #61bcd0;
}
table.tablesorter tr th.SortDown {
background-image: url('#{$sharedIconPath}asc.gif');
}
#mainContainer {
background-color: #212121;
}
#form {
height: 150px;
}
.answers {
overflow-y: auto;
overflow-x: hidden;
clear: left;
}
#form-container {
width: 1000px;
margin: 0 auto;
background-color: transparent;
}
#navigation {
background-color: transparent;
border: none;
border-bottom: 1px solid black;
margin-top: 10px;
}
.content {
// margin: -1px 45px;
}
.onload {
background-image: url('#{$sharedIconPath}ajax-loader.gif');
background-position: center center;
background-repeat: no-repeat;
}
.ui-tabs, .ui-tabs .ui-tabs-panel {
padding: 0;
}
.ui-widget-overlay {
opacity: 0.7;
filter: alpha(opacity=40);
}
.aroundTable {
width: 900px;
overflow: auto;
}
.imgdash {
table {
margin: auto;
margin-top: 15px;
margin-bottom: 15px;
width: 100%;
}
td, th {
border: 1px solid #bbb;
background: #ddd;
text-align: center;
border-radius: 0.5px;
}
caption {
font-weight: bold;
}
}

View File

@@ -1,264 +0,0 @@
$reportBackgroundColor: #FFFFFF; //#F6F2F1;
html {
overflow-y: scroll;
}
#form-container {
background-color: white;
}
#mainmenu {
display: none;
}
#mainContainer {
background-color: white;
}
thead img {
display: none;
}
thead a {
display: none;
}
form {
display: none;
}
ul {
display: none;
}
.ui-tabs-nav {
display: none;
}
.config {
display: none;
}
.jqprint {
display: none;
}
.noprint {
display: none;
}
.ui-state-default {
display: none;
}
.ui-tabs-hide {
display: none;
}
.report-table table {
border-collapse: collapse;
border-color: white;
font-family: "Trebuchet MS", "Lucida Sans Unicode", verdana, lucida, helvetica, sans-serif;
font-size: 0.8em;
margin: 10px auto;
width: 100%;
padding-top: 10px;
}
.report-table caption {
font-size: x-large;
font-weight: 900;
padding: 5px, 5px, 2px, 5px;
text-align: left;
background-color: $reportBackgroundColor;
/*color:#9C9B99;*/
color: #202020;
border-bottom: 1px solid #9C9B99;
border-top: 1px solid #9C9B99;
}
#dash .answers {
background-color: #555555;
}
.spacer {
clear: both;
}
p.left {
float: left;
padding-left: 10px;
}
p.right {
float: right;
padding-right: 10px;
}
.report-table th {
border: 1px solid black;
text-align: center;
font-weight: bolder;
padding: 0px;
}
.report-table td {
border: 1px solid black;
vertical-align: 4px;
text-align: center;
color: #202020;
}
.report-table thead th {
text-align: center;
background-color: #FF9000;
font-weight: bolder;
font-size: small;
color: #202020;
border-bottom: 3px solid black;
border-top: 3px solid black;
}
.report-table tfoot td {
background-color: #FF9000;
}
.report-table tbody tr:hover td, tbody tr:hover th {
/*background-color: #FF9000;*/
}
.report-table tr.odd td, tr.odd th {
background-color: #ddd;
}
.report-table tbody a {
color: #333;
}
.report-table tbody a:visited {
color: #999999;
}
.report-table tbody a:hover {
color: #FF9000;
}
.report-table tbody a:active {
color: #33c;
}
.report-table tbody td + td + td + td a {
padding-right: 12px;
}
.report-table tfoot th, tfoot td {
text-align: center;
color: #222;
}
.report-table tfoot {
background-color: FF9000;
border: 1px solid #505050;
}
.center {
margin: 0 auto;
text-align: center;
}
table .center {
margin: 0 auto;
text-align: center;
}
#dashboard-table table {
font: normal 76%/150% "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
border-collapse: separate;
border-spacing: 0;
margin: 0 0 1em;
color: #000;
}
#dashboard-table table a {
color: #523A0B;
text-decoration: none;
border-bottom: 1px dotted;
}
#dashboard-table table a:visited {
color: #444;
font-weight: normal;
}
#dashboard-table table a:visited:after {
content: "\00A0\221A";
}
#dashboard-table table a:hover {
border-bottom-style: solid;
}
#dashboard-table thead th, thead td, tfoot th, tfoot td {
border: 1px solid #523A0B;
border-width: 1px 0;
background: #EBE5D9;
}
#dashboard-table th {
font-weight: bold;
line-height: normal;
padding: 0.25em 0.5em;
text-align: left;
}
#dashboard-table tbody th, td {
padding: 0.25em 0.5em;
text-align: left;
vertical-align: top;
}
#dashboard-table tbody th {
font-weight: normal;
white-space: nowrap;
}
#dashboard-table tbody th a:link, tbody th a:visited {
font-weight: bold;
}
#dashboard-table tbody td, tbody th {
border: 1px solid #fff;
border-width: 1px 0;
}
#title_dash {
font-weight: bold;
font-size: x-large;
}
#liste_dash {
font-weight: lighter;
font-size: x-small;
font-style: italic;
padding-bottom: 50px;
}
.img-dash {
float: left;
padding: 5px;
}
#dashboard-table {
clear: both;
width: 400px;
padding-top: 50px;
}
.answers {
clear: left;
}
#mainContainer {
background-color: #FF9000;
}

View File

@@ -3,10 +3,8 @@ $sharedIconPath: '../../../assets/common/images/icons/';
@import '../../vendors/jquery-contextmenu/styles/jquery.contextmenu';
@import '../../_shared/styles/jquery-ui/dark-hive';
$reportBackgroundColor: #FFFFFF; //#F6F2F1;
$reportBackgroundColor: #212121; //#F6F2F1;
$reportImagesPath: '../images/';
@import './tables';
@import './jquery-cluetip';
@import './jquery-ui/report-detailed';
$mainMenuBackgroundColor: #3b3b3b;
@@ -14,12 +12,331 @@ $mainMenuBottomBorder: none;
$mainMenuLinkColor: #b1b1b1;
$mainMenuLinkHoverColor: #FFFFFF;
$mainMenuLinkActiveColor: #FFFFFF;
$select-color: #000;
$select-background: #FFFFFF;
$select-width: 330px;
$select-height: 26px;
// $mainMenuMarginBottom: 30px;
@import '../../_shared/styles/main-menu';
#mainTabs {
background-color: #212121;
/* Report layout */
#mainContent {
background-color: $reportBackgroundColor;
}
.report_wrapper {
padding-bottom: 24px;
#form-container {
width: 860px;
margin: 0 auto;
padding-top: 10px;
.report_heading {
font-size: 30px;
color: #fff;
padding: 5px 0;
}
#mainTabs {
background-color: #565656;
padding: 0;
border: 0 none;
#navigation {
padding: 0;
.navigation_tab {
width: 33.3333%;
margin: 0;
border: 0 none;
border-radius: 0;
overflow: hidden;
&:first-child a {
border-top-left-radius: 5px;
}
&:last-child a {
box-shadow: none;
border-top-right-radius: 6px;
}
a {
background: #565656;
font-size: 16px;
color: #cbcbcb;
text-align: center;
display: block;
float: none;
padding: 6px 16px;
box-shadow: inset -1px 0 0 #000;
&:hover {
background-color: #444444;
color: #f4f4f4;
}
&:focus {
outline: none !important;
}
}
}
.navigation_tab.ui-state-active {
z-index: 1;
a {
background: #bfbfbf;
color: #000;
box-shadow: 0 2px 4px 0 rgba(0,0,0,.5);
&:hover {
background-color: #bfbfbf;
color: #000;
}
}
}
}
.inside-container {
padding: 0;
form.form {
margin: 0;
}
.form_content.form2 .select-styled:after {
background-color: #666666;
}
.form_content {
position: relative;
padding: 16px 27px 10px;
.form_titre {
font-size: 22px;
padding-bottom: 20px;
}
.control-group {
display: inline-block;
margin-right: 24px;
margin-bottom: 6px;
label {
display: inline;
margin-right: 2px;
}
.input-prepend {
margin: 0;
.dmin, .dmax {
border: 0 none;
height: 16px;
border-radius: 0 6px 6px 0;
}
.add-on {
border: 0 none;
width: 16px;
height: 16px;
line-height: 16px;
border-radius: 6px 0 0 6px;
background: #727272 url('/assets/common/images/icons/calendar-white.png') no-repeat center/16px;
}
.add-on.disabled_image {
background-image: url('/assets/common/images/icons/calendar-grey.png');
background-color: #d8d8d8;
}
}
}
.collist {
.collist_buttons {
position: absolute;
right: 60px;
top: 20px;
button {
background: #3f3f3f;
border: 0 none;
color: #fff;
text-shadow: none;
height: 22px;
border-radius: 12px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
min-width: 94px;
margin-left: 26px;
font-size: 11px;
font-weight: 500;
padding: 0 10px;
&:hover {
background: #ddd;
color: #000;
}
&:focus {
outline: none;
}
}
}
ul {
margin: 0;
li {
display: table;
}
}
.custom_checkbox_label {
position: relative;
margin-bottom: 0;
padding-bottom: 3px;
&:last-child {
padding-bottom: 0;
}
input {
opacity: 0;
cursor: pointer;
}
.custom_checkbox {
position: absolute;
top: 5px;
left: 0;
height: 11px;
width: 11px;
background: transparent url('/assets/common/images/icons/unchecked.png') no-repeat;
}
input:checked ~ .custom_checkbox {
background-image: url('/assets/common/images/icons/checked.png')
}
}
}
// custom select
.select-hidden {
display: none;
visibility: hidden;
padding-right: 10px;
}
.custom_select {
cursor: pointer;
display: inline-block;
position: relative;
font-size: 16px;
color: $select-color;
width: $select-width;
height: $select-height;
}
.select-styled {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
font-size: 14px;
line-height: 16px;
padding: 5px 10px;
background-color: $select-background;
border-radius: 5px;
transition: all 0.2s ease-in;
&:after {
content:"";
width: 26px;
height: 26px;
position: absolute;
top: 0;
right: -2px;
background: #404040 url(/assets/common/images/icons/double-arrow-white.png) no-repeat center/9px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
&:hover {
background-color: darken($select-background, 2);
}
&:active, &.active {
background-color: darken($select-background, 5);
}
}
.select-options {
display: none;
position: absolute;
top: 12px;
right: -12px;
left: 12px;
z-index: 9;
margin: 0;
padding: 0;
list-style: none;
background-color: darken($select-background, 5);
border-radius: 5px;
opacity: .93;
overflow: hidden;
li {
margin: 0;
line-height: 26px;
text-indent: 15px;
font-size: 14px;
border-top: 1px solid darken($select-background, 10);
transition: all 0.15s ease-in;
&:first-child {
border: 0 none;
}
&:hover {
color: $select-background;
background: #5b5b5b;
}
&[rel="hide"] {
display: none;
}
}
}
// custom select end
}
.form_content.form1 {
background-color: #343434;
}
.form_submit {
position: relative;
height: 90px;
background-color: #b5b5b5;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
button {
position: relative;
top: 50%;
left: 50%;
font-size: 15px;
color: #fff;
padding: 5px 62px;
display: block;
background-color: #4f4f4f;
border: 0 none;
border-radius: 15px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
&:hover {
background-color: #2c2c2c;
}
}
button.disabled {
background: #656565;
cursor: default;
&:hover {
background: #656565;
}
}
}
}
#report-connections {
.form2 {
background-color: #414141;
}
.form3 {
background-color: #6b6b6b;
}
}
#report-downloads {
.form_content:nth-child(2) {
background-color: #414141;
}
.form_content:nth-child(3) {
background-color: #4f4f4f;
}
.form3 {
background-color: #6b6b6b;
}
}
#report-records {
.form_content:nth-child(3) {
background-color: #4f4f4f;
}
.form_content:nth-child(2) {
background-color: #414141;
}
.form3 {
background-color: #5c5c5c;
}
}
}
}
}
#report-activite,