Resolved issue #2: Spoilers
This commit is contained in:
parent
bbc4d07336
commit
5e3cb744f8
|
@ -32,3 +32,37 @@ ol.classic {
|
|||
.ls-nav--userbar > .ls-nav-item > a > img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/** Спойлер
|
||||
* Modified by fedorov mich // 2014 // bSpoiler LS 1.0
|
||||
**/
|
||||
.spoiler-title {
|
||||
color: #6da3bd;
|
||||
border-bottom: 1px dashed;
|
||||
font-weight: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.spoiler-title:hover {
|
||||
color: #4d7285;
|
||||
}
|
||||
.spoiler-body {
|
||||
display: none;
|
||||
padding: 10px;
|
||||
border: 1px solid #eee;
|
||||
background: #f9f9f9;
|
||||
margin-top: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.spoiler-title:before {
|
||||
float: left;
|
||||
content: " ";
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-top: 2px;
|
||||
display: block;
|
||||
border: 0px solid red;
|
||||
background: url(../images/spoiler.icon.png) no-repeat left top;
|
||||
}
|
||||
.spoiler-title.open:before {
|
||||
background: url(../images/spoiler.icon.png) no-repeat left bottom;
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1022 B |
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* Инициализации модулей
|
||||
*
|
||||
* @license GNU General Public License, version 2
|
||||
* @author Alexander Yakovlev <keloero@oreolek.ru>
|
||||
*/
|
||||
|
||||
jQuery(document).ready(function($){
|
||||
$('.spoiler-title').on('click touchstart', function(){
|
||||
$(this).toggleClass('open');
|
||||
$(this).parent().children('div.spoiler-body').toggle('normal');
|
||||
return false;
|
||||
});
|
||||
});
|
|
@ -22,7 +22,8 @@ $config['view']['layout_show_banner'] = false;
|
|||
|
||||
// Подключение скриптов шаблона
|
||||
$config['head']['template']['js'] = array(
|
||||
'___path.skin.assets.web___/js/init.js'
|
||||
'___path.skin.assets.web___/js/init.js',
|
||||
'___path.skin.assets.web___/js/ifhub.js',
|
||||
);
|
||||
|
||||
// Подключение стилей шаблона
|
||||
|
|
Loading…
Reference in New Issue