/* * # Semantic Button - Flat * http://github.com/quirkyinc/semantic * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * * Released: April 22 2013 */ /******************************* Standard *******************************/ /*-------------------- Form ---------------------*/ .ui.form { position: relative; width: 450px; } .ui.form :first-child { margin-top: 0px; } /*-------------------- Content ---------------------*/ .ui.form p { margin: 1em 0; } /*-------------------- Field ---------------------*/ .ui.form .field { clear: both; margin: 0em 0em 1em; } /*-------------------- Labels ---------------------*/ .ui.form .field > label { margin: 0em 0em 0.3em; display: block; color: #555555; font-size: 0.875em; line-height: 1.2; } /*-------------------- Standard Inputs ---------------------*/ .ui.form textarea, .ui.form input[type="text"], .ui.form input[type="date"], .ui.form input[type="password"], .ui.textarea, .ui.input { width: 100%; padding: 0.53em 0.7em; font-size: 0.825em; background-color: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.15); outline: none; color: #555555; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-transition: background-color 0.3s ease-out; -moz-transition: background-color 0.3s ease-out; -o-transition: background-color 0.3s ease-out; -ms-transition: background-color 0.3s ease-out; transition: background-color 0.3s ease-out; -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } .ui.textarea, .ui.form textarea { min-height: 67px; height: 101px; max-height: 202px; resize: vertical; } .ui.form select { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); } .ui.form textarea, .ui.form input[type="checkbox"] { vertical-align: top; } /*-------------------- Types of Messages ---------------------*/ .ui.form .info.block, .ui.form .warning.block, .ui.form .error.block { display: none; } /* Assumptions */ .ui.form .block:first-child { margin-top: 0px; } /******************************* States *******************************/ /*-------------------- Focus ---------------------*/ .ui.form input:focus, .ui.form textarea:focus { color: #222222; background-color: #FFFFFF; border-color: rgba(0, 0, 0, 0.2); box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.15) inset; } /*-------------------- Error ---------------------*/ /* On Form */ .ui.form.warning .warning.block { display: block; } /*-------------------- Warning ---------------------*/ /* On Form */ .ui.form.error .error.block { display: block; } /* On Field(s) */ .ui.form .fields.error .field label, .ui.form .field.error label { font-weight: bold; color: #EF3F49; } .ui.form .fields.error .field textarea, .ui.form .fields.error .field input[type="text"], .ui.form .fields.error .field input[type="date"], .ui.form .fields.error .field input[type="password"], .ui.form .field.error textarea, .ui.form .field.error input[type="text"], .ui.form .field.error input[type="date"], .ui.form .field.error input[type="password"] { background-color: #FFFAFA; border-color: rgba(255, 80, 80, 0.7); color: rgba(255, 80, 80, 0.7); } .ui.form .field.error textarea:focus, .ui.form .field.error input:focus { border-color: rgba(255, 80, 80, 1); color: rgba(255, 80, 80, 1); } /*-------------------- Empty (Placeholder) ---------------------*/ /* browsers require these rules separate */ .ui.form ::-webkit-input-placeholder { color: #E0E0E0; } .ui.form ::-moz-placeholder { color: #E0E0E0; } .ui.form :focus::-webkit-input-placeholder { color: #AAAAAA; } .ui.form :focus::-moz-placeholder { color: #AAAAAA; } .ui.form textarea.empty, .ui.form input.empty { color: #E0E0E0; } /* Error Placeholder */ .ui.form .error ::-webkit-input-placeholder { color: rgba(255, 80, 80, 0.4); } .ui.form .error ::-moz-placeholder { color: rgba(255, 80, 80, 0.4); } .ui.form .error :focus::-webkit-input-placeholder { color: rgba(255, 80, 80, 0.7); } .ui.form .error :focus::-moz-placeholder { color: rgba(255, 80, 80, 0.7); } /*-------------------- Disabled ---------------------*/ .ui.form .field :disabled, .ui.form .field.disabled { opacity: 0.5; } .ui.form .field.disabled :disabled { opacity: 1; } /*-------------------- Loading State ---------------------*/ /* On Form */ .ui.form.loading { position: relative; } .ui.form.loading:after { position: absolute; top: 0%; left: 0%; content: ''; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8) url(../images/throbber-large.gif) no-repeat 50% 50%; } /******************************* Variations *******************************/ /*-------------------- Fluid Width ---------------------*/ .ui.form.fluid { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } /*-------------------------- Input w/ attached Button ---------------------------*/ .ui.form input.attached { width: auto; } /*-------------------- Date Input ---------------------*/ .ui.form .date.field > label { position: relative; } .ui.form .date.field > label:after { position: absolute; top: 1.2em; right: 0.4em; font-family: 'Icons'; content: '📅'; /* '\1f4c5' */ font-size: 1.5em; font-weight: normal; color: #CCCCCC; } /*-------------------- Inverted Colors ---------------------*/ .ui.inverted.form label { color: #FFFFFF; } .ui.inverted.form .field.error textarea, .ui.inverted.form .field.error input[type="text"] { background-color: #FFCCCC; } /*-------------------- Field Groups ---------------------*/ /* Split fields */ .ui.form .fields { clear: both; } .ui.form .fields:after { content: ' '; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .ui.form .fields .field { clear: none; float: left; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } .ui.form .fields .field:first-child { border-left: none; box-shadow: none; } /* Other Combinations */ .ui.form .fields .field, .ui.form .two.fields .field { width: 50%; padding-left: 1%; padding-right: 1%; } .ui.form .three.fields .field { width: 33.333%; padding-left: 1%; padding-right: 1%; } .ui.form .four.fields .field { width: 25%; padding-left: 1%; padding-right: 1%; } .ui.form .five.fields .field { width: 20%; padding-left: 1%; padding-right: 1%; } /* override sides, ie8 no last-child */ .ui.form .fields .field:first-child { padding-left: 0%; } .ui.form .fields .field:last-child { padding-right: 0%; } /*-------------------- Inline Fields ---------------------*/ .ui.form .inline.fields .field { width: auto; } .ui.form .inline.fields .field > label, .ui.form .inline.fields .field > p, .ui.form .inline.fields .field > input, .ui.form .inline.fields .field > select, .ui.form .inline.field > label, .ui.form .inline.field > p, .ui.form .inline.field > input, .ui.form .inline.field > select { display: inline-block; vertical-align: middle; width: auto; } .ui.form .inline.fields .field > :first-child, .ui.form .inline.field > :first-child { margin-right: 0.5em; } /*-------------------- Sizes ---------------------*/ /* Standard */ .ui.small.form { font-size: 14px; } .ui.small.form textarea, .ui.small.form input[type="text"], .ui.small.form input[type="password"], .ui.small.form label { font-size: 1em; } .ui.form { font-size: 16px; } /* Large */ .ui.large.form { font-size: 18px; } .ui.large.form label { font-weight: bold; }