8000 Styling updates in the field view pane by marcgurney · Pull Request #16 · mongodb-js/compass · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Styling updates in the field view pane #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scout-ui/src/field-list/array-field.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.schema-field.schema-field-array
hr.field-divider
.schema-field-name
span.caret
span(data-hook='name')
Expand Down
5 changes: 3 additions & 2 deletions scout-ui/src/field-list/basic-field.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.schema-field.schema-field-basic
.schema-field-name(data-hook='name')
hr.field-divider
.row
.col-sm-4
.schema-field-name(data-hook='name')
div(data-hook='types-container')
.col-sm-8
.col-sm-7.col-sm-offset-1
div(data-hook='minicharts-container')
1 change: 1 addition & 0 deletions scout-ui/src/field-list/object-field.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.schema-field.schema-field-object
hr.field-divider
.schema-field-name
span.caret
span(data-hook='name')
Expand Down
29 changes: 15 additions & 14 deletions scout-ui/src/home/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,27 @@

.schema-field {
// .list-group-item;
border-bottom: 1px solid @gray7;
padding: 12px 0;
// padding: 12px 0;
margin: 12px 0;

// second level
hr.field-divider {
margin-bottom: 12px;
border-top: 1px solid @gray7;
}

.schema-field-list {
.schema-field-name {
margin-left: 50px;
}
.schema-field-type-list {
// second level
.schema-field-name,
.schema-field-type-list,
hr.field-divider {
margin-left: 50px;
}

// third level
.schema-field-list {
.schema-field-name {
margin-left: 100px;
}
.schema-field-type-list {
margin-left: 100px;
}
.schema-field-name,
.schema-field-type-list,
hr.field-divider {
margin-left: 100px;
}
}

Expand Down Expand Up @@ -127,6 +127,7 @@

.schema-field-type {
.progress-bar;
margin-right: 2px;
background: @gray1;
}

Expand Down
35 changes: 19 additions & 16 deletions scout-ui/src/minicharts/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@
@mc-bar-hl: #BEDFF0;

div.minichart.unique {
font: 12px sans-serif;

.desc {
font-weight: bold;
i.fa {
padding-right: 5px;
color: #999;
cursor: pointer;
}
}
font-size: 12px;

.value {
dl.dl-horizontal {
padding-top: 12px;
max-height: 112px;
overflow: hidden;

dt {
color: @gray3;
width: 20px;

ul {
white-space: nowrap;
list-style-type: none;
li {
a {
color: @gray3;
display: inline-block;
padding-right: 10px;

&:hover {
text-decoration: none;
color: @gray1;
}
}
}
dd {
margin-left: 30px;
overflow: hidden;
}
}
}

Expand Down
26 changes: 12 additions & 14 deletions scout-ui/src/minicharts/unique.jade
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
div(data-hook='viz-container')
.row
.col-sm-3.desc min
.col-sm-9.value
= minValue
dl.dl-horizontal
//- dt min
//- dd
//- = minValue

.row
.col-sm-3.desc
i.fa.fa-refresh(data-hook='refresh')
| random
.col-sm-9.value
ul
dt
a(href="#")
i.mms-icon-continuous(data-hook='refresh')
dd
ul.list-inline
each val in randomValues
li= val

.row
.col-sm-3.desc max
.col-sm-9.value
= maxValue
//- dt max
//- dd
//- = maxValue


2 changes: 1 addition & 1 deletion scout-ui/src/minicharts/unique.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = VizView.extend({
deps: ['orderedValues'],
cache: false,
fn: function() {
return this.orderedValues.slice(1, 5);
return this.orderedValues.slice(1, 15);
}
}
},
Expand Down
0