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 {
|
._yii {
|
||||||
h2 { @extend %block-heading; }
|
h2 { @extend %block-heading; }
|
||||||
> h3 { @extend %block-label, %label-blue; }
|
h3 { @extend %block-label, %label-blue; }
|
||||||
|
h4 { font-size: 1em; }
|
||||||
|
|
||||||
.paramNameCol { font-weight: bold; }
|
blockquote { @extend %note; }
|
||||||
.signature2 { margin: .4em 0; }
|
|
||||||
.sourceCode { margin-bottom: 1em; }
|
|
||||||
.sourceCode > .code { display: none; }
|
|
||||||
|
|
||||||
.SeeAlso {
|
.detail-header-tag, .detailHeaderTag {
|
||||||
> h4 {
|
float: right;
|
||||||
margin-bottom: 1em;
|
color: $textColorLight;
|
||||||
font-size: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
> ul { margin-top: 0; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.summaryTable td:first-child[rowspan] {
|
.param-type-col { white-space: nowrap; }
|
||||||
border-right: 1px solid $boxBorderLight;
|
|
||||||
|
|
||||||
+ td { border-left: 0; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue