A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/2922afa below:

fix the repeated generated css theme classes if there is multipl… · vuematerial/vue-material@2922afa · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+21

-4

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+21

-4

lines changed Original file line number Diff line number Diff line change

@@ -1,3 +1,4 @@

1 +

$md-theme-name: 'all';

1 2

@import "../components/MdApp/theme";

2 3

@import "../components/MdAutocomplete/theme";

3 4

@import "../components/MdAvatar/theme";

Original file line number Diff line number Diff line change

@@ -52,6 +52,7 @@

52 52

}

53 53 54 54

$md-themes: $theme !global;

55 +

$md-theme-name: $name !global;

55 56 56 57

@include md-base-theme;

57 58

}

@@ -88,8 +89,10 @@

88 89

$md-theme-palette: map-merge($md-theme-palette, $palette) !global;

89 90

$md-current-theme: $theme !global;

90 91 91 -

&.md-theme-#{$theme} {

92 -

@content;

92 +

@if( $theme == $md-theme-name or $md-theme-name == 'all' ) {

93 +

&.md-theme-#{$theme} {

94 +

@content;

95 +

}

93 96

}

94 97

}

95 98

}

@@ -112,8 +115,10 @@

112 115

$md-theme-palette: map-merge($md-theme-palette, $palette) !global;

113 116

$md-current-theme: $theme !global;

114 117 115 -

.md-theme-#{$theme} & {

116 -

@content;

118 +

@if( $theme == $md-theme-name or $md-theme-name == 'all' ) {

119 +

.md-theme-#{$theme} & {

120 +

@content;

121 +

}

117 122

}

118 123

}

119 124

}

Original file line number Diff line number Diff line change

@@ -50,6 +50,17 @@ $md-themes: ();

50 50

$md-current-theme: null;

51 51 52 52 53 +

/**

54 +

* Store the newly registered theme name for comparison, used for checking just called md-register-theme's theme name

55 +

* ---

56 +

* @access private

57 +

* @type string

58 +

* @group themes

59 +

*/

60 + 61 +

$md-theme-name: null;

62 + 63 + 53 64

/**

54 65

* The color contrast values

55 66

* ---

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4