Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·97 lines (84 loc) · 2.04 KB
/
Copy pathstyle.css
File metadata and controls
executable file
·97 lines (84 loc) · 2.04 KB
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
body{
margin: 0;
padding: 0;
/* these are 0 so to make use of full browser */
background: url(bgimage.jpg);
background-size: cover;
background-position: center;
height: 100vh;
width:100vh;
/* vh is very important so bg image varies its measures according to size of browser */
background-repeat: no-repeat;
/* bg image dont repeat */
background-attachment: fixed;
/* so that the background image remain fixed and dont change with the scrolling */
}
.loginbox{
width: 320px;
height: 420px;
background: #000;
/* after describing these three features we are able to see a box */
top: 50%;
left: 50%;
/* they are for positioning of box */
position: absolute;
/* always use this style attribute so that above use top and left get executed */
transform: translate(-50%, -50%);
box-sizing: border-box;
padding-left: 2ch;
padding-right:2ch;
font-weight: bold;
font-style: sans-serif;
}
.avtar{
width: 100px;
height: 100px;
left: 111px;
top: -50px;
position: absolute;
border-radius: 50px;
/* this is for curving border edges */
}
h1{
color: aliceblue;
margin: 0;
padding-top:70px;
/* this is for positioning */
text-align: center;
font-size: 22px;
}
p{
color: aliceblue;
font-family: Arial, Helvetica, sans-serif;
}
.loginbox input{
width: 100%;
}
.loginbox input[type="text"], input[type="password"]{
/* although class is only loginbox but use as this to style input boxes */
border:0px;
border-bottom: 1px solid #fff;
background: transparent;
/* very awesome styling option */
outline: none;
height: 30px;
color: azure;
font-size: 15px;
}
.loginbox input[type="submit"]{
margin: 3ch;
margin-left: 1.5ch;
width: 90%;
background-color: red;
border: 0px;
height: 4ch;
border-radius: 25px;
font-weight: bold;
font-size: 15px;
}
.loginbox a{
text-decoration: none;
font-size: 12px;
line-height: 20px;
color: darkgrey;
}