Compare commits
9 Commits
5e5e9691dc
...
ac0951ba6e
Author | SHA1 | Date | |
---|---|---|---|
ac0951ba6e | |||
e525df9347 | |||
60e231d1ca | |||
013769597d | |||
07830c671d | |||
907e0602ce | |||
ab7c6c8d84 | |||
c05a286f84 | |||
e49803cb81 |
@ -2,7 +2,7 @@
|
||||
@import 'headline/headline';
|
||||
@import 'text/text';
|
||||
@import 'icon/icon';
|
||||
@import 'textField/textField';
|
||||
@import 'button/button';
|
||||
@import 'checkbox/checkbox';
|
||||
@import 'input/input';
|
||||
@import 'image/image';
|
||||
|
4
components/01_Atoms/image/_image.scss
Normal file
4
components/01_Atoms/image/_image.scss
Normal file
@ -0,0 +1,4 @@
|
||||
.LP-Image{
|
||||
max-width:100%;
|
||||
max-height:100%;
|
||||
}
|
3
components/01_Atoms/image/image.config.json
Normal file
3
components/01_Atoms/image/image.config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
23
components/01_Atoms/image/image.hbs
Normal file
23
components/01_Atoms/image/image.hbs
Normal file
@ -0,0 +1,23 @@
|
||||
<img src="/images/photo_2020-05-02_18-11-21.jpg" class="LP-Image"/>
|
||||
|
||||
<div style="height: 80px;width: 40px; background-color: green;">
|
||||
<img src="/images/photo_2020-05-02_18-11-21.jpg" class="LP-Image"/>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
|
||||
<div style="height: 40px;width: 80px;background-color: green;">
|
||||
<img src="/images/photo_2020-05-02_18-11-21.jpg" class="LP-Image"/>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
|
||||
<div style="height: 80px;width: 40px;background-color: green;">
|
||||
<img src="/images/ice-vertical-panorama.jpg" class="LP-Image"/>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
|
||||
<div style="height: 40px;width: 80px;background-color: green;">
|
||||
<img src="/images/ice-vertical-panorama.jpg" class="LP-Image"/>
|
||||
</div>
|
@ -1,7 +1,3 @@
|
||||
.LP-Input:has( .LP-Input__Field:disabled){
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.LP-Input{
|
||||
$-margin-bottom: 30px;
|
||||
display: flex;
|
||||
@ -21,27 +17,11 @@
|
||||
background-color: $-secondary-background-color;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
|
||||
&:disabled{
|
||||
background-color: transparent;
|
||||
border-bottom: 1px dashed $-secondary-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:active{
|
||||
margin-bottom: $-margin-bottom;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
~.LP-Input__Message{
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Input__Label{
|
||||
font-family: $-primary-sans-serif-font;
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.LP-Input__Message{
|
||||
@ -67,23 +47,30 @@
|
||||
.LP-Input__Message{
|
||||
color: $-primary-accent-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&--disabled{
|
||||
.LP-Input__Field, .LP-Input__Field:disabled{
|
||||
background-color: transparent;
|
||||
border-bottom: 1px dashed $-secondary-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
label + &{
|
||||
color: red;
|
||||
}
|
||||
|
||||
@media(max-width: $-viewport-small){
|
||||
.LP-Input{
|
||||
.LP-Input__Label{
|
||||
font-family: $-primary-sans-serif-font;
|
||||
font-size: 2.5vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
&:focus, &:active{
|
||||
margin-bottom: $-margin-bottom;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
@media(max-width: $-viewport-extra-small){
|
||||
.LP-Input{
|
||||
.LP-Input__Label{
|
||||
font-family: $-primary-sans-serif-font;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
~.LP-Input__Message{
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Input__Label{
|
||||
color: $-secondary-color;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,3 +1,7 @@
|
||||
{
|
||||
|
||||
"context": {
|
||||
"label": "Enter your value here",
|
||||
"placeholder": "A sample value",
|
||||
"message": "Please fill in anything valuable"
|
||||
}
|
||||
}
|
@ -1,10 +1,28 @@
|
||||
<h3>Regular with message</h3>
|
||||
<div class="LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">First name</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
<span class="LP-Input__Message">Field is required</span>
|
||||
<label for="input123" class="LP-Input__Label">{{label}}</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" placeholder="{{placeholder}}"/>
|
||||
<span class="LP-Input__Message">{{message}}</span>
|
||||
</div>
|
||||
<h3>Regular without message</h3>
|
||||
<div class="LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">First name</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" disabled="disabled"/>
|
||||
<span class="LP-Input__Message">Field is required</span>
|
||||
<label for="input123" class="LP-Input__Label">{{label}}</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" placeholder="{{placeholder}}"/>
|
||||
</div>
|
||||
<h3>Regular without placeholder</h3>
|
||||
<div class="LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">{{label}}</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" placeholder=""/>
|
||||
<span class="LP-Input__Message">{{message}}</span>
|
||||
</div>
|
||||
<h3>Disabled</h3>
|
||||
<div class="LP-Input LP-Input--disabled">
|
||||
<label for="input123" class="LP-Input__Label">{{label}}</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" placeholder="{{placeholder}}" disabled="disabled"/>
|
||||
</div>
|
||||
<h3>Error</h3>
|
||||
<div class="LP-Input LP-Input--error">
|
||||
<label for="input123" class="LP-Input__Label">{{label}}</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" placeholder="{{placeholder}}"/>
|
||||
<span class="LP-Input__Message">{{message}}</span>
|
||||
</div>
|
@ -1,10 +0,0 @@
|
||||
.LP-Form{
|
||||
.LP-Form__Input--text{
|
||||
border: none;
|
||||
border-bottom: 1px solid $-secondary-accent-color;
|
||||
|
||||
&:active, &:focus{
|
||||
border-bottom: 1px solid $-primary-accent-color;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"title": "TextField",
|
||||
"variants": [
|
||||
{
|
||||
"name": "default",
|
||||
"context": {
|
||||
"type": "text"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Password",
|
||||
"context": {
|
||||
"type": "password"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
<form class="LP-Form">
|
||||
<input type="{{type}}" class="LP-Form__Input LP-Form__Input--text"/>
|
||||
</form>
|
@ -1,5 +1,5 @@
|
||||
@import 'logo/logo';
|
||||
@import 'textSection/textSection';
|
||||
@import 'place/place';
|
||||
@import 'placeTeaser/placeTeaser';
|
||||
@import 'securityMeasureList/securityMeasureList';
|
||||
@import 'form/form';
|
@ -15,7 +15,7 @@
|
||||
|
||||
.LP-Form__Field{
|
||||
flex: 3 1 100px;
|
||||
padding: 0 15px;
|
||||
padding: 6px 15px;
|
||||
|
||||
&--wider{
|
||||
flex: 5 1 200px;
|
||||
@ -62,7 +62,8 @@
|
||||
justify-content: space-between;
|
||||
|
||||
.LP-Form__Field{
|
||||
flex: 3 1 100px;
|
||||
flex: 3 1 100px;
|
||||
padding: 12px 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,44 +3,49 @@
|
||||
<legend class="LP-Form__Legend">Basic data</legend>
|
||||
|
||||
<div class="LP-Form__Composition LP-Form__Composition--breakable">
|
||||
<span class="LP-Form__Field LP-Input LP-Input--error">
|
||||
<label for="input123" class="LP-Input__Label">First name</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
<span class="LP-Input__Message">Field is required</span>
|
||||
</span>
|
||||
<span class="LP-Form__Field LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">Last name</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="LP-Form__Field">
|
||||
<div class="LP-Input LP-Input--error">
|
||||
<label for="input123" class="LP-Input__Label">First name</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" placeholder="Peter"/>
|
||||
<span class="LP-Input__Message">Field is required</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="LP-Form__Field">
|
||||
<div class="LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">Last name</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="LP-Form__Field LP-Form__Field--narrower">
|
||||
<div class="LP-Input LP-Input--disabled">
|
||||
<label for="input123" class="LP-Input__Label">Age</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" disabled="disabled"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="LP-Form__Composition">
|
||||
<span class="LP-Form__Field LP-Form__Field--wider LP-Input">
|
||||
<div class="LP-Form__Field LP-Form__Field--wider LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">Street</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
<span class="LP-Input__Message">We won't send any stalkers, promise</span>
|
||||
</span>
|
||||
<span class="LP-Form__Field LP-Form__Field--narrower LP-Input">
|
||||
</div>
|
||||
<div class="LP-Form__Field LP-Form__Field--narrow LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">House no</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
<span class="LP-Input__Message">Field is required</span>
|
||||
</span>
|
||||
<span class="LP-Form__Field LP-Form__Field--narrower LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">Disabled</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" disabled="disabled"/>
|
||||
<span class="LP-Input__Message">Field is required</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="LP-Form__Composition">
|
||||
<span class="LP-Form__Field LP-Form__Field--narrow LP-Input">
|
||||
<div class="LP-Form__Field LP-Form__Field--narrow LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">Postal Code</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
</span>
|
||||
<span class="LP-Form__Field LP-Form__Field--wide LP-Input">
|
||||
</div>
|
||||
<div class="LP-Form__Field LP-Form__Field--wide LP-Input">
|
||||
<label for="input123" class="LP-Input__Label">Town</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
@ -1,12 +1,14 @@
|
||||
<article class="LP-Place">
|
||||
<img class="LP-Place__Image" src="{{image}}"/>
|
||||
<div class="LP-Place__Assets">
|
||||
<div class="LP-Place__Image">
|
||||
<img class="LP-Image" src="{{image}}"/>
|
||||
</div>
|
||||
<div class="LP-Place__Detail">
|
||||
<div class="LP-Place__Info">
|
||||
<h3 class="LP-Place__Title">{{title}}</h3>
|
||||
<p class="LP-Place__Detail" >{{location}}</p>
|
||||
</div>
|
||||
{{# if description}}
|
||||
<p class="LP-TextSection LP-Place__Description">
|
||||
<p class="LP-Place__Description">
|
||||
{{description}}
|
||||
</p>
|
||||
{{/if}}
|
@ -10,9 +10,9 @@
|
||||
@font-face {
|
||||
font-family: Montserrat;
|
||||
src:
|
||||
url('fonts/Montserrat/Montserrat-Regular.ttf'),
|
||||
url('fonts/Montserrat/Montserrat-Bold.ttf'),
|
||||
url('fonts/Montserrat/Montserrat-Italic.ttf')
|
||||
url('fonts/Montserrat/Montserrat-Regular.otf'),
|
||||
url('fonts/Montserrat/Montserrat-Bold.otf'),
|
||||
url('fonts/Montserrat/Montserrat-Italic.otf')
|
||||
;
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ $-primary-serif-font: Crimson, Times, serif;
|
||||
$-primary-sans-serif-accent-font: Roboto, Arial, sans-serif;
|
||||
|
||||
$-viewport-small: 650px;
|
||||
$-viewport-extra-small: 390px;
|
||||
$-viewport-extra-small: 450px;
|
||||
|
||||
|
||||
@import '01_Atoms/atoms';
|
||||
|
BIN
public/images/ice-vertical-panorama.jpg
Normal file
BIN
public/images/ice-vertical-panorama.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
Loading…
Reference in New Issue
Block a user