mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed some more styling
This commit is contained in:
@@ -65,7 +65,9 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|||||||
const toolbar = createSplittedClassName({ splitted, className: 'toolbar' });
|
const toolbar = createSplittedClassName({ splitted, className: 'toolbar' });
|
||||||
const toolbarItem = createSplittedClassName({ splitted, className: 'toolbar-item' });
|
const toolbarItem = createSplittedClassName({ splitted, className: 'toolbar-item' });
|
||||||
const toolbarHeader = createSplittedClassName({ splitted, className: 'toolbar-header' });
|
const toolbarHeader = createSplittedClassName({ splitted, className: 'toolbar-header' });
|
||||||
const timepickerClasses = createSplittedClassName({ splitted, className: 'toolbar-content-item timepicker' });
|
const toolbarContent = createSplittedClassName({ splitted, className: 'toolbar-content' });
|
||||||
|
const toolbarContentItem = createSplittedClassName({ splitted, className: 'toolbar-content-item' });
|
||||||
|
const timepickerClasses = createSplittedClassName({ splitted, className: 'timepicker toolbar-content-item' });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={toolbar}>
|
<div className={toolbar}>
|
||||||
@@ -79,11 +81,6 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="toolbar-header-datasource large-screens">
|
|
||||||
<div className="datasource-picker">
|
|
||||||
{!datasourceMissing && !splitted ? createDatasourcePicker(this.props) : null}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="toolbar-header-close">
|
<div className="toolbar-header-close">
|
||||||
{exploreId === 'right' && (
|
{exploreId === 'right' && (
|
||||||
<a onClick={this.props.onCloseSplit}>
|
<a onClick={this.props.onCloseSplit}>
|
||||||
@@ -94,19 +91,14 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={toolbarItem}>
|
<div className={toolbarItem}>
|
||||||
{!datasourceMissing && splitted ? (
|
<div className={toolbarContent}>
|
||||||
<div className="datasource-picker">{createDatasourcePicker(this.props)}</div>
|
{!datasourceMissing ? (
|
||||||
) : null}
|
<div className={toolbarContentItem}>
|
||||||
</div>
|
|
||||||
<div className={toolbarItem}>
|
|
||||||
<div className="toolbar-content">
|
|
||||||
{!datasourceMissing && !splitted ? (
|
|
||||||
<div className="toolbar-content-item small-screens">
|
|
||||||
<div className="datasource-picker">{createDatasourcePicker(this.props)}</div>
|
<div className="datasource-picker">{createDatasourcePicker(this.props)}</div>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{exploreId === 'left' && !splitted ? (
|
{exploreId === 'left' && !splitted ? (
|
||||||
<div className="toolbar-content-item">
|
<div className={toolbarContentItem}>
|
||||||
{createResponsiveButton({
|
{createResponsiveButton({
|
||||||
splitted,
|
splitted,
|
||||||
title: 'Split',
|
title: 'Split',
|
||||||
@@ -116,12 +108,12 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div className={timepickerClasses}>{timepicker}</div>
|
<div className={timepickerClasses}>{timepicker}</div>
|
||||||
<div className="toolbar-content-item">
|
<div className={toolbarContentItem}>
|
||||||
<button className="btn navbar-button navbar-button--no-icon" onClick={this.props.onClearAll}>
|
<button className="btn navbar-button navbar-button--no-icon" onClick={this.props.onClearAll}>
|
||||||
Clear All
|
Clear All
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="toolbar-content-item">
|
<div className={toolbarContentItem}>
|
||||||
{createResponsiveButton({
|
{createResponsiveButton({
|
||||||
splitted,
|
splitted,
|
||||||
title: 'Run Query',
|
title: 'Run Query',
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
.small-screens {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.timepicker-splitted,
|
|
||||||
.timepicker {
|
.timepicker {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@@ -24,13 +19,20 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbar-header-title {
|
||||||
|
.navbar-page-btn {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-splitted,
|
.toolbar-splitted,
|
||||||
.toolbar {
|
.toolbar {
|
||||||
display: flex;
|
|
||||||
background: inherit;
|
background: inherit;
|
||||||
justify-content: space-between;
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
height: auto;
|
height: auto;
|
||||||
padding: 0px $dashboard-padding;
|
padding: 0px $dashboard-padding;
|
||||||
border-bottom: 1px solid #0000;
|
border-bottom: 1px solid #0000;
|
||||||
@@ -39,24 +41,20 @@
|
|||||||
transition-property: box-shadow, border-bottom;
|
transition-property: box-shadow, border-bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar {
|
|
||||||
flex-flow: row nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar-splitted {
|
|
||||||
flex-flow: row wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar-item-splitted,
|
.toolbar-item-splitted,
|
||||||
.toolbar-item {
|
.toolbar-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-item-splitted:first-child {
|
.toolbar-item-splitted {
|
||||||
flex: 1 1 100%;
|
flex: 1 1 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbar-item:last-child {
|
||||||
|
flex: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.toolbar-header-splitted,
|
.toolbar-header-splitted,
|
||||||
.toolbar-header {
|
.toolbar-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -76,6 +74,11 @@
|
|||||||
|
|
||||||
.toolbar-header-title {
|
.toolbar-header-title {
|
||||||
color: darken($link-color, 5%);
|
color: darken($link-color, 5%);
|
||||||
|
|
||||||
|
.navbar-page-btn {
|
||||||
|
padding-left: $dashboard-padding;
|
||||||
|
}
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
@@ -83,10 +86,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-header-datasource {
|
|
||||||
padding-left: $dashboard-padding;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar-header-close {
|
.toolbar-header-close {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
@@ -94,21 +93,28 @@
|
|||||||
.toolbar-content-splitted,
|
.toolbar-content-splitted,
|
||||||
.toolbar-content {
|
.toolbar-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 2 1 0;
|
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
justify-content: flex-end;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-content-item {
|
.toolbar-content-item {
|
||||||
padding: 10px 2px;
|
padding: 10px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbar-content-item:first-child {
|
||||||
|
padding-left: $dashboard-padding;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-content-item-splitted:first-child {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1545px) {
|
@media only screen and (max-width: 1545px) {
|
||||||
.timepicker-splitted {
|
.timepicker-rangestring {
|
||||||
.timepicker-rangestring {
|
display: none;
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,47 +124,69 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbar-content-splitted,
|
||||||
|
.toolbar-content {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-content-item-splitted {
|
||||||
|
padding: 2px 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-content-item {
|
||||||
|
padding: 2px 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 800px) {
|
@media only screen and (max-width: 803px) {
|
||||||
.large-screens {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-screens {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidemenu-open {
|
.sidemenu-open {
|
||||||
.toolbar-header-splitted,
|
.toolbar-header-title {
|
||||||
.toolbar-header {
|
.navbar-page-btn {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-header-title {
|
||||||
|
.navbar-page-btn {
|
||||||
|
padding-left: 0;
|
||||||
margin-left: $dashboard-padding;
|
margin-left: $dashboard-padding;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-header-splitted,
|
|
||||||
.toolbar-header {
|
|
||||||
margin-left: $dashboard-padding;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar {
|
|
||||||
flex-flow: row wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar-content {
|
|
||||||
align-self: flex-start;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar-content-item {
|
|
||||||
padding: 5px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-title {
|
.btn-title {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 702px) {
|
||||||
|
.toolbar-content-item:first-child {
|
||||||
|
padding-left: 2px;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 544px) {
|
||||||
|
.sidemenu-open {
|
||||||
|
.toolbar-header-title {
|
||||||
|
.navbar-page-btn {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-left: $dashboard-padding;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-header-title {
|
||||||
|
.navbar-page-btn {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-left: $dashboard-padding;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.explore {
|
.explore {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user