From 6c0dd32ed1e420d33a974f0bb3f2aa68b001c0f2 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Mon, 10 Aug 2015 12:08:43 +0200 Subject: [PATCH] Adds styles for debates voted and no voted --- app/assets/stylesheets/debates.scss | 36 ++++++++++++++++++++++++--- app/assets/stylesheets/variables.scss | 6 ++--- db/schema.rb | 12 ++++----- 3 files changed, 41 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/debates.scss b/app/assets/stylesheets/debates.scss index ca722db3d..b5446f1d5 100644 --- a/app/assets/stylesheets/debates.scss +++ b/app/assets/stylesheets/debates.scss @@ -255,6 +255,7 @@ header { border-color: white; color: white; cursor: pointer; + opacity: 1 !important; } &:active { @@ -278,6 +279,7 @@ header { border-color: white; color: white; cursor: pointer; + opacity: 1 !important; } &:active { @@ -304,6 +306,28 @@ header { @extend .like; } + .voted { + .icon-like { + @extend .icon-like; + background: $votes-like; + border-color: white; + color: white; + } + + .icon-unlike { + @extend .icon-unlike; + background: $votes-unlike; + border-color: white; + color: white; + } + } + + .no-voted { + .icon-like, .icon-unlike { + opacity: .5; + } + } + .total-votes { color: $votes-text; float: right; @@ -388,6 +412,10 @@ header { margin-top: $line-height; overflow: hidden; position: relative; + + a { + color: $text-color; + } } .truncate { @@ -489,8 +517,8 @@ header { // - - - - - - - - - - - - .debate-show { - margin-top: $line-height; - padding: 0 rem-calc(12); + background: white; + padding: rem-calc(24) rem-calc(12) 0 rem-calc(12); .back { @include back; @@ -542,9 +570,9 @@ header { } h3 { - border-bottom: 1px solid $border; + border-bottom: 2px solid $votes-border; font-size: rem-calc(18); - margin: 0 0 $line-height 0; + margin: 0; text-transform: uppercase; } diff --git a/app/assets/stylesheets/variables.scss b/app/assets/stylesheets/variables.scss index 60f588d2a..6251d669d 100644 --- a/app/assets/stylesheets/variables.scss +++ b/app/assets/stylesheets/variables.scss @@ -26,7 +26,7 @@ $comments-info: #A5B2B9; $comments-text: #3F4549; $header-color: #292B33; -$link: #2895F1;//#0077B9; +$link: #2895F1; $link-hover: #2178BF; $tags-bg: #FAFAFA; @@ -38,8 +38,8 @@ $text-medium: #999999; $text-light: #A3A6AD; $votes: #31708f; -$votes-background: #26AEEE;//#0081B3; -$votes-border: #1F94CB;//#005b80; +$votes-background: #26AEEE; +$votes-border: #1F94CB; $votes-like: #7BD2A8; $votes-like-act: #5D9E7F; $votes-neutral: #CCCCCC; diff --git a/db/schema.rb b/db/schema.rb index f6947e462..ea3b71925 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -62,18 +62,18 @@ ActiveRecord::Schema.define(version: 20150806163142) do add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree create_table "users", force: :cascade do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" - t.integer "sign_in_count", default: 0, null: false + t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" t.string "current_sign_in_ip" t.string "last_sign_in_ip" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "first_name" t.string "last_name" t.string "confirmation_token" @@ -81,7 +81,7 @@ ActiveRecord::Schema.define(version: 20150806163142) do t.datetime "confirmation_sent_at" t.string "unconfirmed_email" t.string "nickname" - t.boolean "use_nickname", default: false, null: false + t.boolean "use_nickname", default: false, null: false t.boolean "email_on_debate_comment", default: false t.boolean "email_on_comment_reply", default: false end