// The MIT License (MIT)
//
// Copyright (c) 2015 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

@import defs

input,
textarea,
select,
button
  display: block
  padding: 0.55 * $em

label
  display: block
  margin-bottom: 0.82 * $em

input[type="submit"],
input[type="reset"],
button
  background: darken($gray, 10)
  border-radius: 0.2 * $em
  color: $white
  cursor: pointer
  display: inline
  margin-bottom: $em
  margin-right: 0.4 * $em
  padding: (0.3625 * $em) (1.3 * $em)
  text-align: center
  &:hover
    background: darken($gray, 15)
    color: darken($white, 25)

input[type="submit"],
button[type="submit"]
  background: $blue
  color: $white
  &:hover
    background: darken($blue, 15)
    color: darken($white, 25)

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="phone"],
input[type="tel"],
input[type="number"],
input[type="datetime"],
input[type="date"],
input[type="month"],
input[type="color"],
input[type="time"],
input[type="search"],
input[type="range"],
input[type="file"],
input[type="datetime-local"],
select,
textarea
  border: 1px solid $gray
  margin-bottom: $em
  padding: (0.3 * $em) (0.35 * $em)

  
input[type="checkbox"]
  //float: left
  line-height: 2 * $em
  margin-right: 0.5 * $em
  margin-top: 0.45 * $em
