Compare commits

..

No commits in common. "ac0951ba6eb76e793faa14cebf7a9c32b1822786" and "5e5e9691dc068958f9d81174092d81dc75c4ca2d" have entirely different histories.

18 changed files with 115 additions and 132 deletions

View File

@ -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';

View File

@ -1,4 +0,0 @@
.LP-Image{
max-width:100%;
max-height:100%;
}

View File

@ -1,3 +0,0 @@
{
}

View File

@ -1,23 +0,0 @@
<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>

View File

@ -1,3 +1,7 @@
.LP-Input:has( .LP-Input__Field:disabled){
background-color: red;
}
.LP-Input{
$-margin-bottom: 30px;
display: flex;
@ -17,11 +21,27 @@
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: 16px;
font-size: 18px;
}
.LP-Input__Message{
@ -48,29 +68,22 @@
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;
}
&:focus, &:active{
margin-bottom: $-margin-bottom;
border-radius: 0;
}
~.LP-Input__Message{
visibility: hidden;
}
}
@media(max-width: $-viewport-small){
.LP-Input{
.LP-Input__Label{
color: $-secondary-color;
font-family: $-primary-sans-serif-font;
font-size: 2.5vw;
}
}
}
@media(max-width: $-viewport-extra-small){
.LP-Input{
.LP-Input__Label{
font-family: $-primary-sans-serif-font;
font-size: 18px;
}
}
}

View File

@ -1,7 +1,3 @@
{
"context": {
"label": "Enter your value here",
"placeholder": "A sample value",
"message": "Please fill in anything valuable"
}
}

View File

@ -1,28 +1,10 @@
<h3>Regular with message</h3>
<div class="LP-Input">
<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>
<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>
</div>
<h3>Regular without message</h3>
<div class="LP-Input">
<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>
<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>
</div>

View 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;
}
}
}

View File

@ -0,0 +1,17 @@
{
"title": "TextField",
"variants": [
{
"name": "default",
"context": {
"type": "text"
}
},
{
"name": "Password",
"context": {
"type": "password"
}
}
]
}

View File

@ -0,0 +1,3 @@
<form class="LP-Form">
<input type="{{type}}" class="LP-Form__Input LP-Form__Input--text"/>
</form>

View File

@ -1,5 +1,5 @@
@import 'logo/logo';
@import 'textSection/textSection';
@import 'placeTeaser/placeTeaser';
@import 'place/place';
@import 'securityMeasureList/securityMeasureList';
@import 'form/form';

View File

@ -15,7 +15,7 @@
.LP-Form__Field{
flex: 3 1 100px;
padding: 6px 15px;
padding: 0 15px;
&--wider{
flex: 5 1 200px;
@ -63,7 +63,6 @@
.LP-Form__Field{
flex: 3 1 100px;
padding: 12px 15px;
}
}
}

View File

@ -3,49 +3,44 @@
<legend class="LP-Form__Legend">Basic data</legend>
<div class="LP-Form__Composition LP-Form__Composition--breakable">
<div class="LP-Form__Field">
<div class="LP-Input LP-Input--error">
<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" placeholder="Peter"/>
<input type="text" id="input123" class="LP-Input__Field"/>
<span class="LP-Input__Message">Field is required</span>
</div>
</div>
<div class="LP-Form__Field">
<div class="LP-Input">
</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"/>
</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>
</span>
</div>
<div class="LP-Form__Composition">
<div class="LP-Form__Field LP-Form__Field--wider LP-Input">
<span 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>
</div>
<div class="LP-Form__Field LP-Form__Field--narrow LP-Input">
</span>
<span class="LP-Form__Field LP-Form__Field--narrower 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>
</div>
</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 class="LP-Form__Composition">
<div class="LP-Form__Field LP-Form__Field--narrow LP-Input">
<span 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"/>
</div>
<div class="LP-Form__Field LP-Form__Field--wide LP-Input">
</span>
<span 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"/>
</div>
</span>
</div>
</fieldset>

View File

@ -1,14 +1,12 @@
<article class="LP-Place">
<div class="LP-Place__Image">
<img class="LP-Image" src="{{image}}"/>
</div>
<div class="LP-Place__Detail">
<img class="LP-Place__Image" src="{{image}}"/>
<div class="LP-Place__Assets">
<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-Place__Description">
<p class="LP-TextSection LP-Place__Description">
{{description}}
</p>
{{/if}}

View File

@ -10,9 +10,9 @@
@font-face {
font-family: Montserrat;
src:
url('fonts/Montserrat/Montserrat-Regular.otf'),
url('fonts/Montserrat/Montserrat-Bold.otf'),
url('fonts/Montserrat/Montserrat-Italic.otf')
url('fonts/Montserrat/Montserrat-Regular.ttf'),
url('fonts/Montserrat/Montserrat-Bold.ttf'),
url('fonts/Montserrat/Montserrat-Italic.ttf')
;
}
@ -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: 450px;
$-viewport-extra-small: 390px;
@import '01_Atoms/atoms';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB