@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: darken(@mn-cl, 10%); color: @wht; } &:active, &:focus { background: @mn-cl; color: @wht; border: 1px solid darken(@mn-cl, 5%); &:hover { background: darken(@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; } } } .btns { text-align: center; margin: 20px auto; } .card-position { max-width: 485px; width: 100%; margin: 0 auto 20px; display: grid; grid-template-rows: auto; grid-template-columns: 1fr 1fr 1fr 1fr; @media (max-width: 560px) { width: 250px; grid-template-columns: 1fr 1fr; grid-gap: 10px; } &__item { // max-width: 100px; } &__card{ width: 85px; padding-top: 120px; background-color: transparent; margin: 0 auto; border: 5px solid transparent; background-image: url('img/rubashka.png'); background-position: center center; background-repeat: no-repeat; background-size: cover; } &__desc { background: @wht; padding-top: 5px; text-align: center; font-size: 14px; } } .allcards { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; grid-gap: 1rem; grid-template-rows: auto; @media(max-width: 560px) { max-width: 299px; margin: 0 auto; grid-template-columns: 1fr 1fr 1fr; } &__item { background-image: url(img/rubashka.png); background-position: center center; background-repeat: no-repeat; background-size: cover; width: 75px; height: 100px; cursor: pointer; //box-shadow: 5px 0px 10px -5px fade(@blk, 50%); border-radius: 3px; transition: all 250ms ease-out; transform: rotateX(180deg); margin: 0 auto; position: relative; z-index: 1; &.opened { transform: rotateX(0deg); //box-shadow: -5px 0px 10px -5px fade(@blk, 50%); } } } #ox__rezult { display: none; max-width: 750px; margin: 0 auto; border: 1px solid darken(@wht, 10%); padding: 5px 15px; } .rezult-list { display: block; margin: 1rem auto 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid darken(@wht, 10%); &:after { content: ''; display: block; clear: both; } &__img { width: 100px; margin: 1rem 15px 10px 0; float: left; @media (max-width: 560px) { float: initial; text-align: center; margin: 1rem auto 0; } img { width: 100%; max-width: 250px; @media (max-width: 560px) { max-width: 120px; } } } &__title { font-weight: 800; font-size: 1.75rem; margin-top: 1rem; @media (max-width: 560px) { text-align: center; font-size: 1.35rem; } } &__cardtitle { background: darken(@wht, 5%); 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; } } }