Skip to content

Commit 2a8cc0e

Browse files
authored
Merge pull request #98 from fac-12/css-for-username
Css for username
2 parents b059286 + a26fe78 commit 2a8cc0e

File tree

4 files changed

+51
-20
lines changed

4 files changed

+51
-20
lines changed

public/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
</head>
1313

1414
<body>
15-
<p id="display_username" class=display_username></p>
15+
1616
<section class="dataContainer" id="data_container">
1717

1818
</section>
1919
<section class="form_container">
20+
<p id="display_username" class=display_username></p>
2021
<h1 class="header">Kitty Splitter</h1>
22+
2123
<h3 class="tagline">Record the item you've purchased below</h3>
2224
<form class="inputForm" id="form">
2325
<select id="category" name="category" required>
@@ -39,4 +41,4 @@ <h3 class="tagline">Record the item you've purchased below</h3>
3941
<script src="/public/index.js"></script>
4042
</body>
4143

42-
</html>
44+
</html>

public/login.css

+9-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body {
1818
/* width: 80%; */
1919
min-height: 50vh;
2020
overflow: auto;
21-
background: rgba(255, 255, 255, 0.85);
21+
background: rgba(255, 255, 255, 0.6);
2222
padding: 0 10%;
2323

2424
}
@@ -55,16 +55,20 @@ input[type="submit"] {
5555
padding: 3rem;
5656
font-size: 1rem;
5757
text-align: left;
58+
background: rgba(255, 255, 255, 0.85);
5859
}
5960
form {
6061
max-width: 80%;
6162
}
6263

6364
input {
64-
margin: 0;
65-
padding: 0;
66-
/* font size below being over ridden by mobile css!*/
67-
/*font-size: 0.2;*/
65+
margin: 1%;
6866
background-color: white;
67+
}
68+
69+
input[type="submit"] {
70+
font-size: 1.2rem;
71+
72+
}
6973
}
7074
}

public/login.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ signupPassword2.addEventListener('input', function(event) {
2222
});
2323

2424

25-
signupPassword1.setCustomValidity("Password must be 8 or more characters long and contain at least: 1 uppcase letter, 1 lowercase letter, and 1 number");
26-
signupPassword2.setCustomValidity("Password must be 8 or more characters long and contain at least: 1 uppcase letter, 1 lowercase letter, and 1 number");
27-
loginPassW.setCustomValidity("Password must be 8 or more characters long and contain at least: 1 uppcase letter, 1 lowercase letter, and 1 number");
28-
signupName.setCustomValidity("Name must only contain upper and lowercase letters");
29-
loginName.setCustomValidity("Name must only contain upper and lowercase letters");
25+
// signupPassword1.setCustomValidity("Password must be 8 or more characters long and contain at least: 1 uppcase letter, 1 lowercase letter, and 1 number");
26+
// signupPassword2.setCustomValidity("Password must be 8 or more characters long and contain at least: 1 uppcase letter, 1 lowercase letter, and 1 number");
27+
// loginPassW.setCustomValidity("Password must be 8 or more characters long and contain at least: 1 uppcase letter, 1 lowercase letter, and 1 number");
28+
// signupName.setCustomValidity("Name must only contain upper and lowercase letters");
29+
// loginName.setCustomValidity("Name must only contain upper and lowercase letters");
3030

3131
// signupName.oninvalid = function(event) {
3232
// event.target.setCustomValidity('Name must only contain upper and lowercase letters');

public/style.css

+33-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ body {
2929
}
3030

3131
.header {
32-
margin-top: 1em;
32+
margin-top: 0.5em;
3333
margin-bottom: 1em;
3434
/*padding-left: 10%;*/
3535
text-align: center;
@@ -84,6 +84,16 @@ select,
8484
opacity: 0.7;
8585
}
8686

87+
.display_username {
88+
89+
font-size: 1.5rem;
90+
color: black;
91+
margin-top: 2%;
92+
text-align: right;
93+
margin-right: 5%;
94+
95+
}
96+
8797
.item_container {
8898
font-size: 1rem;
8999
overflow: scroll;
@@ -95,6 +105,7 @@ select,
95105
font-size: 1.2rem;
96106
font-weight: bold;
97107
width: 100%;
108+
padding-left: 4%;
98109
}
99110

100111

@@ -107,23 +118,37 @@ select,
107118
flex-direction: row;
108119
/*change height to 100vh*/
109120
}
121+
122+
110123
.form_container {
111124
width: 30%;
112125
}
113126
.header {
114127
padding-left: 10%;
115-
margin-top: 2em;
128+
margin-top: 1em;
116129
margin-bottom: 2em;
117130
text-align: left;
118131
}
119132
.dataContainer {
120133
padding: 5%;
121134
}
122135
.display_username {
123-
background: rgba(255, 255, 255, 0.7);
124-
margin: 0;
125-
height: 50px;
126-
padding: 2%;
127-
z-index: 2;
136+
137+
font-size: 1.5rem;
138+
color: black;
139+
margin-top: 2%;
140+
text-align: right;
141+
margin-right: 3%;
142+
143+
}
144+
145+
.item_container p {
146+
font-size: 1.2rem;
147+
font-weight: bold;
148+
width: 100%;
149+
padding-left: 0;
128150
}
129-
}
151+
152+
153+
154+
}

0 commit comments

Comments
 (0)