web2019/sass/css/_shop.scss

451 lines
12 KiB
SCSS

#root-shop, #root-shop > div {
width: 100%;
height: calc(100vh - 72px);
overflow: hidden;
}
button {
outline: none!important;
}
#root-shop {
.layout {
display: flex;
> aside.aside {
flex: 2;
background-color: $color-primary;
overflow-y: scroll;
overflow-x: hidden;
position: relative;
/*padding-bottom: 4rem!important;*/
}
> aside.aside:after {
position: fixed;
bottom: 0;
height: 100px;
width: calc(2 / 6 * 100%);
content: "";
background: linear-gradient(
to top,
rgba(13, 53, 71, 1),
rgba(13, 53, 71, 0)
);
pointer-events: none;
}
> section.main {
flex: 4;
max-width: calc(4 / 6 * 100%);
overflow-y: scroll;
}
}
.productItem {
display: flex;
color: white;
padding: 3rem 2rem 1rem;
.content {
flex: 1;
display: flex;
flex-direction: column;
> *:not(:last-child) {
margin-bottom: 20px;
}
img {
height: 400px;
align-self: center;
border: 0;
}
h3 {
color: white;
}
button {
background-color: inherit;
align-self: center;
border: 0;
img {
width: 40px;
height: auto;
}
}
.price {
align-self: flex-start;
padding: .5rem 1rem;
border: 2px solid $btn-primary-2;
border-radius: 3px;
font-weight: 700;
}
ul {
font-size: .8rem;
margin: 0;
padding-left: 20px;
li::before {
color: white;
}
li {
padding: .3rem 0;
}
}
}
}
.backlog-container {
padding-bottom: 4rem;
}
.rule {
margin-bottom: .3rem;
font-size: .8rem;
img {
width: 20px;
}
}
.panel {
padding: 3rem;
overflow: hidden;
h2 {
padding-bottom: .5rem;
}
.control {
display: flex;
font-size: .8rem;
> p {
width: 50%;
padding-right: 30px;
}
.crate-mode {
text-align: right;
width: 50%;
a {
cursor: pointer;
margin-right: 1rem;
color: inherit;
text-decoration: none;
padding-bottom: 5px;
}
a.active {
font-weight: 700;
border-bottom: 3px solid $btn-primary-2;
}
}
}
.summary {
display: flex;
margin: 2rem 0;
> .summary-price {
flex: 1;
font-size: .8rem;
table {
max-width: 450px;
}
.summary-remove-all {
padding-bottom: 1rem;
.item-card-name {
color: $btn-primary-2;
}
}
.item-card-name {
font-weight: 700;
}
.price {
text-align: right;
}
.item-card-name > div,
.price > div {
display: inline;
}
.item-card-name,
.price {
> .alert-warning {
background-color: inherit;
height: inherit;
width: 20px;
padding-bottom: 3px;
}
}
thead, tbody, tfoot {
display: block;
/*max-height: 200px;
overflow-y: auto;*/
tr {
display: table;
table-layout: fixed;
width: 100%;
}
tr.hoverable {
cursor: pointer;
}
tr.hoverable:hover,
tr.hoverable.selected {
background-color: $color-hover;
}
td {
padding: 1px 5px;
}
}
tfoot {
color: $btn-primary-2;
font-size: 1.2rem;
td {
padding: 1.2rem 0;
}
}
button {
background-color: inherit;
border: 0;
margin-left: 20px;
img {
width: 20px;
height: auto;
}
}
}
> .summary-form {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-end;
form {
display: flex;
flex-direction: column;
width: 80%;
input:not([type="submit"]),
textarea {
border: 1px solid $color-secondary;
border-radius: 3px;
margin: 0 0 1rem;
padding: .4rem;
}
input[type="submit"] {
background-color: $btn-primary-2;
font-weight: 700;
color: white;
padding: .7rem;
border: 0;
border-radius: 3px;
}
}
}
}
.crate {
position: relative;
.crate-products {
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
padding: .5rem .5rem 1rem;
.items-cart-list {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
min-height: 345px;
background-color: #ebebeb;
padding: 5px 5px 12px;
position: relative;
> div {
display: flex;
flex-direction: column;
max-width: 96px;
justify-content: flex-start;
align-content: center;
align-items: center;
margin-right: 8px;
flex-shrink: 0;
padding: 5px 3px;
}
h6 {
font-size: .6rem;
text-align: center;
white-space: nowrap;
}
img {
height: 250px;
border: 0;
flex-shrink: 0;
}
.nbr-connectors, .nbr-clocks {
width: 100%;
height: 6px;
margin-top: 5px;
border: 1px solid #0d3547;
> div {
height: 100%;
width: 0%;
}
}
.nbr-connectors > div {
background-color: $brand-color;
}
.nbr-clocks > div {
background-color: #d689bf;
}
.progress-container {
width: 100%;
text-align: center;
> .alert-warning {
background-color: inherit;
height: inherit;
width: 20px;
padding-bottom: 3px;
}
.k-popup-connectors,
.k-popup-warning {
position: absolute;
background-color: $color-primary;
color: white;
font-weight: 700;
font-size: .6rem;
padding: .8rem 1rem;
box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
text-align: left;
p {
margin-bottom: 0;
}
p + p {
padding-bottom: 8px;
}
}
.k-popup-connectors {
min-width: 200px;
bottom: 50px;
}
.k-popup-warning {
background-color: #c75e5e;
min-width: 350px;
.rule.warning {
display: flex;
font-size: .75rem;
img {
margin-right: 10px;
height: 100%;
}
}
}
}
.overlayRemove {
bottom: 0;
width: 100%;
height: 70px;
margin-top: -70px;
display: flex;
align-items: center;
justify-content: center;
background-color: $brand-color;
color: white;
flex-direction: column;
cursor: pointer;
img {
width: 20px;
height: 20px;
}
p {
font-size: .65rem;
margin: 0;
}
}
}
.hovered {
box-shadow: 0 0 5px rgba(255, 0, 0, .8);
}
}
.crate-info {
padding: 1rem 0 0;
}
}
}
.arrow_box {
position: relative;
background: #c75e5e;
border: 2px solid #c75e5e;
}
.arrow_box:after, .arrow_box:before {
top: 100%;
left: 5%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.arrow_box:after {
border-color: rgba(199, 94, 94, 0);
border-top-color: #c75e5e;
border-width: 10px;
margin-left: -10px;
}
.arrow_box:before {
border-color: rgba(199, 94, 94, 0);
border-top-color: #c75e5e;
border-width: 10px;
margin-left: -10px;
}
}