BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
de62d3b4
Commit
de62d3b4
authored
Apr 16, 2017
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand/collapse button -> Change to make it look like a toggle
Changed the expand/collapse button to look different when is opened/closed
parent
ae52d1a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
toggler_behavior.js
app/assets/javascripts/behaviors/toggler_behavior.js
+1
-0
commits.scss
app/assets/stylesheets/pages/commits.scss
+6
-1
28575-expand-collapse-look.yml
changelogs/unreleased/28575-expand-collapse-look.yml
+4
-0
No files found.
app/assets/javascripts/behaviors/toggler_behavior.js
View file @
de62d3b4
...
...
@@ -22,6 +22,7 @@ $(() => {
}
$
(
'body'
).
on
(
'click'
,
'.js-toggle-button'
,
function
toggleButton
(
e
)
{
e
.
target
.
classList
.
toggle
(
'open'
);
toggleContainer
(
$
(
this
).
closest
(
'.js-toggle-container'
));
const
targetTag
=
e
.
currentTarget
.
tagName
.
toLowerCase
();
...
...
app/assets/stylesheets/pages/commits.scss
View file @
de62d3b4
...
...
@@ -135,7 +135,7 @@
.text-expander
{
display
:
inline-block
;
background
:
$
gray
-light
;
background
:
$
white
-light
;
color
:
$gl-text-color-secondary
;
padding
:
0
5px
;
cursor
:
pointer
;
...
...
@@ -146,6 +146,11 @@
line-height
:
$gl-font-size
;
outline
:
none
;
&
.open
{
background
:
$gray-light
;
box-shadow
:
inset
0
0
2px
rgba
(
$black
,
0
.2
);
}
&
:hover
{
background-color
:
darken
(
$gray-light
,
10%
);
text-decoration
:
none
;
...
...
changelogs/unreleased/28575-expand-collapse-look.yml
0 → 100644
View file @
de62d3b4
---
title
:
Expand/collapse button -> Change to make it look like a toggle
merge_request
:
10720
author
:
Jacopo Beschi @jacopo-beschi
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