Spaces:
Running
Running
File size: 2,840 Bytes
f2bee8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
@import "../../css/units.css";
@import "../../css/colors.css";
.sprite-info {
padding: 0.75rem;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
background-color: white;
color: $text-primary;
border-top-left-radius: $space;
border-top-right-radius: $space;
border-bottom: 1px solid $ui-black-transparent;
}
[theme="dark"] .sprite-info {
background-color: $ui-primary;
}
.row {
display: flex;
justify-content: space-between;
}
.row-primary {
margin-bottom: 0.5rem;
}
.label { opacity: 0.8; }
.group {
display: inline-flex;
flex-direction: row; /* makes columns, for each label/form group */
align-items: center;
}
.column {
display: inline-flex;
flex-direction: column; /* put label above input */
align-items: flex-start;
}
.column span {
margin-bottom: .25rem;
}
.icon-wrapper {
display: inline-block;
width: calc(2rem + 2px);
height: calc(2rem + 2px);
padding: 0.5rem;
outline: none;
user-select: none;
}
.icon {
width: 100%;
height: 100%;
}
/* @todo: refactor radio divs to input */
.radio-wrapper {
white-space: nowrap; /* make sure visibilty buttons don't wrap */
}
.radio {
filter: saturate(0);
cursor: pointer;
}
.radio.is-active {
filter: none;
}
.radio.is-disabled {
cursor: default;
}
.radio-first {
border: 1px solid $ui-black-transparent;
}
[dir="ltr"] .radio-first {
border-top-left-radius: $form-radius;
border-bottom-left-radius: $form-radius;
}
[dir="rtl"] .radio-first {
border-top-right-radius: $form-radius;
border-bottom-right-radius: $form-radius;
}
.radio-first:focus {
border-color: $motion-primary;
box-shadow: inset 0 0 0 -2px $ui-black-transparent;
}
.radio-last {
border-bottom: 1px solid $ui-black-transparent;
border-top: 1px solid $ui-black-transparent;
}
[dir="ltr"] .radio-last {
border-right: 1px solid $ui-black-transparent;
border-left: 1px solid $ui-black-transparent;
border-top-right-radius: $form-radius;
border-bottom-right-radius: $form-radius;
}
[dir="rtl"] .radio-last {
border-left: 1px solid $ui-black-transparent;
border-right: 1px solid $ui-black-transparent;
border-top-left-radius: $form-radius;
border-bottom-left-radius: $form-radius;
}
.radio-last:focus {
border-color: $motion-primary;
box-shadow: inset 0 0 0 -2px $ui-black-transparent;
}
.icon {
width: 100%;
height: 100%;
pointer-events: none;
}
.rotation-select {
width: 100%;
height: 1.85rem;
border: 1px solid $ui-black-transparent;
user-select: none;
outline: none;
}
.rotation-select:focus {
border-color: $motion-primary;
box-shadow: inset 0 0 0 1px $ui-black-transparent);
}
.larger-input input {
width: 4rem;
}
.sprite-input {
width: 8rem;
}
|