mirror of https://github.com/grafana/grafana
Merge pull request #14849 from grafana/panel-option-section
WIP: Panel option section moved to grafana-ui and new panel option gridpull/14816/head
commit
46f2808eaf
@ -0,0 +1,15 @@ |
||||
import React, { SFC } from 'react'; |
||||
|
||||
interface Props { |
||||
cols?: number; |
||||
children: JSX.Element[] | JSX.Element; |
||||
} |
||||
|
||||
export const PanelOptionsGrid: SFC<Props> = ({ children }) => { |
||||
|
||||
return ( |
||||
<div className="panel-options-grid"> |
||||
{children} |
||||
</div> |
||||
); |
||||
}; |
@ -0,0 +1,10 @@ |
||||
.panel-options-grid { |
||||
display: grid; |
||||
grid-template-columns: repeat(1, 1fr); |
||||
grid-row-gap: 10px; |
||||
grid-column-gap: 10px; |
||||
|
||||
@include media-breakpoint-up(lg) { |
||||
grid-template-columns: repeat(3, 1fr); |
||||
} |
||||
} |
@ -0,0 +1,27 @@ |
||||
.panel-options-group { |
||||
margin-bottom: 10px; |
||||
border: $panel-options-group-border; |
||||
border-radius: $border-radius; |
||||
background: $page-bg; |
||||
} |
||||
|
||||
.panel-options-group__header { |
||||
padding: 4px 20px; |
||||
font-size: 1.1rem; |
||||
background: $panel-options-group-header-bg; |
||||
position: relative; |
||||
|
||||
.btn { |
||||
position: absolute; |
||||
right: 0; |
||||
top: 0px; |
||||
} |
||||
} |
||||
|
||||
.panel-options-group__body { |
||||
padding: 20px; |
||||
|
||||
&--queries { |
||||
min-height: 200px; |
||||
} |
||||
} |
@ -0,0 +1,2 @@ |
||||
|
||||
|
Loading…
Reference in new issue