Skip to content

Commit c700cc8

Browse files
media queries are combined
1 parent 9034a4d commit c700cc8

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

styles.css

+17-23
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,34 @@ cursor:default;
7373

7474
}
7575

76-
/* Media Query:For Tablet Size */
77-
@media screen and (max-width:1000px)and(min-width:662px){
78-
.flex-container button:active{
76+
/* Combined media query for both mobile and tablet size */
77+
@media screen and (max-width:1000px)and(min-width:662px),screen and (max-width:662px){
78+
79+
.flex-container button:active{
7980
transform:scale(0.98);
8081
}
82+
.flex-container button{
83+
-webkit-tap-highlight-color:transparent;
84+
}
85+
.flex-container button:disabled{
86+
display:none;
87+
}
88+
}
8189

82-
.header-text h1{
90+
/* Media Query:For Tablet Size */
91+
@media screen and (max-width:1000px)and(min-width:662px){
92+
.header-text h1{
8393
font-size:4rem;
8494
}
8595
.header-text p{
8696
font-size:2rem;
8797
}
88-
.flex-container button{
89-
-webkit-tap-highlight-color:transparent;
90-
}
91-
.flex-container button:disabled{
92-
display:none;
93-
}
98+
9499
}
100+
95101
/* Media Query:For mobile size */
96102
@media screen and (max-width:662px){
97-
.flex-container{
98-
height:50vh;
99-
}
100-
.header-text h1{
103+
.header-text h1{
101104
font-size:3.8rem;
102105
line-height:0.8;
103106
}
@@ -108,13 +111,4 @@ cursor:default;
108111
background-position: center;
109112
background-size:cover;
110113
}
111-
.flex-container button:active{
112-
transform:scale(0.98);
113-
}
114-
.flex-container button:disabled{
115-
display:none;
116-
}
117-
.flex-container button{
118-
-webkit-tap-highlight-color:transparent;
119-
}
120114
}

0 commit comments

Comments
 (0)