This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
_s/sass/shop/_tables.scss

88 lines
865 B
SCSS
Raw Normal View History

2017-08-01 13:21:13 +00:00
table.shop_table_responsive {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
thead {
display: none;
}
tbody {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
th {
display: none;
}
}
tr {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
td {
display: block;
text-align: right;
clear: both;
2020-04-05 20:49:27 +00:00
&::before {
content: attr(data-title) ": ";
2017-08-01 13:21:13 +00:00
float: left;
}
&.product-remove {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
a {
text-align: left;
}
2020-04-05 20:49:27 +00:00
&::before {
2017-08-01 13:21:13 +00:00
display: none;
}
}
&.actions,
&.download-actions {
2020-04-05 20:49:27 +00:00
&::before {
2017-08-01 13:21:13 +00:00
display: none;
}
}
&.download-actions {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
.button {
display: block;
text-align: center;
}
}
}
}
}
@media screen and (min-width: 48em) {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
table.shop_table_responsive {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
thead {
display: table-header-group;
}
tbody {
2020-04-05 20:49:27 +00:00
2017-08-01 13:21:13 +00:00
th {
display: table-cell;
}
}
tr {
2020-04-05 20:49:27 +00:00
th,
td {
2017-08-01 13:21:13 +00:00
text-align: left;
}
td {
display: table-cell;
2020-04-05 20:49:27 +00:00
&::before {
2017-08-01 13:21:13 +00:00
display: none;
}
}
}
}
}