Sha256: c0e4e39febccab01c03893cdfa7d26507da5be10a4b7a197d6eb7c647418a819

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

// Date of birth

.form-date label {
  display: block;
  margin-bottom: 5px;
}

.form-date .form-group {
  width: 50px;
  float: left;
  margin-right: 20px;
  margin-bottom: 0;
  clear: none;
}

.form-date .form-group-year {
  width: 70px;
}

.form-date .form-group input {
  width: 100%;
}


// Use Modernizr to detect for touch events
// Build: http://modernizr.com/download/#-touch-cssclasses-teststyles-prefixes

// Hide date of birth
.touch .form-date {
  display: none;
}

// Hide native date of birth
.no-touch .native-date-picker {
  display: none;
}

// Show native date of birth
.touch .native-date-picker {
  display: block;
}

// Set a minimum height for date inputs
.touch input[type="date"] {
  min-height: 36px;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk_elements_rails-0.2.1 vendor/assets/stylesheets/elements/forms/_form-date.scss
govuk_elements_rails-0.1.1 vendor/assets/stylesheets/elements/forms/_form-date.scss
govuk_elements_rails-0.1.0 vendor/assets/stylesheets/elements/forms/_form-date.scss