|
716 | 716 | /// } |
717 | 717 | /// } |
718 | 718 | @mixin rmd-utils-dense { |
719 | | - @if mixin-exists(rmd-app-bar-dense-theme) { |
720 | | - @include rmd-app-bar-dense-theme; |
721 | | - } |
722 | | - |
723 | | - @if mixin-exists(rmd-toggle-dense-theme) { |
724 | | - @include rmd-toggle-dense-theme; |
| 719 | + @if mixin-exists(rmd-tooltip-dense-theme) { |
| 720 | + @include rmd-tooltip-dense-theme; |
725 | 721 | } |
726 | 722 |
|
727 | 723 | @if mixin-exists(rmd-icon-dense-theme) { |
728 | 724 | @include rmd-icon-dense-theme; |
729 | 725 | } |
730 | 726 |
|
| 727 | + @if mixin-exists(rmd-app-bar-dense-theme) { |
| 728 | + @include rmd-app-bar-dense-theme; |
| 729 | + } |
| 730 | + |
731 | 731 | @if mixin-exists(rmd-list-dense-theme) { |
732 | 732 | @include rmd-list-dense-theme; |
733 | 733 | } |
|
736 | 736 | @include rmd-list-item-dense-theme; |
737 | 737 | } |
738 | 738 |
|
739 | | - @if mixin-exists(rmd-tooltip-dense-theme) { |
740 | | - @include rmd-tooltip-dense-theme; |
| 739 | + @if mixin-exists(rmd-toggle-dense-theme) { |
| 740 | + @include rmd-toggle-dense-theme; |
741 | 741 | } |
742 | 742 | } |
743 | 743 |
|
|
749 | 749 | @include rmd-utils-base; |
750 | 750 | @include react-md-utils-grid; |
751 | 751 |
|
752 | | - @if mixin-exists(react-md-alert) { |
753 | | - @include react-md-alert; |
| 752 | + // the mixins are added in this specific order to make overriding easier |
| 753 | + @if mixin-exists(react-md-theme) { |
| 754 | + @include react-md-theme; |
754 | 755 | } |
755 | 756 |
|
756 | | - @if mixin-exists(react-md-avatar) { |
757 | | - @include react-md-avatar; |
| 757 | + @if mixin-exists(react-md-typography) { |
| 758 | + @include react-md-typography; |
758 | 759 | } |
759 | 760 |
|
760 | | - @if mixin-exists(react-md-badge) { |
761 | | - @include react-md-badge; |
| 761 | + @if mixin-exists(react-md-transition) { |
| 762 | + @include react-md-transition; |
762 | 763 | } |
763 | 764 |
|
764 | | - @if mixin-exists(react-md-button) { |
765 | | - @include react-md-button; |
| 765 | + @if mixin-exists(react-md-states) { |
| 766 | + @include react-md-states; |
766 | 767 | } |
767 | 768 |
|
768 | | - // has to come after buttons since it overrides some button styles |
769 | | - @if mixin-exists(react-md-app-bar) { |
770 | | - @include react-md-app-bar; |
| 769 | + @if mixin-exists(react-md-tooltip) { |
| 770 | + @include react-md-tooltip; |
771 | 771 | } |
772 | 772 |
|
773 | | - @if mixin-exists(react-md-overlay) { |
774 | | - @include react-md-overlay; |
| 773 | + @if mixin-exists(react-md-divider) { |
| 774 | + @include react-md-divider; |
775 | 775 | } |
776 | 776 |
|
777 | | - // has to come after overlays since it overrides the z-index |
778 | | - @if mixin-exists(react-md-dialog) { |
779 | | - @include react-md-dialog; |
| 777 | + @if mixin-exists(react-md-icon) { |
| 778 | + @include react-md-icon; |
780 | 779 | } |
781 | 780 |
|
782 | | - @if mixin-exists(react-md-card) { |
783 | | - @include react-md-card; |
| 781 | + @if mixin-exists(react-md-avatar) { |
| 782 | + @include react-md-avatar; |
784 | 783 | } |
785 | 784 |
|
786 | | - @if mixin-exists(react-md-chip) { |
787 | | - @include react-md-chip; |
| 785 | + @if mixin-exists(react-md-media) { |
| 786 | + @include react-md-media; |
788 | 787 | } |
789 | 788 |
|
790 | | - @if mixin-exists(react-md-divider) { |
791 | | - @include react-md-divider; |
| 789 | + @if mixin-exists(react-md-link) { |
| 790 | + @include react-md-link; |
792 | 791 | } |
793 | 792 |
|
794 | | - @if mixin-exists(react-md-expansion-panel) { |
795 | | - @include react-md-expansion-panel; |
| 793 | + @if mixin-exists(react-md-overlay) { |
| 794 | + @include react-md-overlay; |
796 | 795 | } |
797 | 796 |
|
798 | | - @if mixin-exists(react-md-form) { |
799 | | - @include react-md-form; |
| 797 | + @if mixin-exists(react-md-progress) { |
| 798 | + @include react-md-progress; |
800 | 799 | } |
801 | 800 |
|
802 | | - @if mixin-exists(react-md-icon) { |
803 | | - @include react-md-icon; |
| 801 | + @if mixin-exists(react-md-button) { |
| 802 | + @include react-md-button; |
804 | 803 | } |
805 | 804 |
|
806 | | - @if mixin-exists(react-md-link) { |
807 | | - @include react-md-link; |
| 805 | + @if mixin-exists(react-md-badge) { |
| 806 | + @include react-md-badge; |
808 | 807 | } |
809 | 808 |
|
810 | | - @if mixin-exists(react-md-list) { |
811 | | - @include react-md-list; |
| 809 | + @if mixin-exists(react-md-chip) { |
| 810 | + @include react-md-chip; |
812 | 811 | } |
813 | 812 |
|
814 | | - @if mixin-exists(react-md-media) { |
815 | | - @include react-md-media; |
| 813 | + @if mixin-exists(react-md-alert) { |
| 814 | + @include react-md-alert; |
816 | 815 | } |
817 | 816 |
|
818 | | - @if mixin-exists(react-md-menu) { |
819 | | - @include react-md-menu; |
| 817 | + @if mixin-exists(react-md-app-bar) { |
| 818 | + @include react-md-app-bar; |
820 | 819 | } |
821 | 820 |
|
822 | | - @if mixin-exists(react-md-progress) { |
823 | | - @include react-md-progress; |
| 821 | + @if mixin-exists(react-md-card) { |
| 822 | + @include react-md-card; |
824 | 823 | } |
825 | 824 |
|
826 | | - @if mixin-exists(react-md-sheet) { |
827 | | - @include react-md-sheet; |
| 825 | + @if mixin-exists(react-md-expansion-panel) { |
| 826 | + @include react-md-expansion-panel; |
828 | 827 | } |
829 | 828 |
|
830 | | - // has to come after sheet |
831 | | - @if mixin-exists(react-md-layout) { |
832 | | - @include react-md-layout; |
| 829 | + @if mixin-exists(react-md-list) { |
| 830 | + @include react-md-list; |
833 | 831 | } |
834 | 832 |
|
835 | | - @if mixin-exists(react-md-states) { |
836 | | - @include react-md-states; |
| 833 | + @if mixin-exists(react-md-dialog) { |
| 834 | + @include react-md-dialog; |
837 | 835 | } |
838 | 836 |
|
839 | | - @if mixin-exists(react-md-table) { |
840 | | - @include react-md-table; |
| 837 | + @if mixin-exists(react-md-menu) { |
| 838 | + @include react-md-menu; |
841 | 839 | } |
842 | 840 |
|
843 | | - @if mixin-exists(react-md-tabs) { |
844 | | - @include react-md-tabs; |
| 841 | + @if mixin-exists(react-md-sheet) { |
| 842 | + @include react-md-sheet; |
845 | 843 | } |
846 | 844 |
|
847 | | - @if mixin-exists(react-md-theme) { |
848 | | - @include react-md-theme; |
| 845 | + @if mixin-exists(react-md-tabs) { |
| 846 | + @include react-md-tabs; |
849 | 847 | } |
850 | 848 |
|
851 | | - @if mixin-exists(react-md-tooltip) { |
852 | | - @include react-md-tooltip; |
| 849 | + @if mixin-exists(react-md-tree) { |
| 850 | + @include react-md-tree; |
853 | 851 | } |
854 | 852 |
|
855 | | - @if mixin-exists(react-md-transition) { |
856 | | - @include react-md-transition; |
| 853 | + @if mixin-exists(react-md-table) { |
| 854 | + @include react-md-table; |
857 | 855 | } |
858 | 856 |
|
859 | | - @if mixin-exists(react-md-tree) { |
860 | | - @include react-md-tree; |
| 857 | + @if mixin-exists(react-md-form) { |
| 858 | + @include react-md-form; |
861 | 859 | } |
862 | 860 |
|
863 | | - @if mixin-exists(react-md-typography) { |
864 | | - @include react-md-typography; |
| 861 | + @if mixin-exists(react-md-layout) { |
| 862 | + @include react-md-layout; |
865 | 863 | } |
866 | 864 |
|
867 | 865 | @if $rmd-utils-auto-dense { |
|
0 commit comments