mirror of https://github.com/grafana/grafana
parent
9c54da8f5d
commit
5b59d59afa
@ -0,0 +1,15 @@ |
||||
import React, { SFC } from 'react'; |
||||
|
||||
interface Props { |
||||
cols?: number; |
||||
children: JSX.Element[] | JSX.Element; |
||||
} |
||||
|
||||
export const PanelOptionGrid: SFC<Props> = ({ children }) => { |
||||
|
||||
return ( |
||||
<div className="panel-option-grid"> |
||||
{children} |
||||
</div> |
||||
); |
||||
}; |
||||
@ -0,0 +1,11 @@ |
||||
.panel-option-grid { |
||||
display: grid; |
||||
grid-template-columns: repeat(2, 1fr); |
||||
grid-row-gap: 10px; |
||||
grid-column-gap: 10px; |
||||
margin-bottom: 10px; |
||||
|
||||
@include media-breakpoint-up(md) { |
||||
grid-template-columns: repeat(3, 1fr); |
||||
} |
||||
} |
||||
@ -0,0 +1,27 @@ |
||||
.panel-option-section { |
||||
margin-bottom: 10px; |
||||
border: $panel-option-section-border; |
||||
border-radius: $border-radius; |
||||
background: $page-bg; |
||||
} |
||||
|
||||
.panel-option-section__header { |
||||
padding: 4px 20px; |
||||
font-size: 1.1rem; |
||||
background: $panel-option-section-header-bg; |
||||
position: relative; |
||||
|
||||
.btn { |
||||
position: absolute; |
||||
right: 0; |
||||
top: 0px; |
||||
} |
||||
} |
||||
|
||||
.panel-option-section__body { |
||||
padding: 20px; |
||||
|
||||
&--queries { |
||||
min-height: 200px; |
||||
} |
||||
} |
||||
@ -0,0 +1,2 @@ |
||||
|
||||
|
||||
Loading…
Reference in new issue