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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
dc15440b
Commit
dc15440b
authored
Nov 17, 2017
by
Filipa Lacerda
Committed by
Phil Hughes
Nov 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dropdowns documentation
parent
c07c6a5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
doc/development/fe_guide/dropdowns.md
doc/development/fe_guide/dropdowns.md
+38
-0
doc/development/fe_guide/index.md
doc/development/fe_guide/index.md
+2
-0
No files found.
doc/development/fe_guide/dropdowns.md
0 → 100644
View file @
dc15440b
# Dropdowns
## How to style a bootstrap dropdown
1.
Use the HTML structure provided by the
[
docs
][
bootstrap-dropdowns
]
1.
Add a specific class to the top level
`.dropdown`
element
```
Haml
.dropdown.my-dropdown
%button{ type: 'button', data: { toggle: 'dropdown' }, 'aria-haspopup': true, 'aria-expanded': false }
%span.dropdown-toggle-text
Toggle Dropdown
= icon('chevron-down')
%ul.dropdown-menu
%li
%a
item!
```
Or use the helpers
```Haml
.dropdown.my-dropdown
= dropdown_toggle('Toogle!', { toggle: 'dropdown' })
= dropdown_content
%li
%a
item!
```
1.
Include the mixin in CSS
```SCSS
@include new-style-dropdown('.my-dropdown ');
```
[
bootstrap-dropdowns
]:
https://getbootstrap.com/docs/3.3/javascript/#dropdowns
doc/development/fe_guide/index.md
View file @
dc15440b
...
@@ -77,6 +77,8 @@ Vue resource specific practices and gotchas.
...
@@ -77,6 +77,8 @@ Vue resource specific practices and gotchas.
## [Icons](icons.md)
## [Icons](icons.md)
How we use SVG for our Icons.
How we use SVG for our Icons.
## [Dropdowns](dropdowns.md)
How we use dropdowns.
---
---
## Style Guides
## Style Guides
...
...
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