-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
132 lines (114 loc) · 5.04 KB
/
Copy pathstyle.css
File metadata and controls
132 lines (114 loc) · 5.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*To create an background that fills the screen entirely. Even with the height set 100% in the class, the background will not extend to the very edge without these properties set*/
html, body{
height: 100%;
margin: 0;
padding: 0;
}
/*This ensures every element on the page starts with zero margin/padding and removes the strip on the top of page that some browsers put automatically*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*Background*/
.box{
background-color: rgba(230, 199, 153,0.3);
width: 100%;
height: 100%;
margin-top: 0;
padding-top: 30px;
}
.box h1{
text-align: center;
font-weight: 800;
}
/*Interface container in the foreground*/
.main {
background-color: rgb(234, 203, 156,0.2);
width: 400px; /*Fixed width to prevent shrinking*/
min-height: 70%; /*Minimum Starting size*/
height: auto; /*Allows height to adjust automatically according to width*/
display: block; /*Div elements are already block-level elements so not strictly necessary*/
margin: 30px auto; /*Top bottom margin of 30px and automatically center horizontally (left/right)*/ /*Centralised to the screen*/
padding-left: 15px;
padding-right: 15px;
padding-top: 15px;
padding-bottom: 35px;
border: 1px solid rgb(197, 172, 137);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
border-radius: 8px; /*Soft rounded corners*/
}
.main h3{
margin-top: 20px;
font-weight: 400;
}
/*Forgot password properties*/
#forgot{
color: #aaa;
text-align:right;
margin: 5px;
}
/*Enter button*/
#button{
display:block;
width: 100%;
text-align: center;
text-decoration: none;
background-color: rgba(173, 151, 119, 0.2);
border: 1px solid rgb(197, 172, 137);
color: rgba(23, 22, 22, 0.7);
padding-top: 5px;
padding-bottom: 5px;
margin-top: 10%;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
border: 1px solid rgb(197, 172, 137);
border-radius: 3px;
font-weight: 700;
font-size: larger;
}
/*Error message properties*/
#message{
color: rgb(243, 72, 72);
margin-top: 10px;
}
/*Text box properties for the username and password*/
#userNameEntered,#passwordEntered {
width: 100%;
font-size:large;
padding-top: 5px;
padding-bottom: 5px;
margin-top: 5px;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
border: 1px solid rgb(197, 172, 137);
border-radius: 3px;
}
/*Create horizontal dividing line using built in hr function*/
hr{
border: none; /*Removes default 3D border */
border-top: 2px solid #aaa; /* 👈 Solid line */
margin: 10px 0;
}
h4{
font-weight:500;
text-align: center;
color: #aaa;
padding-top: 10px;
}
/*Customise the space that the social media icons will be residing in on the screen*/
.social{
display: flex; /*Flexbox makes everything inside the box flexible in position, here to make horizontal layout easier*/
justify-content: center; /*Center icons horizontally*/
align-items: center; /*Center icons vertically*/
height: 40px;
padding-top: 40px;
}
/*Customise the appearance of the image icons used*/
.social img{
height: 40px; /*Limit the size of the image to size of the parent container social*/
width: auto; /*Lets an element’s **width adjust naturally** to maintain its aspect ratio when height is set, preventing distortion*/
object-fit: contain; /*Scales an image or video to fit entirely within its container **without cropping** or distortion, preserving its aspect ratio and showing empty space if the shapes don’t match.*/
margin: 0 10px; /*Horizontal spacing between icons */
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
border-radius: 100px; /*Rounded corners with a larger round property circulates the round border, 100px sufficent to create round border*/
border: 1px solid #ccc; /*Light border to make icons pop out a little*/
}