Skip to content

Commit

Permalink
✨ glass effect added
Browse files Browse the repository at this point in the history
  • Loading branch information
yuancong-liu committed Apr 29, 2024
1 parent 69b3e24 commit d8acb7c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/app/and/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
}

> .rank-title {
@extend %glass-effect;

grid-column: 3 / 11;
padding: 20px 0;
overflow: hidden;
border: 1px solid #fff2;
border-radius: 20px;

@include sp {
Expand Down
7 changes: 0 additions & 7 deletions src/app/portfolio/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
border-radius: $padding;
}

%glass-effect {
background: utils.$color-pink-bd;
backdrop-filter: blur(10px);
border: 1px solid #fff2;
box-shadow: 0 0 20px 0 utils.$color-pink-bd;
}

.content-wrapper {
display: grid;
grid-template-columns: repeat(12, 1fr);
Expand Down
11 changes: 10 additions & 1 deletion src/styles/placeholders.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
@use './utils.scss';

%center-items-grid {
display: grid;
place-items: center;
}
}

%glass-effect {
background: utils.$color-pink-bd;
backdrop-filter: blur(10px);
border: 1px solid #fff2;
box-shadow: 0 0 20px 0 utils.$color-pink-bd;
}

0 comments on commit d8acb7c

Please sign in to comment.