Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
refactor background filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 15, 2015
1 parent bb9d8b5 commit fa4ee2d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 23 deletions.
2 changes: 1 addition & 1 deletion assets/css/uno.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/uno.css.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions assets/scss/components/_page-error.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ body[data-page='error'] {
line-height: 25px;
width: 100%;
height: 100%;
background-image: url(/assets/img/cover.jpg);
background-size: cover;
@include filter;
}
.mayday {
width: 500px;
Expand Down
14 changes: 1 addition & 13 deletions assets/scss/components/_panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,12 @@
width: 100%;
max-width: none;
height: 100%;
background: url(../images/background-cover.jpg) top left no-repeat $gray-darker;
background-position: 0 100%;
background-size: cover;
@include filter;
}
.panel-cover--collapsed {
width: 28%;
max-width: 400px;
}
.panel-cover--overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 0;
display: block;
background: linear-gradient(150deg, rgba(19, 106, 138, .65) 30%, rgba(38, 120, 113, .44) 70%);
}
.panel-cover__logo {
width: 10rem;
margin-bottom: 1.2em;
Expand Down
5 changes: 5 additions & 0 deletions assets/scss/modules/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@mixin filter {
background: linear-gradient(150deg, rgba(19, 106, 138, .65) 30%, rgba(38, 120, 113, .44) 70%), url(/assets/img/cover.jpg) no-repeat center;
background-attachment: fixed;
background-size: cover;
}
2 changes: 0 additions & 2 deletions error.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@

</head>
<body data-page="error" class="text-center no-js">
<div class="panel-cover--overlay">

<div class="astro-wrap">
<a class="astronaut" href="#" title="return to base"></a>
</div>
Expand Down
4 changes: 1 addition & 3 deletions partials/side-panel.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<header class="panel-cover" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<header class="panel-cover">
<div class="panel-main">

<div class="panel-main__inner panel-inverted">
Expand Down Expand Up @@ -36,7 +36,5 @@
</div>

</div>

<div class="panel-cover--overlay"></div>
</div>
</header>

0 comments on commit fa4ee2d

Please sign in to comment.