UNPKG

ygd

Version:

An enterprise-class UI design language and React-based implementation

436 lines (435 loc) 12.2 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ .yg-input { box-sizing: content-box; margin: 0; padding: 0; list-style: none; position: relative; display: inline-block; width: 178px; height: 28px; padding: 0px 10px; color: #333; font-size: 12px; line-height: 28px; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 2px; transition: all 0.3s; } .yg-input::-moz-placeholder { color: #ccc; opacity: 1; } .yg-input:-ms-input-placeholder { color: #ccc; } .yg-input::-webkit-input-placeholder { color: #ccc; } .yg-input:hover { border-color: #bababa; border-right-width: 1px; } .yg-input:focus { border-color: #bababa; border-right-width: 1px; outline: 0; box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.2); } .yg-input-disabled { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-input-disabled:hover { border-color: #bababa; border-right-width: 1px; } .yg-input[disabled] { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-input[disabled]:hover { border-color: #bababa; border-right-width: 1px; } textarea.yg-input { max-width: 100%; height: auto; min-height: 28px; vertical-align: bottom; transition: all 0.3s, height 0s; } .yg-input-lg { height: 38px; line-height: 38px; padding: 0px 10px; font-size: 14px; } .yg-input-sm { height: 22px; line-height: 22px; padding: 0px 7px; } .yg-input.yg-input-60 { width: 58px; } .yg-input.yg-input-120 { width: 118px; } .yg-input.yg-input-180 { width: 178px; } .yg-input.yg-input-300 { width: 298px; } .yg-input.yg-input-360 { width: 358px; } .yg-input.yg-input-500 { width: 498px; } .yg-input.yg-input-540 { width: 538px; } .yg-input-group { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; display: inline; border-collapse: separate; border-spacing: 0; } .yg-input-group[class*='col-'] { float: none; padding-right: 0; padding-left: 0; } .yg-input-group > [class*='col-'] { padding-right: 8px; } .yg-input-group > [class*='col-']:last-child { padding-right: 0; } .yg-input-group-addon, .yg-input-group-wrap, .yg-input-group > .yg-input { display: table-cell; } .yg-input-group-addon:not(:first-child):not(:last-child), .yg-input-group-wrap:not(:first-child):not(:last-child), .yg-input-group > .yg-input:not(:first-child):not(:last-child) { border-radius: 0; } .yg-input-group-addon, .yg-input-group-wrap { width: 1px; white-space: nowrap; vertical-align: middle; } .yg-input-group-wrap > * { display: block; } .yg-input-group .yg-input { float: left; width: 178px; margin-bottom: 0; text-align: inherit; } .yg-input-group .yg-input:focus { z-index: 1; border-right-width: 1px; } .yg-input-group .yg-input:hover { z-index: 1; border-right-width: 1px; } .yg-input-group-addon { position: relative; float: left; padding: 0 10px; color: #333; font-weight: normal; font-size: 12px; line-height: 28px; height: 28px; text-align: center; background-color: #fafafa; border: 1px solid #ccc; border-radius: 2px; transition: all 0.3s; } .yg-input-group-addon .yg-select { margin: -1px -10px; } .yg-input-group-addon .yg-select .yg-select-selection-selected-value { margin-left: -5px; } .yg-input-group-addon .yg-select .yg-select-selection { margin: -1px; background-color: inherit; border: 1px solid transparent; box-shadow: none; } .yg-input-group-addon .yg-select-open .yg-select-selection, .yg-input-group-addon .yg-select-focused .yg-select-selection { color: #00a1ff; } .yg-input-group-addon > i:only-child::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; content: ''; } .yg-input-group > .yg-input:first-child, .yg-input-group-addon:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; width: auto; } .yg-input-group > .yg-input:first-child .yg-select .yg-select-selection, .yg-input-group-addon:first-child .yg-select .yg-select-selection { border-top-right-radius: 0; border-bottom-right-radius: 0; } .yg-input-group > .yg-input-affix-wrapper:not(:first-child) .yg-input { border-top-left-radius: 0; border-bottom-left-radius: 0; } .yg-input-group > .yg-input-affix-wrapper:not(:last-child) .yg-input { border-top-right-radius: 0; border-bottom-right-radius: 0; } .yg-input-group-addon:first-child { border-right: 0; } .yg-input-group-addon:last-child { border-left: 0; } .yg-input-group > .yg-input:last-child, .yg-input-group-addon:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; width: auto; } .yg-input-group > .yg-input:last-child .yg-select .yg-select-selection, .yg-input-group-addon:last-child .yg-select .yg-select-selection { border-top-left-radius: 0; border-bottom-left-radius: 0; } .yg-input-group-lg .yg-input, .yg-input-group-lg > .yg-input-group-addon { height: 38px; line-height: 38px; padding: 0px 10px; font-size: 14px; } .yg-input-group-sm .yg-input, .yg-input-group-sm > .yg-input-group-addon { height: 22px; line-height: 22px; padding: 0px 7px; } .yg-input-group-lg .yg-select-selection--single { height: 38px; } .yg-input-group-sm .yg-select-selection--single { height: 22px; } .yg-input-group .yg-input-affix-wrapper { display: table-cell; float: left; } .yg-input-group.yg-input-group-compact { display: block; zoom: 1; } .yg-input-group.yg-input-group-compact::before, .yg-input-group.yg-input-group-compact::after { content: ''; display: table; } .yg-input-group.yg-input-group-compact::after { clear: both; } .yg-input-group.yg-input-group-compact-addon:not(:first-child):not(:last-child), .yg-input-group.yg-input-group-compact-wrap:not(:first-child):not(:last-child), .yg-input-group.yg-input-group-compact > .yg-input:not(:first-child):not(:last-child) { border-right-width: 1px; } .yg-input-group.yg-input-group-compact-addon:not(:first-child):not(:last-child):hover, .yg-input-group.yg-input-group-compact-wrap:not(:first-child):not(:last-child):hover, .yg-input-group.yg-input-group-compact > .yg-input:not(:first-child):not(:last-child):hover { z-index: 1; } .yg-input-group.yg-input-group-compact-addon:not(:first-child):not(:last-child):focus, .yg-input-group.yg-input-group-compact-wrap:not(:first-child):not(:last-child):focus, .yg-input-group.yg-input-group-compact > .yg-input:not(:first-child):not(:last-child):focus { z-index: 1; } .yg-input-group.yg-input-group-compact > * { display: inline-block; float: none; vertical-align: top; border-radius: 0; } .yg-input-group.yg-input-group-compact > *:not(:last-child) { margin-right: -1px; border-right-width: 1px; } .yg-input-group.yg-input-group-compact .yg-input { float: none; } .yg-input-group.yg-input-group-compact > .yg-select > .yg-select-selection, .yg-input-group.yg-input-group-compact > .yg-calendar-picker .yg-input, .yg-input-group.yg-input-group-compact > .yg-select-auto-complete .yg-input, .yg-input-group.yg-input-group-compact > .yg-cascader-picker .yg-input, .yg-input-group.yg-input-group-compact > .yg-mention-wrapper .yg-mention-editor, .yg-input-group.yg-input-group-compact > .yg-time-picker .yg-time-picker-input { border-right-width: 1px; border-radius: 0; } .yg-input-group.yg-input-group-compact > .yg-select > .yg-select-selection:hover, .yg-input-group.yg-input-group-compact > .yg-calendar-picker .yg-input:hover, .yg-input-group.yg-input-group-compact > .yg-select-auto-complete .yg-input:hover, .yg-input-group.yg-input-group-compact > .yg-cascader-picker .yg-input:hover, .yg-input-group.yg-input-group-compact > .yg-mention-wrapper .yg-mention-editor:hover, .yg-input-group.yg-input-group-compact > .yg-time-picker .yg-time-picker-input:hover { z-index: 1; } .yg-input-group.yg-input-group-compact > .yg-select > .yg-select-selection:focus, .yg-input-group.yg-input-group-compact > .yg-calendar-picker .yg-input:focus, .yg-input-group.yg-input-group-compact > .yg-select-auto-complete .yg-input:focus, .yg-input-group.yg-input-group-compact > .yg-cascader-picker .yg-input:focus, .yg-input-group.yg-input-group-compact > .yg-mention-wrapper .yg-mention-editor:focus, .yg-input-group.yg-input-group-compact > .yg-time-picker .yg-time-picker-input:focus { z-index: 1; } .yg-input-group.yg-input-group-compact > *:first-child, .yg-input-group.yg-input-group-compact > .yg-select:first-child > .yg-select-selection, .yg-input-group.yg-input-group-compact > .yg-calendar-picker:first-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-select-auto-complete:first-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-cascader-picker:first-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-mention-wrapper:first-child .yg-mention-editor, .yg-input-group.yg-input-group-compact > .yg-time-picker:first-child .yg-time-picker-input { border-top-left-radius: 2px; border-bottom-left-radius: 2px; border-right: none; } .yg-input-group.yg-input-group-compact > *:last-child, .yg-input-group.yg-input-group-compact > .yg-select:last-child > .yg-select-selection, .yg-input-group.yg-input-group-compact > .yg-calendar-picker:last-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-select-auto-complete:last-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-cascader-picker:last-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-cascader-picker-focused:last-child .yg-input, .yg-input-group.yg-input-group-compact > .yg-mention-wrapper:last-child .yg-mention-editor, .yg-input-group.yg-input-group-compact > .yg-time-picker:last-child .yg-time-picker-input { border-right-width: 1px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; } .yg-input-group.yg-input-group-compact > .yg-select-auto-complete .yg-input { vertical-align: top; } .yg-input-group-wrapper { display: inline-block; text-align: start; vertical-align: top; } .yg-input-affix-wrapper { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; display: inline-block; text-align: start; } .yg-input-affix-wrapper:hover .yg-input:not(.yg-input-disabled) { border-color: #bababa; border-right-width: 1px; } .yg-input-affix-wrapper .yg-input { position: relative; text-align: inherit; } .yg-input-affix-wrapper .yg-input-prefix, .yg-input-affix-wrapper .yg-input-suffix { position: absolute; top: 50%; z-index: 2; color: #333; line-height: 0; transform: translateY(-50%); } .yg-input-affix-wrapper .yg-input-prefix :not(.anticon), .yg-input-affix-wrapper .yg-input-suffix :not(.anticon) { line-height: 28px; } .yg-input-affix-wrapper .yg-input-prefix { left: 10px; } .yg-input-affix-wrapper .yg-input-suffix { right: 10px; } .yg-input-affix-wrapper .yg-input:not(:first-child) { padding-left: 28px; width: 160px; } .yg-input-affix-wrapper .yg-input:not(:last-child) { padding-right: 28px; width: 160px; } .yg-input-affix-wrapper .yg-input:not(:first-child):not(:last-child) { padding-left: 28px; width: 142px; } .yg-input-affix-wrapper .yg-input { min-height: 100%; } .yg-input-password-icon { cursor: pointer; transition: all 0.3s; margin-left: 5px; } .yg-input-password-icon:hover { color: #333; } .yg-input-search-icon { color: rgba(0, 0, 0, 0.45); cursor: pointer; transition: all 0.3s; } .yg-input-search-icon:hover { color: rgba(0, 0, 0, 0.8); } .yg-input-search-enter-button input { border-right: 0; } .yg-input-search-enter-button + .yg-input-group-addon, .yg-input-search-enter-button input + .yg-input-group-addon { padding: 0; border: 0; } .yg-input-search-enter-button + .yg-input-group-addon .yg-input-search-button, .yg-input-search-enter-button input + .yg-input-group-addon .yg-input-search-button { border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 0 10px; }