The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/sass/pages/_login.scss

294 lines
4.8 KiB

.login-container {
background-position: left;
min-height: 100%;
background-repeat: no-repeat;
min-width: 100%;
margin-left: 0;
background-color: #000;
display: flex;
align-items: center;
justify-content: center;
background-image: url(../img/heatmap_bg_test.svg);
background-size: 100%;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0px 1000px black inset;
-webkit-text-fill-color: #fafafa !important;
}
.login-form-group {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
}
.login-form {
margin-bottom: .5rem;
width: 100%;
}
.login-form-input {
border: 1px solid #fafafa !important;
border-radius: 4px !important;
opacity: .6;
}
.login-button-group {
display:flex;
align-items: center;
justify-content:space-between;
width: 100%;
margin-top: 1rem
}
.login-text {
font-size: $font-size-sm;
}
.login-box {
max-width: 700px;
display: flex;
align-items: stretch;
flex-direction: row;
}
.login-box-logo {
width: 45%;
padding: 4rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-right: 1px solid #fafafa;
img {
width: 10rem;
}
.icon-gf-grafana_wordmark {
color: $link-color;
position: relative;
font-size: 4rem;
text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
}
.login-inner-box {
text-align: center;
padding: 2rem 4rem;
display: flex;
flex-direction: column;
width: 55%;
align-items: center;
justify-content: center;
}
.login-tab-header {
background: $tight-form-bg;
text-align: center;
margin-bottom: 3rem;
}
.btn-login-tab {
background: transparent;
border: none;
font-size: 15px;
padding: 10px 10px;
&.active {
background: darken($tight-form-bg, 5%);
color: $white;
}
&:focus {
outline: 0;
}
font-weight: bold;
display: inline-block;
width: 170px;
color: $text-color;
}
.password-strength {
display: block;
width: 15%;
overflow: visible;
white-space: nowrap;
padding-top: 3px;
color: darken($text-color, 20%);
border-top: 3px solid $red;
&.password-strength-ok {
width: 40%;
border-top: 3px solid lighten($yellow, 10%);
}
&.password-strength-good {
width: 100%;
border-top: 3px solid lighten($green, 10%);
}
}
.login-submit-button-row {
text-align: center;
margin-top: 30px;
button {
padding: 14px 23px;
font-size: 16px;
font-weight: bold;
min-width: 150px;
display: inline-block;
border: 1px solid lighten($btn-inverse-bg, 10%);
}
}
.login-oauth {
.btn {
margin: 5px;
}
.btn-google {
background: #dd4b39;
color: white;
}
.btn-github {
background: #555;
color: white;
}
.btn-grafana-com {
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color);
box-shadow: $card-shadow;
img {
width: 19px;
vertical-align: sub;
}
}
}
.password-recovery {
background: $tight-form-bg;
padding: 10px;
a {
color: $gray-2;
}
}
.login-divider {
float: left;
width: 100%;
margin: 5px 25% 25px 25%;
display: flex;
justify-content: space-between;
.login-divider-line {
width: 110px;
height: 10px;
border-bottom: 1px solid #fafafa;
.login-divider-text {
background-color: $panel-bg;
color: $gray-2;
padding: 0 10px;
}
}
}
.login-signup-box {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
margin-top: 2rem
}
.login-btn {
width: 100%; margin: 0 0 1rem;
}
.signup-page-background {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
width: 100%;
background-image: url(../img/background_tease.jpg);
opacity: 0.3;
z-index: -1;
}
.invite-box {
text-align: center;
border: 1px solid $tight-form-func-bg;
background-color: $panel-bg;
max-width: 800px;
margin-left: auto;
margin-right: auto;
.tight-form {
text-align: left;
}
h3 {
margin-top: 30px;
}
.modal-close {
float: right;
font-size: 140%;
padding: 10px;
}
.modal-tagline {
font-size: 16px;
}
}
@include media-breakpoint-down(md) {
.login-box-logo {
img {
width: 125px;
}
.icon-gf-grafana_wordmark {
top: -5px;
font-size: 2rem;
}
}
}
@include media-breakpoint-down(xs) {
.login-box {
flex-direction: column;
}
.login-box-logo {
border: none;
width: 100%;
padding: 0;
}
.login-inner-box {
width: 100%;
}
.login-box-logo {
img {
width: 5rem;
}
.icon-gf-grafana_wordmark {
top: -5px;
font-size: 2rem;
}
}
}