Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from spiral-modules/native-select
Browse files Browse the repository at this point in the history
browser default select
  • Loading branch information
iasinov authored Mar 23, 2017
2 parents 5143e0a + 3542e42 commit 542990d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"require": {
"spiral/framework": "^0.9",
"spiral/toolkit": "^0.9"
"spiral/toolkit": "^0.9.11"
},
"require-dev": {
"phpunit/phpunit": "~6.0",
Expand Down
3 changes: 2 additions & 1 deletion resources/styles/spiral/vault/sstyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ table thead th {
font-size: 1.2rem;
color: $color-text;
}

select.browser-default { height: auto;}
.input-field.file-field label {
top: 0;
left: 0;
Expand Down Expand Up @@ -527,6 +527,7 @@ input[type=datetime-local],
input[type=tel],
input[type=number],
input[type=search],
select,
textarea,
.select-wrapper input.select-dropdown {
border: 1px solid #b9b9b9;
Expand Down
4 changes: 4 additions & 0 deletions resources/styles/spiral/vault/vault.css
Original file line number Diff line number Diff line change
Expand Up @@ -8413,6 +8413,9 @@ table thead th {
font-size: 1.2rem;
color: #3a3a3a; }

select.browser-default {
height: auto; }

.input-field.file-field label {
top: 0;
left: 0; }
Expand Down Expand Up @@ -8566,6 +8569,7 @@ input[type=datetime-local],
input[type=tel],
input[type=number],
input[type=search],
select,
textarea,
.select-wrapper input.select-dropdown {
border: 1px solid #b9b9b9;
Expand Down
9 changes: 9 additions & 0 deletions source/views/welcome/visuals.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
<a class="carousel-item" href="#three!"><img src="http://lorempixel.com/800/400/food/3"></a>
<a class="carousel-item" href="#four!"><img src="http://lorempixel.com/800/400/food/4"></a>
</div>

<vault:form action="#" title="Form Demo">
<form:input label="[[Input:]]" name="input" />
<form:textarea label="[[Textarea:]]" name="textarea" value=""/>
<form:select label="[[Select:]]" name="select" values="<?= [l('No'), l('Yes')] ?>"/>
<div class="right-align">
<input type="submit" value="${submit|[[SAVE]]}" class="btn teal waves-effect waves-light"/>
</div>
</vault:form>
</tab:item>
</tab:wrapper>
</block:content>

0 comments on commit 542990d

Please sign in to comment.