123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- @charset "utf-8";
-
- $label-width: 110px;
- $label-adjust: 10px;
- $item-adjust: 15px;
- $input-height: 30px;
- $input-color: #666;
- $input-border-color: #ccc;
- $upload-file-width: 214px;
- $upload-file-height: 30px;
- .ui-form {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size: 12px;
- line-height: 1.5;
- }
- .ui-form__item {
- @include clearfix;
- padding: 0 5px $item-adjust ($label-width + $label-adjust);
-
-
-
-
- &.is-error {
- .ui-input {
- border-color: $danger-color;
- }
- .ui-form__tips {
- color: $danger-color;
- }
- }
- }
- .ui-form__label {
- float: left;
- width: $label-width;
- margin-left: -($label-width + $label-adjust);
- padding-top: 6px;
- text-align: right;
- }
- .ui-form__tips {
- margin-left: 5px;
- color: #999;
- }
- .ui-form__required {
- font-family: SimSun;
- color: $danger-color;
- margin-right: 2px;
- }
- .ui-form__control {
- .ui-btn {
- margin-right: 10px;
- }
- }
- .ui-form__multi {
- .ui-input {
- margin-bottom: 10px;
- &:last-of-type {
- margin-bottom: 0;
- }
- }
- }
- .ui-form {
- &.ext-blockTips {
- .ui-form__tips {
- display: block;
- padding-top: 8px;
- }
- }
- }
- $label-width--left: 60px;
- .ui-form {
- &.ext-alignLeft {
- .ui-form__item {
- padding-left: $label-width--left + $label-adjust;
- }
- .ui-form__label {
- width: $label-width--left;
- margin-left: -$label-width--left - $label-adjust;
- text-align: left;
- }
- .ui-form__required {
- margin-left: 2px;
- }
- }
- }
- .ui-form {
- &.ext-stacked {
- padding-left: 0;
- .ui-form__item {
- padding-left: 0;
- }
- .ui-form__label {
- float: none;
- width: auto;
- display: block;
- margin-left: 0;
- padding-top: 0;
- padding-bottom: 5px;
- text-align: left;
- }
- .ui-form__required {
- margin-left: 2px;
- }
- }
- }
- .ui-form {
- &.ext-inline {
- padding-left: 0;
- .ui-form__item {
- @include inline-block;
- padding-right: 15px;
- padding-left: 0;
- vertical-align: middle;
- }
- .ui-form__label {
- @include inline-block;
- float: none;
- margin-left: 0;
- width: auto;
- margin-right: 10px;
- }
- }
- }
- .ui-form {
- &.ext-noLabel {
- .ui-form__item {
- padding-left: 0;
- }
- }
- }
- .ui-form {
- &.ext-multiCol {
- letter-spacing: -.31em;
- *letter-spacing: normal;
- *word-spacing: -.43em;
- font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
- text-rendering: optimizespeed;
- display: -webkit-flex;
- -webkit-flex-flow: row wrap;
- display: -ms-flexbox;
- -ms-flex-flow: row wrap;
-
- .ui-form__item {
- @include inline-block(top, true);
- letter-spacing: normal;
- word-spacing: normal;
- text-rendering: auto;
- padding: 0 0 15px;
- }
- .ui-form__label {
- display: block;
- float: none;
- margin: 0 0 5px;
- padding: 0;
- text-align: left;
- }
- .ui-form__control {
- display: block;
- width: 100% !important;
- }
- }
-
-
-
- &.ext-grid2 {
- .ui-form__item {
- width: 50%;
- *width: 49.9690%;
- }
- }
-
-
- &.ext-grid3 {
- .ui-form__item {
- width: 33.3333%;
- *width: 33.3023%;
- }
- }
-
-
- &.ext-grid4 {
- .ui-form__item {
- width: 25%;
- *width: 24.9690%;
- }
- }
- }
- .ui-input,
- %ui-input {
- height: $input-height - 10;
- line-height: $input-height - 10;
- padding: 4px 5px;
- vertical-align: middle;
- border: 1px solid $input-border-color;
- color: $input-color;
- }
- .ui-inputGroup {
- font-size: 0;
- *word-spacing: -1px;
- * {
- font-size: 12px;
- vertical-align: top;
- letter-spacing: normal;
- word-spacing: normal;
- }
- .ui-input,
- .ui-btn {
- position: relative;
- &:focus {
- z-index: 2;
- }
- }
- }
- @media (-webkit-min-device-pixel-ratio:0) {
- .ui-inputGroup {
- letter-spacing: -5px;
- }
- }
- .ui-inputGroup__addon {
- @extend %ui-input;
- @include inline-block;
- width: auto;
- min-width: 16px;
- margin-right: -1px;
- text-align: center;
- background-color: #eee;
- color: #666;
- }
- .ui-inputGroup {
- &.ext-append {
- .ui-inputGroup__addon,
- .ui-btn {
- margin-left: -1px;
- }
- }
- }
- .ui-textarea {
- padding: 4px 5px;
- border: 1px solid $input-border-color;
- color: $input-color;
- }
- input[type="radio"] {
- margin: 2px 0;
- *margin-top: 0;
- }
- input[type="checkbox"] {
- margin: 3px 0;
- *margin-top: 0;
- }
- .ui-select {
- vertical-align: middle;
- margin-right: 5px;
- }
- .ui-form__txt,
- .ui-radio,
- .ui-checkbox,
- .ui-fileInput {
- @include inline-block;
- vertical-align: middle;
-
- margin: 5px 12px 0 0;
- }
- .ui-radio,
- .ui-checkbox {
- input[type="radio"],
- input[type="checkbox"] {
- float: left;
- margin-right: 5px;
- }
- }
- .ui-upload {
- position: relative;
- font-size: 0;
- .ui-input {
- margin-right: 10px;
- font-size: 12px;
- }
- }
- .ui-upload__file {
- position: absolute;
- top: 0;
- left: 0;
- @include opacity(0, true);
- width: $upload-file-width;
- height: $upload-file-height;
- line-height: $upload-file-height;
- font-size: 12px;
- cursor: pointer;
- }
- .ui-upload {
- &.ext-single {
- @include inline-block;
- vertical-align: middle;
- position: relative;
- overflow: hidden;
- .ui-upload__file {
- right: 0;
- left: auto;
- height: 100%;
- font-size: 26px;
- }
- }
- }
- input[disabled],
- select[disabled],
- textarea[disabled],
- input[readonly],
- select[readonly],
- textarea[readonly] {
- color: $disabled-text-color;
-
- background-color: $disabled-bg-color;
- border: 1px solid #ddd;
- }
- input[disabled],
- select[disabled],
- textarea[disabled] {
- cursor: not-allowed;
- }
- input[readonly],
- select[readonly],
- textarea[readonly] {
- color: #999;
- cursor: text;
- background-color: #f7f7f7;
- }
|