Skip to content

Commit

Permalink
Improvements to forms and padding on mobile devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrauckmuller committed Nov 23, 2012
1 parent e2d7add commit fcfc3cd
Show file tree
Hide file tree
Showing 7 changed files with 275 additions and 64 deletions.
139 changes: 124 additions & 15 deletions css/master.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,

.container {
zoom: 1;
width: 980px;
padding: 0 20px;
width: 1000px;
padding: 0 40px;
margin: 0 auto;
}
.container:before, .container:after {
Expand All @@ -100,22 +100,29 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
.container:after {
clear: both;
}
@media screen and (max-width: 767px) {
.container {
padding: 0 15px;
}
}

.responsive .container {
width: auto;
max-width: 980px;
max-width: 1000px;
}
@media screen and (max-width: 767px) {
.responsive [class*="span"] {
float: none;
width: 100%;
padding-left: 0;
padding-right: 0;
}
}

.row {
zoom: 1;
margin-left: -10px;
margin-right: -10px;
margin-left: -20px;
margin-right: -20px;
}
.row:before, .row:after {
content: "";
Expand All @@ -124,12 +131,49 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
.row:after {
clear: both;
}
@media screen and (max-width: 767px) {
.row {
margin-left: 0;
margin-right: 0;
}
}

.field-row {
zoom: 1;
margin-left: -10px;
margin-right: -10px;
}
.field-row:before, .field-row:after {
content: "";
display: table;
}
.field-row:after {
clear: both;
}
@media screen and (max-width: 767px) {
.field-row {
margin-left: 0;
margin-right: 0;
}
}

[class*="span"] {
float: left;
min-height: 1px;
padding: 0 20px;
}

.field-row [class*="span"] {
float: left;
min-height: 1px;
padding: 0 10px;
}
@media screen and (max-width: 767px) {
.field-row [class*="span"] {
padding-left: 0;
padding-right: 0;
}
}

.span1 {
width: 8.33333%;
Expand Down Expand Up @@ -209,7 +253,7 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
-ms-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
padding: 20px;
padding: 40px;
background: #fff;
}

Expand Down Expand Up @@ -322,10 +366,10 @@ dd {

table {
width: 100%;
border-top: 1px solid rgba(0, 0, 0, 0.15);
}
table th {
font-weight: bold;
border-top: 1px solid rgba(0, 0, 0, 0.15);
}
table th, table td {
padding: 7px;
Expand Down Expand Up @@ -394,6 +438,27 @@ textarea {
text-decoration: underline;
}

.input-inline {
display: inline-block;
height: 30px;
line-height: 30px;
}

.multi-field {
zoom: 1;
}
.multi-field:before, .multi-field:after {
content: "";
display: table;
}
.multi-field:after {
clear: both;
}
.multi-field input, .multi-field .input-inline {
float: left;
margin-right: 5px;
}

@media screen and (min-width: 767px) {
.labels-left .field-group {
zoom: 1;
Expand Down Expand Up @@ -461,14 +526,58 @@ input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus {
border-color: #006699;
-webkit-box-shadow: 0px 0px 3px rgba(0, 102, 153, 0.3);
-moz-box-shadow: 0px 0px 3px rgba(0, 102, 153, 0.3);
box-shadow: 0px 0px 3px rgba(0, 102, 153, 0.3);
}

textarea {
height: auto;
min-width: 100%;
min-height: 30px;
padding: 7px;
}

input.char1 {
width: 24.5px;
}

input.char2 {
width: 35px;
}

input.char3 {
width: 45.5px;
}

input.char4 {
width: 56px;
}

input.char5 {
width: 66.5px;
}

input.char6 {
width: 77px;
}

input.char7 {
width: 87.5px;
}

input.char8 {
width: 98px;
}

input.char9 {
width: 108.5px;
}

input.char10 {
width: 119px;
}

.select-holder {
height: 30px;
display: table-cell;
Expand Down Expand Up @@ -507,7 +616,7 @@ input[type=checkbox] {

.radio-checkbox-list {
margin-left: 0px;
padding-top: 7px;
margin-bottom: 0;
}
.radio-checkbox-list > li {
display: block;
Expand Down Expand Up @@ -1128,7 +1237,7 @@ input::-moz-focus-inner {
float: none;
}
.responsive #page-nav .nav-section:last-child {
padding-bottom: 20px;
padding-bottom: 15px;
}
.responsive #page-nav .dropdown {
position: static;
Expand Down Expand Up @@ -1305,7 +1414,7 @@ input::-moz-focus-inner {
}
.modal .modal-section {
position: relative;
padding: 14px 20px;
padding: 14px 40px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.modal .modal-section:first-child {
Expand All @@ -1314,15 +1423,15 @@ input::-moz-focus-inner {
-ms-border-radius: 4px 4px 0 0;
-o-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
padding-top: 20px;
padding-top: 40px;
}
.modal .modal-section:last-child {
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
-ms-border-radius: 0 0 4px 4px;
-o-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
padding-bottom: 20px;
padding-bottom: 40px;
border-bottom: none;
}
.modal .modal-section > *:last-child {
Expand Down Expand Up @@ -1368,7 +1477,7 @@ input::-moz-focus-inner {
top: 0;
left: 0;
margin: 0;
padding: 20px;
padding: 40px;
overflow-y: auto;
}
.modal.fade.in {
Expand All @@ -1382,8 +1491,8 @@ input::-moz-focus-inner {
}
.close {
position: absolute;
top: 20px;
right: 20px;
top: 40px;
right: 40px;
font-size: 20px;
font-weight: bold;
line-height: 20px;
Expand Down
Loading

0 comments on commit fcfc3cd

Please sign in to comment.