Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add barcelona skin #4

Merged
merged 1 commit into from
Jan 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 %>