Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Design System.SH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ITVSH
Design System.SH
Commits
ba7a7d11
Commit
ba7a7d11
authored
4 years ago
by
Christopher Krawietz
Browse files
Options
Downloads
Patches
Plain Diff
added vanilla config settings for demo file
parent
ac4915dd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/.vuepress/config.js
+2
-1
2 additions, 1 deletion
src/.vuepress/config.js
src/components/buttons.md
+69
-18
69 additions, 18 deletions
src/components/buttons.md
with
71 additions
and
19 deletions
src/.vuepress/config.js
+
2
−
1
View file @
ba7a7d11
...
...
@@ -28,6 +28,7 @@ module.exports = {
],
[
'
meta
'
,
{
name
:
'
msapplication-TileColor
'
,
content
:
'
#000000
'
}],
[
'
script
'
,
{
src
:
'
https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js
'
}],
[
'
script
'
,
{
src
:
'
https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js
'
}],
],
module
:
{
rules
:
[
...
...
@@ -136,7 +137,7 @@ module.exports = {
search
:
true
,
smoothScroll
:
true
,
navbar
:
false
,
displayAllHeaders
:
tru
e
,
displayAllHeaders
:
fals
e
,
sidebar
:
{
'
/components/
'
:
[
''
,
'
links
'
,
'
buttons
'
,
'
grids
'
],
},
...
...
This diff is collapsed.
Click to expand it.
src/components/buttons.md
+
69
−
18
View file @
ba7a7d11
...
...
@@ -2,7 +2,7 @@
title
:
Buttons
tagline
:
Buttons
---
#
Verlinkungen
#
Buttons
## Wann soll diese *Komponente* verwendet werden.
...
...
@@ -18,26 +18,77 @@ Lorem markdownum acernae: rorat et fessa spesque stivave sustinuere feres
convertit has Iovem corpora patulosque frons viribus, criminis. Tempore sit in
solito. Animum iras, intremuere ficto servat nec Pergama tot sit.
::: demo
::: demo
[vanilla]
```
html
<template>
<div
class=
"box-vue"
>
<button
@
click=
"plus"
>
+
</button>
<button
@
click=
"minus"
>
-
</button>
{{ number }}
<html>
<div
id=
"vanilla-box"
></div>
<div
class=
"Base-theme--light u-marginBottom--1"
>
<h5
class=
"Base-h5"
>
Theme: Light
</h5>
<button
class=
"Base-button"
title=
"Das ist ein button"
type=
"button"
>
Das ist ein button
</button>
<button
class=
"Base-button"
title=
"Das ist ein button"
type=
"button"
disabled
>
Disabled button
</button>
<button
class=
"Base-button"
title=
"Das ist ein button"
type=
"button"
>
Das ist ein button mit sehr viel Text, damit dieser umbricht.
</button>
</div>
</template>
<script>
export
default
{
data
:
()
=>
({
number
:
0
}),
methods
:
{
plus
()
{
this
.
number
++
},
minus
()
{
this
.
number
--
}
<div
class=
"Base-theme--dark u-background--sh-blau"
>
<h5
class=
"Base-h5"
>
Theme: Dark
</h5>
<button
class=
"Base-button"
title=
"Das ist ein button"
type=
"button"
>
Das ist ein button
</button>
<button
class=
"Base-button"
title=
"Das ist ein button"
type=
"button"
disabled
>
Disabled button
</button>
<button
class=
"Base-button"
title=
"Das ist ein button"
type=
"button"
>
Das ist ein button mit sehr viel Text, damit dieser umbricht.
</button>
</div>
</html>
<style
lang=
"scss"
>
$
fontColor
:
#ffffff
;
$
activeColor
:
#D4004B
;
$
bgColor
:
#E5EAEF
;
$
bgColor--dark
:
#003064
;
.Base-button
{
font-family
:
serif
;
font-size
:
18px
;
cursor
:
pointer
;
color
:
$
fontColor
;
padding
:
0.7em
1.25em
0.75em
;
align-self
:
baseline
;
display
:
inline-flex
;
transition
:
color
0.2s
ease
,
background-color
0.2s
ease
,
border-color
0.2s
ease
;
border
:
none
;
line-height
:
1.25
;
background-color
:
$
bgColor
;
justify-content
:
center
;
&:focus,
&:hover,
.
u-linkWrap
:
hover
&
,
.
u-linkWrap
.
is-active
&
,
.
u-linkWrap
:
active
&
,
&
.
is-active
,
&
:
active
{
color
:
$
fontColor
;
background-color
:
$
activeColor
;
}
&
:disabled
{
cursor
:
default
;
opacity
:
0.4
;
pointer-events
:
none
;
}
.Base-theme--dark
&
{
background-color
:
$
bgColor--dark
;
&:focus,
&:hover,
.
u-linkWrap
:
hover
&
,
.
u-linkWrap
.
is-active
&
,
.
u-linkWrap
:
active
&
,
&
.
is-active
,
&
:
active
{
color
:
$
fontColor
;
background-color
:
$
activeColor
;
}
}
}
</script>
<style>
.box-vue
{
color
:
red
;
}
</style>
```
:::
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment