--- /dev/null
+@mixin input {
+ background-color: $wcfInputBackground;
+ border: 1px solid $wcfInputBorder;
+ color: $wcfInputText;
+ outline: none;
+ padding: 4px 8px;
+
+ // input elements do not inherit font family, size and line-height from body
+ font-family: $wcfFontFamily;
+ @include wcfFontDefault;
+ @include wcfLineHeight;
+
+ &:focus,
+ &:hover {
+ background-color: $wcfInputBackgroundActive;
+ border-color: $wcfInputBorderActive;
+ color: $wcfInputTextActive;
+ }
+
+ &[disabled],
+ &[readonly] {
+ background-color: $wcfInputDisabledBackground !important;
+ border-color: $wcfInputDisabledBorder !important;
+ color: $wcfInputDisabledText !important;
+ }
+}
input[type="url"],
select,
textarea {
- background-color: $wcfInputBackground;
- border: 1px solid $wcfInputBorder;
- color: $wcfInputText;
- outline: none;
- padding: 4px 8px;
-
- // input elements do not inherit font family, size and line-height from body
- font-family: $wcfFontFamily;
- @include wcfFontDefault;
- @include wcfLineHeight;
-
- &:focus,
- &:hover {
- background-color: $wcfInputBackgroundActive;
- border-color: $wcfInputBorderActive;
- color: $wcfInputTextActive;
- }
-
- &[disabled],
- &[readonly] {
- background-color: $wcfInputDisabledBackground !important;
- border-color: $wcfInputDisabledBorder !important;
- color: $wcfInputDisabledText !important;
- }
+ @include input;
}
/* set placeholder color */
--- /dev/null
+.inputItemList {
+ @include input;
+
+ display: flex;
+ flex-wrap: wrap;
+ padding-bottom: 0;
+ padding-top: 5px;
+
+ > .item,
+ > .input {
+ flex: 0 0 auto;
+ margin-bottom: 5px;
+
+ &:not(:last-child) {
+ margin-right: 5px;
+ }
+ }
+
+ > .item {
+ background-color: $wcfButtonBackground;
+ border: 1px solid $wcfButtonBorder;
+ color: $wcfButtonText;
+ cursor: default;
+ padding: 0 5px;
+
+ .icon {
+ color: inherit;
+ }
+
+ &.active,
+ &:hover {
+ background-color: $wcfButtonBackgroundActive;
+ border-color: $wcfButtonBorderActive;
+ color: $wcfButtonTextActive;
+ }
+
+ }
+
+ > .input > input {
+ background-color: transparent !important;
+ border-width: 0 !important;
+ padding: 0 !important;
+ }
+}