Skip to content

Commit

Permalink
drawer: fix centering on large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
paglias committed May 15, 2017
1 parent 2e65008 commit c458ac6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions website/client/components/inventory/drawer.vue
@@ -1,5 +1,5 @@
<template lang="pug">
.drawer-container()
.drawer-container
.drawer-title(@click="open = !open")
| {{title}}
img.drawer-toggle-icon(src="~assets/drawer/minimize.svg", v-if="open")
Expand All @@ -19,12 +19,19 @@
.drawer-container {
z-index: 19;
position: fixed;
max-width: 80%;
font-size: 12px;
font-weight: bold;
bottom: 0;
left: 19%;
right: 3%;
max-width: 80%;
@media screen and (min-width: 1241px) {
max-width: 968px;
// 16.67% is the width of the .col-2 sidebar
left: calc((100% + 16.67% - 968px) / 2);
right: 0%;
}
}
.drawer-toggle-icon {
Expand Down

0 comments on commit c458ac6

Please sign in to comment.