This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial styling with open todos. (#288)
- Loading branch information
1 parent
7d9c9df
commit e791f02
Showing
5 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
src/core/components/inputs/text-input/text-input.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
<input type="text" placeholder="test" (change)="onChange.emit()"> | ||
<span> | ||
<label for="inputElement">{{label}}</label> | ||
<input id="inputElement" type="text" | ||
[placeholder]="placeholder" | ||
(keydown.enter)="onEnter.emit()"> | ||
<small class="hint">{{hintText}}</small> | ||
</span> | ||
|
41 changes: 40 additions & 1 deletion
41
src/core/components/inputs/text-input/text-input.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,44 @@ | ||
@import "src/global-styles/_theme-colors.scss"; | ||
|
||
input { | ||
border: $primary-default | ||
width: auto; //TODO @Marcel. Richte das bitte mal anständig aus. Dankee :) | ||
min-width: 95%; | ||
// Die beiden margins sind iwie kacke. Sollten nicht nötig sein. | ||
margin-top: 2px; | ||
margin-bottom: 1px; | ||
|
||
font-size: 20px; | ||
|
||
background-color: $input-background; | ||
color: $light-font; | ||
padding: 8px 16px 8px 16px; | ||
border: 0; | ||
border-radius: 8px; | ||
|
||
&:focus { | ||
accent-color: $primary-default; | ||
} | ||
|
||
&::placeholder { | ||
color: $placeholder-font | ||
} | ||
} | ||
|
||
.hint { | ||
font-size: 16px; | ||
display: block; | ||
color: $grey-font; | ||
} | ||
|
||
label { | ||
font-size: 20px; | ||
font-weight: bold; //Durch Jost medium ersetzen. | ||
color: $light-font; | ||
} | ||
|
||
span { | ||
vertical-align: top; | ||
display: inline-block; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters