mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
fix main menu colors, fix facets display on IE8
This commit is contained in:
@@ -4,9 +4,8 @@ $mainMenuLineHeight: 36px !default;
|
|||||||
$mainMenuBackgroundColor: #fceb3f !default;
|
$mainMenuBackgroundColor: #fceb3f !default;
|
||||||
$mainMenuLinkColor: #000000 !default;
|
$mainMenuLinkColor: #000000 !default;
|
||||||
$mainMenuLinkHoverColor: #fffbcd !default;
|
$mainMenuLinkHoverColor: #fffbcd !default;
|
||||||
$mainMenuLinkActiveColor: #000000 !default;
|
$mainMenuLinkActiveColor: #FFFFFF !default;
|
||||||
|
$mainMenuLinkBackgroundHoverColor: transparent !default;
|
||||||
$mainMenuLinkBackgroundHoverColor: #FFFFFF !default;
|
|
||||||
$mainMenuLinkHoverColor: #000000 !default;
|
$mainMenuLinkHoverColor: #000000 !default;
|
||||||
$mainMenuMarginBottom: 0 !default;
|
$mainMenuMarginBottom: 0 !default;
|
||||||
$mainMenuBottomBorder: none !default;
|
$mainMenuBottomBorder: none !default;
|
||||||
@@ -27,7 +26,7 @@ $mainMenuBottomBorder: none !default;
|
|||||||
}
|
}
|
||||||
#mainLogo {
|
#mainLogo {
|
||||||
margin:0 10px;
|
margin:0 10px;
|
||||||
margin-top: 5px;
|
margin-top: 3px;
|
||||||
|
|
||||||
}
|
}
|
||||||
li {
|
li {
|
||||||
@@ -50,7 +49,7 @@ $mainMenuBottomBorder: none !default;
|
|||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
height: $mainMenuHeight - 3;
|
height: $mainMenuHeight - 3;
|
||||||
&.selected {
|
&.selected {
|
||||||
border-top: 3px solid white;
|
border-top: 3px solid $mainMenuLinkActiveColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@@ -113,14 +113,17 @@ div.finder div.content div.title {
|
|||||||
|
|
||||||
|
|
||||||
$mainMenuBackgroundColor: #fceb3f;
|
$mainMenuBackgroundColor: #fceb3f;
|
||||||
$mainMenuLinkColor: #000000;
|
$mainMenuLinkColor: #333333;
|
||||||
$mainMenuLinkHoverColor: #fffbcd;
|
$mainMenuLinkHoverColor: #000000;
|
||||||
$mainMenuLinkActiveColor: #000000;
|
$mainMenuLinkActiveColor: #000000;
|
||||||
|
$mainMenuLinkBackgroundHoverColor: transparent;
|
||||||
|
|
||||||
@import '../../_shared/styles/main-menu';
|
@import '../../_shared/styles/main-menu';
|
||||||
|
|
||||||
#mainContent {
|
#mainContent {
|
||||||
margin-top: $mainMenuHeight;
|
margin-top: $mainMenuHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******* LEFT SIDE ************************************************************/
|
/******* LEFT SIDE ************************************************************/
|
||||||
#left {
|
#left {
|
||||||
background-color: #fffbcd;
|
background-color: #fffbcd;
|
||||||
|
@@ -623,8 +623,11 @@
|
|||||||
|
|
||||||
// hide helper and restore added classes and the title
|
// hide helper and restore added classes and the title
|
||||||
function hide(event) {
|
function hide(event) {
|
||||||
|
var isBrowsable = false;
|
||||||
if( $.tooltip.currentHover && settings($.tooltip.current).isBrowsable ) {
|
if( $.tooltip.current !== null ) {
|
||||||
|
isBrowsable = settings($.tooltip.current).isBrowsable;
|
||||||
|
}
|
||||||
|
if( $.tooltip.currentHover && isBrowsable ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -636,16 +636,17 @@ function loadFacets(facets) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sortByPredefinedFacets(source, field, predefinedFieldOrder) {
|
function sortByPredefinedFacets(source, field, predefinedFieldOrder) {
|
||||||
var filteredSource = source,
|
var filteredSource = _.extend([], source),
|
||||||
ordered = [];
|
ordered = [];
|
||||||
|
|
||||||
_.forEach(predefinedFieldOrder, function(fieldValue, index){
|
_.forEach(predefinedFieldOrder, function(fieldValue, index){
|
||||||
_.forEach(source, function(facet, facetIndex) {
|
_.forEach(source, function(facet, facetIndex) {
|
||||||
|
if( facet[field] !== undefined) {
|
||||||
if (facet[field] === fieldValue) {
|
if (facet[field] === fieldValue) {
|
||||||
ordered.push(facet);
|
ordered.push(facet);
|
||||||
// remove from filtered
|
// remove from filtered
|
||||||
filteredSource.splice(facetIndex, 1);
|
filteredSource.splice(facetIndex, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -6,10 +6,7 @@ $mainMenuBottomBorder: none;
|
|||||||
$mainMenuMarginBottom: 0;
|
$mainMenuMarginBottom: 0;
|
||||||
|
|
||||||
$mainMenuLinkColor: $mainMenuLinkColor;
|
$mainMenuLinkColor: $mainMenuLinkColor;
|
||||||
$mainMenuLinkBackgroundHoverColor: $bgInverseHoverColor;
|
$mainMenuLinkBackgroundHoverColor: transparent; //$bgInverseHoverColor;
|
||||||
$mainMenuLinkHoverColor: $textInverseHoverColor;
|
$mainMenuLinkHoverColor: $textPrimaryHoverColor;
|
||||||
|
|
||||||
// already defined $mainMenuLinkColor: #212121;
|
|
||||||
//$mainMenuLinkHoverColor: #BFBFBF;
|
|
||||||
//$mainMenuLinkActiveColor: #BFBFBF;
|
|
||||||
@import '../../../_shared/styles/main-menu';
|
@import '../../../_shared/styles/main-menu';
|
||||||
|
@@ -778,9 +778,10 @@
|
|||||||
}, function(data){
|
}, function(data){
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
if ($.browser.msie && $.browser.version === "6.0")
|
if (( navigator.userAgent.match(/msie/i) && navigator.userAgent.match(/6/) )) {
|
||||||
$("select").hide().show();
|
$("select").hide().show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" id="bitly_loader"></script>
|
<script type="text/javascript" id="bitly_loader"></script>
|
||||||
|
Reference in New Issue
Block a user