mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 18:26:13 +00:00
Simplify javascript code for expanding lists and blocks
Move styles to CSS stylesheets by using a class Use a single function for all expanding boxes and lists Separate CSS code for IE8 compatibility
This commit is contained in:
parent
e7c9164b7d
commit
b27bcaf626
4 changed files with 144 additions and 107 deletions
82
_less/ie8.less
Normal file
82
_less/ie8.less
Normal file
|
@ -0,0 +1,82 @@
|
|||
/*
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
*/
|
||||
|
||||
.wallets>div{
|
||||
display:none;
|
||||
}
|
||||
.wallets>div:first-child,
|
||||
.wallets>div:first-child+div,
|
||||
.wallets>div:first-child+div+div,
|
||||
.wallets>div:first-child+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div{
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.wallets>div:first-child+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div>span{
|
||||
top:-222px;
|
||||
}
|
||||
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div>div,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div>span,
|
||||
.wallets>div:first-child+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div+div>span{
|
||||
top:-92px;
|
||||
}
|
||||
|
||||
.press-quotes p{
|
||||
display:none;
|
||||
}
|
||||
.press-quotes p:first-child,
|
||||
.press-quotes p:first-child+p,
|
||||
.press-quotes p:first-child+p+p,
|
||||
.press-quotes p:first-child+p+p+p,
|
||||
.press-quotes p:first-child+p+p+p+p,
|
||||
.press-quotes p:first-child+p+p+p+p+p,
|
||||
.press-quotes p:first-child+p+p+p+p+p+p,
|
||||
.press-quotes p:first-child+p+p+p+p+p+p+p{
|
||||
display:inline-block;
|
||||
}
|
||||
.press-quotes.expanded p{
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.devprojectlist li{
|
||||
display:none;
|
||||
}
|
||||
.devprojectlist li:first-child,
|
||||
.devprojectlist li:first-child+li,
|
||||
.devprojectlist li:first-child+li+li,
|
||||
.devprojectlist li:first-child+li+li+li{
|
||||
display:list-item;
|
||||
}
|
||||
.devprojectlist.expanded li{
|
||||
display:list-item;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue