UNPKG

phoenix-components-library

Version:

Component library for Phoenix Frontend Projects.

868 lines (867 loc) 22.8 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ .ant-input { font-family: 'ClearSans', 'BrandonLight', sans-serif; box-sizing: border-box; margin: 0; padding: 0; list-style: none; position: relative; display: inline-block; padding: 4px 11px; width: 100%; height: 32px; font-size: 13px; line-height: 1.5; color: #525b5d; background-color: #fff; background-image: none; border: 1px solid #bec2c2; border-radius: 4px; transition: all 0.3s; } .ant-input::-moz-placeholder { color: #bfbfbf; opacity: 1; } .ant-input:-ms-input-placeholder { color: #bfbfbf; } .ant-input::-webkit-input-placeholder { color: #bfbfbf; } .ant-input:hover { border-color: #8ec46e; border-right-width: 1px !important; } .ant-input:focus { border-color: #8ec46e; outline: 0; box-shadow: 0 0 0 2px rgba(109, 183, 73, 0.2); border-right-width: 1px !important; } .ant-input-disabled { background-color: #f5f5f5; opacity: 1; cursor: not-allowed; color: rgba(0, 0, 0, 0.25); } .ant-input-disabled:hover { border-color: #c2cfce; border-right-width: 1px !important; } textarea.ant-input { max-width: 100%; height: auto; vertical-align: bottom; transition: all 0.3s, height 0s; min-height: 32px; } .ant-input-lg { padding: 6px 11px; height: 40px; font-size: 15px; } .ant-input-sm { padding: 1px 7px; height: 24px; } .ant-input-group { font-family: 'ClearSans', 'BrandonLight', sans-serif; font-size: 13px; line-height: 1.5; color: #525b5d; box-sizing: border-box; margin: 0; padding: 0; list-style: none; position: relative; display: table; border-collapse: separate; border-spacing: 0; width: 100%; } .ant-input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .ant-input-group > [class*="col-"] { padding-right: 8px; } .ant-input-group > [class*="col-"]:last-child { padding-right: 0; } .ant-input-group-addon, .ant-input-group-wrap, .ant-input-group > .ant-input { display: table-cell; } .ant-input-group-addon:not(:first-child):not(:last-child), .ant-input-group-wrap:not(:first-child):not(:last-child), .ant-input-group > .ant-input:not(:first-child):not(:last-child) { border-radius: 0; } .ant-input-group-addon, .ant-input-group-wrap { width: 1px; white-space: nowrap; vertical-align: middle; } .ant-input-group-wrap > * { display: block !important; } .ant-input-group .ant-input { float: left; width: 100%; margin-bottom: 0; } .ant-input-group .ant-input:focus { z-index: 1; border-right-width: 1px; } .ant-input-group .ant-input:hover { z-index: 1; border-right-width: 1px; } .ant-input-group-addon { padding: 0 11px; font-size: 13px; font-weight: normal; line-height: 1; color: #525b5d; text-align: center; background-color: #fafafa; border: 1px solid #bec2c2; border-radius: 4px; position: relative; transition: all 0.3s; } .ant-input-group-addon .ant-select { margin: -5px -11px; } .ant-input-group-addon .ant-select .ant-select-selection { background-color: inherit; margin: -1px; border: 1px solid transparent; box-shadow: none; } .ant-input-group-addon .ant-select-open .ant-select-selection, .ant-input-group-addon .ant-select-focused .ant-select-selection { color: #6db749; } .ant-input-group-addon > i:only-child:after { position: absolute; content: ""; top: 0; left: 0; right: 0; bottom: 0; } .ant-input-group > .ant-input:first-child, .ant-input-group-addon:first-child { border-bottom-right-radius: 0; border-top-right-radius: 0; } .ant-input-group > .ant-input:first-child .ant-select .ant-select-selection, .ant-input-group-addon:first-child .ant-select .ant-select-selection { border-bottom-right-radius: 0; border-top-right-radius: 0; } .ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input { border-bottom-left-radius: 0; border-top-left-radius: 0; } .ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input { border-bottom-right-radius: 0; border-top-right-radius: 0; } .ant-input-group-addon:first-child { border-right: 0; } .ant-input-group-addon:last-child { border-left: 0; } .ant-input-group > .ant-input:last-child, .ant-input-group-addon:last-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .ant-input-group > .ant-input:last-child .ant-select .ant-select-selection, .ant-input-group-addon:last-child .ant-select .ant-select-selection { border-bottom-left-radius: 0; border-top-left-radius: 0; } .ant-input-group-lg .ant-input, .ant-input-group-lg > .ant-input-group-addon { padding: 6px 11px; height: 40px; font-size: 15px; } .ant-input-group-sm .ant-input, .ant-input-group-sm > .ant-input-group-addon { padding: 1px 7px; height: 24px; } .ant-input-group-lg .ant-select-selection--single { height: 40px; } .ant-input-group-sm .ant-select-selection--single { height: 24px; } .ant-input-group .ant-input-affix-wrapper { display: table-cell; width: 100%; float: left; } .ant-input-group.ant-input-group-compact { display: block; zoom: 1; } .ant-input-group.ant-input-group-compact:before, .ant-input-group.ant-input-group-compact:after { content: ""; display: table; } .ant-input-group.ant-input-group-compact:after { clear: both; } .ant-input-group.ant-input-group-compact > * { border-radius: 0; border-right-width: 0; vertical-align: top; float: none; display: inline-block; } .ant-input-group.ant-input-group-compact .ant-input { float: none; } .ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selection, .ant-input-group.ant-input-group-compact > .ant-calendar-picker .ant-input, .ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input, .ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker .ant-time-picker-input { border-radius: 0; border-right-width: 0; } .ant-input-group.ant-input-group-compact > *:first-child, .ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selection, .ant-input-group.ant-input-group-compact > .ant-calendar-picker:first-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper:first-child .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker:first-child .ant-time-picker-input { border-top-left-radius: 4px; border-bottom-left-radius: 4px; } .ant-input-group.ant-input-group-compact > *:last-child, .ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selection, .ant-input-group.ant-input-group-compact > .ant-calendar-picker:last-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper:last-child .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker:last-child .ant-time-picker-input { border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-right-width: 1px; } .ant-input-group-wrapper { display: inline-block; vertical-align: top; width: 100%; } .ant-input-affix-wrapper { font-family: 'ClearSans', 'BrandonLight', sans-serif; font-size: 13px; line-height: 1.5; color: #525b5d; box-sizing: border-box; margin: 0; padding: 0; list-style: none; position: relative; display: inline-block; width: 100%; } .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #8ec46e; border-right-width: 1px !important; } .ant-input-affix-wrapper .ant-input { position: static; } .ant-input-affix-wrapper .ant-input-prefix, .ant-input-affix-wrapper .ant-input-suffix { position: absolute; top: 50%; transform: translateY(-50%); line-height: 0; color: #525b5d; } .ant-input-affix-wrapper .ant-input-prefix :not(.anticon), .ant-input-affix-wrapper .ant-input-suffix :not(.anticon) { line-height: 1.5; } .ant-input-affix-wrapper .ant-input-prefix { left: 12px; } .ant-input-affix-wrapper .ant-input-suffix { right: 12px; } .ant-input-affix-wrapper .ant-input:not(:first-child) { padding-left: 30px; } .ant-input-affix-wrapper .ant-input:not(:last-child) { padding-right: 30px; } .ant-input-affix-wrapper .ant-input { min-height: 100%; } .ant-select { font-family: 'ClearSans', 'BrandonLight', sans-serif; font-size: 13px; line-height: 1.5; color: #525b5d; box-sizing: border-box; margin: 0; padding: 0; list-style: none; display: inline-block; position: relative; } .ant-select ul, .ant-select ol { margin: 0; padding: 0; list-style: none; } .ant-select > ul > li > a { padding: 0; background-color: #fff; } .ant-select-arrow { display: inline-block; font-style: normal; vertical-align: baseline; text-align: center; text-transform: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: absolute; top: 50%; right: 11px; line-height: 1; margin-top: -6px; transform-origin: 50% 50%; color: rgba(0, 0, 0, 0.25); font-size: 12px; } .ant-select-arrow:before { display: block; font-family: "anticon" !important; } .ant-select-arrow * { display: none; } .ant-select-arrow:before { content: "\e61d"; transition: transform 0.3s; } .ant-select-selection { outline: none; user-select: none; box-sizing: border-box; display: block; background-color: #fff; border-radius: 4px; border: 1px solid #bec2c2; border-top-width: 1.02px; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-select-selection:hover { border-color: #8ec46e; border-right-width: 1px !important; } .ant-select-focused .ant-select-selection, .ant-select-selection:focus, .ant-select-selection:active { border-color: #8ec46e; outline: 0; box-shadow: 0 0 0 2px rgba(109, 183, 73, 0.2); border-right-width: 1px !important; } .ant-select-selection__clear { display: inline-block; font-style: normal; vertical-align: baseline; text-align: center; text-transform: none; text-rendering: auto; opacity: 0; position: absolute; right: 11px; z-index: 1; background: #fff; top: 50%; font-size: 12px; color: rgba(0, 0, 0, 0.25); width: 12px; height: 12px; margin-top: -6px; line-height: 12px; cursor: pointer; transition: color 0.3s ease, opacity 0.15s ease; } .ant-select-selection__clear:before { display: block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e62e"; } .ant-select-selection__clear:hover { color: rgba(0, 0, 0, 0.45); } .ant-select-selection:hover .ant-select-selection__clear { opacity: 1; } .ant-select-selection-selected-value { float: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding-right: 20px; } .ant-select-no-arrow .ant-select-selection-selected-value { padding-right: 0; } .ant-select-disabled { color: rgba(0, 0, 0, 0.25); } .ant-select-disabled .ant-select-selection { background: #f5f5f5; cursor: not-allowed; } .ant-select-disabled .ant-select-selection:hover, .ant-select-disabled .ant-select-selection:focus, .ant-select-disabled .ant-select-selection:active { border-color: #bec2c2; box-shadow: none; } .ant-select-disabled .ant-select-selection__clear { display: none; visibility: hidden; pointer-events: none; } .ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice { background: #f5f5f5; color: #aaa; padding-right: 10px; } .ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice__remove { display: none; } .ant-select-selection--single { height: 32px; position: relative; cursor: pointer; } .ant-select-selection__rendered { display: block; margin-left: 11px; margin-right: 11px; position: relative; line-height: 30px; } .ant-select-selection__rendered:after { content: "."; visibility: hidden; pointer-events: none; display: inline-block; width: 0; } .ant-select-lg { font-size: 15px; } .ant-select-lg .ant-select-selection--single { height: 40px; } .ant-select-lg .ant-select-selection__rendered { line-height: 38px; } .ant-select-lg .ant-select-selection--multiple { min-height: 40px; } .ant-select-lg .ant-select-selection--multiple .ant-select-selection__rendered li { height: 32px; line-height: 32px; } .ant-select-lg .ant-select-selection--multiple .ant-select-selection__clear { top: 20px; } .ant-select-sm .ant-select-selection--single { height: 24px; } .ant-select-sm .ant-select-selection__rendered { line-height: 22px; margin: 0 7px; } .ant-select-sm .ant-select-selection--multiple { min-height: 24px; } .ant-select-sm .ant-select-selection--multiple .ant-select-selection__rendered li { height: 16px; line-height: 14px; } .ant-select-sm .ant-select-selection--multiple .ant-select-selection__clear { top: 12px; } .ant-select-sm .ant-select-selection__clear, .ant-select-sm .ant-select-arrow { right: 8px; } .ant-select-disabled .ant-select-selection__choice__remove { color: rgba(0, 0, 0, 0.25); cursor: default; } .ant-select-disabled .ant-select-selection__choice__remove:hover { color: rgba(0, 0, 0, 0.25); } .ant-select-search__field__wrap { display: inline-block; position: relative; } .ant-select-selection__placeholder, .ant-select-search__field__placeholder { position: absolute; top: 50%; left: 0; right: 9px; color: #bfbfbf; line-height: 20px; height: 20px; max-width: 100%; margin-top: -10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; } .ant-select-search__field__placeholder { left: 12px; } .ant-select-search__field__mirror { position: absolute; top: 0; left: -9999px; white-space: pre; pointer-events: none; } .ant-select-search--inline { position: absolute; height: 100%; width: 100%; } .ant-select-search--inline .ant-select-search__field__wrap { width: 100%; height: 100%; } .ant-select-search--inline .ant-select-search__field { border-width: 0; font-size: 100%; height: 100%; width: 100%; background: transparent; outline: 0; border-radius: 4px; line-height: 1; } .ant-select-search--inline > i { float: right; } .ant-select-selection--multiple { min-height: 32px; cursor: text; padding-bottom: 3px; zoom: 1; } .ant-select-selection--multiple:before, .ant-select-selection--multiple:after { content: ""; display: table; } .ant-select-selection--multiple:after { clear: both; } .ant-select-selection--multiple .ant-select-search--inline { float: left; position: static; width: auto; padding: 0; max-width: 100%; } .ant-select-selection--multiple .ant-select-search--inline .ant-select-search__field { max-width: 100%; width: 0.75em; } .ant-select-selection--multiple .ant-select-selection__rendered { margin-left: 5px; margin-bottom: -3px; height: auto; } .ant-select-selection--multiple .ant-select-selection__placeholder { margin-left: 6px; } .ant-select-selection--multiple > ul > li, .ant-select-selection--multiple .ant-select-selection__rendered > ul > li { margin-top: 3px; height: 24px; line-height: 22px; } .ant-select-selection--multiple .ant-select-selection__choice { color: #525b5d; background-color: #fafafa; border: 1px solid #e8e8e8; border-radius: 2px; cursor: default; float: left; margin-right: 4px; max-width: 99%; position: relative; overflow: hidden; transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); padding: 0 20px 0 10px; } .ant-select-selection--multiple .ant-select-selection__choice__disabled { padding: 0 10px; } .ant-select-selection--multiple .ant-select-selection__choice__content { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-select-selection--multiple .ant-select-selection__choice__remove { font-style: normal; vertical-align: baseline; text-align: center; text-transform: none; line-height: 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: rgba(0, 0, 0, 0.45); line-height: inherit; cursor: pointer; font-weight: bold; transition: all 0.3s; display: inline-block; font-size: 12px; font-size: 10px \9; transform: scale(0.83333333) rotate(0deg); position: absolute; right: 4px; } .ant-select-selection--multiple .ant-select-selection__choice__remove:before { display: block; font-family: "anticon" !important; } :root .ant-select-selection--multiple .ant-select-selection__choice__remove { font-size: 12px; } .ant-select-selection--multiple .ant-select-selection__choice__remove:hover { color: #404040; } .ant-select-selection--multiple .ant-select-selection__choice__remove:before { content: "\e633"; } .ant-select-selection--multiple .ant-select-selection__clear { top: 16px; } .ant-select-allow-clear .ant-select-selection--single .ant-select-selection-selected-value { padding-right: 16px; } .ant-select-allow-clear .ant-select-selection--multiple .ant-select-selection__rendered { margin-right: 20px; } .ant-select-open .ant-select-arrow:before { transform: rotate(180deg); } .ant-select-open .ant-select-selection { border-color: #8ec46e; outline: 0; box-shadow: 0 0 0 2px rgba(109, 183, 73, 0.2); border-right-width: 1px !important; } .ant-select-combobox .ant-select-arrow { display: none; } .ant-select-combobox .ant-select-search--inline { height: 100%; width: 100%; float: none; } .ant-select-combobox .ant-select-search__field__wrap { width: 100%; height: 100%; } .ant-select-combobox .ant-select-search__field { width: 100%; height: 100%; position: relative; z-index: 1; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); box-shadow: none; } .ant-select-combobox.ant-select-allow-clear .ant-select-selection:hover .ant-select-selection__rendered { margin-right: 20px; } .ant-select-dropdown { font-family: 'ClearSans', 'BrandonLight', sans-serif; line-height: 1.5; color: #525b5d; margin: 0; padding: 0; list-style: none; background-color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); border-radius: 4px; box-sizing: border-box; z-index: 1050; left: -9999px; top: -9999px; position: absolute; outline: none; font-size: 13px; } .ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-bottomLeft, .ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-bottomLeft { animation-name: antSlideUpIn; } .ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-topLeft, .ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-topLeft { animation-name: antSlideDownIn; } .ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-bottomLeft { animation-name: antSlideUpOut; } .ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-topLeft { animation-name: antSlideDownOut; } .ant-select-dropdown-hidden { display: none; } .ant-select-dropdown-menu { outline: none; margin-bottom: 0; padding-left: 0; list-style: none; max-height: 250px; overflow: auto; } .ant-select-dropdown-menu-item-group-list { margin: 0; padding: 0; } .ant-select-dropdown-menu-item-group-list > .ant-select-dropdown-menu-item { padding-left: 20px; } .ant-select-dropdown-menu-item-group-title { color: rgba(0, 0, 0, 0.45); padding: 0 12px; height: 32px; line-height: 32px; font-size: 12px; } .ant-select-dropdown-menu-item { position: relative; display: block; padding: 5px 12px; line-height: 22px; font-weight: normal; color: #525b5d; white-space: nowrap; cursor: pointer; overflow: hidden; text-overflow: ellipsis; transition: background 0.3s ease; } .ant-select-dropdown-menu-item:hover { background-color: #e9ebeb; } .ant-select-dropdown-menu-item:first-child { border-radius: 4px 4px 0 0; } .ant-select-dropdown-menu-item:last-child { border-radius: 0 0 4px 4px; } .ant-select-dropdown-menu-item-disabled { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-select-dropdown-menu-item-disabled:hover { color: rgba(0, 0, 0, 0.25); background-color: #fff; cursor: not-allowed; } .ant-select-dropdown-menu-item-selected, .ant-select-dropdown-menu-item-selected:hover { background-color: #fafafa; font-weight: 600; color: #525b5d; } .ant-select-dropdown-menu-item-active { background-color: #6db749; } .ant-select-dropdown-menu-item-divider { height: 1px; margin: 1px 0; overflow: hidden; background-color: #e8e8e8; line-height: 0; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:after { font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e632"; color: transparent; display: inline-block; font-size: 12px; font-size: 10px \9; transform: scale(0.83333333) rotate(0deg); transition: all 0.2s ease; position: absolute; top: 50%; transform: translateY(-50%); right: 12px; font-weight: bold; text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0; } :root .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:after { font-size: 12px; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:hover:after { color: #ddd; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-disabled:after { display: none; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected:after, .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected:hover:after { color: #6db749; display: inline-block; } .ant-select-dropdown-container-open .ant-select-dropdown, .ant-select-dropdown-open .ant-select-dropdown { display: block; }