Committed by
Gerrit Code Review
ONOS-1933 - CORD-GUI -- CSS for demo login page created. WIP.
Change-Id: Ia80a742ea1d002b4524fa85f8194231dd108de90
Showing
7 changed files
with
124 additions
and
23 deletions
... | @@ -16,20 +16,25 @@ | ... | @@ -16,20 +16,25 @@ |
16 | 16 | ||
17 | div.foot { | 17 | div.foot { |
18 | width: 960px; | 18 | width: 960px; |
19 | - height: 20px; | 19 | + height: 30px; |
20 | - background-color: gray; | 20 | + background-color: rgb(122, 188, 229); |
21 | position: absolute; | 21 | position: absolute; |
22 | left: 0; | 22 | left: 0; |
23 | right: 0; | 23 | right: 0; |
24 | bottom: 0; | 24 | bottom: 0; |
25 | margin-left: auto; | 25 | margin-left: auto; |
26 | margin-right: auto; | 26 | margin-right: auto; |
27 | + border-top-left-radius: 3px; | ||
28 | + border-top-right-radius: 3px; | ||
27 | } | 29 | } |
28 | 30 | ||
29 | .foot div { | 31 | .foot div { |
30 | position: absolute; | 32 | position: absolute; |
31 | top: 50%; | 33 | top: 50%; |
32 | transform: translate(0, -50%); | 34 | transform: translate(0, -50%); |
35 | + font-style: italic; | ||
36 | + font-size: 12px; | ||
37 | + color: rgba(255, 255, 255, 0.7); | ||
33 | } | 38 | } |
34 | 39 | ||
35 | .foot div.left { | 40 | .foot div.left { | ... | ... |
... | @@ -16,10 +16,10 @@ | ... | @@ -16,10 +16,10 @@ |
16 | 16 | ||
17 | <div class="foot"> | 17 | <div class="foot"> |
18 | <div class="left"> | 18 | <div class="left"> |
19 | - | 19 | + Sample copyright notice here |
20 | </div> | 20 | </div> |
21 | 21 | ||
22 | <div class="right"> | 22 | <div class="right"> |
23 | - | 23 | + Some other text here |
24 | </div> | 24 | </div> |
25 | </div> | 25 | </div> | ... | ... |
... | @@ -27,6 +27,10 @@ p, a, li, th, td { | ... | @@ -27,6 +27,10 @@ p, a, li, th, td { |
27 | font-family: "Lucida Grande", "Droid Sans", Arial, Helvetica, sans-serif; | 27 | font-family: "Lucida Grande", "Droid Sans", Arial, Helvetica, sans-serif; |
28 | } | 28 | } |
29 | 29 | ||
30 | +body { | ||
31 | + background-color: #efefef; | ||
32 | +} | ||
33 | + | ||
30 | div.container { | 34 | div.container { |
31 | width: 75%; | 35 | width: 75%; |
32 | margin: 0 auto; | 36 | margin: 0 auto; | ... | ... |
... | @@ -14,15 +14,94 @@ | ... | @@ -14,15 +14,94 @@ |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | -#login-header h2 { | 17 | +div#login-wrapper { |
18 | + text-align: center; | ||
19 | +} | ||
20 | + | ||
21 | +#login h2 { | ||
18 | margin: 1%; | 22 | margin: 1%; |
23 | + color: rgb(115, 115, 115); | ||
24 | + font-size: 100%; | ||
25 | + font-style: italic; | ||
26 | + text-align: left; | ||
27 | + position: absolute; | ||
28 | + top: -140px; | ||
29 | +} | ||
30 | + | ||
31 | +div#login-logo { | ||
32 | + margin-top: 7%; | ||
33 | + width: 217px; | ||
34 | +} | ||
35 | +div#login-logo, div#login-form { | ||
36 | + display: inline-block; | ||
37 | +} | ||
38 | + | ||
39 | +#login-logo use.glyph.bird { | ||
40 | + fill: #800; | ||
41 | +} | ||
42 | +#login-logo circle { | ||
43 | + fill: none; | ||
19 | } | 44 | } |
20 | 45 | ||
21 | div#login-form { | 46 | div#login-form { |
22 | - width: 135px; | 47 | + margin-left: 2.5%; |
23 | - margin: 0 auto; | 48 | + position: relative; |
49 | + width: 240px; | ||
24 | } | 50 | } |
25 | 51 | ||
26 | #login-form form { | 52 | #login-form form { |
27 | - line-height: 150%; | 53 | + line-height: 250%; |
54 | + | ||
55 | +} | ||
56 | +#login-form input { | ||
57 | + display: block; | ||
58 | + height: 40px; | ||
59 | + width: 230px; | ||
60 | + font-size: 19px; | ||
61 | + padding: 0 5px; | ||
62 | + margin-bottom: 3.5%; | ||
63 | + border-radius: 3px; | ||
64 | + position: absolute; | ||
65 | +} | ||
66 | +#login-form input[type="text"] { | ||
67 | + top: -110px; | ||
68 | +} | ||
69 | +#login-form input[type="password"] { | ||
70 | + top: -60px; | ||
71 | +} | ||
72 | + | ||
73 | +#login-form input[type="text"], | ||
74 | +#login-form input[type="password"] { | ||
75 | + box-shadow: none; | ||
76 | + border: none; | ||
77 | + transition: border 0.1s; | ||
78 | +} | ||
79 | +#login-form input[type="text"]:focus, | ||
80 | +#login-form input[type="password"]:focus, | ||
81 | +#login-form input[type="button"]:focus { | ||
82 | + outline: none; | ||
83 | + border: solid 2px rgba(122, 188, 229, 0.5); | ||
84 | +} | ||
85 | + | ||
86 | +#login-form a { | ||
87 | + text-decoration: none; | ||
88 | +} | ||
89 | + | ||
90 | +#login-form input[type="button"] { | ||
91 | + top: -5px; | ||
92 | + width: 240px; | ||
93 | + height: 30px; | ||
94 | + box-shadow: none; | ||
95 | + border: none; | ||
96 | + outline: none; | ||
97 | + cursor: pointer; | ||
98 | + letter-spacing: 0.02em; | ||
99 | + font-size: 14px; | ||
100 | + background-color: lightgray; | ||
101 | + transition: background-color 0.4s; | ||
102 | +} | ||
103 | + | ||
104 | +#login-form input[type="button"]:hover { | ||
105 | + color: white; | ||
106 | + background-color: #CE5650; | ||
28 | } | 107 | } | ... | ... |
1 | <!-- Login page partial html --> | 1 | <!-- Login page partial html --> |
2 | -<div id="login-header"> | 2 | +<div id="login" class="container"> |
3 | - <h2>Subscriber Portal</h2> | 3 | + <div id="login-wrapper"> |
4 | -</div> | 4 | + <div id="login-logo"> |
5 | + <icon size="125" id="bird"></icon> | ||
6 | + </div> | ||
5 | 7 | ||
6 | -<div class="container"> | 8 | + <div id="login-form"> |
7 | - <div id="login-image"></div> | 9 | + <h2>Subscriber Portal</h2> |
8 | - | 10 | + <form> |
9 | - <div id="login-form"> | 11 | + <input type="text" placeholder="email"> |
10 | - <form> | 12 | + <input type="password" placeholder="password"> |
11 | - <input type="text" placeholder="email"> | 13 | + <a href="#/home"><input type="button" value="Log In"></a> |
12 | - <br> | 14 | + </form> |
13 | - <input type="password" placeholder="password"> | 15 | + </div> |
14 | - <br> | ||
15 | - <a href="#/home"><input type="submit" value="Login"></a> | ||
16 | - </form> | ||
17 | </div> | 16 | </div> |
18 | </div> | 17 | </div> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -61,6 +61,20 @@ | ... | @@ -61,6 +61,20 @@ |
61 | 61 | ||
62 | <svg id="icon-defs"> | 62 | <svg id="icon-defs"> |
63 | <defs> | 63 | <defs> |
64 | + <symbol id="bird" viewBox="352 224 113 112"> | ||
65 | + <path d="M427.7,300.4 c-6.9,0.6-13.1,5-19.2,7.1c-18.1,6.2-33.9, | ||
66 | + 9.1-56.5,4.7c24.6,17.2,36.6,13,63.7,0.1c-0.5,0.6-0.7,1.3-1.3, | ||
67 | + 1.9c1.4-0.4,2.4-1.7,3.4-2.2c-0.4,0.7-0.9,1.5-1.4,1.9c2.2-0.6, | ||
68 | + 3.7-2.3,5.9-3.9c-2.4,2.1-4.2,5-6,8c-1.5,2.5-3.1,4.8-5.1,6.9c-1, | ||
69 | + 1-1.9,1.9-2.9,2.9c-1.4,1.3-2.9,2.5-5.1,2.9c1.7,0.1,3.6-0.3,6.5 | ||
70 | + -1.9c-1.6,2.4-7.1,6.2-9.9,7.2c10.5-2.6,19.2-15.9,25.7-18c18.3 | ||
71 | + -5.9,13.8-3.4,27-14.2c1.6-1.3,3-1,5.1-0.8c1.1,0.1,2.1,0.3,3.2, | ||
72 | + 0.5c0.8,0.2,1.4,0.4,2.2,0.8l1.8,0.9c-1.9-4.5-2.3-4.1-5.9-6c-2.3 | ||
73 | + -1.3-3.3-3.8-6.2-4.9c-7.1-2.6-11.9,11.7-11.7-5c0.1-8,4.2-14.4, | ||
74 | + 6.4-22c1.1-3.8,2.3-7.6,2.4-11.5c0.1-2.3,0-4.7-0.4-7c-2-11.2-8.4 | ||
75 | + -21.5-19.7-24.8c-1-0.3-1.1-0.3-0.9,0c9.6,17.1,7.2,38.3,3.1,54.2 | ||
76 | + C429.9,285.5,426.7,293.2,427.7,300.4z"></path> | ||
77 | + </symbol> | ||
64 | <symbol id="checkMark" viewBox="0 0 10 10"> | 78 | <symbol id="checkMark" viewBox="0 0 10 10"> |
65 | <path d="M2.6,4.5c0,0,0.7-0.4,1.2,0.3l1.0,1.8c0,0,2.7-5.4,2.8-5.7c | 79 | <path d="M2.6,4.5c0,0,0.7-0.4,1.2,0.3l1.0,1.8c0,0,2.7-5.4,2.8-5.7c |
66 | 0,0,0.5-0.9,1.4-0.1c0,0,0.5,0.5,0,1.3S6.8,7.3,5.6,9.2c0,0-0.4,0.5 | 80 | 0,0,0.5-0.9,1.4-0.1c0,0,0.5,0.5,0,1.3S6.8,7.3,5.6,9.2c0,0-0.4,0.5 | ... | ... |
-
Please register or login to post a comment