| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- // IOS OVERRIDE
- // -----------------------------------------------------------------------------
- /* Form - iOS Override */
- input[type="text"],
- input[type="password"],
- input[type="datetime"],
- input[type="datetime-local"],
- input[type="date"],
- input[type="month"],
- input[type="time"],
- input[type="week"],
- input[type="number"],
- input[type="email"],
- input[type="url"],
- input[type="search"],
- input[type="tel"],
- input[type="color"],
- textarea {
- -webkit-appearance: none;
- }
- // PLACEHOLDERS
- // -----------------------------------------------------------------------------
- .form-control,
- input[type="text"],
- input[type="password"],
- input[type="datetime"],
- input[type="datetime-local"],
- input[type="date"],
- input[type="month"],
- input[type="time"],
- input[type="week"],
- input[type="number"],
- input[type="email"],
- input[type="url"],
- input[type="search"],
- input[type="tel"],
- input[type="color"],
- textarea {
- @include placeholder-color(#bdbdbd);
- }
- // DARK - FORM
- // -----------------------------------------------------------------------------
- html.dark {
- .form-control {
- background-color: $dark-color-3;
- border-color: $dark-color-3;
- color: #EEE;
- }
- .form-control[disabled],
- .form-control[readonly],
- fieldset[disabled] .form-control {
- background-color: $dark-color-2;
- }
- .input-group-addon {
- background-color: $dark-color-2;
- border-color: $dark-color-2;
- color: #EEE;
- }
- }
- // BOOTSTRAP OVERRIDE
- // -----------------------------------------------------------------------------
- /* Form - Bootstrap Override */
- .btn-lg,
- .btn-group-lg > .btn {
- line-height: 1.334;
- }
- select {
- &.input-sm,
- &.input-lg {
- line-height: 1;
- }
- }
- // CUSTOM FIELDS
- // -----------------------------------------------------------------------------
- /* Form - Custom Fields */
- .required {
- display: inline-block;
- color: $color-danger;
- font-size: 0.8em;
- font-weight: bold;
- position: relative;
- top: -0.2em;
- }
- label.error {
- color: #B94A48;
- margin-top: 2px;
- }
- // FORM GROUP (OVERRIDE)
- // -----------------------------------------------------------------------------
- /* Form - Group Override */
- .form-group {
- &:after {
- clear: both;
- display: block;
- content: '';
- }
- &:last-child,
- &:last-of-type {
- margin-bottom: 0;
- }
- }
- // BORDERED FORM
- // -----------------------------------------------------------------------------
- /* Form - Bordered */
- .form-bordered {
- .form-group {
- border-bottom: 1px solid #eff2f7;
- padding-bottom: 15px;
- margin-bottom: 15px;
- &:last-child,
- &:last-of-type {
- border-bottom: none !important;
- padding-bottom: 0px !important;
- margin-bottom: 0px !important;
- }
- }
- }
- // DARK - BORDERED FORM
- // -----------------------------------------------------------------------------
- /* Dark - Form - Bordered */
- html.dark {
- .form-bordered {
- .form-group {
- border-bottom: 1px solid darken($dark-color-4, 5%);
- padding-bottom: 15px;
- margin-bottom: 15px;
- }
- }
- }
- // VERTICAL GROUP / STACKED
- // -----------------------------------------------------------------------------
- /* Form - Vertical Group / Stacked */
- .form-group-vertical {
- position: relative;
- white-space: nowrap;
- .form-control {
- border-radius: 0;
- margin-top: -1px;
- z-index: 1;
- &:first-child,
- &:first-of-type {
- border-radius: 4px 4px 0 0;
- }
- &:last-child,
- &:last-of-type {
- border-radius: 0 0 4px 4px;
- }
- &:focus {
- position: relative;
- z-index: 2;
- }
- }
- .input-group {
- margin-top: -1px;
- .form-control {
- margin-top: 0;
- }
- &:first-child,
- &:first-of-type {
- .input-group-addon {
- border-radius: 4px 0 0 0;
- }
- .form-control {
- border-radius: 0 4px 0 0;
- }
- }
- &:last-child,
- &:last-of-type {
- .input-group-addon {
- border-radius: 0 0 0 4px;
- }
- .form-control {
- border-radius: 0 0 4px 0;
- }
- }
- &.input-group-icon {
- &:first-child,
- &:first-of-type {
- .input-group-addon {
- border-radius: 4px 4px 0 0;
- }
- .form-control {
- border-radius: 4px 4px 0 0;
- }
- }
- &:last-child,
- &:last-of-type {
- .input-group-addon {
- border-radius: 0 0 4px 4px;
- }
- .form-control {
- border-radius: 0 0 4px 4px;
- }
- }
- }
- }
- }
- // INPUT (OVERRIDE)
- // -----------------------------------------------------------------------------
- /* Form - Input Override */
- .input-lg {
- border-radius: 4px;
- }
- // INPUT ICON
- // -----------------------------------------------------------------------------
- /* Form - Input Icon */
- .input-group-icon,
- .input-search {
- width: 100%;
- table-layout: fixed;
- input.form-control {
- @include font-size(12);
- padding-right: 36px;
- &:first-child,
- &:last-child {
- border-radius: 4px;
- }
- }
- .input-group-btn {
- border-radius: 500px;
- width: 0;
- &:first-child,
- &:last-child {
- border-radius: 500px;
- }
- button {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- border: 0;
- z-index: 3;
- background:transparent;
- &:active {
- -webkit-box-shadow: none;
- box-shadow: none;
- }
- }
- &:last-child {
- button {
- left: auto;
- right: 0;
- }
- }
- & + input.form-control {
- padding-right: 12px;
- padding-left: 36px;
- }
- }
- .input-group-addon {
- position: relative;
- padding: 0;
- border: 0 none;
- width: 0;
- span.icon {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- border: 0;
- z-index: 3;
- width: auto;
- display: inline-block;
- vertical-align: middle;
- text-align: center;
- padding: 6px 12px;
- background: transparent;
- line-height: 1.42857143;
- -webkit-box-sizing: content-box;
- -moz-box-sizing: content-box;
- box-sizing: content-box;
- pointer-events: none;
- &.icon-lg {
- padding: 10px 14px;
- font-size: 18px;
- }
- }
- &:last-child {
- span.icon {
- left: auto;
- right: 0;
- }
- }
- & + input.form-control {
- padding-right: 12px;
- padding-left: 36px;
- }
- }
- }
- // INPUT SEARCH
- // -----------------------------------------------------------------------------
- /* Form - Input Search */
- .input-search {
- width: 100%;
- input.form-control {
- &:focus {
- border-color: #ccc;
- -webkit-box-shadow: none;
- box-shadow: none;
- }
- }
- .input-group-btn {
- color: #ccc;
- .btn {
- padding-left: 15px;
- }
- .btn-default {
- color: #ccc;
- }
- }
- }
- /* Dark */
- .input-search {
- width: 100%;
- input.form-control {
- &:focus {
- border-color: $dark-color-1;
- }
- }
- .input-group-btn {
- .btn {
- background: transparent !important;
- }
- }
- }
- // ROUND INPUT
- // -----------------------------------------------------------------------------
- /* Form - Round Input */
- input.input-rounded {
- -webkit-border-radius: 500px;
- border-radius: 500px;
- }
- .input-group-rounded,
- .input-search {
- input.form-control {
- -webkit-border-radius: 500px;
- border-radius: 500px;
- &:first-child,
- &:last-child {
- border-radius: 500px;
- }
- }
- .input-group-addon {
- &:first-child {
- border-radius: 500px 0 0 500px;
- }
- &:last-child {
- border-radius: 0 500px 500px 0;
- }
- }
- }
- // CUSTOM CHECKBOX
- // -----------------------------------------------------------------------------
- /* Form - Custom Checkbox */
- .checkbox-custom {
- position: relative;
- padding: 0 0 0 25px;
- margin-bottom: 7px;
- margin-top: 0;
- &.checkbox-inline {
- display: inline-block;
- vertical-align: middle;
- .form-group & {
- margin-top: 7px;
- padding-top: 0;
- }
- }
- &:last-child,
- &:last-of-type {
- margin-bottom: 0;
- }
- input[type="checkbox"] {
- opacity: 0;
- position: absolute;
- top: 50%;
- left: 3px;
- margin: -6px 0 0 0;
- z-index: 2;
- cursor: pointer;
- &:checked {
- & + label:after {
- position: absolute;
- display: inline-block;
- font-family: 'FontAwesome';
- content: '\F00C';
- top: 50%;
- left: 4px;
- margin-top: -5px;
- font-size: 11px;
- line-height: 1;
- width: 16px;
- height: 16px;
- color: #333;
- }
- }
- &:disabled {
- cursor: not-allowed;
- &:checked + label:after {
- color: #999;
- }
- & + label {
- cursor: not-allowed;
- }
- & + label:before {
- background-color: #eee;
- }
- }
- }
- label {
- cursor: pointer;
- margin-bottom: 0;
- text-align: left;
- line-height: 1.2;
- &:before {
- content: '';
- position: absolute;
- top: 50%;
- left: 0;
- margin-top: -9px;
- width: 19px;
- height: 18px;
- display: inline-block;
- border-radius: 2px;
- border: 1px solid #bbb;
- background: #fff;
- }
- & + label.error {
- display: block;
- }
- }
- }
- html.dark {
- .checkbox-custom {
- label {
- &:before {
- background: $dark-color-3;
- border-color: $dark-color-2;
- }
- }
- input[type="checkbox"] {
- &:checked + label:after {
- color: #fff;
- }
- &:disabled + label:before {
- background: $dark-color-5;
- border-color: $dark-color-5;
- }
- }
- }
- }
- @each $state in $states {
- html.dark .checkbox-#{nth($state,1)},
- .checkbox-#{nth($state,1)} {
- input[type="checkbox"]:checked + label:after {
- color: #fff;
- }
- label:before {
- background: #{nth($state,2)};
- border-color: darken( nth($state,2), 5% );
- }
- }
- html.dark .checkbox-text-#{nth($state,1)},
- .checkbox-text-#{nth($state,1)} {
- input[type="checkbox"]:checked + label:after {
- color: #{nth($state, 2)};
- }
- }
- }
- // CUSTOM RADIO
- // -----------------------------------------------------------------------------
- /* Form - Custom Radio */
- .radio-custom {
- position: relative;
- padding: 0 0 0 25px;
- margin-bottom: 7px;
- margin-top: 0;
- &.radio-inline {
- display: inline-block;
- vertical-align: middle;
- .form-group & {
- margin-top: 7px;
- padding-top: 0;
- }
- }
- &:last-child,
- &:last-of-type {
- margin-bottom: 0;
- }
- input[type="radio"] {
- opacity: 0;
- position: absolute;
- top: 50%;
- left: 3px;
- margin: -6px 0 0 0;
- z-index: 2;
- cursor: pointer;
- &:checked {
- & + label:after {
- content: '';
- position: absolute;
- top: 50%;
- left: 4px;
- margin-top: -5px;
- display: inline-block;
- font-size: 11px;
- line-height: 1;
- width: 10px;
- height: 10px;
- background-color: #444;
- border-radius: 50px;
- -webkit-box-shadow: 0px 0px 1px #444;
- box-shadow: 0px 0px 1px #444;
- }
- }
- &:disabled {
- cursor: not-allowed;
- &:checked + label:after {
- color: #999;
- }
- & + label {
- cursor: not-allowed;
- }
- & + label:before {
- background-color: #eee;
- }
- }
- }
- label {
- cursor: pointer;
- margin-bottom: 0;
- text-align: left;
- line-height: 1.2;
- &:before {
- content: '';
- position: absolute;
- top: 50%;
- left: 0;
- margin-top: -9px;
- width: 18px;
- height: 18px;
- display: inline-block;
- border-radius: 50px;
- border: 1px solid #bbb;
- background: #fff;
- }
- & + label.error {
- display: block;
- }
- }
- }
- html.dark {
- .radio-custom {
- label {
- &:before {
- background: $dark-color-3;
- border-color: $dark-color-2;
- }
- }
- input[type="radio"]{
- &:checked + label:after {
- background-color: #fff;
- }
- &:disabled + label:before {
- background: $dark-color-5;
- border-color: $dark-color-5;
- }
- }
- }
- }
- @each $state in $states {
- html.dark .radio-#{nth($state,1)},
- .radio-#{nth($state,1)} {
- input[type="radio"]:checked + label:after {
- background: #{nth($state,2)};
- -webkit-box-shadow: 0px 0px 1px #{nth($state,2)};
- box-shadow: 0px 0px 1px #{nth($state,2)};
- }
- }
- }
- // ERROR CONTAINER
- // -----------------------------------------------------------------------------
- /* Form - Error Container */
- div.validation-message ul {
- display: none;
- list-style: none;
- margin: -15px -15px 15px -15px;
- padding: 15px;
- border-bottom: 1px solid #FFCBCB;
- background: #FFEFEF;
- label.error {
- display: block;
- padding-left: 22px;
- position: relative;
- &:before {
- font-family: 'FontAwesome';
- content: '\f00d';
- position: absolute;
- top: 0;
- left: 0;
- font-size: 16px;
- color: #D9534F;
- display: inline-block;
- }
- }
- }
- // DARK - FILE UPLOAD
- // -----------------------------------------------------------------------------
- html.dark {
- .fileupload .uneditable-input {
- background-color: $dark-color-3;
- border-color: $dark-color-3;
- }
- .fileupload-new .input-append .btn-file {
- border-color: $dark-color-2;
- }
- }
|