Skip to content

Commit

Permalink
test: test revert function
Browse files Browse the repository at this point in the history
  • Loading branch information
natalieagus committed May 8, 2024
1 parent 5f98ddc commit c1d508b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions _sass/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
flex-grow: 1;
height: $sp-10;
padding: $sp-2;
transition: padding linear #{$transition-duration / 2};
transition: padding linear #{calc($transition-duration / 2)};
// background: $body-background-color;
background-color: $sidebar-color;

Expand All @@ -27,7 +27,7 @@
overflow: hidden;
border-radius: $border-radius;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
transition: height linear #{$transition-duration / 2};
transition: height linear #{calc($transition-duration / 2)};

@include mq(md) {
position: absolute;
Expand Down Expand Up @@ -63,7 +63,7 @@
padding-left: #{$gutter-spacing + $sp-5};
font-size: 14px;
background-color: $body-background-color;
transition: padding-left linear #{$transition-duration / 2};
transition: padding-left linear #{calc($transition-duration / 2)};
}

&:focus {
Expand All @@ -83,7 +83,7 @@

@include mq(md) {
padding-left: $gutter-spacing;
transition: padding-left linear #{$transition-duration / 2};
transition: padding-left linear #{calc($transition-duration / 2)};
}

.search-icon {
Expand Down Expand Up @@ -244,7 +244,7 @@
height: $sp-8;
background-color: rgba($code-background-color, 0.6);
// border: 1px solid rgba($link-color, 0.3);
border-radius: #{$sp-9 / 2};
border-radius: #{calc($sp-9 / 2)};
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
align-items: center;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion _sass/support/_functions.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function rem($size, $unit: "") {
$rem-size: calc($size / $root-font-size);
$rem-size: $size / $root-font-size;

@if $unit == false {
@return #{$rem-size};
Expand Down

0 comments on commit c1d508b

Please sign in to comment.