Skip to content

Commit 3a6383b

Browse files
committed
added media queries
1 parent 1a7520f commit 3a6383b

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

src/app/app.component.css

+23
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,26 @@ hr {
4141
width: 75vw;
4242
border-color: rgba(243,243,243,.4);
4343
}
44+
45+
/* +++++++++++++++++ media queries +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
46+
@media screen and (max-width: 380px) {
47+
div.banner{
48+
height: 40vh;
49+
}
50+
nav{
51+
display: flex;
52+
flex-wrap: nowrap;
53+
flex-direction: column;
54+
justify-content: center;
55+
height: 10vh;
56+
}
57+
a {
58+
width: 68vw;
59+
position: relative;
60+
margin: 5px auto;
61+
62+
}
63+
.banner {
64+
margin-bottom: 15px;
65+
}
66+
}

src/app/completo/completo.component.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
ul{
2+
padding: 0px;
3+
}
14
li.bookList {
25
text-align: center;
36
width: 50vw;
@@ -35,7 +38,7 @@ li.bookList {
3538
/*Book list of books recently visited :: nested ul inside of each recent user*/
3639
li.user-book-list {
3740
text-align: center;
38-
margin:0.1em 2em 0.1em 0em;
41+
margin:0.1em 2em 0.1em 2em;
3942
padding:0.2em ;
4043
list-style:none;
4144
font-weight: 550;
@@ -63,3 +66,10 @@ h3 {
6366
margin-top: 2px;
6467
margin-bottom: 2px;
6568
}
69+
/* +++++++++++++++++ media queries +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
70+
@media screen and (max-width: 400px) {
71+
.conatiner-user-info{
72+
top: 30%;
73+
}
74+
}
75+

src/app/search/search.component.css

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
input {
23
width: 200px;
34
height: 30px;
@@ -54,3 +55,9 @@ li {
5455
border-right: 2px solid rgba(183,183,183,.7);
5556
cursor: pointer;
5657
}
58+
/* +++++++++++++++++ media queries +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
59+
@media screen and (max-width: 730px) {
60+
ul{
61+
padding: 0px;
62+
}
63+
}

0 commit comments

Comments
 (0)