diff --git a/src/partials/fields/number.html b/src/partials/fields/number.html index 154ae9e..972f3e2 100644 --- a/src/partials/fields/number.html +++ b/src/partials/fields/number.html @@ -1,6 +1,27 @@ - - - - - +
{{ $parent.field.min }}{{ field.max }}
+ + + +
{{ $parent.field.min }} + {{ field.max }} +
\ No newline at end of file diff --git a/src/styles/styles.css b/src/styles/styles.css index 94a8ede..f61a0dd 100644 --- a/src/styles/styles.css +++ b/src/styles/styles.css @@ -889,7 +889,7 @@ header nav, margin-top: 2.5rem; background-color: #fff; padding: 0 0 1rem 0; - z-index: 100; + z-index: 49; padding-left: 1rem; padding-right: 1rem; transition: box-shadow 0.2s ease; @@ -1692,12 +1692,20 @@ table.number_control { width: 100%; } table.number_control td { + padding: .75em 0; text-align: center; + margin: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } -table.number_control .range_ui input { - width: 80%; +table.number_control td:first-of-type { + text-align: left; +} +table.number_control td.range_ui input[type=range] { + padding: .2em 0; } -table.number_control .number_ui input { - float: right; +table.number_control td.number_ui { + padding: 0; } /* Mixins */ diff --git a/src/styles/styles.less b/src/styles/styles.less index f2677e5..158ff74 100644 --- a/src/styles/styles.less +++ b/src/styles/styles.less @@ -573,7 +573,7 @@ header nav, #wampum { margin-top: 2.5rem; background-color: #fff; padding: 0 0 1rem 0; - z-index: 100; + z-index: 49; h1 {margin: 2rem 0 1rem 0;} .smallPadding(); .content { @@ -769,9 +769,21 @@ footer { table.number_control { width: 100%; - td {text-align: center;} - .range_ui input{width: 80%;} - .number_ui input {float: right;} + td { + + padding: .75em 0; + text-align: center; + margin: 0; + &:first-of-type {text-align: left;} + + .border-box(); + + &.range_ui input[type=range]{ + padding: .2em 0; + } + &.number_ui {padding: 0;} + } + }