@base-color: #fc7e64; @h-color: #3E3535; @dish-color: #41d4c2; @hover-color: #fc7e64; .kp-widget(@kp-widht, @kp-height){ position:relative; height: @kp-height * 2; ul{ list-style: none; } .element{ position: absolute; display:block; width: @kp-widht; height: @kp-height; &.width1{ width: @kp-widht * 2 + 2px; height: @kp-height * 2 + 2px; img{ width: @kp-widht * 2 + 2px; height: @kp-height * 2 + 2px; } } img{ width: @kp-widht; height: @kp-height; } + .element{ top:0; left:@kp-widht * 2; + .element{ top:@kp-height + 2px; left:@kp-widht * 2; + .element{ top:0; left:@kp-widht * 3 + 2px; + .element{ top:@kp-height + 2px; left:@kp-widht * 3 + 2px; } } } } } } .shadow{ box-shadow: 0 0 6px rgba(0,0,0,.7); } .page-heigh(@pageH){ #header{ width: @pageH; } #container{ width: @pageH; } } @media only screen and (min-width: 1360px){ .kp-masonry{ .kp-widget(277px, 185px) } .page-heigh(1360px) } @media only screen and (min-width: 1280px) and (max-width: 1359px){ .kp-masonry{ .kp-widget(257px, 171px) } .page-heigh(1280px) } @media only screen and (min-width: 1120px) and (max-width: 1279px){ .kp-masonry{ .kp-widget(217px, 145px) } .page-heigh(1120px) } @media only screen and (min-width: 1024px) and (max-width: 1119px) { .kp-masonry{ .kp-widget(193px, 129px) } .page-heigh(1024px) } @media only screen and (max-width: 1023px) { .kp-masonry{ .kp-widget(172px, 114px) } .page-heigh(940px) } .main-wrapper{ margin: 0 auto; width: 100%; } .index-menu{ margin: 20px 0; padding: 0 5px; border: 2px solid @base-color; ul { background: @base-color; margin: 5px 0; padding: 10px; list-style:none; line-height: 18px; height: 18px; li { float: left; margin: 0 10px; } a { font-family: 'Oswald', sans-serif; font-weight: bolder; font-size: 18px; color: #fff; padding: 0 10px; display: block; } } .search input{ float:right; border: 1px solid #cccccc; //цвет рамки border-radius: 3px; //закругление углов (общее) -webkit-border-radius: 3px; //закругление углов (Google Chrome) -moz-border-radius: 3px; //закругление углов (FireFox) -khtml-border-radius: 3px; //закругление углов (Safari) background: #ffffff !important; // желательно прописывать, так как в Chrome при сохранных данных оно может быть желтым outline: none; // удаляет обводку в браузерах хром(желтая) и сафари(синяя) height: 14px; // высота на свое усмотрение width: 180px; // ширина на свое усмотрение color: #cccccc; //цвет шрифта в обычном состоянии font-size: 11px; // Размер шрифта font-family: Tahoma; // Стиль шрифта margin: 9px 10px 0 0; } } .main-menu-catalog{ float: left; width: 230px; margin: 0 20px 0 0; border-right: 1px solid #ccc; ul{ list-style-type: none; li{ position: relative; border-bottom: 1px solid #ccc; width: 230px; font-size: 13px; color: #000; font-family: Arial,Helvetica,Verdana,Sans-serif; text-align: -webkit-match-parent; font-size: 17px; line-height: 20px; color: #000; font-weight: bold; text-decoration: none; &:hover{ background: @base-color; -webkit-transition: background-color .3s, color .3s, padding-left .3s; a{ color: #FFF; } ul{ background: @base-color; left: 100%; position: absolute; top: 0; width: 230px; z-index:100; display:block; li:hover{ background: @hover-color; } } } a{ padding: 5px 10px 5px 20px; width: 200px; display: inline-block; } &.active{ background: @base-color; a{ color: #fff; } } } ul{ display:none; } } } /*----- Masonry -----*/ .kp-masonry { margin-bottom: 30px; .masonry-wrapper { margin: 0 -2.5px; } .element{ &:hover{ z-index: 10; img{ transform: scale(1.07); -moz-transform: scale(1.07); -webkit-transform: scale(1.07); z-index: 1; } .entry-item{ .entry-content { opacity: 0; filter: alpha(opacity=0); } .entry-content-hover { width: 80%; left: -10px; opacity: 1; filter: alpha(opacity=100); .entry-title { opacity: 1; filter: alpha(opacity=100); } } } } .entry-item{ position: relative; .entry-content{ position: absolute; bottom: 20px; width: 80%; background: #392F2F; padding: 5px; opacity: 0.7; filter: alpha(Opacity=70); .entry-title { margin: 0; font-size: 25px; text-transform: uppercase; line-height: 10px; text-shadow: 1px 1px 1px #000; a { color: #fff; } } } .entry-content-hover { position: absolute; left: 0px; bottom: 30px; background-color: rgba(255,255,255,.9); border-left: 10px solid @base-color; z-index: 2; width: 50%; opacity: 0; filter: alpha(opacity=0); padding: 20px; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; .entry-title { margin: 0 0 5px 0; font-size: 18px; text-transform: uppercase; line-height: 14px; position: relative; padding-bottom: 3px; opacity: 0; filter: alpha(opacity=0); -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; transition: all 1s ease-in-out; .bottom-line { position: absolute; left: 0; bottom: -1px; height: 1px; width: 50px; background-color: #888; } } .entry-categories{ a{ color: @base-color; text-transform: none; font-family: Tahoma, Geneva, sans-serif; font-size: 13px; } } .h-line { position: absolute; left: -5px; top: 0; width: 1px; height: 100%; background-color: #fff; z-index: 3; } .icons-left{ .likesAndViews(); } } } } &.width1{ &:hover { .entry-item { .entry-content-hover { left: -20px; } } } } } .designers-block{ .item{ float:left; min-width: 368px; margin: 20px 0; position: relative; .description{ position: absolute; top: 0; left: 120px; display: inline-block; .title{ font-weight: bold; border-bottom: 1px solid #222; margin-bottom: 0px; a{ font-size: 16px; } } .works{ a{ font-size: 10px; color: @base-color; text-decoration: underline; } } } } } .widget-title{ font-weight: 700; margin: 0 -20px; background-color: #fff; padding-bottom: 20px; text-align: center; margin: 0 0 20px; position: relative; font-size: 22px; text-transform: uppercase; color: @h-color; font: 400 20px/22px 'Oswald', sans-serif; letter-spacing: 0; margin-bottom: 10px; .bold-line{ bottom: 20px; width: 100%; height: 10px; display: block; position: absolute; left: 0; bottom: 0; span{ background-color: @base-color; display: block; width: 100%; height: 100%; } } .solid-line{ bottom: 25px; width: 100%; height: 1px; display: block; position: absolute; left: 0; bottom: 5px; background-color: #fff; z-index: 0; } .text-title{ padding: 0 10px; background-color: #fff; display: inline-block; position: relative; top: 27px; z-index: 1; font-size: 24px; font-weight: 700; } } .likesAndViews(){ span{ margin: 10px 0; padding: 0 0 0 20px; display: inline-block; color: #645A5A; } .views{ background: url("/images/eye-symbol.png") no-repeat; } .likes{ background: url("/images/kiss-symbol.png") no-repeat; } } .product-template{ position: relative; width: 212px; margin: 5px; text-align: left; background-color: white; border: 1px solid #ccc; -moz-box-shadow: 0 2px 7px 0 rgba(0,0,0,0.1); -webkit-box-shadow: 0 2px 7px 0 rgba(0,0,0,0.1); box-shadow: 0 2px 7px 0 rgba(0,0,0,0.1); &:hover{ box-shadow: 0 1px 7px 0 rgba(0,0,0,1); } .row{ height: 40px; overflow: hidden; .title{ color: #645A5A; padding: 0 10px; font-weight:bold; font-size: 12px; display:inline-block; width: 150px; } + .row{ height: 35px; padding: 0 5px; .icons-left{ float: left; .likesAndViews(); } .price{ margin:10px 10px 10px 20px; font-size: 14px; float: right; } } } } .category-content{ margin-left: 240px; } .catalog{ ul{ list-style:none; li.masonry{ margin: 0 0 20px 0; display:block; a{ color: @base-color; } } h4{ font-size: 16px; } ul{ li{ display:block; a{ color: #111!important; } } } } } .masterclasses{ .item{ padding: 5px; border-bottom: 1px solid #ccc; min-height: 130px; a img{ float:left; } .description{ margin: 0 0 30px 220px; h4 a{ color: @base-color; font: 24px/1.333 "PT Sans",helvetica,"segoe UI",arial,sans-serif; } .author{ margin-top: 20px; .icons-right{ float: right; .likesAndViews(); } } } } } .designers-list{ .item{ width: 100%; padding: 5px; border-bottom: 1px solid #ccc; margin-bottom: 20px; height: 200px; > a img{ float:left; padding: 0 20px 0 0; } .description{ margin: 0 0 19px 220px; h4 a{ color: @base-color; font: 24px/1.333 "PT Sans",helvetica,"segoe UI",arial,sans-serif; } } .works{ height: 150px; overflow:hidden; } } } ul.yiiPager a:link, ul.yiiPager a:visited{ color: @base-color; } ul.yiiPager a:link, ul.yiiPager a:visited{ border: solid 1px @base-color; } ul.yiiPager .selected a{ color: #FFFFFF; background: @base-color; } .collections-list{ margin-left: 250px; .item{ margin: 0 0 10px 0; padding: 5px; border-bottom: 1px solid #ccc; min-height: 100px; > a img{ height: 100px; float:left; } .description{ margin: 0 0 0 170px; min-height: 100px; position: relative; h4 a{ color: @base-color; font: 24px/1.333 "PT Sans",helvetica,"segoe UI",arial,sans-serif; } .author{ vertical-align: bottom; div{ vertical-align: bottom; position: absolute; bottom: 0px; img{ vertical-align: bottom; } &.designer{ left:0; } &.icons-right{ right:0; float: right; .likesAndViews(); } } } } } } .collection-one{ margin-left: 260px; .galleria{ min-height: 400px; } } .post-one{ margin-left: 250px; min-width: 400px; max-width: 802px; .author{ margin-bottom: 10px; a{ font-weight: bold; } } .photoshoot{ .updated{ margin-top: 20px; font-weight: bold; } .likes{ margin: 0; width: auto; } > img{ min-width: 400px; max-width: 800px; } .preview{ font-weight: bold; font-size: 1.6em; line-height: 1.533em; } .text{ font-size: 1.3em; line-height: 1.533em; } } }