Patch #44111 » 0003-Improve-news-list-layout.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
|
font-size: 0.9em;
|
||
|
margin-inline-start: 10px;
|
||
|
}
|
||
|
#news-list article.news-article {
|
||
|
padding-block-start: 10px;
|
||
|
}
|
||
|
#news-list article.news-article header p.author,
|
||
|
#news-list article.news-article .wiki {
|
||
|
margin-inline-start: 2rem;
|
||
|
}
|
||
|
#news-list article.news-article header h3 {
|
||
|
margin-block-end: 2px;
|
||
|
}
|
||
|
#news-list article.news-article header p.author {
|
||
|
margin-block-start: 2px;
|
||
|
margin-block-end: 2px;
|
||
|
color: var(--oc-gray-6);
|
||
|
}
|
||
|
#news-list article.news-article .wiki > p:first-child {
|
||
|
margin-block-start: 2px;
|
||
|
}
|
||
|
/* Custom JQuery styles */
|
||
|
.ui-autocomplete, .ui-menu {
|
||
| app/views/news/index.html.erb | ||
|---|---|---|
|
<h2><%=l(:label_news_plural)%></h2>
|
||
|
<div id="news-list">
|
||
|
<% if @newss.empty? %>
|
||
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||
|
<% else %>
|
||
| ... | ... | |
|
</article>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<span class="pagination"><%= pagination_links_full @news_pages %></span>
|
||
|
<% other_formats_links do |f| %>
|
||