Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "9"
- "10"
cache:
directories:
- node_modules
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"repository": "git@github.com:Wikia/react-design-system.git",
"license": "Apache-2.0",
"dependencies": {
"design-system": "git://github.com/Wikia/design-system.git#12.0.0",
"design-system": "git://github.com/Wikia/design-system.git#14.1.0",
"lodash.uniqueid": "^4.0.1",
"prop-types": "^15.6.1",
"react": "^16.2.0",
Expand Down
99 changes: 1 addition & 98 deletions src/components/Input/styles.scss
Original file line number Diff line number Diff line change
@@ -1,99 +1,2 @@
@import "~design-system/dist/scss/wds-variables/index.scss";

.wds-input {
margin: 30px 0 18px;
position: relative;

&:first-of-type {
margin-top: 18px;
}

&__field {
border: 0;
// keep value in sync with `BOTTOM_BORDER_WIDTH` from Input component
border-bottom: 1px solid $wds-color-blue-gray;
box-sizing: border-box;
color: $wds-color-dark-blue-gray;
font-size: $wds-typescale-size-base;
line-height: 1em;
padding: 0;
padding-bottom: 2px;
resize: none;
width: 100%;

&:focus { outline: 0; }
}

&.is-resize &__field {
resize: vertical;
}

textarea.wds-input__field {
line-height: 1.5em;
}

&__label {
color: $wds-color-blue-gray;
font-size: $wds-typescale-size-minus-2;
left: 0;
line-height: .75rem;
pointer-events: none;
position: absolute;
top: -16px;
transition: .2s ease all;
}

&__hint {
color: $wds-color-blue-gray;
font-size: $wds-typescale-size-minus-2;
line-height: .75rem;
margin-top: 6px;
position: absolute;
}

&.is-empty > &__field {
border-bottom-color: $wds-color-blue-gray;
color: $wds-color-blue-gray;
}

&.is-empty > &__field ~ &__label {
font-size: $wds-typescale-size-base;
line-height: 1rem;
top: 0;
}

&.is-empty > &__hint {
color: $wds-color-blue-gray;
}

&.is-focused > &__field {
border-color: $wds-color-dark-blue-gray;
}

&.is-focused > &__hint {
color: $wds-color-dark-blue-gray;
}

&.has-error > &__label {
color: $wds-color-alert;
}

&.has-error > &__field {
border-bottom-color: $wds-color-alert;
}

&.has-error > &__hint {
color: $wds-color-alert;
}

&.is-disabled > &__field {
border-bottom-color: $wds-color-blue-gray;
border-bottom-style: dashed;
color: $wds-color-blue-gray;
}

&.is-readonly,
&.is-disabled {
cursor: not-allowed;
}
}
@import "~design-system/dist/scss/wds-components/inputs/_input.scss";
Loading