Skip to content

Commit

Permalink
Reduce input variants.
Browse files Browse the repository at this point in the history
Resolves #177.
  • Loading branch information
srph committed Nov 18, 2015
1 parent a135639 commit ae9460c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 81 deletions.
34 changes: 0 additions & 34 deletions docs/dist/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27324,40 +27324,6 @@
),
_react2["default"].createElement("input", { className: "form-control", type: "text", placeholder: "Enter something", disabled: true })
),
_react2["default"].createElement(
"section",
{ className: "doc-bottom-space-large" },
_react2["default"].createElement(
"h3",
{ className: "doc-heading" },
"Variants"
),
_react2["default"].createElement(
"p",
null,
"To apply, simply add one of the *modifier* classes to .form-control: .-sky, .-emerald, .-sun, .-crimson."
),
_react2["default"].createElement(
"section",
{ className: "doc-bottom-space" },
_react2["default"].createElement("input", { className: "form-control -sky", type: "text", placeholder: "Enter something.." })
),
_react2["default"].createElement(
"section",
{ className: "doc-bottom-space" },
_react2["default"].createElement("input", { className: "form-control -emerald", type: "text", placeholder: "Enter something.." })
),
_react2["default"].createElement(
"section",
{ className: "doc-bottom-space" },
_react2["default"].createElement("input", { className: "form-control -sun", type: "text", placeholder: "Enter something.." })
),
_react2["default"].createElement(
"section",
null,
_react2["default"].createElement("input", { className: "form-control -crimson", type: "text", placeholder: "Enter something.." })
)
),
_react2["default"].createElement(
"section",
{ className: "doc-bottom-space-large" },
Expand Down
6 changes: 0 additions & 6 deletions docs/dist/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions docs/sections/Docs-Forms/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,6 @@ export default class Forms extends React.Component {
<input className="form-control" type="text" placeholder="Enter something" disabled />
</section>

<section className="doc-bottom-space-large">
<h3 className="doc-heading">Variants</h3>
<p>To apply, simply add one of the *modifier* classes to .form-control: .-sky, .-emerald, .-sun, .-crimson.</p>
<section className="doc-bottom-space">
<input className="form-control -sky" type="text" placeholder="Enter something.." />
</section>

<section className="doc-bottom-space">
<input className="form-control -emerald" type="text" placeholder="Enter something.." />
</section>

<section className="doc-bottom-space">
<input className="form-control -sun" type="text" placeholder="Enter something.." />
</section>

<section>
<input className="form-control -crimson" type="text" placeholder="Enter something.." />
</section>
</section>

<section className="doc-bottom-space-large">
<h3 className="doc-heading">Form Error</h3>
<p className="lead">You may present form errors with a tooltip-like presentation.</p>
Expand Down
24 changes: 3 additions & 21 deletions styles/base/_form.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
@mixin form-variant($color) {
&,
&:focus {
border-color: $color;
}
}

.form-control {
display: block;
width: 100%;
Expand All @@ -28,20 +21,9 @@
cursor: not-allowed;
}

&.-sky {
@include form-variant($brand-sky);
}

&.-emerald {
@include form-variant($brand-emerald);
}

&.-crimson {
@include form-variant($brand-crimson);
}

&.-sun {
@include form-variant($brand-sun);
&.-crimson,
&.-crimson:focus {
border-color: $brand-crimson;
}
}

Expand Down

0 comments on commit ae9460c

Please sign in to comment.