Skip to content

Commit

Permalink
fix css container query
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Oct 20, 2023
1 parent 44c4337 commit 7e7bb97
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/layouts/_media-queries.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@


.o-container-query-enabled {
container-type: inline-size;
}
//@container (min-width: 481px) and (max-width: 767px) {
/* Media Query for Mobile Devices */
@media (max-width: 480px) {
.o-container {
--o-radius: 50px;
}
}
.resize {
container-type: inline-size;
}
@container (min-width: 481px) and (max-width: 767px) {
/* Media Query for low resolution Tablets, Ipads */
@media (min-width: 481px) and (max-width: 767px) {
.o-container {
--o-radius: 60px;
}
}
}
//}

/* Media Query for Tablets Ipads portrait mode */
@media (min-width: 768px) and (max-width: 1024px){
Expand Down Expand Up @@ -58,7 +59,11 @@
}

/* Media Query for Tablets Ipads portrait mode */

@container (min-width: 768px) and (max-width: 1024px){
.o-container {
--o-radius: 70px;
}
}

/* Media Query for Laptops and Desktops */
@container (min-width: 1025px) and (max-width: 1280px){
Expand Down

0 comments on commit 7e7bb97

Please sign in to comment.