@mn-cl: #3394e6; @wht: #fff; @txt: #000; @blk: #000; .ox__gad { padding: 20px 0; } .ox__gad * { box-sizing: border-box; } .ox__gad *:focus { outline: none; } .ox__btn { cursor: pointer; border-radius: 6px; padding: 0.5rem 2.5rem 0.5rem; text-align: center; font-size: 1.2rem; font-weight: 400; text-decoration: none; display: inline-block; border: 0px solid transparent; line-height: 1; background: @mn-cl; color: @wht; border: 1px solid darken(@mn-cl, 5%); transition: all 250ms ease-out; &:focus { box-shadow: 0px 0px transparent; } &:hover { background: lighten(@mn-cl, 10%); color: @wht; } &:active, &:focus { background: @mn-cl; color: @wht; border: 1px solid darken(@mn-cl, 5%); &:hover { background: lighten(@mn-cl, 10%); color: @wht; } } } .ox { &__input { padding: 0.5rem 1rem 0.5rem; display: inline-block; background: @wht; border: 1px solid darken(@wht, 15%); border-radius: 6px; } &__title { text-align: center; margin: 15px 0; padding: 0; @media (max-width: 560px) { font-size: 1.35rem; } } &__input { padding: 0.5rem 1rem 0.5rem; display: inline-block; background: @wht; border: 1px solid darken(@wht, 15%); border-radius: 6px; } &__title { text-align: center; margin: 15px 0; padding: 0; @media (max-width: 560px) { font-size: 1.35rem; } &-big { font-weight: 800; font-size: 2rem; @media (max-width: 560px) { font-size: 1.5rem; } } } &__names { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 15px; grid-template-rows: auto; @media (max-width: 767px) { grid-template-columns: 1fr; } &-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; label { margin-bottom: 5px; } } } &__rezult { display: none; padding: 15px; } &__item { .alignleft { float: left; margin-right: 10px; margin-bottom: 16px; } &:after { content: ''; display: block; width: 100%; height: 1px; clear: both; } } } .allcards { display: block; position: relative; width: 300px; margin: 0 auto; &.opened { height: 150px; } &.closed { .allcards { &__item { &.hovered { margin-top: 0; } &:nth-child(1) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(2) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(3) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(4) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(5) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(6) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(7) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(8) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(9) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(10) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(11) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(12) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(13) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(14) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } &:nth-child(15) { transform: rotateY(180deg) rotate(0deg); margin-left: 0px; } } } } &__item { background-image: url(img/rubashka.png); background-position: center center; background-repeat: no-repeat; background-size: cover; position: absolute; width: 75px; height: 119px; top: 0; left: calc(~'50% - 37.5px'); cursor: pointer; //box-shadow: 5px 0px 10px -5px fade(@blk, 50%); border-radius: 3px; transition: all 250ms ease-out; transform: rotateY(180deg) rotate(0deg); z-index: 1; transform-origin: center bottom; &.hide { opacity: 0; z-index: -100 !important; } &:nth-child(1) { transform: rotateY(180deg) rotateZ(40deg); margin-left: -25px; } &:nth-child(2) { transform: rotateY(180deg) rotateZ(30deg); margin-left: -20px; } &:nth-child(3) { transform: rotateY(180deg) rotateZ(20deg); margin-left: -15px; } &:nth-child(4) { transform: rotateY(180deg) rotateZ(10deg); margin-left: -10px; } &:nth-child(5) { transform: rotateY(180deg) rotateZ(00deg); margin-left: -5px; } &:nth-child(6) { transform: rotateY(180deg) rotateZ(-10deg); margin-left: 0px; } &:nth-child(7) { transform: rotateY(180deg) rotateZ(-20deg); margin-left: 5px; } &:nth-child(8) { transform: rotateY(180deg) rotate(-30deg); margin-left: 10px; } &:nth-child(9) { transform: rotateY(180deg) rotate(-40deg); margin-left: 15px; } &:nth-child(10) { transform: rotateY(180deg) rotate(-50deg); margin-left: 20px; } &:nth-child(11) { transform: rotateY(180deg) rotate(-60deg); margin-left: 25px; } &:nth-child(12) { transform: rotateY(180deg) rotate(-70deg); margin-left: 30px; } &.hovered { margin-top: -10px; } &.opened { margin-top: -172px; transform: rotateY(0deg); margin-left: 0px; box-shadow: -5px 0px 10px -5px fade(@blk, 50%); position: absolute; //z-index: 4; &[data-count="count_1"] { margin-left: -172px; @media (max-width: 560px) { margin-top: -274px; margin-left: -63px; } } &[data-count="count_2"] { margin-left: -57px; @media (max-width: 560px) { margin-top: -274px; margin-left: 62px; } } &[data-count="count_3"] { margin-left: 57px; @media (max-width: 560px) { margin-left: -63px; margin-top: -138px; } } &[data-count="count_4"] { margin-left: 172px; @media (max-width: 560px) { margin-left: 62px; margin-top: -138px; } } } } } .ox_glaz { width: 170px; opacity: 0; transition: all 750ms ease-out; @media (max-width: 560px) { width: 120px; } } @-webkit-keyframes ox_hold { from { box-shadow: 0px 0px 0px 0px darken(#fff, 15%); } to { box-shadow: 0px 0px 20px 0px transparent; } } @keyframes ox_hold { from { box-shadow: 0px 0px 0px 0px darken(#fff, 55%); } to { box-shadow: 0px 0px 20px 0px transparent; } } .card-position { max-width: 420px; width: 100%; margin: 0 auto 20px; position: relative; text-align: center; padding-top: 160px; // padding-bottom: 120px; @media (max-width: 560px) { width: 200px; padding-top: 110px; padding-bottom: 145px; } &__item { height: 119px; position: absolute; width: 75px; top: 8px; border-radius: 6px; overflow: hidden; &.holded { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-name: ox_hold; animation-name: ox_hold; } &:nth-child(1) { left: 0; @media (max-width: 560px) { left: 0; top: 0; } } &:nth-child(2) { left: 115px; @media (max-width: 560px) { left: initial; top: 0; right: 0; } } &:nth-child(3) { right: 115px; @media (max-width: 560px) { left: 0; bottom: 0; right: initial; top: initial; } } &:nth-child(4) { right: 0; @media (max-width: 560px) { bottom: 0; right: 0; top: initial; } } } &__card{ width: 100%; padding-top: 119px; background-color: transparent; margin: 0 auto; border: 0px solid transparent; background-image: url('img/rubashka-back.jpg'); background-position: center center; background-repeat: no-repeat; background-size: cover; } &__desc { background: @wht; padding-top: 5px; text-align: center; font-size: 14px; } } .show__card { background-image: url(img/rubashka.png); background-position: center center; background-repeat: no-repeat; background-size: cover; width: 75px; height: 119px; cursor: pointer; margin-left: 0px; box-shadow: 5px 0px 10px -5px fade(@blk, 50%); border-radius: 3px; transform: rotateY(180deg); position: absolute; opacity: 0; @media (min-width: 767px) { transition: all 250ms ease-out; } //display: none; &.opened { margin-top: -172px; transform: rotateY(0deg); margin-left: 0px; box-shadow: -5px 0px 10px -5px fade(@blk, 50%); position: absolute; //z-index: 4; opacity: 1; &[data-count="count_1"] { margin-left: -62px; @media (max-width: 560px) { margin-top: -274px; margin-left: 48px; } } &[data-count="count_2"] { margin-left: 54px; @media (max-width: 560px) { margin-top: -274px; margin-left: 173px; } } &[data-count="count_3"] { margin-left: 169px; @media (max-width: 560px) { margin-left: 48px; margin-top: -138px; } } &[data-count="count_4"] { margin-left: 285px; @media (max-width: 560px) { margin-left: 173px; margin-top: -138px; } } } } .btns { text-align: center; margin: 20px auto; } .ox_smalltext { display: block; font-size: 1rem; } #ox__rezult { display: none; max-width: 750px; margin: 0 auto; border: 1px solid lighten(@blk, 15%); border-radius: 5px; padding: 5px 15px; } .rezult-list { display: grid; grid-template-rows: auto; grid-template-columns: 150px calc(~'100% - 150px - 2rem'); grid-gap: 2rem; margin: 1rem auto 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid lighten(@blk, 15%); @media (max-width: 560px) { grid-template-columns: 100%; grid-gap: .5rem; } &__img { position: relative; height: 200px; @media (max-width: 560px) { text-align: center; } img { width: 115px; } } &__title { font-weight: 800; font-size: 1.75rem; @media (max-width: 560px) { text-align: center; font-size: 1.35rem; width: 100%; } } &__cardtitle { background: darken(@wht, 10%); padding: 10px 15px; grid-column: span 2; font-weight: 800; font-size: 1.75rem; @media (max-width: 560px) { grid-column: span 1; text-align: center; font-size: 1.35rem; } } &__info { // display: flex; // align-items: center; } }