-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌈 New <form> styling and .grid responsive MQ
- Loading branch information
erolj
committed
Oct 2, 2020
1 parent
9316d97
commit 1c5a54c
Showing
7 changed files
with
224 additions
and
107 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -33,3 +33,5 @@ | |
|
||
@import "../components/image"; | ||
|
||
@import "../components/form"; | ||
|
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* FORM */ | ||
|
||
form { | ||
[type='text'], | ||
[type='password'], | ||
[type='email'], | ||
[type='number'], | ||
[type='password'], | ||
[type='search'], | ||
[type='tel'], | ||
[type='time'], | ||
[type='url'], | ||
[type='week'], | ||
[type='month'], | ||
[type='date'], | ||
textarea { | ||
width: 100%; | ||
padding: 0.7em; | ||
border-radius: 0.3em; | ||
border: .1em solid #eee; | ||
margin-bottom: 0.5em; | ||
|
||
&:focus { | ||
outline: none; | ||
} | ||
} | ||
[type='text'], | ||
[type='password'], | ||
[type='email'], | ||
[type='number'], | ||
[type='password'], | ||
[type='search'], | ||
[type='tel'], | ||
[type='time'], | ||
[type='url'], | ||
[type='week'], | ||
[type='month'], | ||
[type='date'] { | ||
&:invalid { | ||
background-color: palevioletred; | ||
color: whitesmoke; | ||
} | ||
} | ||
label { | ||
padding: 1em 0; | ||
margin-bottom: 0.2em; | ||
} | ||
} | ||
|
||
|
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
This file was deleted.
Oops, something went wrong.