Skip to content

Commit

Permalink
Responsive fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
modularcoder committed Sep 6, 2017
1 parent 0b6e176 commit 8d5f6df
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/app/_common/sidebar/customize/customize.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<label class="title">static</label>
</div>
</div>
<div class="row hidden-md-down">
<div class="row">
<div class="col-4">
<label class="title">Sidebar:</label>
</div>
Expand Down
13 changes: 9 additions & 4 deletions src/app/dashboard/items/items-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,28 @@
// Common case styles

.item-col-title {
flex-grow: 3 * $item-list-col-grow;
flex-grow: 3 * $item-list-col-grow;
}

.item-col-date {
text-align: right;
text-align: right;
}

@include media-up(xl) {
.item-col-date {
flex-grow: $item-list-col-grow + 1;
flex-grow: $item-list-col-grow + 1;
}
}


// Large mobile view

@include media-down(sm) {

.item-list-header {
display: none;
}

.item-row {
padding: 0;
}
Expand Down Expand Up @@ -94,4 +99,4 @@
}
}
}
}
}
8 changes: 4 additions & 4 deletions src/app/dashboard/items/items.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
</div>
<ul class="item-list striped">
<li class="item item-list-header hidden-sm-down">
<li class="item item-list-header">
<div class="item-row">
<div class="item-col item-col-header fixed item-col-img xs"></div>
<div class="item-col item-col-header item-col-title">
Expand All @@ -50,7 +50,7 @@
</div>
</li>
{{#each items}}
<li class="item">
<li class="item">
<div class="item-row">
<div class="item-col fixed item-col-img xs">
<a href="">
Expand All @@ -75,7 +75,7 @@
<div class="item-col item-col-stats">
<div class="item-heading">Stats</div>
<div class="no-overflow">
<div class="item-stats sparkline" data-type="bar"></div>
<div class="item-stats sparkline" data-type="bar"></div>
</div>
</div>
<div class="item-col item-col-date">
Expand All @@ -88,4 +88,4 @@
</li>
{{/each}}
</ul>
</div>
</div>
6 changes: 1 addition & 5 deletions src/app/items/list/items-list-page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ items:
</p>
</div>

{{!-- Search --}}
{{!-- <div class="col-sm-6hidden-xs">
</div> --}}

</div>
</div>

Expand All @@ -90,7 +86,7 @@ items:

<div class="card items">
<ul class="item-list striped">
<li class="item item-list-header hidden-sm-down">
<li class="item item-list-header">
<div class="item-row">
<div class="item-col fixed item-col-check">
<label class="item-check" id="select-all-items">
Expand Down
8 changes: 8 additions & 0 deletions src/app/items/list/items-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
@include media(sm) {
.item-list {

.item-list-header {
display: none;
}

.item {
background-color: #fff;
margin-bottom: 10px;
Expand Down Expand Up @@ -241,6 +245,10 @@

@include media-down(xs) {

.item-list-header {
display: none;
}

.item-list .item {
border: none;
font-size: 0.9rem;
Expand Down

0 comments on commit 8d5f6df

Please sign in to comment.