Merge pull request #916 from influxdata/de-font-scale

Responsive Data Explorer
pull/10616/head
Chris Goller 2017-02-24 17:44:42 -06:00 committed by GitHub
commit af0f40248f
7 changed files with 93 additions and 4 deletions

View File

@ -18,6 +18,7 @@
2. [#917](https://github.com/influxdata/chronograf/pull/917): Simplify side navigation
3. [#920](https://github.com/influxdata/chronograf/pull/920): Display stacked and step plot graphs
4. [#851](https://github.com/influxdata/chronograf/pull/851): Add configuration for Influx Enterprise Meta nodes
5. [#916](https://github.com/influxdata/chronograf/pull/916): Dynamically scale font size based on resolution
## v1.2.0-beta3 [2017-02-15]

View File

@ -18,6 +18,7 @@
border-color: $g5-pepper;
border-width: 2px;
background-color: $g3-castle;
white-space: nowrap;
}
.dropdown-toggle {
border-radius: 0px 3px 3px 0;

View File

@ -1,6 +1,6 @@
.multi-select-dropdown {
.dropdown-toggle {
width: 150px;
width: 110px;
}
&__apply {
margin: 0;

View File

@ -43,3 +43,6 @@ $de-graph-heading-height: 44px;
@import 'data-explorer/raw-text';
@import 'data-explorer/tag-list';
@import 'data-explorer/visualization';
// Font size in response to screen size
@import 'data-explorer/font-scale';

View File

@ -0,0 +1,82 @@
$breakpoint-a: 1500px;
$breakpoint-b: 1800px;
$breakpoint-c: 2100px;
@media only screen and (min-width: $breakpoint-a) {
.data-explorer {
.qeditor--list-item,
.query-builder--tab-label {
font-size: 14px;
}
.query-builder--tab {
height: 38px;
}
.graph-title {
font-size: 16px;
}
.query-builder--column-heading {
font-size: 15px;
}
}
}
@media only screen and (min-width: $breakpoint-b) {
.data-explorer {
.query-builder--tabs {
width: 320px;
}
.qeditor--list-item,
.query-builder--tab-label {
font-size: 15px;
}
.query-builder--tab {
height: 42px;
}
.query-builder--column-heading {
font-size: 16px;
}
.query-builder--query-preview pre code {
font-size: 13.5px;
}
.toggle-sm .toggle-btn {
font-size: 14px;
}
.btn-xs {
font-size: 13.5px;
}
}
}
@media only screen and (min-width: $breakpoint-c) {
.data-explorer {
.query-builder--tabs {
width: 372px;
}
.qeditor--list-item {
letter-spacing: 0.3px;
}
.query-builder--tab-label {
font-size: 16px;
}
.query-builder--tab {
height: 46px;
}
.query-builder--column-heading {
font-size: 17px;
font-weight: 400;
text-transform: uppercase;
}
.query-builder--query-preview pre code {
font-size: 14px;
}
.toggle-sm .toggle-btn {
font-size: 14px;
}
.btn-xs {
font-size: 14px;
}
.multi-select-dropdown .dropdown-toggle {
width: 140px;
}
}
}

View File

@ -10,6 +10,8 @@
position: relative;
pre {
display: flex;
align-items: center;
padding: 9px;
border: 0;
background-color: $query-editor-tab-inactive;
@ -169,7 +171,7 @@
position: absolute;
top: 15px;
right: 16px;
width: calc(60% - 16px);
width: calc(50% - 16px);
height: 30px;
padding: 0;
z-index: 10;

View File

@ -98,8 +98,8 @@
background-color: $g3-castle;
border: 2px solid $g5-pepper;
color: $g13-mist;
height: 24px;
border-radius: 12px;
height: 30px;
border-radius: 15px;
font-size: 13px;
padding-left: 25px;
outline: none;