Skip to content

Commit

Permalink
Add barcelona skin
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Jan 14, 2017
1 parent 09565e2 commit 2690905
Show file tree
Hide file tree
Showing 8 changed files with 149 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/images/barcelona/heading-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions app/assets/images/barcelona/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/images/barcelona/pattern-big.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions app/assets/images/barcelona/pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions app/assets/stylesheets/_barcelona.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//Section heading
.section-heading.section-heading:before{
//double selector to increase specificity
background: image-url("barcelona/heading-icon.svg") no-repeat center;
width: .9rem;
height: .9rem;
margin-right: .3rem;
margin-bottom: -.11rem;
}

//Process cards - home and processes
.card--full__image{
&:after{
content: "";
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: image-url("barcelona/pattern-big.svg") no-repeat left top;
z-index: 0;
background-size: 32px;
@include breakpoint(medium){
background-size: 90px;
}
@include breakpoint(mediumlarge){
background-size: 160px;
}
@include breakpoint(large){
background-size: 120px;
}
}
}

.card--process .card__image-top{
position: relative;
&:after{
content: "";
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: image-url("barcelona/pattern.svg") no-repeat left bottom;
z-index: 0;
background-size: 40px;
}
}

.card--process.card--mini .card__image-top:after{
background-size: 32px;
}
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
* It is generally better to create a new file per style scope.
*
*= require decidim
*= require_tree .
*= require_self
*/
1 change: 1 addition & 0 deletions app/assets/stylesheets/decidim.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
// $border: 1px solid $medium-gray;

@import "decidim/application";
@import "barcelona";
3 changes: 3 additions & 0 deletions app/views/layouts/decidim/_logo.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%= link_to root_path do %>
<%= image_tag "barcelona/logo.svg", width: "140" %>
<% end %>

0 comments on commit 2690905

Please sign in to comment.