jiro-ui
Version:
A Mithril.js UI library based from construct-ui
200 lines (199 loc) • 7.36 kB
CSS
.cui-input-file {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal;
position: relative;
display: inline-block;
background: white;
cursor: pointer;
min-width: 200px; }
.cui-input-file .cui-input-file-content {
padding: 0 12px;
font-size: 14px;
height: 40px;
min-height: 40px;
line-height: 40px; }
.cui-input-file .cui-input-file-content:not(:nth-child(2)) {
padding-left: 36px; }
.cui-input-file .cui-input-file-content:not(:last-child) {
padding-right: 36px; }
.cui-input-file > .cui-button:first-child:not(input),
.cui-input-file > .cui-spinner:first-child:not(input),
.cui-input-file > .cui-icon:first-child:not(input),
.cui-input-file > .cui-tag:first-child:not(input) {
margin-left: 12px; }
.cui-input-file > .cui-button:last-child,
.cui-input-file > .cui-spinner:last-child,
.cui-input-file > .cui-icon:last-child,
.cui-input-file > .cui-tag:last-child {
margin-right: 12px; }
.cui-input-file > .cui-button {
padding: 0 6px;
font-size: 11px;
height: 28px;
min-height: 28px;
line-height: 28px; }
.cui-input-file .cui-input-file-content {
border: solid 1px #c5cdd1; }
.cui-input-file .cui-input-file-content:focus {
border: solid 1px #b0bec5; }
.cui-input-file input {
position: absolute;
top: 0;
left: 0;
z-index: -1;
visibility: hidden;
opacity: 0;
width: 100%;
outline: none; }
.cui-input-file .cui-input-file-content {
position: relative;
width: 100%;
background: transparent;
color: #b0bec5;
border-radius: 3px;
transition: border 200ms cubic-bezier(0.4, 1, 0.75, 0.9), background 200ms cubic-bezier(0.4, 1, 0.75, 0.9), color 200ms cubic-bezier(0.4, 1, 0.75, 0.9); }
.cui-input-file .cui-input-file-content.cui-input-file-text {
color: #37474f; }
.cui-input-file .cui-input-file-button {
pointer-events: none; }
.cui-input-file > .cui-button,
.cui-input-file > .cui-spinner,
.cui-input-file > .cui-icon,
.cui-input-file > .cui-tag {
position: absolute;
top: 50%;
transform: translateY(-50%);
margin: 0;
z-index: 1; }
.cui-input-file > .cui-button:first-child,
.cui-input-file > .cui-spinner:first-child,
.cui-input-file > .cui-icon:first-child,
.cui-input-file > .cui-tag:first-child {
left: 0; }
.cui-input-file > .cui-button:last-child,
.cui-input-file > .cui-spinner:last-child,
.cui-input-file > .cui-icon:last-child,
.cui-input-file > .cui-tag:last-child {
right: 0; }
.cui-input-file.cui-xs .cui-input-file-content {
padding: 0 10px;
font-size: 12px;
height: 30px;
min-height: 30px;
line-height: 30px; }
.cui-input-file.cui-xs .cui-input-file-content:not(:nth-child(2)) {
padding-left: 30px; }
.cui-input-file.cui-xs .cui-input-file-content:not(:last-child) {
padding-right: 30px; }
.cui-input-file.cui-xs > .cui-button:first-child:not(input),
.cui-input-file.cui-xs > .cui-spinner:first-child:not(input),
.cui-input-file.cui-xs > .cui-icon:first-child:not(input),
.cui-input-file.cui-xs > .cui-tag:first-child:not(input) {
margin-left: 10px; }
.cui-input-file.cui-xs > .cui-button:last-child,
.cui-input-file.cui-xs > .cui-spinner:last-child,
.cui-input-file.cui-xs > .cui-icon:last-child,
.cui-input-file.cui-xs > .cui-tag:last-child {
margin-right: 10px; }
.cui-input-file.cui-xs > .cui-button {
padding: 0 5px;
font-size: 10px;
height: 21px;
min-height: 21px;
line-height: 21px; }
.cui-input-file.cui-sm .cui-input-file-content {
padding: 0 11px;
font-size: 13px;
height: 35px;
min-height: 35px;
line-height: 35px; }
.cui-input-file.cui-sm .cui-input-file-content:not(:nth-child(2)) {
padding-left: 33px; }
.cui-input-file.cui-sm .cui-input-file-content:not(:last-child) {
padding-right: 33px; }
.cui-input-file.cui-sm > .cui-button:first-child:not(input),
.cui-input-file.cui-sm > .cui-spinner:first-child:not(input),
.cui-input-file.cui-sm > .cui-icon:first-child:not(input),
.cui-input-file.cui-sm > .cui-tag:first-child:not(input) {
margin-left: 11px; }
.cui-input-file.cui-sm > .cui-button:last-child,
.cui-input-file.cui-sm > .cui-spinner:last-child,
.cui-input-file.cui-sm > .cui-icon:last-child,
.cui-input-file.cui-sm > .cui-tag:last-child {
margin-right: 11px; }
.cui-input-file.cui-sm > .cui-button {
padding: 0 5px;
font-size: 10px;
height: 25px;
min-height: 25px;
line-height: 25px; }
.cui-input-file.cui-lg .cui-input-file-content {
padding: 0 14px;
font-size: 16px;
height: 45px;
min-height: 45px;
line-height: 45px; }
.cui-input-file.cui-lg .cui-input-file-content:not(:nth-child(2)) {
padding-left: 42px; }
.cui-input-file.cui-lg .cui-input-file-content:not(:last-child) {
padding-right: 42px; }
.cui-input-file.cui-lg > .cui-button:first-child:not(input),
.cui-input-file.cui-lg > .cui-spinner:first-child:not(input),
.cui-input-file.cui-lg > .cui-icon:first-child:not(input),
.cui-input-file.cui-lg > .cui-tag:first-child:not(input) {
margin-left: 14px; }
.cui-input-file.cui-lg > .cui-button:last-child,
.cui-input-file.cui-lg > .cui-spinner:last-child,
.cui-input-file.cui-lg > .cui-icon:last-child,
.cui-input-file.cui-lg > .cui-tag:last-child {
margin-right: 14px; }
.cui-input-file.cui-lg > .cui-button {
padding: 0 7px;
font-size: 13px;
height: 32px;
min-height: 32px;
line-height: 32px; }
.cui-input-file.cui-xl .cui-input-file-content {
padding: 0 16px;
font-size: 18px;
height: 50px;
min-height: 50px;
line-height: 50px; }
.cui-input-file.cui-xl .cui-input-file-content:not(:nth-child(2)) {
padding-left: 48px; }
.cui-input-file.cui-xl .cui-input-file-content:not(:last-child) {
padding-right: 48px; }
.cui-input-file.cui-xl > .cui-button:first-child:not(input),
.cui-input-file.cui-xl > .cui-spinner:first-child:not(input),
.cui-input-file.cui-xl > .cui-icon:first-child:not(input),
.cui-input-file.cui-xl > .cui-tag:first-child:not(input) {
margin-left: 16px; }
.cui-input-file.cui-xl > .cui-button:last-child,
.cui-input-file.cui-xl > .cui-spinner:last-child,
.cui-input-file.cui-xl > .cui-icon:last-child,
.cui-input-file.cui-xl > .cui-tag:last-child {
margin-right: 16px; }
.cui-input-file.cui-xl > .cui-button {
padding: 0 8px;
font-size: 15px;
height: 35px;
min-height: 35px;
line-height: 35px; }
.cui-input-file.cui-primary .cui-input-file-content {
border: solid 1px #5360ad; }
.cui-input-file.cui-primary .cui-input-file-content:focus {
border: solid 1px #4a569a; }
.cui-input-file.cui-positive .cui-input-file-content {
border: solid 1px #3d8c40; }
.cui-input-file.cui-positive .cui-input-file-content:focus {
border: solid 1px #357b38; }
.cui-input-file.cui-negative .cui-input-file-content {
border: solid 1px #dc3c31; }
.cui-input-file.cui-negative .cui-input-file-content:focus {
border: solid 1px #c3362b; }
.cui-input-file.cui-warning .cui-input-file-content {
border: solid 1px #dd7000; }
.cui-input-file.cui-warning .cui-input-file-content:focus {
border: solid 1px #c46300; }