-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1012 from graygilmore/content_layout
Prepare for new layouts
- Loading branch information
Showing
13 changed files
with
130 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
backend/app/assets/stylesheets/spree/backend/shared/_header.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.main-header { | ||
@include display(flex); | ||
@include align-items(center); | ||
margin-left: $width-sidebar; | ||
padding: 15px 14px; | ||
background-color: very-light($color-3, 4); | ||
border-bottom: 1px solid $color-border; | ||
} | ||
|
||
.page-title { | ||
font-size: 20px; | ||
margin: 0.67em 0; | ||
|
||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
|
||
i { | ||
color: $color-2; | ||
} | ||
} | ||
|
||
.header-actions { | ||
@include flex-grow(1); | ||
text-align: right; | ||
line-height: 38px; | ||
|
||
form { | ||
display: inline-block; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
backend/app/assets/stylesheets/spree/backend/shared/_utilities.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.block-table { | ||
display: table; | ||
width: 100%; | ||
|
||
.table-cell { | ||
display: table-cell; | ||
vertical-align: middle; | ||
padding: 0 10px; | ||
|
||
&:first-child { | ||
padding-left: 0; | ||
} | ||
&:last-child { | ||
padding-right: 0; | ||
} | ||
} | ||
} | ||
|
||
.hidden { | ||
display: none; | ||
} | ||
|
||
// For block grids | ||
.frameless { | ||
margin-left: -10px; | ||
margin-right: -10px; | ||
} | ||
|
||
.container .column, | ||
.container .columns { | ||
// Float container right instead of left. | ||
.right { | ||
float: right; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
backend/app/views/spree/admin/shared/_content_header.html.erb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="flash-wrapper js-flash-wrapper"> | ||
<% if flash[:error] %> | ||
<div class="flash error"><%= flash[:error] %></div> | ||
<% end %> | ||
<% if notice %> | ||
<div class="flash notice"><%= notice %></div> | ||
<% end %> | ||
<% if flash[:success] %> | ||
<div class="flash success"><%= flash[:success] %></div> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
<header class="admin-nav-header"> | ||
<%= link_to spree.admin_path, class: 'brand-link' do %> | ||
<%= image_tag(Spree::Config[:admin_interface_logo]) %> | ||
<%- end %> | ||
</header> | ||
<% if content_for?(:page_title) || content_for?(:page_actions) %> | ||
<div id="content-header" class="main-header" data-hook> | ||
<% if content_for?(:page_title) %> | ||
<h1 class="page-title"><%= yield :page_title %></h1> | ||
<% end %> | ||
|
||
<% if content_for?(:page_actions) %> | ||
<ul class="header-actions page-actions inline-menu" data-hook="toolbar"> | ||
<%= yield :page_actions %> | ||
</ul> | ||
<% end %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
backend/app/views/spree/admin/shared/_navigation_header.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<header class="admin-nav-header"> | ||
<%= link_to spree.admin_path, class: 'brand-link' do %> | ||
<%= image_tag(Spree::Config[:admin_interface_logo]) %> | ||
<%- end %> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div id="progress"> | ||
<div class="wrapper"> | ||
<div id="spinner" class="spinner"></div> | ||
<div class="progress-message"><%= Spree.t(:loading) %>...</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters