load application.css for all media

This commit is contained in:
Felix Niklas 2016-03-14 16:44:28 +01:00
parent 661c83d574
commit b0ac1ddc1e
4 changed files with 23 additions and 32 deletions

View file

@ -2,10 +2,10 @@
<thead>
<tr>
<% if @sortable: %>
<th style="width: 36px"></th>
<th style="width: 36px" class="table-draggable"></th>
<% end %>
<% if @checkbox: %>
<th style="width: 40px" class="no-padding">
<th style="width: 40px" class="table-checkbox">
<label class="checkbox-replacement">
<input type="checkbox" value="" name="bulk_all">
<%- @Icon('checkbox', 'icon-unchecked') %>
@ -14,7 +14,7 @@
</th>
<% end %>
<% if @radio: %>
<th style="width: 40px" class="no-padding"></th>
<th style="width: 40px" class="table-radio"></th>
<% end %>
<% for item, i in @header: %>
<th class="js-tableHead<%= " #{ item.className }" if item.className %><%= " align-#{ item.align }" if item.align %>" style="width:<%= item.displayWidth %>px" data-column-key="<%= item.name %>">
@ -53,10 +53,10 @@
<% position++ %>
<tr class="item<%= ' is-inactive' if object.active is false %>" data-id="<%= object.id %>" data-position="<%= position %>" >
<% if @sortable: %>
<td><%- @Icon('draggable') %></td>
<td class="table-draggable"><%- @Icon('draggable') %></td>
<% end %>
<% if @checkbox: %>
<td class="no-padding">
<td class="table-checkbox">
<label class="checkbox-replacement">
<input type="checkbox" value="<%= object.id %>" name="bulk">
<%- @Icon('checkbox', 'icon-unchecked') %>
@ -65,7 +65,7 @@
</td>
<% end %>
<% if @radio: %>
<td class="no-padding">
<td class="table-radio">
<label class="radio-replacement">
<input type="radio" value="<%= object.id %>" name="radio">
<%- @Icon('radio', 'icon-unchecked') %>

View file

@ -1,15 +1,14 @@
#app > *:not(.content):not(.active),
#app > .hide,
.icon,
.btn,
.avatar {
#app > .hide {
display: none;
}
.table {
margin: 1em 0;
border: 1px solid;
padding: 1em;
border: 1px solid hsl(0,0%,90%);
}
.table thead tr {
border-bottom: 1px solid hsl(0,0%,90%);
}
/*
@ -32,7 +31,8 @@
.bulkAction,
.overviews .checkbox-replacement,
.overviews .overview-header {
.overviews .overview-header,
.table-checkbox {
display: none;
}
@ -53,22 +53,8 @@
display: none;
}
.ticket-title {
font-size: 2em;
}
.ticket-article-item {
margin: 1em 0;
border: 1px solid;
padding: 1em;
}
.article-meta-value {
font-weight: bold;
}
.article-content {
margin: 0.5em 0;
.tabsSidebar-sidebarSpacer {
margin-right: 0;
}
.article-meta .article-meta-key {

View file

@ -930,6 +930,11 @@ th.align-right {
fill: hsl(240,1%,77%);
}
.table-checkbox,
.table-radio {
padding: 0 !important;
}
.table .table-sort-arrow {
opacity: 1;
fill: hsl(206,7%,33%);

View file

@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<title><%= Setting.get('product_name') %></title>
<%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag "application-print", :media => 'print' %>
<%= stylesheet_link_tag "application", :media => 'all' %>
<%= stylesheet_link_tag "application-print", :media => 'print' %>
<% if Rails.configuration.assets.debug %>
<%= javascript_include_tag "application" %>
<% else %>