Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions src/014-responsive-design/example/css/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@

.content-down {
display: none;
padding-right: 30px;
}

.content-down p {
Expand All @@ -106,20 +105,52 @@
}




/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
.footer {
background-color: rgb(108,24,196);
}
}

@media (min-width: 769px) {
.dropdown-container {
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}

.content-down {
display: initial;
}

.dropdown-footer {
width: 50%;
padding: 0 20px 0 0;
}

.dropdown-footer .heading::after {
content: none;
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media (min-width: 1024px) {
.footer {
background-color: rgb(255,99,37);
}
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
.footer {
background-color: #e91e63;
}

.dropdown-footer {
width: 25%;
}
}
40 changes: 33 additions & 7 deletions src/014-responsive-design/example/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ nav.navbar-no-scroll {
text-transform: uppercase;
}

#menu {
margin-left: auto;
padding-right: 20px;
}

.navbar #menu a::after {
content: '';
display: block;
Expand Down Expand Up @@ -117,28 +122,49 @@ nav.navbar-no-scroll {
background-color: #e0e0e0;
}

.navbar #responsive-menu-toggle,
.navbar #menu {
display: none;
}

.navbar #responsive-menu-toggle:checked + #responsive-menu {
width: 240px;
padding-top: 60px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
@media (max-width: 767px) {
.navbar #responsive-menu-toggle, .navbar #menu {
display: none;
}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
nav.navbar-scroll {
background-color: rgb(108,24,196);
}

.responsive-icon, #responsive-menu-toggle {
display: none;
}

.navbar ul, .logo {
margin: 25px;
display: flex;
align-items: center;
}

.navbar ul li {
padding-left: 45px;
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media (min-width: 1024px) {
nav.navbar-scroll {
background-color: rgb(255,99,37);
}
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
nav.navbar-scroll {
background-color: #e91e63;
}
}
11 changes: 10 additions & 1 deletion src/014-responsive-design/example/css/path.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,21 @@

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
.navigation a i {
color: rgb(108,24,196);
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media (min-width: 1024px) {
.navigation a i {
color: rgb(255,99,37);
}
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
.navigation a i {
color: #e91e63;
}
}
57 changes: 55 additions & 2 deletions src/014-responsive-design/example/css/product.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,66 @@
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
@media (min-width: 769px) {
.product.content {
display: flex;
flex-wrap: wrap;
}

.product {
flex-direction: row;
}

.product-thumbs {
flex-direction: column;
order: 1;
padding-top: 0;
}

.product-slider {
width: 50%;
order: 2;
}

.product-description {
padding-top: 0;
padding-left: 15px;
width: 34%;
}

.product-description p {
margin-top: 20px;
font-size: 1em;
}

.product-description h1, .product-description h2 {
font-size: 1.9em
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
.product-description h1, .product-description h2 {
font-size: 2.2em;
}

.product-description p {
font-size: 1.5em;
}

.product-description {
width: 38%;
}
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
@media (min-width: 1025px) {
.discount-content {
text-align: right !important;
padding-right: 40px;
}

.discount-content .button {
margin: 3% 0 !important;
}
}
1 change: 1 addition & 0 deletions src/014-responsive-design/example/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ time, mark, audio, video {
margin: 0;
padding: 0;
vertical-align: baseline;
box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
Expand Down