Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
a048c955
Commit
a048c955
authored
Oct 29, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add JS behaviors
parent
a5838524
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
app/assets/javascripts/behaviours/details_behavior.coffee
app/assets/javascripts/behaviours/details_behavior.coffee
+5
-0
app/assets/javascripts/behaviours/toggler_behaviour.coffee
app/assets/javascripts/behaviours/toggler_behaviour.coffee
+5
-0
app/assets/stylesheets/behaviors.scss
app/assets/stylesheets/behaviors.scss
+14
-0
app/assets/stylesheets/main.scss
app/assets/stylesheets/main.scss
+5
-0
No files found.
app/assets/javascripts/behaviours/details_behavior.coffee
0 → 100644
View file @
a048c955
$
->
$
(
"body"
).
on
"click"
,
".js-details-target"
,
->
container
=
$
(
@
).
closest
".js-details-container"
container
.
toggleClass
"open"
app/assets/javascripts/behaviours/toggler_behaviour.coffee
0 → 100644
View file @
a048c955
$
->
$
(
"body"
).
on
"click"
,
".js-toggler-target"
,
->
container
=
$
(
@
).
closest
".js-toggler-container"
container
.
toggleClass
"on"
app/assets/stylesheets/behaviors.scss
0 → 100644
View file @
a048c955
// Details
//--------
.js-details-container
.content
{
display
:
none
;
}
.js-details-container
.content.hide
{
display
:
block
;
}
.js-details-container.open
.content
{
display
:
block
;
}
.js-details-container.open
.content.hide
{
display
:
none
;
}
// Toggler
//--------
.js-toggler-container
.turn-on
{
display
:
inline-block
;
}
.js-toggler-container
.turn-off
{
display
:
none
;
}
.js-toggler-container.on
.turn-on
{
display
:
none
;
}
.js-toggler-container.on
.turn-off
{
display
:
inline-block
;
}
app/assets/stylesheets/main.scss
View file @
a048c955
...
...
@@ -83,6 +83,11 @@ $baseLineHeight: 18px !default;
*/
@import
"common.scss"
;
/**
* Styles necessary to support JS behaviours.
*/
@import
"behaviors.scss"
;
/**
* Styles related to specific part of app
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment