Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
shekenahglory committed Nov 16, 2016
1 parent 161a5c9 commit 7ecd7c4
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 39 deletions.
5 changes: 0 additions & 5 deletions src/app/external-markets/external-markets.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

.external-markets sign {
margin-right: -.25em;
}

.external-markets .market sign {
display: inline-block;
}

Expand All @@ -22,8 +19,6 @@
}

.external-markets .valueCurrencySelect {
border: 1px solid #aaa;
border-radius: 1px;
float: none;
}

Expand Down
66 changes: 40 additions & 26 deletions src/app/landing/landing.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,17 @@
font-size:90%;
}

.landing .stats {
padding-bottom: 10px;
}

.landing .stats .stat-group {
float: left;
}

.landing .stats ul {
list-style:none;
margin:10px 5px 30px 5px;
margin:10px 5px 15px 5px;
display:table;
width:100%;
border:1px solid #eee;
Expand Down Expand Up @@ -69,20 +77,20 @@
background: #2A98D0;
}

.landing .stats label {
.landing .stat-group label {
vertical-align:middle;
display:table-cell;
text-align:left;
padding:5px 12px;
border-bottom:1px solid #e5e5e5;
}

.landing .stats .volume-stats label {
.landing .stat-group .volume-stats label {
padding-left: 7px;
cursor: pointer;
}

.landing .stats label small {
.landing .stat-group label small {
font-size: 85%;
opacity: .65;
}
Expand Down Expand Up @@ -118,9 +126,14 @@
border-bottom:none;
}

.landing .stats .right {
float: right;
width: 50%;
padding: 5px 15px;
}

.landing #metricDetail {
height:320px;
margin-top:20px;
height: 350px;
}

#topMarkets {
Expand Down Expand Up @@ -181,9 +194,9 @@
color: #fff;
}

.dark .landing .stat,
.dark .stats label,
.dark .stats .status {
.dark .landing .stat-group .stat,
.dark .stat-group label,
.dark .stat-group .status {
border-bottom-color:#2a2a2a;
}

Expand Down Expand Up @@ -215,7 +228,7 @@
}


.dark .landing .stat small {
.dark .landing .stat-group small {
font-weight:bold;
}

Expand Down Expand Up @@ -243,7 +256,7 @@
}
}

@media (max-width: 979px) {
@media (max-width: 989px) {

#topMarkets {
width:724px;
Expand All @@ -260,16 +273,25 @@
margin:0;
}

.landing .stat-group {
width: 100%;
}

.landing .stats ul {
width:98%;
width: 100%;
display:inline-table;
}

.landing h5, .landing #metricDetail {
width:98%;
.landing h5,
.landing .stats .right {
width: 100%;
display:inline-block;
}

.landing .stats .right {
margin-bottom: 30px;
}

.landing .stats label small {
display:inline-block;
}
Expand Down Expand Up @@ -301,18 +323,6 @@
.landing .stats ul li {
margin: 3px 0;
}

.landing #metricDetail {
padding:10px 0;
}

}

@media (max-width: 650px) {
#metricDetail .inner {
margin-left:-25%;
}

}

@media (max-width: 480px) {
Expand All @@ -331,6 +341,10 @@
padding-left: 5px;
}

.landing .stats .right {
padding: 5px;
}

.landing #metricDetail {
zoom :.85;
}
Expand Down
12 changes: 7 additions & 5 deletions src/app/landing/landing.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ <h3>Welcome to Ripple Charts</h3>
code is available <a href="https://github.com/ripple/ripplecharts-frontend" target="_blank">here</a>.
</p>
</div>
<div class="row">
<div class="col-md-6 stats">
<div class="row stats">
<div class="stat-group col-md-6">
<h5>
<b>Volume Stats (24 hours)</b>
<select class="valueCurrencySelect" ng-model="selectedCurrency"
Expand Down Expand Up @@ -54,6 +54,11 @@ <h5>
</div>
</li>
</ul>
</div>
<div class="right">
<div id="metricDetail"></div>
</div>
<div class="stat-group col-md-6">
<h5>
Ripple Network Stats
</h5>
Expand Down Expand Up @@ -91,9 +96,6 @@ <h5>
</li>
</ul>
</div>
<div class="col-md-6">
<div id="metricDetail"></div>
</div>
</div>
<h5>Top Markets</h5>
<div id="topMarkets"></div>
Expand Down
3 changes: 2 additions & 1 deletion src/common/valueSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ function ValueSummary(options) {
var title = outer.append('h5')
var inner = outer.append('div').attr('class', 'inner')
var width = parseInt(outer.style('width'), 10)
var height = parseInt(outer.style('height'), 10) || width
var height = (parseInt(outer.style('height'), 10) || width) - 40
var radius = (Math.min(width, height)) / 2

var margin = {
top: radius / 10,
bottom: radius / 10,
Expand Down
3 changes: 1 addition & 2 deletions src/less/valueSummary.less
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ donut .tooltip .title {

.tooltip {
opacity: 1;
filter: alpha(opacity=1);
position:absolute;
bottom:-10px;
bottom:10px;
right:5px;
padding:5px;
background:rgba(255,255,255,.9);
Expand Down

0 comments on commit 7ecd7c4

Please sign in to comment.