Compare commits
2 Commits
6413492586
...
5e5e9691dc
Author | SHA1 | Date | |
---|---|---|---|
5e5e9691dc | |||
c97a757691 |
@ -2,4 +2,7 @@
|
|||||||
@import 'headline/headline';
|
@import 'headline/headline';
|
||||||
@import 'text/text';
|
@import 'text/text';
|
||||||
@import 'icon/icon';
|
@import 'icon/icon';
|
||||||
@import 'input/input';
|
@import 'textField/textField';
|
||||||
|
@import 'button/button';
|
||||||
|
@import 'checkbox/checkbox';
|
||||||
|
@import 'input/input';
|
||||||
|
13
components/01_Atoms/button/_button.scss
Normal file
13
components/01_Atoms/button/_button.scss
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
.LP-Button{
|
||||||
|
background-color: $-secondary-accent-color;
|
||||||
|
color: $-secondary-color;
|
||||||
|
border: none;
|
||||||
|
padding: 8px 14px;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: $-primary-accent-color;
|
||||||
|
color: $-secondary-accent-color;
|
||||||
|
}
|
||||||
|
}
|
3
components/01_Atoms/button/button.config.json
Normal file
3
components/01_Atoms/button/button.config.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
1
components/01_Atoms/button/button.hbs
Normal file
1
components/01_Atoms/button/button.hbs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<button class="LP-Button">Click Me</button>
|
13
components/01_Atoms/checkbox/_checkbox.scss
Normal file
13
components/01_Atoms/checkbox/_checkbox.scss
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
.LP-Form{
|
||||||
|
.LP-Form__Checkbox{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LP-Form__CheckBox__CheckMark{
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 0 calc(.5em + 2px);
|
||||||
|
margin-right: .7em;
|
||||||
|
}
|
||||||
|
}
|
3
components/01_Atoms/checkbox/checkbox.config.json
Normal file
3
components/01_Atoms/checkbox/checkbox.config.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
3
components/01_Atoms/checkbox/checkbox.hbs
Normal file
3
components/01_Atoms/checkbox/checkbox.hbs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<form class="LP-Form">
|
||||||
|
<label for="wurstwasser" class="LP-Form__Label"><span class="LP-Form__CheckBox__CheckMark"></span><input id="wurstwasser" type="checkbox" class="LP-Form__Checkbox"/>Check me</label>
|
||||||
|
</form>
|
10
components/01_Atoms/textField/_textField.scss
Normal file
10
components/01_Atoms/textField/_textField.scss
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
.LP-Form{
|
||||||
|
.LP-Form__Input--text{
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid $-secondary-accent-color;
|
||||||
|
|
||||||
|
&:active, &:focus{
|
||||||
|
border-bottom: 1px solid $-primary-accent-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
17
components/01_Atoms/textField/textField.config.json
Normal file
17
components/01_Atoms/textField/textField.config.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"title": "TextField",
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"context": {
|
||||||
|
"type": "text"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Password",
|
||||||
|
"context": {
|
||||||
|
"type": "password"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
3
components/01_Atoms/textField/textField.hbs
Normal file
3
components/01_Atoms/textField/textField.hbs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<form class="LP-Form">
|
||||||
|
<input type="{{type}}" class="LP-Form__Input LP-Form__Input--text"/>
|
||||||
|
</form>
|
Loading…
Reference in New Issue
Block a user