kmaterialize 2.3.3-1.0.0 → 2.3.3-1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="center">
2
2
  <a href="https://materialize.kevinzarshenas.com" target="_blank">
3
- <img src="https://materializeweb.com/images/materialize.svg" width="200"/>
3
+ <img src="images/materialize.svg" width="200"/>
4
4
  </a>
5
5
  </p>
6
6
 
@@ -15,7 +15,7 @@
15
15
  ## Getting started
16
16
  Read the [getting started guide](https://materialize.kevinzarshenas.com/getting-started.html) for more information on how to use kmaterialize.
17
17
 
18
- - Clone the repo: `git clone https://github.com/materializecss/materialize.git`
18
+ - Clone the repo: `git clone https://github.com/kekefreedog/kmaterialize.git`
19
19
  - Install with [npm](https://www.npmjs.com): `npm install kmaterialize`
20
20
 
21
21
  ## Testing
@@ -28,10 +28,10 @@ The documentation can be found at <https://materialize.kevinzarshenas.com>. To r
28
28
  This is the core project with all the components. To see how they are used we recommend using an example project or go to the documentation.
29
29
 
30
30
  ### Running documentation locally
31
- See [Materialize Docs Repo](https://github.com/materializecss/materialize-docs) to see Materialize in Action.
31
+ kmaterialize doesn't have its own docs site yet. See the upstream [Materialize Docs Repo](https://github.com/materializecss/materialize-docs) for an example of Materialize's components in action.
32
32
 
33
33
  ### Releases
34
- Previous releases are available [here](https://github.com/materializecss/materialize/releases). You can also find the changelog under each release.
34
+ Previous releases are available [here](https://github.com/kekefreedog/kmaterialize/releases). You can also find the changelog under each release.
35
35
 
36
36
  ## Supported Browsers:
37
37
  Materialize is compatible with:
@@ -49,7 +49,7 @@ We use Jasmine as our testing framework and we're trying to write a robust test
49
49
  For quick testing install live-server node package globally and run `npm run demo`
50
50
 
51
51
  ## Contributing
52
- Check out the [CONTRIBUTING document](docs/CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/materializecss/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
52
+ Check out the [CONTRIBUTING document](docs/CONTRIBUTING.md) in the root of the repository to learn how you can contribute.
53
53
 
54
54
  ## Copyright and license
55
55
  Code Copyright 2026 kmaterialize. Code released under the MIT license.
@@ -72,7 +72,13 @@
72
72
  margin-top: -2px;
73
73
  margin-left: 15px;
74
74
  margin-right: 15px;
75
- display: inline-block;
75
+ /* Was inline-block, which overrides .btn's own inline-flex;
76
+ align-items:center and breaks vertical centering of the button's
77
+ text - visually harmless on .btn-large (tall enough that the
78
+ misalignment doesn't stand out) but text nearly clips out the
79
+ bottom on the smaller .btn/.btn-flat/.btn-floating sizes. */
80
+ display: inline-flex;
81
+ align-items: center;
76
82
  }
77
83
 
78
84
  .navbar ul:not(.dropdown-content) > li > a.btn > .material-icons,
@@ -130,7 +136,8 @@
130
136
  .navbar .brand-logo {
131
137
  color: var(--md-sys-color-on-surface);
132
138
  font-size: var(--appbar-title-font-size);
133
- display: inline-block;
139
+ display: inline-flex;
140
+ align-items: center;
134
141
  padding: 0;
135
142
  }
136
143
 
@@ -151,7 +158,13 @@
151
158
  .navbar .brand-logo i.material-symbols-outlined,
152
159
  .navbar .brand-logo i.material-symbols-rounded,
153
160
  .navbar .brand-logo i.material-symbols-sharp {
154
- float: left;
161
+ /* Was float:left, paired with an explicit height/line-height (from
162
+ the general .navbar i rule) sized to the whole navbar row height,
163
+ inside a brand-logo that's only ever as tall as its own text.
164
+ Floating a block that tall out of a small inline-block parent
165
+ with nothing to clear it let it render outside/clipped by the
166
+ navbar row - invisible in practice. brand-logo is flex now, so
167
+ this just needs to be a normal flex item. */
155
168
  margin-right: 15px;
156
169
  }
157
170
 
@@ -23,6 +23,19 @@
23
23
  );
24
24
  }
25
25
 
26
+ // .btn/.btn-large/.btn-small carry no color of their own - only the
27
+ // .filled/.tonal/.elevated/.outlined/.text modifiers do - so a bare
28
+ // .btn with none of those had no background or text color at all,
29
+ // same "invisible button" bug as .btn.text and .btn.elevated before
30
+ // they were fixed. Default to filled, same as v1's plain .btn always
31
+ // being a real visible button. Modifier classes still win (two
32
+ // classes beats one on specificity), and .btn-floating/.btn-flat
33
+ // already have their own complete color rules elsewhere so are
34
+ // deliberately excluded here.
35
+ .btn, .btn-large, .btn-small {
36
+ @include btn-filled;
37
+ }
38
+
26
39
  // Icon
27
40
  .btn.icon-left, .btn.icon-right {
28
41
  position: relative;
@@ -2,12 +2,14 @@
2
2
  @use '../../sass/mixins.module.scss' as *;
3
3
 
4
4
  .card-panel {
5
+ --background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-surface-tint) 17%);
6
+
5
7
  transition: box-shadow .25s;
6
8
  padding: 24px;
7
9
  margin: $element-top-margin 0 $element-bottom-margin 0;
8
10
  border-radius: 12px;
9
11
  @extend .z-depth-1;
10
- background-color: var(--md-sys-color-surface);
12
+ background-color: var(--background-color);
11
13
  }
12
14
 
13
15
  .card {
@@ -83,7 +85,7 @@
83
85
  max-width: 50%;
84
86
 
85
87
  img {
86
- border-radius: 2px 0 0 2px;
88
+ border-radius: 12px 0 0 12px;
87
89
  max-width: 100%;
88
90
  width: auto;
89
91
  }
@@ -119,7 +121,7 @@
119
121
  // Image background for content
120
122
  img {
121
123
  display: block;
122
- border-radius: 2px 2px 0 0;
124
+ border-radius: 12px 12px 0 0;
123
125
  position: relative;
124
126
  left: 0;
125
127
  right: 0;
@@ -153,7 +155,7 @@
153
155
 
154
156
  .card-content {
155
157
  padding: 24px;
156
- border-radius: 0 0 2px 2px;
158
+ border-radius: 0 0 12px 12px;
157
159
 
158
160
  p {
159
161
  margin: 0;
@@ -178,7 +180,7 @@
178
180
  padding: 0 1.6rem;
179
181
 
180
182
  &:last-child {
181
- border-radius: 0 0 2px 2px;
183
+ border-radius: 0 0 12px 12px;
182
184
  }
183
185
  // Replaced card links with buttons (Accessibility, @see https://github.com/materializecss/materialize/issues/565)
184
186
  a {
@@ -4,6 +4,7 @@
4
4
  .collapsible {
5
5
  padding-left: 0;
6
6
  list-style-type: none;
7
+ background-color: var(--md-sys-color-surface);
7
8
  border-top: 1px solid var(--md-sys-color-outline-variant);
8
9
  border-right: 1px solid var(--md-sys-color-outline-variant);
9
10
  border-left: 1px solid var(--md-sys-color-outline-variant);
@@ -15,7 +15,9 @@
15
15
  margin: 0;
16
16
  display: none;
17
17
  min-width: 100px;
18
+ border-radius: 12px;
18
19
  overflow-y: auto;
20
+ overflow-x: hidden;
19
21
  opacity: 0;
20
22
  position: absolute;
21
23
  left: 0;
@@ -3,6 +3,7 @@
3
3
  .collection {
4
4
  padding-left: 0;
5
5
  list-style-type: none;
6
+ background-color: var(--md-sys-color-surface);
6
7
  margin: $element-top-margin 0 $element-bottom-margin 0;
7
8
  border: 1px solid var(--md-sys-color-outline-variant);
8
9
  border-radius: 2px;
@@ -30,6 +31,9 @@
30
31
  height: 42px;
31
32
  overflow: hidden;
32
33
  left: 15px;
34
+ top: 21px; // vertically center within the 84px min-height row - without
35
+ // this, absolute's default "static position" fallback puts
36
+ // an <img> and an <i> icon glyph at different heights
33
37
  display: inline-block;
34
38
  vertical-align: middle;
35
39
  }
@@ -50,7 +50,7 @@ textarea.materialize-textarea {
50
50
 
51
51
  // Default
52
52
 
53
- input, textarea {
53
+ input:not([type=checkbox]):not([type=radio]), textarea {
54
54
  box-sizing: border-box; /* https://stackoverflow.com/questions/1377719/padding-within-inputs-breaks-width-100*/
55
55
  padding: 0 16px;
56
56
  padding-top: 20px;
@@ -180,7 +180,7 @@ textarea.materialize-textarea {
180
180
 
181
181
  &.outlined {
182
182
 
183
- input, textarea {
183
+ input:not([type=checkbox]):not([type=radio]), textarea {
184
184
  padding-top: 0;
185
185
  background-color: transparent; //(--md-sys-color-background);
186
186
  border: 1px solid var(--md-sys-color-on-surface-variant);
@@ -225,7 +225,7 @@ textarea.materialize-textarea {
225
225
  // border/label/text below should pick up the error color.
226
226
  background-color: transparent;
227
227
 
228
- input, textarea {
228
+ input:not([type=checkbox]):not([type=radio]), textarea {
229
229
  border-color: var(--md-sys-color-error);
230
230
  }
231
231
  input:focus:not([readonly]), textarea:focus:not([readonly]) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v2.3.3-1.0.0 (https://materializeweb.com)
2
+ * Materialize v2.3.3-1.0.10 (https://materializeweb.com)
3
3
  * Copyright 2014-2026 Materialize
4
4
  * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
5
5
  */