123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- // /**
- // * Copyright © Magento, Inc. All rights reserved.
- // * See COPYING.txt for license details.
- // */
- //
- // Common
- // _____________________________________________
- & when (@media-common = true) {
- .table-wrapper {
- margin-bottom: @indent__base;
- }
- table {
- .lib-table-caption();
- }
- .table {
- &:not(.cart) {
- &:not(.totals) {
- .lib-table-bordered(
- @_table_type: light,
- @_table_border-width: @table__border-width
- );
- tfoot {
- > tr {
- &:first-child {
- th,
- td {
- border-top: @table__border-width @table__border-style @table__border-color;
- padding-top: @indent__base;
- }
- }
- }
- .mark {
- font-weight: @font-weight__regular;
- text-align: right;
- }
- }
- }
- }
- }
- }
- //
- // Mobile
- // _____________________________________________
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
- .table-wrapper {
- .lib-table-overflow();
- position: relative; // To hide unnecessary horizontal scrollbar in Safari
- .table {
- &:not(.cart) {
- &:not(.totals) {
- &:not(.table-comparison) {
- .lib-table-responsive();
- tbody > tr {
- > td:first-child {
- padding-top: @indent__base;
- }
- > td:last-child {
- padding-bottom: @indent__base;
- }
- }
- &.additional-attributes {
- tbody {
- th {
- &:extend(.abs-no-display-s all);
- }
- td {
- &:last-child {
- border: none;
- padding: 0 0 @indent__xs;
- }
- }
- }
- }
- }
- }
- }
- }
- .table {
- &:not(.totals) {
- &:not(.table-comparison) {
- tfoot {
- display: block;
- tr {
- display: block;
- &:extend(.abs-add-clearfix-mobile all);
- &:first-child {
- th,
- td {
- padding-top: @indent__base;
- }
- }
- }
- th {
- box-sizing: border-box;
- float: left;
- padding-left: 0;
- padding-right: 0;
- text-align: left;
- width: 70%;
- }
- td {
- box-sizing: border-box;
- float: left;
- padding-left: 0;
- padding-right: 0;
- text-align: right;
- width: 30%;
- }
- }
- }
- }
- }
- }
- .data-table-definition-list {
- thead {
- display: none;
- }
- tbody th {
- padding-bottom: 0;
- }
- tbody th,
- tbody td {
- display: block;
- padding-left: 0;
- padding-right: 0;
- }
- }
- }
|