Skip to content

Commit 4248ded

Browse files
committed
Merge pull request #107 from vincent99/master
Style and color tweaking
2 parents 6c82a10 + 0c83436 commit 4248ded

File tree

10 files changed

+109
-51
lines changed

10 files changed

+109
-51
lines changed

app/pods/apikeys/template.hbs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,31 @@
1414
</div>
1515
</div>
1616
</div>
17+
</section>
1718

18-
<div>
19-
<div class="clearfix">
20-
<label><i class="fa fa-code"></i> API Keys</label>
21-
<div style="float: right">
22-
<button {{action "newApikey"}} class="btn btn-primary"><i class="ss-plus"></i> Create an API key</button>
23-
</div>
19+
<section class="grid-header">
20+
<div class="row">
21+
<div class="col-sm-6">
22+
<h3>All API Keys ({{length}})</h3>
2423
</div>
25-
<table class="table fixed" style="margin-bottom: 0">
24+
<div class="col-sm-6 text-right">
25+
<button {{action "newApikey"}} class="btn btn-primary"><i class="ss-plus"></i> Create an API key</button>
26+
</div>
27+
</div>
28+
</section>
29+
30+
<section>
31+
<table class="grid fixed" style="margin-bottom: 0">
32+
<thead>
2633
<tr>
2734
<th width="120">State</th>
28-
<th>Name<br/><span class="text-muted">Description</span></th>
29-
<th>Created<br/><span class="text-muted">Username</span></th>
35+
<th>Name</th>
36+
<th>Username</th>
37+
<th>Created</th>
3038
<th width="50">&nbsp;</th>
3139
</tr>
40+
</thead>
41+
<tbody>
3242
{{#each key in this}}
3343
<tr>
3444
<td>
@@ -38,12 +48,12 @@
3848
</td>
3949
<td>
4050
{{#if key.name}}{{key.displayName}}{{else}}<span class="text-muted text-italic">No name</span>{{/if}}
41-
<p class="text-muted">{{#if key.description}}{{key.description}}{{else}}<span class="text-italic">No description</span>{{/if}}</p>
42-
51+
</td>
52+
<td>
53+
{{#if key.publicValue}}{{key.publicValue}}{{else}}<span class="text-muted text-italic">No public value</span>{{/if}}
4354
</td>
4455
<td>
4556
<div class="text-muted">{{date-calendar key.created}}</div>
46-
<div>{{#if key.publicValue}}{{key.publicValue}}{{else}}<span class="text-muted text-italic">No public value</span>{{/if}}</div>
4757
</td>
4858
<td align="right">
4959
{{resource-actions-menu model=key choices=key.availableActions}}
@@ -52,6 +62,6 @@
5262
{{else}}
5363
<tr><td colspan="4" class="text-center text-muted">You don't have any API keys yet.</td></tr>
5464
{{/each}}
55-
</table>
56-
</div>
65+
</tbody>
66+
</table>
5767
</section>

app/pods/apikeys/view.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Ember from 'ember';
2+
3+
export default Ember.View.extend({
4+
didInsertElement: function() {
5+
$('BODY').addClass('white');
6+
},
7+
8+
willDestroyElement: function() {
9+
$('BODY').removeClass('white');
10+
},
11+
});

app/pods/containers/index/template.hbs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<section class="grid-header">
2-
<div class="text-right">
3-
<button {{action "newContainer"}} class="btn btn-sm btn-primary">Add Container</button>
2+
<div class="row">
3+
<div class="col-sm-6">
4+
<h3>All Containers ({{model.length}})</h3>
5+
</div>
6+
<div class="col-sm-6 text-right">
7+
<button {{action "newContainer"}} class="btn btn-sm btn-primary">Add Container</button>
8+
</div>
49
</div>
510
</section>
611
<section class="instances">

app/pods/host/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<aside>
1+
<aside style="top: -33px;">
22
<label>Host</label>
33
{{resource-actions-menu model=this choices=availableActions classNames="pull-right"}}
44
<h3>{{displayName}}</h3>

app/pods/registries/index/template.hbs

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
<section>
2-
<div class="clearfix">
3-
<div style="float: right">
1+
<section class="grid-header">
2+
<div class="row">
3+
<div class="col-sm-6">
4+
<h3>All Registries ({{length}})</h3>
5+
</div>
6+
<div class="col-sm-6 text-right">
47
<button {{action "newRegistry"}} class="btn btn-sm btn-primary"><i class="ss-plus"></i> Add Registry</button>
58
</div>
69
</div>
10+
</section>
11+
<section>
712
<table class="grid fixed" style="margin-bottom: 0">
813
<thead>
914
<tr>
1015
<th width="120">State</th>
11-
<th>Name<br/><span class="text-muted">Description</span></th>
12-
<th>Address<br/><span class="text-muted">Created</span></th>
13-
<th width="80">Credentials</th>
16+
<th>Name</th>
17+
<th>Address</th>
18+
<th width="100">Credentials</th>
19+
<th>Created</th>
1420
<th width="50">&nbsp;</th>
1521
</tr>
1622
</thead>
@@ -24,13 +30,16 @@
2430
</td>
2531
<td>
2632
{{#link-to "registry" registry.id}}{{registry.displayName}}{{/link-to}}
27-
<p class="text-muted">{{#if registry.description}}{{registry.description}}{{else}}<span class="text-italic">No description</span>{{/if}}</p>
2833
</td>
2934
<td>
3035
{{registry.serverAddress}}
31-
<p class="text-muted">{{date-calendar registry.created}}</p>
3236
</td>
33-
<td>{{#if registry.credentials}}{{registry.credentials.length}}{{else}}<i class="text-muted">None</i>{{/if}}</td>
37+
<td>
38+
{{#if registry.credentials}}{{registry.credentials.length}}{{else}}<i class="text-muted">None</i>{{/if}}
39+
</td>
40+
<td>
41+
{{date-calendar registry.created}}
42+
</td>
3443
<td align="right">
3544
{{resource-actions-menu model=registry choices=registry.availableActions}}
3645
</td>

app/pods/volumes/template.hbs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
<section class="grid-header">
2+
<div class="row">
3+
<div class="col-sm-6">
4+
<h3>All Volumes ({{nonRootVolumes.length}})</h3>
5+
</div>
6+
</div>
7+
</section>
18
<section>
2-
<table class="grid fixed">
9+
<table class="grid fixed" style="margin-bottom: 0;">
310
<thead>
411
<tr>
512
<th width="120">State<br><span class="text-muted">Host Path</span></th>

app/styles/bootstrap-tweak.scss

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ H1, H2, H3, H4, H5, H6 {
186186
}
187187
}
188188

189+
table a:not(.btn), .table a:not(.btn), .grid a:not(.btn) {
190+
text-decoration: none;
191+
}
192+
189193
.well > .table {
190194
margin-bottom: 0;
191195
}
@@ -203,31 +207,43 @@ HR {
203207
padding: 10px;
204208
}
205209

206-
.dropdown-menu > li > a {
207-
cursor: pointer;
208-
cursor: hand;
209-
}
210+
.dropdown-menu {
211+
@include box-shadow(0 2px 2px rgba(0,0,0,0.1));
210212

211-
.dropdown-menu > li.selected > a,
212-
.dropdown-menu > li.selected > a:hover,
213-
.dropdown-menu > li.selected > a:focus {
214-
color: $brand-success;
215-
font-weight: bold;
213+
.divider {
214+
margin: 6px 5px;
215+
}
216216

217-
.text-muted {
218-
color:
217+
& > li > a {
218+
cursor: pointer;
219+
cursor: hand;
220+
}
221+
222+
& > li.selected > a,
223+
& > li.selected > a:hover,
224+
& > li.selected > a:focus {
225+
color: $brand-success;
226+
font-weight: bold;
227+
228+
.text-muted {
229+
color:
230+
}
231+
}
232+
233+
& .active .text-muted,
234+
& A:hover .text-muted {
235+
color: inherit;
219236
}
220237
}
221238

222-
.dropdown-menu .active .text-muted,
223-
.dropdown-menu A:hover .text-muted,
224239
.list-group-item.active .text-muted {
225240
color: inherit;
226241
}
227242

228243
.badge.state {
229244
border-radius: 3px;
230-
font-weight: 600;
245+
font-size: 11px;
246+
font-weight: 400;
231247
text-transform: uppercase;
232248
color: white;
233249
}

app/styles/host.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ $instance-ip: #9a9a9a;
158158
.add-host {
159159
color: #d2d7de;
160160
background-color: transparent;
161-
border: 1px dashed;
161+
border: 1px dashed #d2d7de;
162162
min-height: 168px;
163163
text-align: center;
164164
cursor: pointer;

app/styles/layout.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $header-link-text: #afb9c8;
55
$nav-width: 90px;
66
$main-padding: 20px;
77
$nav-bg: #393d47;
8-
$nav-text: #d0d0d0;
8+
$nav-text: #788188;
99
$nav-bg-hover: #283036;
1010
$nav-text-hover: white;
1111
$aside-width: 200px;
@@ -290,7 +290,7 @@ ASIDE {
290290
}
291291

292292
LABEL {
293-
color: #b4e1da
293+
color: rgba(255,255,255,0.5);
294294
}
295295

296296
}
@@ -355,9 +355,9 @@ UL.list-circles {
355355
**********/
356356
$nav-1: #44b4a2;
357357
$nav-2: #f58485;
358-
$nav-3: #fbc57e;
359-
$nav-4: #cd95e9;
360-
$nav-5: #8be5ff;
358+
$nav-3: #b49ac3;
359+
$nav-4: #fabc6f;
360+
$nav-5: #66b0cb;
361361

362362
.nav-hosts {
363363
border-left-color: $nav-1;
@@ -603,7 +603,7 @@ ASIDE .btn-circle-menu {
603603
padding: 2px;
604604

605605
&:first-child {
606-
border-top: 1px solid #ddd;
606+
border-top: 1px solid #f0f3f5;
607607
}
608608
}
609609

vendor/bootswatch-cosmo/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $table-bg-hover: #f5f5f5;
135135
$table-bg-active: $table-bg-hover;
136136

137137
//** Border color for table and cell borders.
138-
$table-border-color: #ddd;
138+
$table-border-color: #f0f3f5;
139139

140140

141141
//== Buttons
@@ -225,11 +225,11 @@ $cursor-disabled: not-allowed;
225225
//** Background for the dropdown menu.
226226
$dropdown-bg: #fff;
227227
//** Dropdown menu `border-color`.
228-
$dropdown-border: rgba(0,0,0,.15);
228+
$dropdown-border: #e2e5e5;
229229
//** Dropdown menu `border-color` **for IE8**.
230230
$dropdown-fallback-border: #ccc;
231231
//** Divider color for between dropdown items.
232-
$dropdown-divider-bg: #e5e5e5;
232+
$dropdown-divider-bg: #e2e5e5;
233233

234234
//** Dropdown link text color.
235235
$dropdown-link-color: $gray-dark;

0 commit comments

Comments
 (0)