lab_2
This commit is contained in:
218
styles.css
Normal file
218
styles.css
Normal file
@@ -0,0 +1,218 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: azure;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
nav {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.menu {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.menu > li {
|
||||
position: relative;
|
||||
background-color: #0073e6;
|
||||
padding: 10px 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.menu > li > a {
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.menu > li:hover {
|
||||
background-color: #005bb5;
|
||||
}
|
||||
|
||||
.submenu {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 100%;
|
||||
background-color: white;
|
||||
border-radius: 5px;
|
||||
display: none;
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.submenu li {
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.submenu li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.submenu li a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu > li:hover .submenu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer {
|
||||
background-color: #222;
|
||||
color: white;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
footer img {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.info {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 20px auto;
|
||||
max-width: 1300px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.reviews-item {
|
||||
padding: 10px;
|
||||
border: 2px solid black;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.reviews-item img {
|
||||
border-radius: 20px;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
margin-bottom: 10px;
|
||||
font-family: 'Trebuchet MS', Arial, sans-serif;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.reviews_page-desc,
|
||||
.contacs-desc,
|
||||
.about-desc,
|
||||
.delivery-desc,
|
||||
.refund-description {
|
||||
text-align: center;
|
||||
border: 2px solid black;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.link-background {
|
||||
background-color: black;
|
||||
width: 130px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.link-background a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1024px) {
|
||||
.container {
|
||||
max-width: 90%;
|
||||
}
|
||||
.menu {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.menu > li {
|
||||
display: block;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
footer {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.reviews-item {
|
||||
padding: 5px;
|
||||
}
|
||||
.reviews-item img {
|
||||
width: 100%;
|
||||
}
|
||||
.nav-links {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 480px) {
|
||||
.container {
|
||||
max-width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
.menu {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.menu > li {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
}
|
||||
footer {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user