Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PScottZero committed Aug 19, 2023
1 parent 23d4134 commit dbe5fe3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/app/components/content/content.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,3 @@
width: 100%;
height: 100%;
}

app-item {
position: relative;
box-sizing: border-box;
line-height: 1.5;
margin: $item-margin;
border-radius: $border-radius;
overflow: hidden;
box-shadow: $box-shadow;

@include largerThanPhone {
flex: 33%;
max-width: calc(33% - ($item-margin * 2));
height: calc(min(33rem, 33vw) / $item-aspect-ratio);
}

@include phone {
flex: 100%;
max-width: 100%;
height: calc(100vw / $item-aspect-ratio-mobile);
margin: 0.5rem 0;
}
}
23 changes: 23 additions & 0 deletions src/app/components/item/item.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
@import '../../styles/variables.scss';
@import '../../styles/mixins.scss';

:host {
position: relative;
box-sizing: border-box;
line-height: 1.5;
margin: $item-margin;
border-radius: $border-radius;
overflow: hidden;
box-shadow: $box-shadow;

@include largerThanPhone {
flex: 33%;
max-width: calc(33% - ($item-margin * 2));
height: calc(min(33rem, 33vw) / $item-aspect-ratio);
}

@include phone {
flex: 100%;
max-width: 100%;
height: calc(100vw / $item-aspect-ratio-mobile);
margin: 0.5rem 0;
}
}

h1 {
font-size: $font-medium;
font-weight: normal;
Expand Down

0 comments on commit dbe5fe3

Please sign in to comment.