mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
e54e997801
* Badge: Design improvement & reduce contrast * light theme border tweak * Updated snapshot
218 lines
3.2 KiB
SCSS
218 lines
3.2 KiB
SCSS
.layout-selector {
|
|
@include clearfix();
|
|
|
|
margin-left: $space-md;
|
|
text-align: right;
|
|
|
|
button {
|
|
background: $input-label-bg;
|
|
color: $text-color-weak;
|
|
box-shadow: $card-shadow;
|
|
border: none;
|
|
padding: $space-sm;
|
|
line-height: 1;
|
|
font-size: 130%;
|
|
float: right;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&.active {
|
|
background-color: lighten($input-label-bg, 5%);
|
|
color: $link-color;
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
border-radius: 3px 0 0 3px;
|
|
border-right: $panel-border;
|
|
}
|
|
|
|
&:nth-child(1) {
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-section {
|
|
margin-bottom: $space-xl;
|
|
}
|
|
|
|
.card-list {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
list-style-type: none;
|
|
}
|
|
|
|
.card-item {
|
|
display: block;
|
|
height: 100%;
|
|
background: $card-background;
|
|
box-shadow: $card-shadow;
|
|
padding: $space-md;
|
|
border-radius: 4px;
|
|
|
|
&:hover {
|
|
background: $card-background-hover;
|
|
}
|
|
|
|
.label-tag {
|
|
margin-left: $space-sm;
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
}
|
|
}
|
|
|
|
.card-item-body {
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-item-details {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-item-header {
|
|
margin-bottom: $space-md;
|
|
}
|
|
|
|
.card-item-type {
|
|
color: $text-color-weak;
|
|
text-transform: uppercase;
|
|
font-size: $font-size-sm;
|
|
font-weight: $font-weight-semi-bold;
|
|
}
|
|
|
|
.card-item-badge {
|
|
margin: 6px 0;
|
|
}
|
|
|
|
.card-item-notice {
|
|
font-size: $font-size-sm;
|
|
}
|
|
|
|
.card-item-name {
|
|
color: $headings-color;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
}
|
|
|
|
.card-item-label {
|
|
margin-left: $space-sm;
|
|
}
|
|
|
|
.card-item-sub-name {
|
|
color: $text-color-weak;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
}
|
|
|
|
.card-item-sub-name--header {
|
|
color: $text-color-weak;
|
|
text-transform: uppercase;
|
|
margin-bottom: $space-md;
|
|
font-size: $font-size-sm;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.card-list-layout-grid {
|
|
.card-item-type {
|
|
display: inline-block;
|
|
}
|
|
|
|
.card-item-notice {
|
|
font-size: $font-size-sm;
|
|
display: inline-block;
|
|
margin-left: $space-md;
|
|
}
|
|
|
|
.card-item-header-action {
|
|
float: right;
|
|
}
|
|
|
|
.card-item-wrapper {
|
|
width: 100%;
|
|
padding: 0 $space-md $space-md 0;
|
|
}
|
|
|
|
.card-item-wrapper--clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card-item-figure {
|
|
margin: 0 $space-md $space-md 0;
|
|
height: 80px;
|
|
|
|
img {
|
|
width: 80px;
|
|
}
|
|
}
|
|
|
|
.card-item-name {
|
|
font-size: $font-size-h3;
|
|
}
|
|
|
|
@include media-breakpoint-up(md) {
|
|
.card-item-wrapper {
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
.card-item-wrapper {
|
|
width: 33.333333%;
|
|
}
|
|
}
|
|
|
|
&.card-list-layout-grid--max-2-col {
|
|
@include media-breakpoint-up(lg) {
|
|
.card-item-wrapper {
|
|
width: 50%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-list-layout-list {
|
|
.card-item-wrapper {
|
|
padding: 0;
|
|
width: 100%;
|
|
margin-bottom: $space-xs;
|
|
}
|
|
|
|
.card-item-wrapper--clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card-item {
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.card-item-header {
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
|
|
.card-item-figure {
|
|
margin: 0 $space-md 0 0;
|
|
img {
|
|
width: 48px;
|
|
}
|
|
}
|
|
|
|
.card-item-name {
|
|
font-size: $font-size-h4;
|
|
}
|
|
|
|
.card-item-sub-name {
|
|
font-size: $font-size-sm;
|
|
}
|
|
|
|
.layout-selector {
|
|
margin-right: 0;
|
|
}
|
|
}
|