1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-02-07 02:45:56 +00:00

webui: Renamed themes dir to ui

- Eliminated intermediate bootstrap dir
This commit is contained in:
James Hillyerd
2018-03-25 11:21:53 -07:00
parent 0d6936d1b3
commit b50c926745
660 changed files with 5 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
define( function() {
return [ "Top", "Right", "Bottom", "Left" ];
} );

View File

@@ -0,0 +1,15 @@
define( function() {
return function( elem ) {
// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
// IE throws on elements created in popups
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
var view = elem.ownerDocument.defaultView;
if ( !view || !view.opener ) {
view = window;
}
return view.getComputedStyle( elem );
};
} );

View File

@@ -0,0 +1,16 @@
define( [
"../../core",
"../../selector"
// css is assumed
], function( jQuery ) {
return function( elem, el ) {
// isHidden might be called from jQuery#filter function;
// in that case, element will be second argument
elem = el || elem;
return jQuery.css( elem, "display" ) === "none" ||
!jQuery.contains( elem.ownerDocument, elem );
};
} );

View File

@@ -0,0 +1,3 @@
define( function() {
return ( /^margin/ );
} );

View File

@@ -0,0 +1,5 @@
define( [
"../../var/pnum"
], function( pnum ) {
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
} );

View File

@@ -0,0 +1,24 @@
define( function() {
// A method for quickly swapping in/out CSS properties to get correct calculations.
return function( elem, options, callback, args ) {
var ret, name,
old = {};
// Remember the old values, and insert the new ones
for ( name in options ) {
old[ name ] = elem.style[ name ];
elem.style[ name ] = options[ name ];
}
ret = callback.apply( elem, args || [] );
// Revert the old values
for ( name in options ) {
elem.style[ name ] = old[ name ];
}
return ret;
};
} );