cleans legislation process scss

This commit is contained in:
decabeza
2017-09-04 19:31:10 +02:00
parent da1f72ee7c
commit a15a75a4d6
3 changed files with 97 additions and 142 deletions

View File

@@ -13,32 +13,29 @@
//
// 01. Utils
// -----------------
// ---------
$grey-heading: #e6e6e6;
$border-dark: darken($border, 10%);
.grey-heading {
background: #e6e6e6;
background: $grey-heading;
}
$epigraph-font-size: rem-calc(15);
$epigraph-line-height: rem-calc(22);
// 02. Hero
// -----------------
.legislation-hero {
// --------
h4 {
text-transform: uppercase;
}
.legislation-hero {
ul {
list-style: none;
margin-left: 0;
li::before {
vertical-align: text-bottom;
padding-right: 0.5rem;
content: '';
color: #8aa8be;
content: '';
padding-right: $line-height / 4;
vertical-align: text-bottom;
}
}
@@ -47,63 +44,33 @@ $epigraph-line-height: rem-calc(22);
}
.debate-add-info {
border-top: 1px solid $border-dark;
margin-top: $line-height;
padding-top: $line-height;
border-top: 1px solid darken($border, 10%);
@include breakpoint(medium) {
margin-bottom: 2rem;
}
.debate-info-wrapper {
h2 {
font-size: $lead-font-size;
@include breakpoint(medium) {
float: left;
}
}
}
}
.text-center .button {
background: $brand;
margin-bottom: 0;
.title {
font-weight: bold;
text-transform: uppercase;
}
.description {
p {
font-size: $epigraph-font-size;
line-height: $epigraph-line-height;
}
ul {
font-size: $epigraph-font-size;
line-height: $epigraph-line-height;
}
li {
margin-bottom: 1rem;
p {
display: inline;
margin-bottom: 0;
}
}
h4 {
font-size: $base-font-size;
}
}
.button-subscribe {
margin-top: 1rem;
margin-top: $line-height;
@include breakpoint(medium) {
margin-top: $line-height * 2;
padding: 0.5em 1em;
margin-top: 3rem;
}
h3 {
@@ -111,8 +78,8 @@ $epigraph-line-height: rem-calc(22);
}
p {
margin-bottom: 0;
font-size: $small-font-size;
margin-bottom: 0;
}
&:hover h3 {
@@ -122,7 +89,8 @@ $epigraph-line-height: rem-calc(22);
}
// 03. Legislation process navigation
// -----------------
// ----------------------------------
.legislation-process-categories {
position: relative;
@@ -131,20 +99,11 @@ $epigraph-line-height: rem-calc(22);
margin: 0 1rem 1rem;
ul {
margin: 0 auto;
list-style: none;
padding-left: 0;
margin: 0 auto;
margin-bottom: 0;
svg {
position: absolute;
top: 1.25rem;
@include breakpoint(1280px) {
transform: rotate(-6deg);
left: -1rem;
}
}
padding-left: 0;
}
li {
@@ -154,6 +113,10 @@ $epigraph-line-height: rem-calc(22);
transition: all 0.4s;
border-bottom: 2px solid transparent;
@include breakpoint(medium) {
margin-left: $line-height * 2;
}
&:first-of-type {
margin-left: 0;
}
@@ -164,16 +127,13 @@ $epigraph-line-height: rem-calc(22);
border-bottom: 2px solid $brand;
}
@media (min-width: 950px) {
margin: 0 0 0 3rem;
}
a,
h4 {
display: block;
color: #6d6d6d;
margin-bottom: 0;
}
}
a {
&:hover,
@@ -189,7 +149,6 @@ $epigraph-line-height: rem-calc(22);
}
}
}
}
.active {
border-bottom: 2px solid $brand;
@@ -198,7 +157,8 @@ $epigraph-line-height: rem-calc(22);
}
// 04. Debate list
// -----------------
// ----------------
.debate-chooser {
padding: 2rem 1rem;
@@ -244,39 +204,44 @@ $epigraph-line-height: rem-calc(22);
}
// 05. Debate quiz
// -----------------
// ---------------
.debate-questions {
.comments {
margin-top: 4rem;
margin-top: $line-height * 2.5;
}
.quiz-header {
margin-bottom: 2rem;
margin-bottom: $line-height;
.quiz-title,
.quiz-next {
padding: 1rem;
height: 6rem;
padding: $line-height;
@include breakpoint(medium) {
height: $line-height * 4;
}
}
.quiz-title {
background: #e5ecf2;
.quiz-header-title {
font-size: $small-font-size;
font-weight: 700;
margin-bottom: 0;
text-transform: uppercase;
font-weight: 700;
font-size: $small-font-size;
}
}
h4 a {
color: $brand;
}
h4 a:hover {
&:hover {
text-decoration: none;
}
}
.quiz-next-link {
display: block;
@@ -285,57 +250,49 @@ $epigraph-line-height: rem-calc(22);
&:active {
text-decoration: none;
}
}
.quiz-next {
background: #ccdbe5;
font-weight: 700;
color: $brand;
font-size: $small-font-size;
font-weight: bold;
text-align: right;
text-transform: uppercase;
transition: background 0.25s ease-out, background 0.25s ease-out;
.icon-angle-right {
vertical-align: sub;
vertical-align: middle;
}
&:hover,
&:active {
text-decoration: none;
background: $brand;
color: #fff;
.icon-angle-right {
color: #fff;
}
}
text-decoration: none;
}
}
}
.quiz-question {
margin-bottom: 2rem;
margin-bottom: $line-height;
}
.debate-questions {
position: relative;
list-style: none;
.participation-not-allowed {
padding-bottom: 3rem;
}
.control {
position: relative;
display: inline-block;
color: #555;
cursor: pointer;
background: #fff;
border: 1px solid $border;
border-radius: 4px;
padding: 0.75rem 2.5rem;
margin-right: 1.5rem;
margin-bottom: 0.5rem;
border-radius: rem-calc(4);
color: #555;
cursor: pointer;
display: inline-block;
margin-bottom: $line-height / 2;
margin-right: $line-height;
padding: $line-height / 2 $line-height * 2;
position: relative;
}
.active {
@@ -376,14 +333,15 @@ $epigraph-line-height: rem-calc(22);
}
// 06. Legislation draft
// -----------------
// ---------------------
.debate-draft {
padding: 10rem 2rem 15rem;
display: block;
background: #f2f2f2;
button {
height: 90px;
height: rem-calc(90);
h3 {
margin-bottom: 0;
@@ -397,7 +355,8 @@ $epigraph-line-height: rem-calc(22);
}
// 07. Legislation allegations
// -----------------
// ---------------------------
.legislation-allegation {
padding-top: 1rem;
@@ -416,12 +375,12 @@ $epigraph-line-height: rem-calc(22);
.button-circle {
line-height: 0;
padding: 0;
width: 30px;
height: 30px;
width: rem-calc(30);
height: rem-calc(30);
border-radius: 50%;
span {
padding-left: 1px;
padding-left: rem-calc(1);
&::before {
line-height: 1.55;
@@ -547,7 +506,7 @@ $epigraph-line-height: rem-calc(22);
.calc-comments {
cursor: pointer;
background: #f2f2f2;
width: 50px;
width: rem-calc(50);
.draft-panel {
.panel-title {
@@ -700,7 +659,7 @@ $epigraph-line-height: rem-calc(22);
.comments-on {
.calc-index {
width: 50px;
width: rem-calc(50);
background: #f2f2f2;
cursor: pointer;
@@ -764,11 +723,11 @@ $epigraph-line-height: rem-calc(22);
.comments-box-container {
position: absolute;
top: 230px;
top: rem-calc(230);
}
.comment-box {
width: 375px;
width: rem-calc(375);
padding: 1rem;
background: #f9f9f9;
border: 1px solid $border;
@@ -819,7 +778,7 @@ $epigraph-line-height: rem-calc(22);
.participation-not-allowed {
font-size: 0.875rem;
height: 50px;
height: rem-calc(50);
padding: 0.85rem 0.75rem;
top: -18px;
}
@@ -858,7 +817,7 @@ $epigraph-line-height: rem-calc(22);
border-right: 1px solid #d0d0d0;
border-left: 1px solid #d0d0d0;
width: 100%;
height: 200px;
height: rem-calc(200);
margin-bottom: 0.5rem;
}

View File

@@ -9,16 +9,14 @@
<div id="debate-show" class="row description legislation-debate-show">
<div class="small-12 column">
<% if process.description.present? %>
<h4><%= t('legislation.processes.header_full.description') %></h4>
<p class="title"><%= t('legislation.processes.header_full.description') %></h4>
<%= markdown process.description %>
<% end %>
</div>
<% if process.additional_info.present? %>
<div class="small-12 column debate-add-info">
<div class="debate-info-wrapper">
<%= markdown process.additional_info if process.additional_info %>
</div>
</div>
<% end %>
</div>

View File

@@ -11,16 +11,14 @@
<div class="row description">
<div class="small-12 column">
<% if process.description.present? %>
<h4><%= t('.description') %></h4>
<p class="title"><%= t('.description') %></p>
<%= markdown process.description %>
<% end %>
</div>
<% if process.additional_info.present? %>
<div id="debate-show" class="small-12 column debate-add-info legislation-debate-show">
<div class="debate-info-wrapper">
<%= markdown process.additional_info if process.additional_info %>
</div>
</div>
<% end %>
</div>