Skip to content

Commit

Permalink
fix: scss @use as *
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongMin83 committed Jan 5, 2024
1 parent c2b0c2f commit fcc0eb3
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 46 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/sass";
@use "@/sass" as *;

.container {
position: fixed;
Expand Down
16 changes: 8 additions & 8 deletions src/components/Review/Review.module.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use "@/sass";
@use "@/sass" as *;

.container {
display: flex;
gap: 8px;
padding: 24px 20px;
border-bottom: 1px solid sass.$neutral100;
border-bottom: 1px solid $neutral100;

&__contentsBox {
width: 100%;
Expand All @@ -14,7 +14,7 @@
gap: 4px;

&__name {
@include sass.typography(button);
@include typography(button);
}

&__secondItems {
Expand All @@ -24,23 +24,23 @@
&__star {
display: inline;
font-size: 1.6rem;
color: sass.$etc0;
color: $etc0;
}

&__point {
margin-left: 2px;
@include sass.typography(captionSmall);
@include typography(captionSmall);
}

&__visitedAt {
margin-left: 9px;
color: sass.$primary300;
@include sass.typography(captionSmall);
color: $primary300;
@include typography(captionSmall);
}
}

&__content {
@include sass.typography(bodySmall);
@include typography(bodySmall);
text-overflow: ellipsis;
}
}
Expand Down
9 changes: 5 additions & 4 deletions src/pages/Detail/BottomFixedBtn/BottomFixedBtn.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use "@/sass";
@use "@/sass" as *;

.container {
position: fixed;
bottom: 24px;
Expand All @@ -13,7 +14,7 @@
align-items: center;

width: 100%;
height: 48px;
height: 4.8rem;

border-radius: 1.6rem;

Expand All @@ -22,8 +23,8 @@
cursor: pointer;

span {
color: sass.$neutral0;
@include sass.typography(button);
color: $neutral0;
@include typography(button);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@use "@/sass";
@use "@/sass" as *;

.container {
margin: 20px 0;
padding-bottom: 40px;

border-bottom: 12px solid sass.$neutral100;
border-bottom: 12px solid $neutral100;

&__title {
padding: 8px 20px;
margin-bottom: 16px;

@include sass.typography(titleMedium);
@include typography(titleMedium);
}

&__contents {
Expand All @@ -26,7 +26,7 @@
align-items: center;
gap: 12px;

@include sass.typography(tabLabel);
@include typography(tabLabel);

a {
text-decoration-line: underline;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/sass";
@use "@/sass" as *;

.container {
display: flex;
Expand All @@ -15,12 +15,12 @@

&__contents {
h4 {
@include sass.typography(titleSmall);
@include typography(titleSmall);
}

p {
color: sass.$neutral400;
@include sass.typography(captionSmall);
color: $neutral400;
@include typography(captionSmall);
}

&__reviews {
Expand All @@ -30,18 +30,18 @@
&__star {
display: inline;
font-size: 1.6rem;
color: sass.$etc0;
color: $etc0;
}

&__point {
color: #1d2433;
@include sass.typography(captionSmall);
@include typography(captionSmall);
margin-right: 4px;
}

&__reviewsCount {
color: sass.$neutral400;
@include sass.typography(captionSmall);
color: $neutral400;
@include typography(captionSmall);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/sass";
@use "@/sass" as *;

.container {
padding: 40px 0;
Expand All @@ -7,7 +7,7 @@
padding: 8px 20px;

h3 {
@include sass.typography(titleMedium);
@include typography(titleMedium);
}
}

Expand All @@ -21,7 +21,7 @@
position: absolute;
top: 50%;
left: 10px;
transform: translate(-10px, -50%);
transform: translate(10px, -50%);

width: 2.4rem;
height: 2.4rem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@use "@/sass";
@use "@/sass" as *;

.container {
padding: 40px 0;
border-bottom: 12px solid sass.$neutral100;
border-bottom: 12px solid $neutral100;

&__title {
padding: 8px 20px;
Expand All @@ -12,15 +12,15 @@
justify-content: space-between;

h3 {
@include sass.typography(titleMedium);
@include typography(titleMedium);
}

&__rightBox {
display: flex;
cursor: pointer;

span {
@include sass.typography(tabLabel);
@include typography(tabLabel);
}
}
}
Expand All @@ -36,17 +36,17 @@
&__star {
display: inline;
font-size: 3.2rem;
color: sass.$etc0;
color: $etc0;
}

&__point {
color: #1d2433;
@include sass.typography(headline);
@include typography(headline);
}

&__reviewsCount {
color: sass.$neutral400;
@include sass.typography(tabLabel);
color: $neutral400;
@include typography(tabLabel);
}
}

Expand All @@ -59,7 +59,7 @@

margin: 0 20px;

border: 1px solid sass.$neutral300;
border: 1px solid $neutral300;
border-radius: 8px;

display: flex;
Expand All @@ -69,7 +69,7 @@
cursor: pointer;

span {
@include sass.typography(button);
@include typography(button);
}
}
}
16 changes: 8 additions & 8 deletions src/pages/Detail/Main/Title/Title.module.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@use "@/sass";
@use "@/sass" as *;

.container {
width: 100%;
padding: 24px 20px;
position: relative;

&__header {
@include sass.typography(titleLarge);
@include typography(titleLarge);
}
&__category {
color: sass.$neutral400;
@include sass.typography(captionSmall);
color: $neutral400;
@include typography(captionSmall);
margin: 4px 0;
}

Expand All @@ -22,17 +22,17 @@
&__star {
display: inline;
font-size: 1.6rem;
color: sass.$etc0;
color: $etc0;
}

&__point {
color: #1d2433;
@include sass.typography(captionMedium);
@include typography(captionMedium);
}

&__reviewsCount {
color: sass.$neutral400;
@include sass.typography(captionSmall);
color: $neutral400;
@include typography(captionSmall);
}
}

Expand Down

0 comments on commit fcc0eb3

Please sign in to comment.