forked from verdnatura/hedera-web
401 lines
6.6 KiB
SCSS
401 lines
6.6 KiB
SCSS
.catalog {
|
|
margin-right: 18em;
|
|
}
|
|
.title ._subtitle {
|
|
font-size: .7rem;
|
|
color: #bbb;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Right panel */
|
|
|
|
.right-panel {
|
|
position: fixed;
|
|
top: 4.4em;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 18em;
|
|
overflow: auto;
|
|
background-color: #fafafa;
|
|
}
|
|
.right-panel .basket-info {
|
|
background-color: #8cc63f;
|
|
color: white;
|
|
padding: 1.2em 2em;
|
|
border-radius: .5em;
|
|
margin: 1em;
|
|
text-align: center;
|
|
}
|
|
.right-panel .basket-info > button {
|
|
color: white;
|
|
background-color: rgba(0, 0, 0, .1);
|
|
margin: 0 auto;
|
|
display: block;
|
|
margin-top: 10px;
|
|
padding: 10px 15px;
|
|
}
|
|
.right-panel .basket-info > button:hover {
|
|
background-color: white;
|
|
color: #60872c;
|
|
}
|
|
.right-panel .basket-info > p {
|
|
margin: 0;
|
|
padding: .4em 0;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.right-panel .filter {
|
|
margin: 1em;
|
|
}
|
|
.right-panel .categories,
|
|
.right-panel .filters,
|
|
.right-panel .order {
|
|
margin: 1.5em 0;
|
|
}
|
|
.right-panel .filters,
|
|
.right-panel .order {
|
|
display: none;
|
|
}
|
|
.right-panel .realm-msg {
|
|
margin-top: 1em;
|
|
}
|
|
.right-panel .realm-msg > h5 {
|
|
font-weight: normal;
|
|
text-align: center;
|
|
padding: 2.5em 0;
|
|
color: #777;
|
|
}
|
|
.right-panel h2 {
|
|
font-weight: normal;
|
|
color: #777;
|
|
font-size: 1.1rem;
|
|
}
|
|
.right-panel .realms > div > div {
|
|
text-align: center;
|
|
}
|
|
.right-panel .realms a {
|
|
display: inline-block;
|
|
width: 25%;
|
|
padding: .6em;
|
|
box-sizing: border-box;
|
|
border-radius: 50%;
|
|
}
|
|
.right-panel .realms a:hover {
|
|
background-color: rgba(1, 1, 1, .05);
|
|
}
|
|
.right-panel .realms a > img {
|
|
display: block;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
.right-panel .filters > button {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
/* Items */
|
|
|
|
.item-box {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
}
|
|
.item-box > .htk-image {
|
|
flex: none;
|
|
}
|
|
.item-box > .item-info {
|
|
flex: auto;
|
|
position: relative;
|
|
}
|
|
.item-info .second-category {
|
|
font-weight: bold;
|
|
color: orange;
|
|
}
|
|
.item-info .third-category {
|
|
font-weight: bold;
|
|
color: red;
|
|
}
|
|
.item-info > h2 {
|
|
padding: 0;
|
|
margin-bottom: .15em;
|
|
font-weight: normal;
|
|
font-size: 1rem;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
max-height: 3em;
|
|
}
|
|
.item-info > p {
|
|
margin: 0;
|
|
padding: 0;
|
|
color: #777;
|
|
font-size: .8em;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.item-info .sub-name {
|
|
text-transform: uppercase;
|
|
padding: 0;
|
|
margin-bottom: .2em;
|
|
font-size: .9em;
|
|
}
|
|
.item-info > .htk-button {
|
|
margin: -0.3em;
|
|
padding: .3em;
|
|
}
|
|
.item-info > .htk-button > img {
|
|
vertical-align: middle;
|
|
}
|
|
.item-info .item-id {
|
|
float: right;
|
|
font-size: .8rem;
|
|
line-height: 1.8em;
|
|
color: #777;
|
|
}
|
|
.item-info .available-price {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
white-space: nowrap;
|
|
font-size: .95em;
|
|
text-align: right;
|
|
align-items: middle;
|
|
column-gap: .2em;
|
|
display: flex;
|
|
}
|
|
.item-info .available-price > * {
|
|
border-radius: .2em;
|
|
padding: .1em .3em;
|
|
border: .1em transparent solid;
|
|
box-sizing: border-box;
|
|
}
|
|
.item-info .grouping {
|
|
width: 38px;
|
|
background-color: #ddd;
|
|
}
|
|
.item-info .available {
|
|
width: 65px;
|
|
border-color: #bbb;
|
|
color: #777;
|
|
}
|
|
.item-info .price {
|
|
width: 75px;
|
|
border-color: #9cbc28;
|
|
color: #748c1e;
|
|
}
|
|
.tags {
|
|
font-size: .8em;
|
|
display: table;
|
|
color: #333;
|
|
margin: 0;
|
|
width: auto;
|
|
border-collapse: collapse;
|
|
}
|
|
.tags td:first-child {
|
|
color: #999;
|
|
padding-right: .5em;
|
|
}
|
|
|
|
/* Grid view */
|
|
|
|
.grid-view > * {
|
|
display: flex;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
.grid-view .item-box {
|
|
border-radius: .6em;
|
|
box-shadow: .05em .05em .2em rgba(0, 0, 0, .1);
|
|
overflow: hidden;
|
|
background-color: white;
|
|
|
|
flex-direction: column;
|
|
width: 260px;
|
|
overflow: hidden;
|
|
}
|
|
.grid-view .item-box:hover {
|
|
background-color: #efefef;
|
|
}
|
|
.grid-view .item-info {
|
|
margin: 10px;
|
|
height: 142px;
|
|
}
|
|
.grid-view .item-box > .htk-image {
|
|
width: 100%;
|
|
min-height: 260px;
|
|
}
|
|
.grid-view .item-box > .item-info {
|
|
flex: auto;
|
|
overflow: hidden;
|
|
}
|
|
.grid-view .item-info .tags td {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
max-width: 6em;
|
|
width: 6em;
|
|
line-height: 1.1em;
|
|
}
|
|
|
|
/* List view */
|
|
|
|
.list-view {
|
|
border-radius: .6em;
|
|
box-shadow: .05em .05em .2em rgba(0, 0, 0, .1);
|
|
overflow: hidden;
|
|
background-color: white;
|
|
|
|
max-width: 544px;
|
|
margin: 0 auto;
|
|
}
|
|
.list-view .item-box {
|
|
gap: 10px;
|
|
margin: 0;
|
|
padding: 10px;
|
|
height: 130px;
|
|
overflow: visible;
|
|
border-bottom: 1px solid #DDD;
|
|
}
|
|
.list-view .item-box:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.list-view .item-box > .htk-image {
|
|
width: 110px;
|
|
height: 110px;
|
|
border-radius: 50%;
|
|
}
|
|
.list-view .item-info {
|
|
overflow: hidden;
|
|
}
|
|
.list-view .item-info > h2 {
|
|
font-size: 1rem;
|
|
white-space: nowrap;
|
|
}
|
|
.list-view .item-info > .color {
|
|
display: none;
|
|
}
|
|
.list-view .item-info > .htk-button {
|
|
float: right;
|
|
}
|
|
.list-view .item-info .tags {
|
|
display: block;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.list-view .item-info .tags > tr {
|
|
display: inline-block;
|
|
}
|
|
.list-view .item-info .tags td {
|
|
display: inline-block;
|
|
padding-right: .5em;
|
|
}
|
|
.list-view .item-info .tags td:first-child {
|
|
display: none;
|
|
}
|
|
|
|
/* Card */
|
|
|
|
.card-popup {
|
|
overflow: auto;
|
|
}
|
|
.item-card {
|
|
font-size: .9em;
|
|
width: 20em;
|
|
}
|
|
.item-card .top {
|
|
padding: 1em;
|
|
}
|
|
.item-card .item-info {
|
|
margin-left: 9em;
|
|
height: 8em;
|
|
}
|
|
.item-card .htk-image {
|
|
height: 8em;
|
|
width: 8em;
|
|
float: left;
|
|
border-radius: .3em;
|
|
}
|
|
.item-card .desc {
|
|
clear: both;
|
|
margin-top: 1em 0;
|
|
font-size: .9em;
|
|
}
|
|
.item-card .lots-grid {
|
|
border-top: 1px solid #DDD;
|
|
}
|
|
.item-card .lots-grid tr {
|
|
height: 3em;
|
|
}
|
|
.item-card .lots-grid .cell-spin {
|
|
max-width: initial;
|
|
width: 3em;
|
|
}
|
|
.item-card .lots-grid .price-kg {
|
|
font-size: .8em;
|
|
color: #999;
|
|
width: 1px;
|
|
}
|
|
.item-card .lots-grid .cell-text {
|
|
max-width: initial;
|
|
width: auto;
|
|
}
|
|
.item-card .lots-grid .cell-button {
|
|
max-width: initial;
|
|
width: 1em;
|
|
}
|
|
.item-card .footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background-color: #1a1a1a;
|
|
color: white;
|
|
padding: 10px;
|
|
}
|
|
.item-card .footer > button:hover {
|
|
background-color: rgba(255, 255, 255, .1);
|
|
}
|
|
.item-card .footer > button > .htk-icon {
|
|
display: block;
|
|
}
|
|
|
|
/* Mobile */
|
|
|
|
.catalog-actions > button.menu {
|
|
display: none;
|
|
}
|
|
.catalog-actions > button.menu > .htk-icon {
|
|
display: block;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.catalog-actions > button.menu {
|
|
display: block;
|
|
}
|
|
.right-panel {
|
|
top: 0;
|
|
right: -18em;
|
|
z-index: 20;
|
|
transition: transform 200ms ease-out;
|
|
-webkit-transition: transform 200ms ease-out;
|
|
}
|
|
.right-panel.show {
|
|
transform: translateZ(0) translateX(-18em);
|
|
-webkit-transform: translateZ(0) translateX(-18em);
|
|
}
|
|
.catalog {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
@media (max-width: 650px) {
|
|
.grid-view .item-box {
|
|
width: 100%;
|
|
max-width: 450px;
|
|
}
|
|
.grid-view .item-box > .htk-image {
|
|
min-height: initial;
|
|
}
|
|
}
|