резиновость завершена
This commit is contained in:
+93
-33
@@ -2,6 +2,17 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img,
|
||||||
|
iframe {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--page-max: 1440px;
|
||||||
|
--page-gap: 24px;
|
||||||
|
--panel-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
@@ -20,7 +31,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-topbar-inner {
|
.site-topbar-inner {
|
||||||
width: min(1180px, calc(100% - 48px));
|
width: min(var(--page-max), calc(100% - (var(--page-gap) * 2)));
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 220px minmax(0, 1fr) 290px;
|
grid-template-columns: 220px minmax(0, 1fr) 290px;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
@@ -95,7 +106,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-utility {
|
.site-utility {
|
||||||
width: min(1180px, calc(100% - 48px));
|
width: min(var(--page-max), calc(100% - (var(--page-gap) * 2)));
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -140,7 +151,7 @@ body {
|
|||||||
|
|
||||||
.page {
|
.page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: 24px 24px 56px;
|
padding: var(--page-gap) var(--page-gap) 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary-link {
|
.primary-link {
|
||||||
@@ -148,7 +159,8 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.start-screen {
|
.start-screen {
|
||||||
width: min(760px, 100%);
|
width: min(var(--page-max), 100%);
|
||||||
|
margin: 0 auto;
|
||||||
padding: 32px;
|
padding: 32px;
|
||||||
border: 1px solid #d9dfd3;
|
border: 1px solid #d9dfd3;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@@ -156,7 +168,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.start-screen.wide {
|
.start-screen.wide {
|
||||||
width: min(1180px, 100%);
|
width: min(var(--page-max), 100%);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -571,7 +583,8 @@ a:hover {
|
|||||||
|
|
||||||
.catalog-layout,
|
.catalog-layout,
|
||||||
.admin-layout {
|
.admin-layout {
|
||||||
width: min(1180px, 100%);
|
width: min(var(--page-max), 100%);
|
||||||
|
margin: 0 auto;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 300px minmax(0, 1fr);
|
grid-template-columns: 300px minmax(0, 1fr);
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
@@ -607,12 +620,12 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-page {
|
.text-page {
|
||||||
width: min(920px, 100%);
|
width: min(var(--page-max), 100%);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-page {
|
.info-page {
|
||||||
width: min(1180px, 100%);
|
width: min(var(--page-max), 100%);
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 18px;
|
gap: 18px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@@ -929,7 +942,7 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-page-header p:last-child {
|
.text-page-header p:last-child {
|
||||||
max-width: 760px;
|
max-width: 880px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -939,6 +952,11 @@ a:hover {
|
|||||||
padding: 8px 30px 30px;
|
padding: 8px 30px 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-page-body section,
|
||||||
|
.text-page-body > p {
|
||||||
|
max-width: 920px;
|
||||||
|
}
|
||||||
|
|
||||||
.text-page-body section {
|
.text-page-body section {
|
||||||
padding: 24px 0;
|
padding: 24px 0;
|
||||||
border-bottom: 1px solid #e5eadf;
|
border-bottom: 1px solid #e5eadf;
|
||||||
@@ -1038,7 +1056,7 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-footer-inner {
|
.site-footer-inner {
|
||||||
width: min(1180px, calc(100% - 48px));
|
width: min(var(--page-max), calc(100% - (var(--page-gap) * 2)));
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1.15fr 1.25fr 1fr 1.2fr;
|
grid-template-columns: 1.15fr 1.25fr 1fr 1.2fr;
|
||||||
gap: 34px;
|
gap: 34px;
|
||||||
@@ -1142,7 +1160,7 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-footer-bottom p {
|
.site-footer-bottom p {
|
||||||
max-width: 1180px;
|
max-width: var(--page-max);
|
||||||
margin: 6px auto 0;
|
margin: 6px auto 0;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@@ -1154,17 +1172,64 @@ a:hover {
|
|||||||
color: #c7d2c3;
|
color: #c7d2c3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
@media (max-width: 1180px) {
|
||||||
.site-utility {
|
.site-topbar-inner {
|
||||||
width: calc(100% - 32px);
|
grid-template-columns: 220px minmax(0, 1fr);
|
||||||
display: grid;
|
|
||||||
margin-top: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-grid {
|
.topbar-contacts {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px 18px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-banners {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.calculator-form {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer-inner {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 980px) {
|
||||||
|
.catalog-layout,
|
||||||
|
.admin-layout,
|
||||||
|
.info-hero,
|
||||||
|
.info-grid,
|
||||||
|
.info-grid.three,
|
||||||
|
.contact-grid,
|
||||||
|
.route-layout {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sticky-panel {
|
||||||
|
position: static;
|
||||||
|
max-height: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-visual {
|
||||||
|
min-height: 170px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
:root {
|
||||||
|
--page-gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-utility {
|
||||||
|
width: calc(100% - (var(--page-gap) * 2));
|
||||||
|
display: grid;
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.site-topbar-inner,
|
.site-topbar-inner,
|
||||||
.home-banners,
|
.home-banners,
|
||||||
.promo-strip,
|
.promo-strip,
|
||||||
@@ -1173,7 +1238,7 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-topbar-inner {
|
.site-topbar-inner {
|
||||||
width: calc(100% - 32px);
|
width: calc(100% - (var(--page-gap) * 2));
|
||||||
justify-items: start;
|
justify-items: start;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
@@ -1188,6 +1253,7 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.topbar-contacts {
|
.topbar-contacts {
|
||||||
|
display: grid;
|
||||||
justify-items: start;
|
justify-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1212,17 +1278,8 @@ a:hover {
|
|||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.catalog-layout,
|
.content-grid,
|
||||||
.admin-layout {
|
.calculator-form {
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-hero,
|
|
||||||
.info-grid,
|
|
||||||
.info-grid.three,
|
|
||||||
.calculator-form,
|
|
||||||
.contact-grid,
|
|
||||||
.route-layout {
|
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1244,13 +1301,16 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-footer-inner {
|
.site-footer-inner {
|
||||||
width: calc(100% - 32px);
|
width: calc(100% - (var(--page-gap) * 2));
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
gap: 26px;
|
gap: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sticky-panel {
|
.text-page-header,
|
||||||
position: static;
|
.text-page-body,
|
||||||
max-height: none;
|
.info-card,
|
||||||
|
.catalog-heading,
|
||||||
|
.panel {
|
||||||
|
padding: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user