mirror of https://github.com/freeCodeCamp/devdocs
parent
56491bb8cd
commit
a72778e9f4
@ -1,15 +0,0 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.YiiPage extends app.views.BasePage
|
||||
@events:
|
||||
click: 'onClick'
|
||||
|
||||
onClick: (event) ->
|
||||
return unless event.target.classList.contains 'show'
|
||||
$.stopEvent(event)
|
||||
|
||||
source = $ '.code', event.target.parentNode.parentNode
|
||||
isShown = source.style.display is 'block'
|
||||
|
||||
source.style.display = if isShown then 'none' else 'block'
|
||||
event.target.textContent = if isShown then 'show' else 'hide'
|
@ -1,24 +1,14 @@
|
||||
._yii {
|
||||
h2 { @extend %block-heading; }
|
||||
> h3 { @extend %block-label, %label-blue; }
|
||||
h3 { @extend %block-label, %label-blue; }
|
||||
h4 { font-size: 1em; }
|
||||
|
||||
.paramNameCol { font-weight: bold; }
|
||||
.signature2 { margin: .4em 0; }
|
||||
.sourceCode { margin-bottom: 1em; }
|
||||
.sourceCode > .code { display: none; }
|
||||
blockquote { @extend %note; }
|
||||
|
||||
.SeeAlso {
|
||||
> h4 {
|
||||
margin-bottom: 1em;
|
||||
font-size: inherit;
|
||||
.detail-header-tag, .detailHeaderTag {
|
||||
float: right;
|
||||
color: $textColorLight;
|
||||
}
|
||||
|
||||
> ul { margin-top: 0; }
|
||||
}
|
||||
|
||||
.summaryTable td:first-child[rowspan] {
|
||||
border-right: 1px solid $boxBorderLight;
|
||||
|
||||
+ td { border-left: 0; }
|
||||
}
|
||||
.param-type-col { white-space: nowrap; }
|
||||
}
|
||||
|
Loading…
Reference in new issue