From 53659d7ac8c58d6539907ddda9dd29de21efb04b Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 19 Sep 2012 09:48:22 -0400 Subject: [PATCH] use github's social-count classes for token-cost --- styles/app/index.styl | 40 ++++++++++++++++++++++++++++++++++++++++ views/app/index.html | 8 ++++---- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/styles/app/index.styl b/styles/app/index.styl index 6be3e3d2ed..dc63f849e0 100644 --- a/styles/app/index.styl +++ b/styles/app/index.styl @@ -182,3 +182,43 @@ li:hover .task-meta-controls .hover-show #main /*overflow:auto;*/ padding-bottom: 250px; /* don't know why this works, sticky footers are weird */ + +/* ----- Adaptation of GH's social-count for Tokens -----*/ + +.token-cost + border: 1px solid #D4D4D4; + font-size: 11px; + font-weight: bold; + padding: 6px 7px 5px; + line-height: 20px; + margin-left: 8px; + border-radius: 3px; + color: #333; + background-color: #FAFAFA; + position: relative; + +.token-cost::before + content: ""; + display: block; + width: 0; + height: 0; + border: 6px solid #D4D4D4; + border-color: transparent #D4D4D4 transparent transparent; + position: absolute; + right: 100%; + margin-right: 0; + top: 50%; + margin-top: -6px; + +.token-cost::after + content: ""; + display: block; + width: 0; + height: 0; + border: 6px solid #FAFAFA; + border-color: transparent #FAFAFA transparent transparent; + position: absolute; + right: 100%; + margin-right: -1px; + top: 50%; + margin-top: -6px; \ No newline at end of file diff --git a/views/app/index.html b/views/app/index.html index c51666c12e..893686295c 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -83,10 +83,10 @@

Game Over

{#if lessThan(_user.balance,0.50)} - Buy More Tokens Not enough tokens + Buy More TokensNot enough tokens {else}

- Continue 2 Tokens + Continue2 Tokens

{/} @@ -169,9 +169,9 @@ Tokens: {tokens(_user.balance)}

Highly discouraged because red tasks provide good incentive to improve (read more). However, this becomes necessary after long bouts of bad habits.

{#if lessThan(_user.balance,1)} - Buy More Tokens Not enough tokens + Buy More TokensNot enough tokens {else} - 4 Tokens + 4 Tokens {/}