// Table of Contents // // 01. Votes and supports // 02. New participation // 03. Show participation // 04. List participation // 05. Featured // 06. Budget // 07. Proposals successfull // // 01. Votes and supports // ---------------------- @mixin votes { border-top: 1px solid $border; margin-top: $line-height; padding: $line-height 0; position: relative; @include breakpoint(medium) { border-left: 1px solid $border; border-top: 0; margin-top: 0; padding-top: $line-height*2; } .icon-like, .icon-unlike { background: white; border: 2px solid $text-light; border-radius: rem-calc(3); color: $text-light; display: inline-block; font-size: rem-calc(30); line-height: rem-calc(30); padding: rem-calc(3) rem-calc(6); position: relative; &:hover, &:active { color: white; cursor: pointer; opacity: 1 !important; } } .icon-like { &:hover, &:active { background: $like; border: 2px solid $like; } } .icon-unlike { &:hover, &:active { background: $unlike; border: 2px solid $unlike; } } .like, .unlike { line-height: rem-calc(48); vertical-align: super; text-decoration: none; span.percentage { color: $text; display: inline-block; font-size: $small-font-size; line-height: $line-height*2; padding-right: $line-height/2; vertical-align: top; @include breakpoint(medium) { display: block; line-height: $line-height; padding-right: 0; } } } .voted { .icon-like, .icon-unlike { color: white; } .icon-like { background: $like; border: 2px solid $like; } .icon-unlike { background: $unlike; border: 2px solid $unlike; } } .no-voted { .icon-like, .icon-unlike { opacity: .3; } } .total-votes { font-weight: bold; float: right; line-height: $line-height*2; @include breakpoint(medium) { display: block; float: none; } } .divider { margin: 0 rem-calc(6); } } @mixin supports { padding: $line-height 0; position: relative; .progress { background: lighten($proposals, 35%); border: 1px solid lighten($proposals, 35%); height: rem-calc(14); position: relative; .meter { background: $proposals; border-radius: 0; border-bottom-right-radius: rem-calc(3); border-top-right-radius: rem-calc(3); display: block; height: $line-height/2; } } .percentage { color: $text; font-size: $tiny-font-size; position: absolute; right: 6px; top: -2px; vertical-align: top; } abbr { color: $text-medium; &[title] { border-bottom: 1px dotted $text-medium; } } .button-support { background: $proposals; color: $text; display: inline-block; font-size: $small-font-size; margin-top: rem-calc(12); &:hover, &:active { background: lighten($proposals, 25%); cursor: pointer; } } .total-supports { color: $text; display: block; font-weight: bold; text-align: center; span { display: block; font-size: $small-font-size; font-weight: normal; } } .divider { margin: 0 rem-calc(6); } .supported { color: $text; margin-top: rem-calc(12); } } .supports-container { border-top: 1px solid $border; @include breakpoint(medium) { border-left: 1px solid $border; border-top: 0; } } .participation-not-allowed { background: $warning-bg; color: $color-warning; height: 100%; left: 0; line-height: $line-height; padding: $line-height $line-height/2; position: absolute; text-align: center; top: 0; width: 100%; z-index: 2; p { color: $color-warning !important; margin: 0 rem-calc(12); text-align: left; } a { color: $color-warning !important; font-weight: bold; text-decoration: underline; } } .reply .participation-not-allowed { padding-right: $line-height/2; padding-top: $line-height/6; text-align: right; } // 02. New participation // --------------------- .debate-form, .proposal-form, .budget-investment-form, .spending-proposal-form { .icon-debates, .icon-proposals, .icon-budget { font-size: rem-calc(50); line-height: $line-height; opacity: .5; } .icon-debates { color: $debates; } .icon-proposals { color: $proposals; } .icon-budget { color: $budget; } .recommendations { list-style-type: none; margin-left: 0; margin-top: $line-height; li { font-size: $small-font-size; margin: $line-height/2 0; &:before { content: "l "; font-family: "icons" !important; } } } } .debate-form { .recommendations li:before { color: $debates; } } .proposal-form { .recommendations li:before { color: $proposals; } } // 03. Show participation // ---------------------- .debate-show, .proposal-show, .investment-project-show, .debate-quiz, .budget-investment-show { p { word-wrap: break-word; } .callout.proposal-retired { font-size: $base-font-size; } .social-share-full .social-share-button { display:inline; } .whatsapp:before { background-color: #43d854; color: white; font-size: 1.7em; margin-left: rem-calc(0.5); padding: rem-calc(9.5) rem-calc(9.8); vertical-align: rem-calc(10); } .edit-debate, .edit-proposal { margin-bottom: 0; } .debate-info, .proposal-info, .investment-project-info, .budget-investment-show { clear: both; color: $text-medium; font-size: $small-font-size; margin-bottom: $line-height/2; position: relative; span:not(.label) { line-height: rem-calc(32); // Same as avatar height } a { color: $text-medium; } p { font-size: $small-font-size; line-height: $line-height; margin: 0; } } .debate-description, .proposal-description { font-size: rem-calc(15); line-height: rem-calc(30); } ul, ol { margin: rem-calc(12) 0; li { font-size: rem-calc(15); margin-bottom: rem-calc(15); } &.tags, &.geozone { li { margin-bottom: 0; } } } .author-photo { line-height: rem-calc(32); margin-right: rem-calc(6); vertical-align: top; width: 32px; } .author { font-weight: bold; a { color: $link !important; &:hover { color: $link-hover !important; } } } aside { 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; } } blockquote { margin-top: rem-calc(12); padding-top: 0; font-size: rem-calc(15); line-height: rem-calc(30); } .document-link, .video-link { border: 1px solid $border; display: block; margin: $line-height/2 0; padding: $line-height/2; position: relative; a { padding-left: rem-calc(24); } :before { color: #007BB7; content: "G"; font-family: "icons" !important; font-size: rem-calc(24); left: rem-calc(6); padding-top: rem-calc(3); position: absolute; top: 0; } } .video-link { :before { color: #CC181E; content: "D"; } } .supports { @include supports; } .leave-comment { display: inline-block; margin-top: rem-calc(24); } .tags { display: block; a { margin-right: rem-calc(6); } } } .bullet { color: $border; } .investment-project-show p, .budget-investment-show p { word-break: break-word; } .proposal-show, .investment-project-show, .budget-investment-show { .supports { padding: $line-height/2 0 0; } .share-supported { display: none; } } // 04. List participation // ---------------------- .debates-list, .proposals-list, .investment-projects-list, .budget-investments-list { @include breakpoint(medium) { margin-bottom: rem-calc(48); } } .investment-projects-list, .budget-investments-list { @include breakpoint(medium) { min-height: $line-height*15; } } .debate, .proposal, .investment-project, .budget-investment, .legislation { margin: $line-height/4 0; .panel { background: white; border: 1px solid; border-color: #e5e6e9 #dfe0e4 #d0d1d5; border-radius: 0; box-shadow: 0px 1px 3px 0 $border; margin-bottom: rem-calc(12); min-height: rem-calc(192); padding: rem-calc(12) rem-calc(12) 0 rem-calc(12); @include breakpoint(medium) { margin-bottom: rem-calc(-1); padding-bottom: rem-calc(12); } .label-debate, .label-proposal, .label-investment-project, .label-budget-investment { background: none; clear: both; display: block; font-size: rem-calc(12); font-weight: bold; line-height: $line-height; padding-bottom: 0; padding-left: 0; padding-top: 0; text-transform: uppercase; } .label-debate { color: $debates; } .label-proposal { color: $proposals-dark; } .label-investment-project { color: $budget; } .label-budget-investment { color: $budget; } h3 { font-weight: bold; margin: 0; a { color: $text; } } .debate-content, .proposal-content, .investment-project-content, .budget-investment-content { margin: 0; min-height: rem-calc(180); position: relative; .tags { display: block; } } .icon-debates, .icon-proposals, .icon-budget { font-size: rem-calc(18); line-height: $line-height; margin-left: rem-calc(6); top: 0; } .icon-debates { color: $debates; } .icon-proposals { color: $proposals-dark; } .icon-budget { color: $budget; font-size: $small-font-size; } .debate-info, .proposal-info, .investment-project-info, .budget-investment-info { color: $text-medium; font-size: $small-font-size; margin: rem-calc(6) 0 0; .icon-comments { font-size: rem-calc(16); vertical-align: top; } a { color: $text-medium; } } .debate-description, .proposal-description, .investment-project-description, .budget-investment-description { color: $text; font-size: rem-calc(13); height: rem-calc(72); line-height: $line-height; margin-bottom: rem-calc(12); margin-top: 0; overflow: hidden; position: relative; a { color: $text; } ul, ol { li { font-size: rem-calc(13); margin-bottom: rem-calc(12); } } } .truncate { background: image-url('truncate.png'); background-repeat: repeat-x; bottom: 0; height: 24px; position: absolute; width: 100%; } p { color: $text; } } .divider { display: none; } @include breakpoint(medium) { .divider { display: inline-block; } } } .more-info { clear: both; color: $text-medium; font-size: $small-font-size; a { color: $text-medium; } } .debate, .debate-show { .votes { @include votes; .against { margin-left: $line-height/4; } @include breakpoint(medium) { text-align: center; } } } .debate-show .votes { border: 0; padding: $line-height/2 0; } .proposal { .supports { @include supports; } } .investment-project, .investment-project-show, .budget-investment, .budget-investment-show { .supports { @include supports; .investment-project-amount, .budget-investment-amount { color: $budget; font-size: rem-calc(20); font-weight: bold; margin-bottom: 0; } .button-support { background: $budget; color: white; &:hover { background: $budget-hover; color: white; cursor: pointer; } &:active { opacity: .75; } } .total-supports { color: $budget; font-size: $base-font-size; font-weight: bold; } .remove .icon-check-circle { color: $budget; display: block; font-size: rem-calc(70); line-height: rem-calc(70); } } } .investment-project-show .supports, .budget-investment-show .supports { border: 0; } .proposals-summary { .panel { min-height: 0; } } .investment-project .supports .total-supports.no-button, .investment-project-show .supports .total-supports.no-button, .budget-investment .supports .total-supports.no-button, .budget-investment-show .supports .total-supports.no-button { display: block; margin-top: $line-height*1.5; } .budget-investment-show { .label-budget-investment { background: none; clear: both; color: $budget; display: block; font-size: rem-calc(12); font-weight: bold; line-height: $line-height; padding-bottom: 0; padding-left: 0; padding-top: 0; text-transform: uppercase; } .icon-budget { color: $budget; font-size: $small-font-size; line-height: $line-height; margin-left: rem-calc(6); top: 0; } } // 05. Featured // ------------ .featured-debates, .featured-proposals, .proposals-ballot, .proposals-ballot-list { padding: $line-height/2 0; @include breakpoint(medium) { margin-left: 0 !important; margin-right: 0 !important; } h2 { font-size: $small-font-size; line-height: $line-height; text-transform: uppercase; } h3 { margin-bottom: 0; a { color: $text; font-size: rem-calc(24); } } a, .info { color: lighten($text, 15%); font-size: $small-font-size; } } .featured-debates { background: $highlight; } .featured-proposals { background: $featured; .proposal-featured { min-height: $line-height*3.5; } .supports { @include supports; background: none; border: 0; padding-bottom: 0; padding-top: 0; &:after { content: none; } .total-supports { display: none; } .button-support { background: $text; color: $featured; margin-top: 0; &:hover { background: white; color: $text; } } .participation-not-allowed { background: $featured; font-size: $small-font-size; padding-top: 0; a { color: $color-warning; } p { color: $color-warning; font-size: $small-font-size; line-height: $line-height; } } .supported { margin-top: 0; font-size: $small-font-size; } .share-supported { .ssb-twitter, .ssb-facebook, .ssb-google_plus { background: none; color: $text; height: rem-calc(33) !important; &:before { font-size: rem-calc(18); line-height: rem-calc(33); } } } } } // 06. Budget // ---------- .expanded.budget { background: $budget; h1, h2, p, a.back, .icon-angle-left { color: white; } .button { background: white; color: $budget; } .info { background: #6A2A72; p { margin-bottom: 0; text-transform: uppercase; } @include breakpoint(medium) { border-top: rem-calc(6) solid #54225C; } } } .jumbo-budget { background: $budget; border-bottom: 1px solid $budget; &.budget-heading { min-height: $line-height*10; } h1 { margin-bottom: 0; } h1, h2, .back, .icon-angle-left, p, a { color: white; } &.welcome { background: $budget image-url('spending_proposals_bg.jpg'); background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; .spending-proposal-timeline { padding-top: $line-height; ul li { margin-right: $line-height; padding-top: $line-height/2; .icon-calendar { display: none; } } } } a { text-decoration: underline; &.button { background: white; color: $brand; margin-bottom: rem-calc(3); text-decoration: none; } } .social-share-button a { color: white; &.social-share-button-twitter:hover { color: #40A2D1; } &.social-share-button-facebook:hover { color: #354F88; } &.social-share-button-google_plus:hover { color: #CE3E26; } } } .progress-votes { position: relative; .progress { background: #212033; clear: both; } .progress-meter { background: #fdcb10; border-radius: 0; -webkit-transition: width 2s; transition: width 2s; } .spent-amount-progress, .spent-amount-meter { background: none !important; } .spent-amount-text { color: white; font-size: $base-font-size; font-weight: normal; position: absolute; right: 0; text-align: right; top: 16px; width: 100%; &:before { color: #a5a1ff; content: "\57"; font-family: 'icons'; font-size: $small-font-size; position: absolute; right: -6px; top: -17px; } } .total-amount { color: white; font-size: rem-calc(18); font-weight: bold; float: right; } .amount-available { display: block; text-align: right; span { font-size: rem-calc(24); font-weight: bold; } } } .big-number { color: $budget; font-size: rem-calc(60); line-height: rem-calc(120); @include breakpoint(large) { font-size: rem-calc(90); line-height: rem-calc(240); } } .ballot { h2, h3 { font-weight: normal; span { color: $budget; font-weight: bold; } } h3.subtitle { border-bottom: 3px solid $budget; span { font-size: $base-font-size; font-weight: normal; } } .amount-spent { background: $success-bg; font-weight: normal; padding: $line-height/2; span { font-size: rem-calc(24); font-weight: bold; } } } ul.ballot-list { list-style: none; margin-left: 0; li { background: #f9f9f9; line-height: $line-height; margin-bottom: $line-height/4; padding: $line-height/2; position: relative; a { color: $text; } span { color: #9f9f9f; display: block; font-style: italic; } .remove-investment-project { display: block; height: 0; .icon-x { color: #9f9f9f; font-size: rem-calc(24); line-height: $line-height/2; position: absolute; right: 6px; text-decoration: none; top: 6px; @include breakpoint(medium) { font-size: $base-font-size; } } } &:hover { background: $budget; color: white; a, span { color: white; outline: 0; text-decoration: none; } .remove-investment-project .icon-x { color: white; } } } } .select-district a { display: inline-block; margin: $line-height/4 0; padding: $line-height/4; } .select-district .active a { background: #f9f9f9; border-radius: rem-calc(3); color: $budget; font-weight: bold; &:after { content: "\56"; font-family: "icons"; font-size: $small-font-size; font-weight: normal; line-height: $line-height; padding-left: rem-calc(3); vertical-align: baseline; &:hover { text-decoration: none; } } } // 07. Proposals successfull // ------------------------- .dark-heading { background: #2D3E50; color: white; @include breakpoint(medium) { padding-bottom: $line-height; } p { &.title { color: #FFD200; } &.title-date { font-size: rem-calc(24); font-weight: bold; } } .info { background: #314253; padding-top: $line-height; @include breakpoint(medium) { border-top: rem-calc(6) solid #FFD200; } } } .featured-proposals-ballot-banner { background: #2D3E50 image-url("ballot_tiny.gif") no-repeat; background-position: 75% 0; position: relative; h2, a:hover h2 { color: #FFD200 !important; } p { color: white; } @include breakpoint(medium) { margin-left: 0 !important; margin-right: 0 !important; } @include breakpoint(large) { background: #2D3E50 image-url("ballot.gif") no-repeat; background-position: 90% 0; } } .featured-proposals-ballot-banner, .successfull .panel { .icon-successfull { border-right: 60px solid #FFD200; border-top: 0; border-bottom: 60px solid transparent; height: 0; position: absolute; right: 0; top: 0; width: 0; &:after { color: #1B254C; content: "\59"; font-family: "icons" !important; left: 34px; position: absolute; top: 5px; } } } .proposals-ballot-list { .proposal-sucessfull { background: white; border-top: 1px solid $border; padding: $line-height 0; position: relative; } } .successfull { .panel { position: relative; } .truncate { display: none; } .message { @include supports; background: none; border-top: 0; @include breakpoint(medium) { border-left: 1px solid $border; margin: $line-height rem-calc(-25) 0 rem-calc(12); } } }