Files
grafana/public/sass/pages/_login.scss

348 lines
5.5 KiB
SCSS
Raw Normal View History

$login-border: #8daac5;
.login {
background-position: center;
min-height: 85vh;
background-repeat: no-repeat;
min-width: 100%;
margin-left: 0;
background-color: $black;
2017-11-17 16:42:56 +01:00
display: flex;
align-items: center;
justify-content: center;
background-image: url(../img/heatmap_bg_test.svg);
2017-11-29 16:43:06 -05:00
background-size: cover;
2017-11-17 16:42:56 +01:00
}
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: $gray-7 !important;
2017-11-17 16:42:56 +01:00
}
.login-form-group {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
}
2016-02-15 15:27:41 +01:00
.login-form {
margin-bottom: 1rem;
2017-11-17 16:42:56 +01:00
width: 100%;
}
.login-form-input {
border: 1px solid $login-border;
border-radius: 4px;
opacity: .6;
&:focus {
border: 1px solid $login-border;
}
2017-11-17 16:42:56 +01:00
}
.login-button-group {
display: flex;
flex-direction: column;
2017-11-17 16:42:56 +01:00
align-items: center;
justify-content:space-between;
width: 100%;
margin-top: .5rem
}
.login-button-forgot-password {
padding-top: 1rem;
2017-11-17 16:42:56 +01:00
}
.login-text {
font-size: $font-size-sm;
2016-02-15 15:27:41 +01:00
}
.login-content {
max-width: 700px;
2017-11-17 16:42:56 +01:00
display: flex;
align-items: stretch;
flex-direction: column;
2016-02-15 15:27:41 +01:00
}
.login-branding {
width: 100%;
2017-11-17 16:42:56 +01:00
display: flex;
flex: 1;
2017-11-17 16:42:56 +01:00
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 0;
.logo-icon {
width: 70px;
margin-bottom: 15px;
2016-02-15 15:27:41 +01:00
}
2016-02-15 15:27:41 +01:00
.icon-gf-grafana_wordmark {
2016-02-16 09:42:46 +01:00
color: $link-color;
2016-02-15 15:27:41 +01:00
position: relative;
font-size: 2rem;
text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
2016-02-15 15:27:41 +01:00
}
}
.login-inner-box {
text-align: center;
2017-11-17 16:42:56 +01:00
padding: 2rem 4rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
2016-02-15 15:27:41 +01:00
}
.login-tab-header {
2016-02-16 09:42:46 +01:00
background: $tight-form-bg;
2016-02-15 15:27:41 +01:00
text-align: center;
margin-bottom: 3rem;
2016-02-15 15:27:41 +01:00
}
.btn-signup {
color: $white;
border: 1px solid $login-border;
background-color: $btn-semi-transparent;
}
2016-02-15 15:27:41 +01:00
.btn-login-tab {
background: transparent;
border: none;
font-size: 15px;
padding: 10px 10px;
&.active {
2016-02-16 09:42:46 +01:00
background: darken($tight-form-bg, 5%);
2016-02-15 15:27:41 +01:00
color: $white;
}
2016-03-04 12:13:40 +01:00
&:focus {
outline: 0;
}
2016-02-15 15:27:41 +01:00
font-weight: bold;
display: inline-block;
width: 170px;
2016-02-16 09:42:46 +01:00
color: $text-color;
2016-02-15 15:27:41 +01:00
}
.password-strength {
display: block;
width: 15%;
overflow: visible;
white-space: nowrap;
padding-top: 3px;
2016-02-16 09:42:46 +01:00
color: darken($text-color, 20%);
2016-02-15 15:27:41 +01:00
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;
2016-02-19 14:21:57 +01:00
border: 1px solid lighten($btn-inverse-bg, 10%);
2016-02-15 15:27:41 +01:00
}
}
.login-oauth {
width: 100%;
2016-02-15 15:27:41 +01:00
.btn {
margin: 10px 0 0;
2016-02-15 15:27:41 +01:00
}
.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;
}
}
2016-02-15 15:27:41 +01:00
}
.password-recovery {
2016-02-16 09:42:46 +01:00
background: $tight-form-bg;
2016-02-15 15:27:41 +01:00
padding: 10px;
a {
2016-02-19 12:26:39 +01:00
color: $gray-2;
2016-02-15 15:27:41 +01:00
}
}
.login-divider {
float: left;
2017-11-17 16:42:56 +01:00
width: 100%;
2016-02-15 15:27:41 +01:00
margin: 5px 25% 25px 25%;
2017-11-17 16:42:56 +01:00
display: flex;
justify-content: space-between;
2016-02-15 15:27:41 +01:00
.login-divider-line {
2017-11-17 16:42:56 +01:00
width: 110px;
2016-02-15 15:27:41 +01:00
height: 10px;
border-bottom: 1px solid $gray-7;
2016-02-15 15:27:41 +01:00
.login-divider-text {
2016-04-12 15:18:47 -04:00
background-color: $panel-bg;
2016-02-19 12:26:39 +01:00
color: $gray-2;
2016-02-15 15:27:41 +01:00
padding: 0 10px;
}
}
}
2017-11-17 16:42:56 +01:00
.login-signup-box {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
margin-top: 2rem
}
.login-signup-title {
justify-self: flex-start;
flex: 1;
text-align: left;
}
2017-11-17 16:42:56 +01:00
.login-btn {
width: 100%; margin: 0 0 1rem;
}
2016-02-15 15:27:41 +01:00
.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;
2016-02-16 09:42:46 +01:00
border: 1px solid $tight-form-func-bg;
background-color: $panel-bg;
max-width: 800px;
2016-02-15 15:27:41 +01:00
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-up(sm) {
.login-content {
flex-direction: row;
2017-11-17 16:42:56 +01:00
}
.login-branding {
width: 35%;
padding: 4rem 2rem;
border-right: 1px solid $login-border;
justify-content: flex-start;
2017-11-17 16:42:56 +01:00
}
2017-11-17 16:42:56 +01:00
.login-inner-box {
width: 65%;
padding: 1rem 2rem;
2017-11-17 16:42:56 +01:00
}
.login-branding {
.logo-icon {
width: 80px;
2017-11-17 16:42:56 +01:00
}
}
}
@include media-breakpoint-up(md) {
.login-branding {
width: 45%;
padding: 2rem 4rem;
.logo-icon {
width: 100px;
}
2017-11-17 16:42:56 +01:00
.icon-gf-grafana_wordmark {
font-size: 3.2rem;
}
}
.login-inner-box {
width: 55%;
padding: 1rem 4rem;
}
.login-button-group {
flex-direction: row;
}
.login-button-forgot-password {
padding-top: 0;
padding-left: 10px;
}
}
@include media-breakpoint-up(lg) {
.login {
min-height: 100vh;
}
.login-form-input {
min-width: 300px;
}
}