Improves styles for debates
This commit is contained in:
@@ -383,6 +383,16 @@
|
|||||||
.anonymous-votes, .organizations-votes {
|
.anonymous-votes, .organizations-votes {
|
||||||
padding-top: rem-calc(24);
|
padding-top: rem-calc(24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $medium-breakpoint) {
|
||||||
|
.divider {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -463,6 +473,23 @@
|
|||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
padding: rem-calc(24);
|
padding: rem-calc(24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: $small-breakpoint + em-calc(1)) and (max-width:$medium-breakpoint) {
|
||||||
|
.in-favor, .against {
|
||||||
|
text-align: left;
|
||||||
|
width: rem-calc(100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $medium-breakpoint) {
|
||||||
|
.divider {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.leave-comment {
|
.leave-comment {
|
||||||
@@ -536,6 +563,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.debate-edit {
|
||||||
|
@extend .debate-new;
|
||||||
|
}
|
||||||
|
|
||||||
// 05. Comments
|
// 05. Comments
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
|||||||
@@ -460,7 +460,10 @@ header {
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: none;
|
background: none;
|
||||||
color: $link-hover;
|
// color: $link-hover;
|
||||||
|
color: white;
|
||||||
|
text-decoration: underline;
|
||||||
|
transition: text-decoration 275ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -488,6 +491,10 @@ header {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -502,7 +509,15 @@ header {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: $link;
|
color: $link;
|
||||||
|
display: inline-block;
|
||||||
font-size: rem-calc(14);
|
font-size: rem-calc(14);
|
||||||
|
min-width: rem-calc(192);
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $text;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: $text;
|
color: $text;
|
||||||
@@ -745,8 +760,7 @@ form {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ckeditor {
|
.ckeditor {
|
||||||
margin-bottom: rem-calc(24);
|
min-height: rem-calc(312);
|
||||||
min-height: rem-calc(336);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox {
|
.checkbox {
|
||||||
@@ -1172,6 +1186,53 @@ table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.more-information {
|
||||||
|
margin-top: rem-calc(24);
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin-left: 0;
|
||||||
|
|
||||||
|
a:first-child {
|
||||||
|
border-top: 1px solid $border;
|
||||||
|
display: block;
|
||||||
|
padding-top: rem-calc(12);
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
border-bottom: 1px solid $border;
|
||||||
|
font-size: rem-calc(16);
|
||||||
|
padding-bottom: rem-calc(12);
|
||||||
|
padding-left: rem-calc(36);
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: $text-medium;
|
||||||
|
display: block;
|
||||||
|
font-size: rem-calc(13);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: 'D';
|
||||||
|
color: $link;
|
||||||
|
font-family: "icons" !important;
|
||||||
|
left: 0;
|
||||||
|
margin-right: rem-calc(12);
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
content: 'c';
|
||||||
|
color: $text-light;
|
||||||
|
font-family: "icons" !important;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: rem-calc(6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 17. Verification
|
// 17. Verification
|
||||||
@@ -1259,6 +1320,7 @@ table {
|
|||||||
|
|
||||||
span {
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
min-width: rem-calc(288);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="actions small-12 column">
|
<div class="actions small-12 column">
|
||||||
<%= f.submit(class: "button radius", value: t("debates.form.start_debate")) %>
|
<%= f.submit(class: "button radius", value: t("debates.#{action_name}.form.submit_button")) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
<h1><%= t("debates.edit.editing") %></h1>
|
<div class="debate-edit row">
|
||||||
|
|
||||||
<%= render 'form' %>
|
<div class="small-12 column">
|
||||||
|
<%= link_to debates_path, class: "left back clear" do %>
|
||||||
|
<i class="icon-angle-left left"></i>
|
||||||
|
<%= t("debates.edit.back_link") %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= link_to t("debates.edit.show_link"), @debate %> |
|
<div class="right">
|
||||||
<%= link_to t("debates.edit.back_link"), debates_path %>
|
<%= link_to t("debates.edit.show_link"), @debate %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1><%= t("debates.edit.editing") %></h1>
|
||||||
|
|
||||||
|
<%= render "form" %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<% cache [locale_and_user_status, featured_debate, 'featured'] do %>
|
<% cache [locale_and_user_status, featured_debate, 'featured'] do %>
|
||||||
<div class="small-12 medium-4 column">
|
<div class="small-12 medium-4 column end">
|
||||||
<div id="<%= dom_id featured_debate %>" class="debate-featured">
|
<div id="<%= dom_id featured_debate %>" class="debate-featured">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user