Skip to content

Commit

Permalink
Remove bourbon dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
whmii committed Jul 1, 2019
1 parent c16603e commit e2303a1
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ project adheres to [Semantic Versioning](http://semver.org).
- Removed unused `base-z-index` variable
- Removed unused `medium-gray` variable
- Removed unused `gray-light` variable
- Removed [Bourbon] dependency

[unreleased]: https://github.com/thoughtbot/bitters/compare/v1.8.0...HEAD
[Bourbon]: https://github.com/thoughtbot/bourbon

## [1.8.0] - 2018-02-05

Expand Down
6 changes: 3 additions & 3 deletions contrib/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ body {
}

.container {
@include margin(null auto);
@include padding(null var(--spacing));
margin: 0 auto;
padding: 0 var(--spacing);
max-width: 500px;
}

.welcome-message {
@include padding(var(--spacing) null);
padding: var(--spacing) 0;
background-color: #f2f2f2;
margin-bottom: var(--spacing);
text-align: center;
Expand Down
5 changes: 4 additions & 1 deletion core/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#{$all-buttons} {
button,
[type='button'],
[type='reset'],
[type='submit'] {
appearance: none;
background-color: $action-color;
border: 0;
Expand Down
17 changes: 16 additions & 1 deletion core/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,22 @@ textarea {
font-size: 1rem;
}

#{$all-text-inputs} {
[type='color'],
[type='date'],
[type='datetime'],
[type='datetime-local'],
[type='email'],
[type='month'],
[type='number'],
[type='password'],
[type='search'],
[type='tel'],
[type='text'],
[type='time'],
[type='url'],
[type='week'],
input:not([type]),
textarea {
appearance: none;
background-color: transparent;
border: var(--border);
Expand Down
2 changes: 1 addition & 1 deletion core/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $viewport-background-color: #fff;

:root {
// Typography
--font-family: #{$font-stack-system};
--font-family: system-ui, sans-serif;
--font-family--heading: var(--font-family);

--font-weight--thin: 100;
Expand Down

0 comments on commit e2303a1

Please sign in to comment.