Skip to content

Commit

Permalink
Fix search overlay responsiveness and tweak images (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro authored Jul 6, 2022
1 parent a5d8596 commit 23900d1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
9 changes: 7 additions & 2 deletions components/Home/HomeAction/HomeAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ export default function HomeAction() {
</a>
<Link href="/contribute">
<a className="contrib">
<Image src="/i/brand/contribute/logo_name.png" alt="Contribute" layout="fill" />
<Image
src="/i/brand/contribute/logo_name.png"
alt="Contribute"
layout="fill"
objectFit="cover"
/>
</a>
</Link>
<a href="https://patreon.com/universalis" className="patreon">
<Image src="/i/brand/patreon/logo_name.jpg" alt="Patreon" layout="fill" />
<Image src="/i/brand/patreon/logo_name.jpg" alt="Patreon" layout="fill" objectFit="cover" />
</a>
</div>
);
Expand Down
30 changes: 16 additions & 14 deletions styles/theme_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ header {
transition: 80ms;
}

@include mq($until: tablet) {
@include mq($until: desktop) {
display: none;
}
}
Expand Down Expand Up @@ -632,7 +632,7 @@ header {
background-color: rgba(137, 255, 139, 0.15);
}

@include mq($until: tablet) {
@include mq($until: desktop) {
&.search {
width: 100%;
max-width: 150px;
Expand Down Expand Up @@ -666,7 +666,7 @@ header {
flex: 0 1 auto;
}

@include mq($until: tablet) {
@include mq($until: desktop) {
flex: none;
position: fixed;
top: 0;
Expand All @@ -688,7 +688,7 @@ header {
}
}

@include mq($until: tablet) {
@include mq($until: desktop) {
> div {
text-align: left;
}
Expand All @@ -707,7 +707,7 @@ header {
color: #fff;
}

@include mq($until: tablet) {
@include mq($until: desktop) {
padding: 5px 0 0 5px;
}
}
Expand All @@ -719,7 +719,7 @@ header {
font-weight: 400;
padding: 15px 10px 0 0;

@include mq($until: tablet) {
@include mq($until: desktop) {
display: none;
}
}
Expand All @@ -744,7 +744,7 @@ header {
transition: 100ms;
margin-top: 3px;

@include mq($until: tablet) {
@include mq($until: desktop) {
height: 30px;
line-height: 30px;
font-size: 15px;
Expand All @@ -767,7 +767,7 @@ header {
cursor: pointer;
margin: 0 10px;

@include mq($until: tablet) {
@include mq($until: desktop) {
padding: 0;
line-height: 24px;
height: 24px;
Expand All @@ -779,7 +779,7 @@ header {
color: #444;
transition: var(--transition-speed);

@include mq($until: tablet) {
@include mq($until: desktop) {
font-size: 24px;
color: #888;
line-height: 24px;
Expand Down Expand Up @@ -1239,7 +1239,8 @@ ol {
}
}

.search-results-container {
.search-results-container,
.market-category-container {
position: absolute;
top: 60px;
left: 70px;
Expand All @@ -1252,10 +1253,11 @@ ol {
}

@include mq($until: desktop) {
top: 50px;
top: calc(-70vh - 66.5px);
left: 0;
right: 0;
padding: 0;
z-index: -1;
}
}

Expand Down Expand Up @@ -1389,8 +1391,7 @@ ol {
}
}

.market-board-container,
.market-category-container {
.market-board-container {
position: absolute;
top: 60px;
left: 70px;
Expand All @@ -1407,10 +1408,11 @@ ol {
}

@include mq($until: tablet) {
top: 50px;
top: calc(-70vh - 46px);
left: 0;
right: 0;
padding: 0;
z-index: -1;
}
}

Expand Down

0 comments on commit 23900d1

Please sign in to comment.