Skip to content

Commit

Permalink
fix: update to Stacks 1.0.1 (#117)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Stacks 1.0 contains breaking changes
  • Loading branch information
dancormier authored and b-kelly committed May 2, 2022
1 parent e9ae75e commit b7b44bc
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 34 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@stackoverflow/stacks": "^0.76.0",
"@stackoverflow/stacks": "^1.0.1",
"@stackoverflow/stacks-icons": "^2.27.0",
"@types/markdown-it": "12.2.3",
"@types/prosemirror-commands": "^1.0.4",
Expand Down
11 changes: 4 additions & 7 deletions site/site.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
@import (reference) "@stackoverflow/stacks/lib/css/exports/_stacks-mixins";
@import (reference)
"@stackoverflow/stacks/lib/css/exports/_stacks-constants-type";
@import (reference)
"@stackoverflow/stacks/lib/css/exports/_stacks-constants-colors";
@import (reference)
"@stackoverflow/stacks/lib/css/exports/_stacks-constants-helpers";
@import (reference) "@stackoverflow/stacks/lib/css/exports/mixins";
@import (reference) "@stackoverflow/stacks/lib/css/exports/constants-type";
@import (reference) "@stackoverflow/stacks/lib/css/exports/constants-colors";
@import (reference) "@stackoverflow/stacks/lib/css/exports/constants-helpers";

@import "~@stackoverflow/stacks/dist/css/stacks.css";

Expand Down
33 changes: 15 additions & 18 deletions src/styles/custom-components.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
@import (reference) "@stackoverflow/stacks/lib/css/exports/_stacks-mixins";
@import (reference)
"@stackoverflow/stacks/lib/css/exports/_stacks-constants-type";
@import (reference)
"@stackoverflow/stacks/lib/css/exports/_stacks-constants-colors";
@import (reference)
"@stackoverflow/stacks/lib/css/exports/_stacks-constants-helpers";
@import (reference) "@stackoverflow/stacks/lib/css/exports/mixins";
@import (reference) "@stackoverflow/stacks/lib/css/exports/constants-type";
@import (reference) "@stackoverflow/stacks/lib/css/exports/constants-colors";
@import (reference) "@stackoverflow/stacks/lib/css/exports/constants-helpers";

// TODO move this into Stacks!
.bg-inherit {
Expand Down Expand Up @@ -62,16 +59,16 @@
.s-editor-btn {
position: relative;
display: inline-block;
padding: @su2;
padding: var(--su2);
border: 1px solid transparent;
border-radius: @br-sm;
border-radius: var(--br-sm);
color: var(--black-700);
background-color: transparent;
outline: none;
font-family: inherit;
font-size: @fs-body1;
font-size: var(--fs-body1);
font-weight: normal;
line-height: @lh-sm;
line-height: var(--lh-sm);
text-align: center;
text-decoration: none;
cursor: pointer;
Expand All @@ -97,20 +94,20 @@
}

&:focus {
box-shadow: 0 0 0 @su4 var(--focus-ring-muted);
box-shadow: 0 0 0 var(--su4) var(--focus-ring-muted);
}

&.s-btn__dropdown {
padding-right: @su16;
padding-right: var(--su16);

&:after {
right: @su4;
right: var(--su4);
}
}

&.s-editor-btn__dropdown-item {
display: block;
padding: @su4 @su12;
padding: var(--su4) var(--su12);
border: none;
border-radius: 0;
color: var(--black-800);
Expand All @@ -127,7 +124,7 @@
}

.s-editor-resizable {
max-height: (@s-step * 6); // hmx6
max-height: calc(var(--s-step) * 6); // hmx6
resize: vertical;

// if the user manually resizes (via css resize handle), remove the max-height restriction
Expand Down Expand Up @@ -155,7 +152,7 @@
border-width: 2px;
border-style: solid;
border-color: currentColor;
border-radius: @br-circle;
border-radius: var(--br-circle);
}

&:after {
Expand All @@ -169,7 +166,7 @@
border-style: solid;
border-color: transparent;
border-left-color: currentColor;
border-radius: @br-circle;
border-radius: var(--br-circle);
animation: s-spinner-rotate 0.9s infinite
cubic-bezier(0.5, 0.1, 0.5, 0.9);
// see _stacks-spinner.less for an explanation of the following two
Expand Down
2 changes: 1 addition & 1 deletion src/styles/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.hljs-section {
color: var(--black-800) !important;
font-weight: bold;
font-size: @fs-body2;
font-size: var(--fs-body2);
}

.hljs-link {
Expand Down

0 comments on commit b7b44bc

Please sign in to comment.