Remove some css. Pass scss-lint

This commit is contained in:
Alessandro Cuoghi
2017-08-09 18:24:15 +02:00
committed by taitus
parent 1c1ac4c1f7
commit 1e60bc5cc2
3 changed files with 42 additions and 35 deletions

View File

@@ -1,55 +1,55 @@
.communities-show{
.communities-show {
.wide-order-selector{
.wide-order-selector {
margin-top: 0;
}
.panel{
background: #fff;
border: 1px solid;
border-color: #e5e6e9 #dfe0e4 #d0d1d5;
border-radius: 0;
box-shadow: 0 1px 3px 0 #dee0e3;
margin-bottom: 0.75rem;
min-height:7rem;
padding: 0.75rem 0.75rem 0;
.panel {
min-height: 7rem;
margin: 0.375rem 0;
.button {
margin-top: $line-height;
}
}
.panel {
h3{
font-weight: bold;
margin-top: $line-height / 2;
}
//Participations.scss line 412
.btn-new-theme-small {
a {
color: $text;
}
.nopadding{
padding: 0;
}
.button{
margin-top: $line-height;
h2 {
border-top: 2px solid $brand;
display: inline-block;
font-size: rem-calc(16);
margin: -1px 0 rem-calc(12);
padding-top: rem-calc(6);
text-transform: uppercase;
}
}
}
.communities-participant{
.comment-body{
.communities-participant {
.comment-body {
display: inline-block;
float: left;
margin-right: $line-height;
margin-bottom: $line-height;
}
}
.topic-show{
p{
.topic-show {
p {
margin-bottom: 0;
}
ul li {
margin-bottom:0;
margin-bottom: 0;
}
.comments{
.first-comment{
.comments {
.first-comment {
margin-top: $line-height;
margin-bottom: $line-height;
}

View File

@@ -10,6 +10,13 @@
</div>
<div class="row">
<div class="btn-new-theme-small show-for-small-only small-12 column">
<div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.topic.title") %></h2>
<%= link_to t("community.sidebar.topic.new_topic"), new_community_topic_path(@community.id), class: 'button expanded' %>
</div>
<div class="small-12 medium-9 column">
<div id="topics" class="topics-list">
<%= render "topics/topics", topics: @topics %>
@@ -17,7 +24,7 @@
<%= paginate @topics %>
</div>
<aside class="small-12 medium-3 column">
<aside class="small-12 medium-3 hide-for-small-only column">
<div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.topic.title") %></h2>
<%= link_to t("community.sidebar.topic.new_topic"), new_community_topic_path(@community.id), class: 'button expanded' %>
@@ -46,7 +53,7 @@
<%= link_to participant.name, user_path(participant)%>
</span>
&nbsp;&bull;&nbsp;
<span class="label round is-author">
<span class="label round is-author">
<%= t("comments.comment.author") %>
</span>
</div>

View File

@@ -7,7 +7,7 @@
<% topics.each do |topic| %>
<div id="<%= dom_id(topic) %>" class="panel">
<div class="small-12 medium-11 column">
<div class="small-10 medium-10 column">
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
<p class="topic-info">
<span class="icon-comments"></span>&nbsp;
@@ -18,7 +18,7 @@
<%= topic.author.name %>
</p>
</div>
<div class="small-12 medium-1 column text-center nopadding">
<div class="small-2 medium-2 column text-center">
<% if topic.author == current_user %>
<%= link_to t("community.topic.edit_button"), edit_community_topic_path(@community.id, topic), class: 'button small hollow' %>
<% end %>