diff --git a/themes/tps/assets/css/components/2-layout/modal.scss b/themes/tps/assets/css/components/2-layout/modal.scss index 3e7fe27..1eea5fe 100644 --- a/themes/tps/assets/css/components/2-layout/modal.scss +++ b/themes/tps/assets/css/components/2-layout/modal.scss @@ -27,7 +27,7 @@ @include transform; max-width: 900px; width: calc(100% - 120px); - max-height: calc(100% - 150px); + max-height: 450px; height: calc(100% - 150px); padding: 70px 50px; background: rgba(0, 0, 0, .5); diff --git a/themes/tps/assets/css/components/3-page/portfolio.scss b/themes/tps/assets/css/components/3-page/portfolio.scss index dd36a72..5f81ca2 100644 --- a/themes/tps/assets/css/components/3-page/portfolio.scss +++ b/themes/tps/assets/css/components/3-page/portfolio.scss @@ -54,6 +54,7 @@ &_box { display: flex; + flex-wrap: wrap; margin: 50px -1px; &-item { diff --git a/themes/tps/assets/css/main.css b/themes/tps/assets/css/main.css index 41d692e..67a63d9 100644 --- a/themes/tps/assets/css/main.css +++ b/themes/tps/assets/css/main.css @@ -833,7 +833,7 @@ svg.active .svg-elem-21 { -webkit-transform: translate(-50%, -50%); max-width: 900px; width: calc(100% - 120px); - max-height: calc(100% - 150px); + max-height: 450px; height: calc(100% - 150px); padding: 70px 50px; background: rgba(0, 0, 0, 0.5); @@ -1957,6 +1957,8 @@ svg.active .svg-elem-21 { display: -webkit-box; display: -ms-flexbox; display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; margin: 50px -1px; } .gallery_box-item { diff --git a/themes/tps/pages/portfolio.htm b/themes/tps/pages/portfolio.htm index 2bc2646..190800d 100755 --- a/themes/tps/pages/portfolio.htm +++ b/themes/tps/pages/portfolio.htm @@ -1,5 +1,5 @@ title = "Портфолио" -url = "/portfolio" +url = "/portfolio/:page?" layout = "master" description = "На счету TPS сотни успешно реализованных проектов любой сложности. Наши заказчики – локальные и международные компании. @@ -17,12 +17,20 @@ displayColumn = "id" noRecordsMessage = "No records found" detailsPage = "-" detailsUrlParameter = "id" +recordsPerPage = 6 pageNumber = "{{ :page }}" == {% put styles %} + {% endput %} + {% partial 'header' %} {% set records = builderList.records %} @@ -101,9 +109,9 @@ pageNumber = "{{ :page }}" + + + {% if records.lastPage > 1 %} + {% endif %} + + + {% for page in 1..records.lastPage %} + +

+ {{ page }} +

+ + {% endfor %} + + + {% if records.lastPage > records.currentPage %} + + + + + + {% endif %} + + + {% endif %} + +