|
662 | 662 | // ---------------------------------
|
663 | 663 |
|
664 | 664 | table {
|
665 |
| - margin: .5rem 1.75rem; |
| 665 | + margin: .5rem 0; |
666 | 666 | border-spacing: 0;
|
| 667 | + border-radius: 5px; |
| 668 | + border: 1px solid mc('grey', '300'); |
| 669 | + |
| 670 | + @at-root .theme--dark & { |
| 671 | + border-color: mc('grey', '600'); |
| 672 | + } |
| 673 | + |
| 674 | + &.dense { |
| 675 | + td, th { |
| 676 | + font-size: .85rem; |
| 677 | + padding: .5rem; |
| 678 | + } |
| 679 | + } |
667 | 680 |
|
668 | 681 | th {
|
669 | 682 | padding: .75rem;
|
670 | 683 | border-bottom: 2px solid mc('grey', '500');
|
671 | 684 | color: mc('grey', '600');
|
| 685 | + background-color: mc('grey', '100'); |
| 686 | + |
| 687 | + @at-root .theme--dark & { |
| 688 | + background-color: darken(mc('grey', '900'), 8%); |
| 689 | + border-bottom-color: mc('grey', '600'); |
| 690 | + color: mc('grey', '500'); |
| 691 | + } |
| 692 | + |
| 693 | + &:first-child { |
| 694 | + border-top-left-radius: 7px; |
| 695 | + } |
| 696 | + &:last-child { |
| 697 | + border-top-right-radius: 7px; |
| 698 | + } |
672 | 699 | }
|
673 | 700 |
|
674 | 701 | td {
|
|
677 | 704 |
|
678 | 705 | tr {
|
679 | 706 | td {
|
680 |
| - border-bottom: 1px solid mc('grey', '200'); |
| 707 | + border-bottom: 1px solid mc('grey', '300'); |
| 708 | + border-right: 1px solid mc('grey', '100'); |
| 709 | + |
| 710 | + @at-root .theme--dark & { |
| 711 | + border-bottom-color: mc('grey', '700'); |
| 712 | + border-right-color: mc('grey', '800'); |
| 713 | + } |
| 714 | + |
| 715 | + &:nth-child(even) { |
| 716 | + background-color: mc('grey', '50'); |
| 717 | + |
| 718 | + @at-root .theme--dark & { |
| 719 | + background-color: darken(mc('grey', '900'), 4%); |
| 720 | + } |
| 721 | + } |
| 722 | + |
| 723 | + &:last-child { |
| 724 | + border-right: none; |
| 725 | + } |
| 726 | + } |
| 727 | + |
| 728 | + &:nth-child(even) { |
| 729 | + td { |
| 730 | + background-color: mc('grey', '50'); |
| 731 | + |
| 732 | + @at-root .theme--dark & { |
| 733 | + background-color: darken(mc('grey', '800'), 8%); |
| 734 | + } |
| 735 | + |
| 736 | + &:nth-child(even) { |
| 737 | + background-color: mc('grey', '100'); |
| 738 | + |
| 739 | + @at-root .theme--dark & { |
| 740 | + background-color: darken(mc('grey', '800'), 10%); |
| 741 | + } |
| 742 | + } |
| 743 | + } |
| 744 | + } |
| 745 | + |
| 746 | + &:last-child { |
| 747 | + td { |
| 748 | + border-bottom: none; |
| 749 | + |
| 750 | + &:first-child { |
| 751 | + border-bottom-left-radius: 7px; |
| 752 | + } |
| 753 | + &:last-child { |
| 754 | + border-bottom-right-radius: 7px; |
| 755 | + } |
| 756 | + } |
681 | 757 | }
|
682 | 758 | }
|
683 | 759 | }
|
|
699 | 775 | border: 1px solid mc('blue-grey', '100');
|
700 | 776 | box-shadow: inset -1px -1px 0 0 #FFF, inset 1px 0 0 #FFF;
|
701 | 777 | padding: .5rem .75rem;
|
| 778 | + border-radius: 0 !important; |
702 | 779 |
|
703 | 780 | @at-root .theme--dark & {
|
704 | 781 | border-color: mc('grey', '700');
|
|
735 | 812 | }
|
736 | 813 | }
|
737 | 814 |
|
| 815 | + // -> Add horizontal scrollbar when table is too wide |
| 816 | + .table-container { |
| 817 | + width: 100%; |
| 818 | + overflow-x: auto; |
| 819 | + } |
| 820 | + |
738 | 821 | // ---------------------------------
|
739 | 822 | // IMAGES
|
740 | 823 | // ---------------------------------
|
|
0 commit comments