Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
78d16712
Commit
78d16712
authored
7 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Move button styleguide material to a component
parent
44b8f97d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/app/templates/components/freestyle/sg-buttons.hbs
+54
-0
ui/app/templates/components/freestyle/sg-buttons.hbs
with
54 additions
and
0 deletions
+54
-0
ui/app/templates/components/freestyle/sg-buttons.hbs
0 → 100644
+
54
-
0
View file @
78d16712
{{#
freestyle-collection
defaultKey
=
"standard"
as
|
collection
|
}}
{{#
collection
.
variant
key
=
"standard"
}}
{{#
freestyle-usage
'buttons-standard'
title
=
'Standard Buttons'
}}
<div
class=
"block"
>
<a
class=
"button"
>
Button
</a>
<a
class=
"button is-white"
>
White
</a>
<a
class=
"button is-light"
>
Light
</a>
<a
class=
"button is-dark"
>
Dark
</a>
<a
class=
"button is-black"
>
Black
</a>
<a
class=
"button is-link"
>
Link
</a>
</div>
<div
class=
"block"
>
<a
class=
"button is-primary"
>
Primary
</a>
<a
class=
"button is-info"
>
Info
</a>
<a
class=
"button is-success"
>
Success
</a>
<a
class=
"button is-warning"
>
Warning
</a>
<a
class=
"button is-danger"
>
Danger
</a>
</div>
{{/
freestyle-usage
}}
{{/
collection
.
variant
}}
{{#
collection
.
variant
key
=
"outlines"
}}
{{#
freestyle-usage
'buttons-outlines'
title
=
'Outline Buttons'
}}
<div
class=
"block"
>
<a
class=
"button is-outlined"
>
Outlined
</a>
<a
class=
"button is-primary is-outlined"
>
Primary
</a>
<a
class=
"button is-info is-outlined"
>
Info
</a>
<a
class=
"button is-success is-outlined"
>
Success
</a>
<a
class=
"button is-warning is-outlined"
>
Warning
</a>
<a
class=
"button is-danger is-outlined is-important"
>
Danger
</a>
</div>
{{/
freestyle-usage
}}
{{/
collection
.
variant
}}
{{#
collection
.
variant
key
=
"hollow"
}}
{{#
freestyle-usage
'buttons-hollow'
title
=
'Hollow Buttons'
}}
<div
class=
"block"
style=
"background:#25BA81; padding:30px"
>
<a
class=
"button is-primary is-inverted is-outlined"
>
Primary
</a>
<a
class=
"button is-info is-inverted is-outlined"
>
Info
</a>
<a
class=
"button is-success is-inverted is-outlined"
>
Success
</a>
<a
class=
"button is-warning is-inverted is-outlined"
>
Warning
</a>
<a
class=
"button is-danger is-inverted is-outlined"
>
Danger
</a>
</div>
{{/
freestyle-usage
}}
{{/
collection
.
variant
}}
{{#
collection
.
variant
key
=
"sizing"
}}
{{#
freestyle-usage
'buttons-sizing'
title
=
'Button Sizes'
}}
<div
class=
"block"
>
<a
class=
"button is-small"
>
Small
</a>
<a
class=
"button"
>
Normal
</a>
<a
class=
"button is-medium"
>
Medium
</a>
<a
class=
"button is-large"
>
Large
</a>
</div>
{{/
freestyle-usage
}}
{{/
collection
.
variant
}}
{{/
freestyle-collection
}}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help