add ContentLayout.css
This commit is contained in:
45
src/styles/ContentLayout.css
Normal file
45
src/styles/ContentLayout.css
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
.content-main{
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
gap: 12px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
flex: 2; /* Занимает 2 части */
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
/*flex: 1; Занимает 1 часть */
|
||||||
|
min-width: 250px; /* Минимальная ширина для сайдбара */
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
min-width: 260px;
|
||||||
|
max-width: 260px;
|
||||||
|
min-height: 200px;
|
||||||
|
background: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
|
||||||
|
.content-main{
|
||||||
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
margin: 0;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
flex: 1; /* Контент на всю ширину */
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user