summaryrefslogtreecommitdiffstats
path: root/less/patternfly/login.less
blob: 39c262189e15012b99b4ea6dfddddd0381722db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
//
// Login
// --------------------------------------------------

.login-pf {
  height: 100%;
  #brand {
    position: relative;
    top: -70px;
    img {
      display: block;
      height: 18px;
      margin: 0 auto;
      max-width: 100%;
      @media (min-width: @screen-sm-min) {
        margin: 0;
        text-align: left;
      }
    }
  }
  #badge {
    display: block;
    margin: 20px auto 70px;
    position: relative;
    text-align: center;
    @media (min-width: @screen-sm-min) { 
      float: right;
      margin-right: 64px;
      margin-top: 50px;
    }
  }
  body {
    background: @login-bg-color url("@{img-path}/@{img-bg-login}") repeat-x 50% 0;
    background-size: auto;
    color: #fff;
    @media (min-width: @screen-sm-min) {
      background-size: 100% auto;
    }
  }
  .container {
    background-color: @login-container-bg-color;
    background-color: @login-container-bg-color-rgba;
    clear: right;
    padding-bottom: 40px;
    padding-top: 20px;
    width: auto;
    @media (min-width: @screen-sm-min) { 
      bottom: 13%;
      padding-left: 80px;
      position: absolute;
      width: 100%;
    }
    .details {
      p:first-child {
        border-top: 1px solid #474747;
        padding-top: 25px;
        margin-top: 25px;
      }
      @media (min-width: @screen-sm-min) {
        p:first-child {
          border-top: 0;
          padding-top: 0;
          margin-top: 0;
        }
        border-left: 1px solid #474747;
        padding-left: 40px;
      }
      p {
        margin-bottom: 2px;
      }
    }
    .form-horizontal {
      .control-label {
        font-size: @font-size-base + 1;
        font-weight: 400;
        text-align: left;
      }
      .form-group:last-child {
        &, .help-block:last-child {
          margin-bottom: 0;
        }
      }
    }
    .help-block {
      color: #fff;
    }
    .login {
      @media (min-width: @screen-sm-min) {
        padding-right: 40px;
      }
    }
    .submit {
      text-align: right;
    }
  }
}

.ie8.login-pf {
  #badge {
    background: url('@{img-path}/@{img-badge-ie8}') no-repeat;
    height: @img-badge-ie8-height;
    width: @img-badge-ie8-width;
    img {
      width: 0;
    }
  }
  #brand {
    background: url('@{img-path-alt}/@{img-brand-lg-ie8}') no-repeat center;
    background-size: cover auto;
    @media (min-width: @screen-sm-min) {
      background-position: 0 0;
    }
    img {
      width: 0;
    }
  }
}