summaryrefslogtreecommitdiff
path: root/res/client/css/partials/common-form.scss
blob: 65789704d1d06d5850a2f9414bf69f10277767b0 (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
/*
    This file is part of rhizi, a collaborative knowledge graph editor.
    Copyright (C) 2014-2015  Dor Garbash, Amir Sagie and Alon Levy

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

//
// Styling for full-page type forms: signup, login, pw-reset, etc.
//

.cmn-form {
    width: 420px;
    background-color: white;
    padding-top: $two-baselines;
    padding-bottom: $two-baselines;
    padding-left: $two-baselines;
    padding-right: $two-baselines;
    margin-left: auto;
    margin-right: auto;
    margin-top: $three-baselines;
}

.cmn-form-input {
    border: 1px solid $mid-light-grey;
    background-color: $light-grey;
    background-repeat: no-repeat;
    background-position: 18px 14px;
    padding-top: $one-baseline;
    padding-bottom: $one-baseline;
    padding-left: 15%; /* provide room for background image */
    width: 85%;

    &:focus {
      outline: none;
      background-color: $light-grey;
      border: 1px solid $mid-light-grey;
      @include rz-inset-box-shadow(0px, 0px, 6px, rgba(0,0,0,0.3) )
    }

    &[type="email"] {
      background-image: url(../img/mail-icon.png);
    }

    &[type="password"] {
      background-image: url(../img/password-icon.png);
    }
}

.cmn-form-logo {
    background: url("/static/img/logo-red.png");
    background-repeat: no-repeat;
    margin-bottom: $two-baselines;
    margin-left: auto;
    margin-right: auto;
    margin-top: $two-baselines;
    width: 54px;
    height: 30px;
}

.cmn-form-row {
    width: 100%;
}

.cmn-form-title {
    color: $magenta;
    display: block;
    font-size: $h1-size;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cmn-form-section {
    margin-top: $one-baseline;
    margin-bottom: $one-baseline;
}

.cmn-form__ajax-response {
    text-align: center;
}

.cmn-form__submit-btn {
    background-color: $magenta;
    border-radius: 3px;
    cursor: pointer;
    color: white;
    font-size: $h3-size;
    margin-top: $two-baselines;
    padding: $one-baseline;
    text-align: center;
}