0
1
Fork 0
hedera-web-mindshore/forms/ecomerce/catalog/style.css

397 lines
6.4 KiB
CSS
Raw Normal View History

2022-05-26 06:08:31 +00:00
.catalog {
2022-05-21 21:31:56 +00:00
margin-right: 18em;
}
2022-05-28 19:27:36 +00:00
.title ._subtitle {
font-size: .7rem;
color: #bbb;
}
2015-02-08 15:38:38 +00:00
2015-09-28 09:46:24 +00:00
/* Right panel */
2015-02-08 15:38:38 +00:00
2022-05-26 06:08:31 +00:00
.right-panel {
position: fixed;
2022-05-05 13:54:53 +00:00
top: 4.4em;
2015-07-03 05:49:45 +00:00
bottom: 0;
right: 0;
2022-05-21 21:31:56 +00:00
width: 18em;
2015-12-10 13:48:43 +00:00
overflow: auto;
2022-05-05 13:54:53 +00:00
background-color: #fafafa;
}
2022-05-26 06:08:31 +00:00
.right-panel .basket-info {
2022-05-05 13:54:53 +00:00
background-color: #8cc63f;
2015-12-10 13:48:43 +00:00
color: white;
padding: 1.2em 2em;
2022-05-05 13:54:53 +00:00
border-radius: .5em;
margin: 1em;
text-align: center;
2015-10-14 11:51:43 +00:00
}
2022-05-26 06:08:31 +00:00
.right-panel .basket-info > button {
2022-05-21 21:31:56 +00:00
color: white;
2022-05-26 14:26:20 +00:00
background-color: rgba(0, 0, 0, .1);
margin: 0 auto;
display: block;
2022-05-26 14:26:20 +00:00
margin-top: 10px;
padding: 10px 15px;
}
2022-05-26 06:08:31 +00:00
.right-panel .basket-info > button:hover {
2022-05-21 21:31:56 +00:00
background-color: white;
color: #60872c;
}
2022-05-26 06:08:31 +00:00
.right-panel .basket-info > p {
2015-12-10 13:48:43 +00:00
margin: 0;
padding: .4em 0;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
2022-05-26 06:08:31 +00:00
.right-panel .filter {
2022-05-21 21:31:56 +00:00
margin: 1em;
}
.right-panel .categories,
.right-panel .filters,
2022-05-26 06:08:31 +00:00
.right-panel .order {
2022-05-21 21:31:56 +00:00
margin: 1.5em 0;
}
.right-panel .filters,
2022-05-26 06:08:31 +00:00
.right-panel .order {
display: none;
2015-07-23 15:58:48 +00:00
}
2022-05-26 06:08:31 +00:00
.right-panel .realm-msg {
margin-top: 1em;
}
2022-05-26 06:08:31 +00:00
.right-panel .realm-msg > h5 {
font-weight: normal;
text-align: center;
padding: 2.5em 0;
color: #777;
}
2022-05-26 06:08:31 +00:00
.right-panel h2 {
font-weight: normal;
color: #777;
font-size: 1.1em;
}
2022-05-26 06:08:31 +00:00
.right-panel .realms > div > div {
2019-02-12 16:21:19 +00:00
text-align: center;
}
2022-05-26 06:08:31 +00:00
.right-panel .realms a {
2019-02-12 16:21:19 +00:00
display: inline-block;
2022-05-21 21:31:56 +00:00
width: 25%;
2019-02-12 16:21:19 +00:00
padding: .6em;
2019-02-12 15:40:17 +00:00
box-sizing: border-box;
}
2022-05-26 06:08:31 +00:00
.right-panel .realms a:hover {
2016-10-20 10:44:32 +00:00
background-color: rgba(1, 1, 1, .05);
2019-02-12 15:40:17 +00:00
border-radius: .15em;
}
2022-05-26 06:08:31 +00:00
.right-panel .realms a > img {
display: block;
padding: 0;
2015-07-23 15:58:48 +00:00
width: 100%;
}
2022-05-26 06:08:31 +00:00
.right-panel .filters > button {
margin-top: 1em;
}
2016-05-04 14:36:51 +00:00
/* Items */
2015-07-07 15:27:47 +00:00
2022-05-26 06:08:31 +00:00
.item-box {
2022-05-28 00:37:24 +00:00
display: flex;
box-sizing: border-box;
}
.item-box > htk-image {
flex: none;
}
2022-05-28 00:37:24 +00:00
.item-box > htk-image:hover {
background-color: transparent;
}
2022-05-28 00:37:24 +00:00
.item-box > .item-info {
flex: auto;
2016-05-04 14:36:51 +00:00
position: relative;
2015-07-07 15:27:47 +00:00
}
2022-05-26 06:08:31 +00:00
.item-info .second-category {
font-weight: bold;
color: orange;
}
2022-05-26 06:08:31 +00:00
.item-info .third-category {
font-weight: bold;
color: red;
2015-02-01 03:21:54 +00:00
}
2022-05-26 06:08:31 +00:00
.item-info > h2 {
2016-05-04 14:36:51 +00:00
padding: 0;
2019-04-16 13:54:55 +00:00
margin-bottom: .15em;
font-weight: normal;
2019-03-28 15:33:26 +00:00
font-size: 1em;
text-overflow: ellipsis;
overflow: hidden;
2022-05-30 01:30:33 +00:00
max-height: 3em;
}
2022-05-26 06:08:31 +00:00
.item-info > p {
margin: 0;
padding: 0;
color: #777;
font-size: .8em;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
2022-05-26 06:08:31 +00:00
.item-info .sub-name {
text-transform: uppercase;
2016-05-04 14:36:51 +00:00
padding: 0;
2019-04-16 13:54:55 +00:00
margin-bottom: .2em;
2019-03-28 15:33:26 +00:00
font-size: .9em;
2016-05-04 14:36:51 +00:00
}
2022-05-26 06:08:31 +00:00
.item-info > .htk-button {
margin: -0.3em;
padding: .3em;
}
2022-05-26 06:08:31 +00:00
.item-info > .htk-button > img {
vertical-align: middle;
}
2022-05-28 19:27:36 +00:00
.item-info .item-id {
float: right;
font-size: .8rem;
line-height: 1.8em;
color: #777;
}
2022-05-26 06:08:31 +00:00
.item-info .available-price {
2022-05-28 19:27:36 +00:00
position: absolute;
bottom: 0;
right: 0;
white-space: nowrap;
font-size: .95em;
text-align: right;
align-items: middle;
column-gap: .2em;
display: flex;
}
2022-05-26 06:08:31 +00:00
.item-info .available-price > * {
border-radius: .2em;
2022-05-26 06:08:31 +00:00
padding: .1em .3em;
border: .1em transparent solid;
2022-05-28 00:37:24 +00:00
box-sizing: border-box;
}
2022-05-26 06:08:31 +00:00
.item-info .grouping {
2022-05-28 00:37:24 +00:00
width: 38px;
background-color: #ddd;
}
2022-05-26 06:08:31 +00:00
.item-info .available {
2022-05-28 00:37:24 +00:00
width: 65px;
border-color: #bbb;
color: #777;
}
2022-05-26 06:08:31 +00:00
.item-info .price {
2022-05-28 00:37:24 +00:00
width: 75px;
border-color: #9cbc28;
color: #748c1e;
}
2022-05-26 06:08:31 +00:00
.tags {
font-size: .8em;
display: table;
color: #333;
2016-05-04 14:36:51 +00:00
margin: 0;
width: auto;
border-collapse: collapse;
2016-05-04 14:36:51 +00:00
}
.tags td:first-child {
color: #999;
2019-04-16 13:54:55 +00:00
padding-right: .5em;
}
2022-05-28 00:37:24 +00:00
/* 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;
2022-05-28 15:49:46 +00:00
width: 240px;
2022-05-30 01:30:33 +00:00
height: 410px;
2022-05-28 00:37:24 +00:00
overflow: hidden;
}
.grid-view .item-box:hover {
background-color: #efefef;
}
.grid-view .item-info {
margin: 10px;
}
.grid-view .item-box > .htk-image {
2022-05-28 15:49:46 +00:00
width: 240px;
height: 240px;
2022-05-28 00:37:24 +00:00
}
.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 */
2022-05-26 06:08:31 +00:00
.list-view {
2022-05-28 00:37:24 +00:00
border-radius: .6em;
box-shadow: .05em .05em .2em rgba(0, 0, 0, .1);
overflow: hidden;
background-color: white;
max-width: 544px;
margin: 0 auto;
}
2022-05-26 06:08:31 +00:00
.list-view .item-box {
2022-05-28 00:37:24 +00:00
gap: 10px;
margin: 0;
2022-05-28 00:37:24 +00:00
padding: 10px;
height: 120px;
overflow: visible;
border-bottom: 1px solid #DDD;
}
2022-05-28 00:37:24 +00:00
.list-view .item-box:last-child {
border-bottom: none;
}
2022-05-28 00:37:24 +00:00
.list-view .item-box > .htk-image {
width: 100px;
height: 100px;
2016-05-02 13:05:49 +00:00
border-radius: 50%;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info {
2022-05-28 00:37:24 +00:00
overflow: hidden;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info > h2 {
font-size: 1em;
white-space: nowrap;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info > .color {
display: none;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info > .htk-button {
float: right;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info .tags {
display: block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info .tags > tr {
display: inline-block;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info .tags td {
display: inline-block;
2019-04-16 13:54:55 +00:00
padding-right: .5em;
}
2022-05-26 06:08:31 +00:00
.list-view .item-info .tags td:first-child {
display: none;
}
/* Card */
2022-05-26 06:08:31 +00:00
.card-popup {
overflow: auto;
}
2022-05-26 06:08:31 +00:00
.item-card {
font-size: .9em;
width: 20em;
}
2022-05-26 06:08:31 +00:00
.item-card .top {
padding: 1em;
}
2022-05-26 06:08:31 +00:00
.item-card .item-info {
margin-left: 9em;
height: 8em;
}
2022-05-26 06:08:31 +00:00
.item-card .htk-image {
height: 8em;
width: 8em;
float: left;
border-radius: .3em;
}
2022-05-26 06:08:31 +00:00
.item-card .desc {
clear: both;
margin-top: 1em 0;
font-size: .9em;
}
2022-05-26 06:08:31 +00:00
.item-card .lots-grid {
border-top: 1px solid #DDD;
}
2022-05-26 06:08:31 +00:00
.item-card .lots-grid tr {
height: 3em;
}
2022-05-26 06:08:31 +00:00
.item-card .lots-grid .cell-spin {
2019-04-16 13:54:55 +00:00
max-width: initial;
width: 3em;
}
2022-05-26 06:08:31 +00:00
.item-card .lots-grid .price-kg {
2019-09-16 08:09:41 +00:00
font-size: .8em;
color: #999;
width: 1px;
}
2022-05-26 06:08:31 +00:00
.item-card .lots-grid .cell-text {
2019-04-16 13:54:55 +00:00
max-width: initial;
width: auto;
}
2022-05-26 06:08:31 +00:00
.item-card .lots-grid .cell-button {
2019-04-16 13:54:55 +00:00
max-width: initial;
width: 1em;
}
2022-05-26 06:08:31 +00:00
.item-card .footer {
display: flex;
align-items: center;
justify-content: space-between;
2022-05-21 21:31:56 +00:00
background-color: #1a1a1a;
color: white;
2022-05-26 06:08:31 +00:00
padding: 10px;
}
2022-05-26 06:08:31 +00:00
.item-card .footer > button:hover {
background-color: rgba(255, 255, 255, .1);
}
2022-05-26 06:08:31 +00:00
.item-card .footer > button > .htk-icon {
display: block;
}
/* Mobile */
2022-05-26 06:08:31 +00:00
.catalog-actions > button.menu {
display: none;
}
2022-05-26 06:08:31 +00:00
.catalog-actions > button.menu > .htk-icon {
display: block;
}
2022-05-26 06:08:31 +00:00
@media (max-width: 960px) {
2015-11-19 13:57:23 +00:00
.catalog-actions > button.menu
{
display: block;
}
2015-09-16 16:11:15 +00:00
.right-panel
{
2015-09-16 16:11:15 +00:00
top: 0;
2022-05-21 21:31:56 +00:00
right: -18em;
2015-10-14 11:51:43 +00:00
z-index: 20;
transition: transform 200ms ease-out;
-webkit-transition: transform 200ms ease-out;
2015-09-16 16:11:15 +00:00
}
.right-panel.show
{
2022-05-21 21:31:56 +00:00
transform: translateZ(0) translateX(-18em);
-webkit-transform: translateZ(0) translateX(-18em);
}
.catalog
{
margin-right: 0;
}
}