Skip to content

Commit

Permalink
default text area added
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Jan 9, 2015
1 parent 64ee45d commit d4c5b25
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 24 deletions.
77 changes: 69 additions & 8 deletions bin/materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -5924,7 +5924,8 @@ label {
Text Inputs + Textarea
****************************/
.input-field {
position: relative; }
position: relative;
margin-top: 1rem; }
.input-field label {
color: #9e9e9e;
position: absolute;
Expand All @@ -5944,14 +5945,14 @@ label {
-ms-transform: translateY(-130%);
-o-transform: translateY(-130%);
transform: translateY(-130%); }
.input-field input[type=text]:focus + label, .input-field input[type=password]:focus + label, .input-field input[type=email]:focus + label, .input-field input[type=date]:focus + label, .input-field input[type=tel]:focus + label, .input-field input[type=number]:focus + label, .input-field textarea:focus + label {
.input-field input[type=text]:focus + label, .input-field input[type=password]:focus + label, .input-field input[type=email]:focus + label, .input-field input[type=date]:focus + label, .input-field input[type=tel]:focus + label, .input-field input[type=number]:focus + label, .input-field textarea:focus.materialize-textarea + label {
color: #03a9f4; }
.input-field input[type=text].valid, .input-field input[type=password].valid, .input-field input[type=email].valid, .input-field input[type=date].valid, .input-field input[type=tel].valid, .input-field input[type=number].valid, .input-field textarea.valid {
.input-field input[type=text].valid, .input-field input[type=password].valid, .input-field input[type=email].valid, .input-field input[type=date].valid, .input-field input[type=tel].valid, .input-field input[type=number].valid, .input-field textarea.materialize-textarea.valid {
border-bottom: 1px solid #4CAF50;
-webkit-box-shadow: 0 1px 0 0 #4CAF50;
-moz-box-shadow: 0 1px 0 0 #4CAF50;
box-shadow: 0 1px 0 0 #4CAF50; }
.input-field input[type=text].invalid, .input-field input[type=password].invalid, .input-field input[type=email].invalid, .input-field input[type=date].invalid, .input-field input[type=tel].invalid, .input-field input[type=number].invalid, .input-field textarea.invalid {
.input-field input[type=text].invalid, .input-field input[type=password].invalid, .input-field input[type=email].invalid, .input-field input[type=date].invalid, .input-field input[type=tel].invalid, .input-field input[type=number].invalid, .input-field textarea.materialize-textarea.invalid {
border-bottom: 1px solid #F44336;
-webkit-box-shadow: 0 1px 0 0 #F44336;
-moz-box-shadow: 0 1px 0 0 #F44336;
Expand Down Expand Up @@ -5986,13 +5987,17 @@ label {
width: calc(100% - 3rem); }
}

input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel], input[type=number], textarea {
textarea {
width: 100%;
height: 3rem;
background-color: transparent; }

input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel], input[type=number], textarea.materialize-textarea {
background-color: transparent;
border: none;
border-bottom: 1px solid #9e9e9e;
outline: none;
height: 3rem;
width: 100%;
font-size: 1rem;
margin: 0 0 15px 0;
padding: 0;
Expand All @@ -6008,13 +6013,13 @@ input[type=text], input[type=password], input[type=email], input[type=date], inp
-ms-transition: 0.3s;
transition: 0.3s; }

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, input[type=tel]:focus, input[type=number]:focus, textarea:focus {
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, input[type=tel]:focus, input[type=number]:focus, textarea:focus.materialize-textarea {
border-bottom: 1px solid #03a9f4;
-webkit-box-shadow: 0 1px 0 0 #03a9f4;
-moz-box-shadow: 0 1px 0 0 #03a9f4;
box-shadow: 0 1px 0 0 #03a9f4; }

textarea {
textarea.materialize-textarea {
overflow-y: hidden;
/* prevents scroll bar flash */
padding: 1.6rem 0;
Expand Down Expand Up @@ -6233,6 +6238,62 @@ form p:last-child {
[type="checkbox"]:disabled:not(:checked) + label:hover:before {
border-color: rgba(0, 0, 0, 0.26); }

.switch, .switch * {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; }

.switch label {
cursor: pointer; }

.switch label input[type=checkbox]:first-child {
opacity: 0;
width: 0;
height: 0; }

.switch label input[type=checkbox]:first-child:checked + .lever {
background-color: #7bc5be; }

.switch label input[type=checkbox]:first-child:checked + .lever:after {
background-color: #009587; }

.switch label .lever, .switch label input[type=checkbox][disabled]:first-child + .lever {
content: "";
display: inline-block;
width: 45px;
height: 15px;
background-color: #818181;
border-radius: 15px;
margin-right: 10px;
transition: background 0.3s ease;
vertical-align: middle;
margin-left: 5px; }

.switch label .lever:after {
content: "";
display: inline-block;
width: 20px;
height: 20px;
background-color: #F1F1F1;
border-radius: 20px;
position: relative;
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4);
left: -5px;
top: -2px;
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease; }

.switch label input[type=checkbox][disabled]:first-child + .lever:after, .switch label input[type=checkbox][disabled]:checked:first-child + .lever:after {
background-color: #BDBDBD; }

input[type=checkbox]:first-child:checked ~ .lever:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 149, 135, 0.1); }

input[type=checkbox]:first-child ~ .lever:active:after, input[type=checkbox][disabled]:first-child ~ .lever:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1); }

.switch label input[type=checkbox]:first-child:checked + .lever:after {
left: 30px; }

/***************
Select Field
***************/
Expand Down
77 changes: 69 additions & 8 deletions css/ghpages-materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -5924,7 +5924,8 @@ label {
Text Inputs + Textarea
****************************/
.input-field {
position: relative; }
position: relative;
margin-top: 1rem; }
.input-field label {
color: #9e9e9e;
position: absolute;
Expand All @@ -5944,14 +5945,14 @@ label {
-ms-transform: translateY(-130%);
-o-transform: translateY(-130%);
transform: translateY(-130%); }
.input-field input[type=text]:focus + label, .input-field input[type=password]:focus + label, .input-field input[type=email]:focus + label, .input-field input[type=date]:focus + label, .input-field input[type=tel]:focus + label, .input-field input[type=number]:focus + label, .input-field textarea:focus + label {
.input-field input[type=text]:focus + label, .input-field input[type=password]:focus + label, .input-field input[type=email]:focus + label, .input-field input[type=date]:focus + label, .input-field input[type=tel]:focus + label, .input-field input[type=number]:focus + label, .input-field textarea:focus.materialize-textarea + label {
color: #03a9f4; }
.input-field input[type=text].valid, .input-field input[type=password].valid, .input-field input[type=email].valid, .input-field input[type=date].valid, .input-field input[type=tel].valid, .input-field input[type=number].valid, .input-field textarea.valid {
.input-field input[type=text].valid, .input-field input[type=password].valid, .input-field input[type=email].valid, .input-field input[type=date].valid, .input-field input[type=tel].valid, .input-field input[type=number].valid, .input-field textarea.materialize-textarea.valid {
border-bottom: 1px solid #4CAF50;
-webkit-box-shadow: 0 1px 0 0 #4CAF50;
-moz-box-shadow: 0 1px 0 0 #4CAF50;
box-shadow: 0 1px 0 0 #4CAF50; }
.input-field input[type=text].invalid, .input-field input[type=password].invalid, .input-field input[type=email].invalid, .input-field input[type=date].invalid, .input-field input[type=tel].invalid, .input-field input[type=number].invalid, .input-field textarea.invalid {
.input-field input[type=text].invalid, .input-field input[type=password].invalid, .input-field input[type=email].invalid, .input-field input[type=date].invalid, .input-field input[type=tel].invalid, .input-field input[type=number].invalid, .input-field textarea.materialize-textarea.invalid {
border-bottom: 1px solid #F44336;
-webkit-box-shadow: 0 1px 0 0 #F44336;
-moz-box-shadow: 0 1px 0 0 #F44336;
Expand Down Expand Up @@ -5986,13 +5987,17 @@ label {
width: calc(100% - 3rem); }
}

input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel], input[type=number], textarea {
textarea {
width: 100%;
height: 3rem;
background-color: transparent; }

input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel], input[type=number], textarea.materialize-textarea {
background-color: transparent;
border: none;
border-bottom: 1px solid #9e9e9e;
outline: none;
height: 3rem;
width: 100%;
font-size: 1rem;
margin: 0 0 15px 0;
padding: 0;
Expand All @@ -6008,13 +6013,13 @@ input[type=text], input[type=password], input[type=email], input[type=date], inp
-ms-transition: 0.3s;
transition: 0.3s; }

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, input[type=tel]:focus, input[type=number]:focus, textarea:focus {
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, input[type=tel]:focus, input[type=number]:focus, textarea:focus.materialize-textarea {
border-bottom: 1px solid #03a9f4;
-webkit-box-shadow: 0 1px 0 0 #03a9f4;
-moz-box-shadow: 0 1px 0 0 #03a9f4;
box-shadow: 0 1px 0 0 #03a9f4; }

textarea {
textarea.materialize-textarea {
overflow-y: hidden;
/* prevents scroll bar flash */
padding: 1.6rem 0;
Expand Down Expand Up @@ -6233,6 +6238,62 @@ form p:last-child {
[type="checkbox"]:disabled:not(:checked) + label:hover:before {
border-color: rgba(0, 0, 0, 0.26); }

.switch, .switch * {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; }

.switch label {
cursor: pointer; }

.switch label input[type=checkbox]:first-child {
opacity: 0;
width: 0;
height: 0; }

.switch label input[type=checkbox]:first-child:checked + .lever {
background-color: #7bc5be; }

.switch label input[type=checkbox]:first-child:checked + .lever:after {
background-color: #009587; }

.switch label .lever, .switch label input[type=checkbox][disabled]:first-child + .lever {
content: "";
display: inline-block;
width: 45px;
height: 15px;
background-color: #818181;
border-radius: 15px;
margin-right: 10px;
transition: background 0.3s ease;
vertical-align: middle;
margin-left: 5px; }

.switch label .lever:after {
content: "";
display: inline-block;
width: 20px;
height: 20px;
background-color: #F1F1F1;
border-radius: 20px;
position: relative;
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4);
left: -5px;
top: -2px;
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease; }

.switch label input[type=checkbox][disabled]:first-child + .lever:after, .switch label input[type=checkbox][disabled]:checked:first-child + .lever:after {
background-color: #BDBDBD; }

input[type=checkbox]:first-child:checked ~ .lever:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 149, 135, 0.1); }

input[type=checkbox]:first-child ~ .lever:active:after, input[type=checkbox][disabled]:first-child ~ .lever:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1); }

.switch label input[type=checkbox]:first-child:checked + .lever:after {
left: 30px; }

/***************
Select Field
***************/
Expand Down
Loading

0 comments on commit d4c5b25

Please sign in to comment.