Commit 390660d3 authored by Kjetil Thuen's avatar Kjetil Thuen

Move styling out of plugin

parent 365ecd7e
...@@ -25,12 +25,17 @@ ...@@ -25,12 +25,17 @@
color: #eee; color: #eee;
} }
/* /*
#listPeekTargetArea and #listPeakRevealArea are the default ids for #listPeekTargetArea and #listPeakRevealArea are the default ids for
the target and info divs. If needed, you can pass other ids in the the target and info divs. If needed, you can pass other ids in the
parameter object parameter object
*/ */
#listSightScope { #listSightScope {
width: 100%;
left: 0;
min-height: 1em;
z-index: -2;
padding: 0px;
background-color: rgba(0,0,0,1); background-color: rgba(0,0,0,1);
} }
...@@ -40,6 +45,10 @@ ...@@ -40,6 +45,10 @@
color: white; color: white;
margin-bottom: 0.5em; margin-bottom: 0.5em;
overflow: auto; overflow: auto;
width: 70%;
left: 15%;
z-index: 2;
max-height: 70%;
} }
</style> </style>
<script src="lib/jquery/jquery.js"></script> <script src="lib/jquery/jquery.js"></script>
...@@ -216,7 +225,7 @@ ...@@ -216,7 +225,7 @@
// Apply the plugin and pass it the callback to be called for selected elements // Apply the plugin and pass it the callback to be called for selected elements
$('#philosopherList').listEntryInfo({ $('#philosopherList').listEntryInfo({
extendedInfoFunc: display_philosopher_article, extendedInfoFunc: display_philosopher_article,
rememberLastSelected: true rememberLastSelected: false
}); });
}); });
} }
......
...@@ -221,11 +221,6 @@ ...@@ -221,11 +221,6 @@
} }
$('<div></div>').attr('id', settings.sightScopeId).css({ $('<div></div>').attr('id', settings.sightScopeId).css({
width: '100%',
left: 0,
'min-height': '1em',
'z-index': '-2',
padding: '0px',
position: 'fixed', position: 'fixed',
top: settings.minTopDistance + "px", top: settings.minTopDistance + "px",
display: 'none', display: 'none',
...@@ -234,11 +229,7 @@ ...@@ -234,11 +229,7 @@
if ($("#" + settings.itemInfoDivId).length === 0) { if ($("#" + settings.itemInfoDivId).length === 0) {
$('<div></div>').attr('id', settings.itemInfoDivId).css({ $('<div></div>').attr('id', settings.itemInfoDivId).css({
position: 'fixed', position: 'fixed',
width: '70%',
left: '15%',
'z-index': 2,
display: 'none', display: 'none',
'max-height': '70%',
top: settings.minTopDistance + $('#' + settings.sightScopeId).height() + "px", top: settings.minTopDistance + $('#' + settings.sightScopeId).height() + "px",
}).insertAfter(peekedList); }).insertAfter(peekedList);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment