mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge remote-tracking branch 'origin/9879-login' into develop-login2
This commit is contained in:
@@ -92,6 +92,7 @@
|
||||
.btn-warning {
|
||||
@include buttonBackground($btn-warning-bg, $btn-warning-bg-hl);
|
||||
}
|
||||
|
||||
// Danger and error appear as red
|
||||
.btn-danger {
|
||||
@include buttonBackground($btn-danger-bg, $btn-danger-bg-hl);
|
||||
@@ -142,4 +143,57 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Extra padding
|
||||
.btn-p-x-2 {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
// External services
|
||||
// Usage:
|
||||
// <div class="btn btn-service btn-service--facebook">Button text</div>
|
||||
|
||||
$btn-service-icon-width: 35px;
|
||||
.btn-service {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@each $service, $data in $external-services {
|
||||
$serviceBgColor: map-get($data, bgColor);
|
||||
$serviceBorderColor: map-get($data, borderColor);
|
||||
|
||||
.btn-service--#{$service} {
|
||||
background-color: $serviceBgColor;
|
||||
border: 1px solid $serviceBorderColor;
|
||||
|
||||
.btn-service-icon {
|
||||
font-size: 24px; // Override
|
||||
border-right: 1px solid $serviceBorderColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-service-icon {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
padding-left: .5rem;
|
||||
padding-right: .5rem;
|
||||
width: $btn-service-icon-width;
|
||||
text-align: center;
|
||||
|
||||
&::before {
|
||||
position: relative;
|
||||
top: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-service--grafanacom {
|
||||
.btn-service-icon {
|
||||
background-image: url(/public/img/grafana_mask_icon_white.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50%;
|
||||
background-size: 60%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user