Skip to content

Commit

Permalink
position search-bar properly according to window (#153)
Browse files Browse the repository at this point in the history
* position search-bar properly according to window

refs #124

* remove extraneous comments
  • Loading branch information
ralyodio committed Nov 5, 2018
1 parent f0cc03b commit b99bde0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
7 changes: 0 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -1,12 +1,5 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!--- Please link to the issue here: -->

## Screenshots (if appropriate):
39 changes: 35 additions & 4 deletions src/components/CategoriesMenu.vue
Expand Up @@ -165,14 +165,19 @@ export default {
justify-content: flex-start;
flex-grow: 0;
position: sticky;
top: 0;
top: -1px;
z-index: 1;
background-color: #131314;
> section {
display: flex;
justify-content: flex-start;
align-items: center;
overflow: hidden;
&.categories {
width: 66vw;
}
}
ul a {
Expand Down Expand Up @@ -230,14 +235,40 @@ export default {
}
@media (min-width: 480px) {
.topnav {
width: calc(100vw - 19rem);
}
.categories, .sub-categories {
width: calc(100vw - 19rem);
&.categories {
width: 40vw !important;
}
}
}
@media (min-width: 1200px) {
a.prev, a.next {
display: none !important;
@media (min-width: 800px) {
.categories, .sub-categories {
&.categories {
width: 60vw !important;
}
}
}
@media (min-width: 1024px) {
.categories, .sub-categories {
&.categories {
width: 66vw !important;
}
}
}
@media (min-width: 1440px) {
.categories, .sub-categories {
&.categories {
width: 75vw !important;
}
}
}
</style>
5 changes: 2 additions & 3 deletions src/components/SearchBar.vue
Expand Up @@ -2,7 +2,7 @@
<form class="search-bar"
@submit.prevent="search()">
<input type="text"
placeholder="What are you looking for?"
placeholder="Search"
v-model="filter" />
<button>
<icon name="magnify" />
Expand Down Expand Up @@ -37,7 +37,6 @@ export default {
position: absolute;
top: 0;
right: 0;
display: none;
justify-content: flex-end;
align-items: center;
Expand All @@ -46,7 +45,7 @@ export default {
background: transparent;
color: #fff;
font-size: 1.6rem;
width: 26rem;
width: 10rem;
opacity: .6;
&::placeholder {
Expand Down

0 comments on commit b99bde0

Please sign in to comment.