kmaterialize 2.0.0 → 2.3.3-1.0.0

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.
Files changed (150) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +55 -91
  3. package/components/appbar/_navbar.old.scss +223 -0
  4. package/components/appbar/appbar.css +235 -0
  5. package/components/appbar/appbar.mjs +54 -0
  6. package/components/appbar/appbar.test.mjs +9 -0
  7. package/components/atomic/atomic.mjs +19 -0
  8. package/components/atomic/component.mjs +67 -0
  9. package/components/badge/_badges.scss +75 -0
  10. package/components/badge/badge.mjs +11 -0
  11. package/components/breadcrumb/_breadcrumb.scss +27 -0
  12. package/components/button/_buttons.scss +352 -0
  13. package/components/button/button.mjs +11 -0
  14. package/components/button/buttons.stories.ts +150 -0
  15. package/components/button/buttons.ts +282 -0
  16. package/components/button/examples.iso.js +18 -0
  17. package/components/button/fabSpec.js +65 -0
  18. package/components/button/test-button.mjs +16 -0
  19. package/components/card/_cards.scss +229 -0
  20. package/components/card/card.mjs +10 -0
  21. package/components/card/cards.ts +185 -0
  22. package/components/card/cardsSpec.js +269 -0
  23. package/components/carousel/_carousel.scss +93 -0
  24. package/components/carousel/_slider.scss +119 -0
  25. package/components/carousel/carousel.ts +693 -0
  26. package/components/carousel/carouselSpec.js +61 -0
  27. package/components/carousel/slider.ts +431 -0
  28. package/components/carousel/sliderSpec.js +99 -0
  29. package/components/checkbox/_checkboxes.scss +281 -0
  30. package/components/checkbox/checkbox.mdx +24 -0
  31. package/components/checkbox/checkbox.stories.ts +120 -0
  32. package/components/chip/chip.mjs +37 -0
  33. package/components/chip/chip.test.mjs +10 -0
  34. package/components/chip/chips.css +126 -0
  35. package/components/chip/chips.mdx +33 -0
  36. package/components/chip/chips.ts +440 -0
  37. package/components/chip/chipsSpec.js +165 -0
  38. package/components/chip/readme.md +323 -0
  39. package/components/collapsible/_collapsible.scss +82 -0
  40. package/components/collapsible/collapsible.ts +230 -0
  41. package/components/collapsible/collapsibleSpec.js +240 -0
  42. package/components/datepicker/_datepicker.scss +268 -0
  43. package/components/datepicker/datepicker.ts +1450 -0
  44. package/components/datepicker/datepickerSpec.js +162 -0
  45. package/components/dialog/_materialbox.scss +42 -0
  46. package/components/dialog/_modal.scss +79 -0
  47. package/components/dialog/materialbox.ts +446 -0
  48. package/components/dialog/materialboxSpec.js +37 -0
  49. package/components/dialog/modal.ts +111 -0
  50. package/components/dialog/modalSpec.js +83 -0
  51. package/components/dialog/readme.md +5 -0
  52. package/components/divider/readme.md +15 -0
  53. package/components/dropdown/_dropdown.scss +83 -0
  54. package/components/dropdown/dropdown.ts +653 -0
  55. package/components/dropdown/dropdownSpec.js +108 -0
  56. package/components/list/_collection.scss +114 -0
  57. package/components/list/_list.scss +6 -0
  58. package/components/list/list.mjs +58 -0
  59. package/components/list/list.test.mjs +16 -0
  60. package/components/loading/loading.mjs +26 -0
  61. package/components/loading/loading.test.mjs +10 -0
  62. package/components/navigation-bar/_old +582 -0
  63. package/components/navigation-bar/navigation-bar.mdx +20 -0
  64. package/components/navigation-bar/navigation-bar.stories.ts +39 -0
  65. package/components/navigation-drawer/_sidenav.scss +247 -0
  66. package/components/navigation-drawer/sidenav.ts +546 -0
  67. package/components/navigation-drawer/sidenavSpec.js +124 -0
  68. package/components/pagination/_pagination.scss +47 -0
  69. package/components/progress/_preloader.scss +416 -0
  70. package/components/radio-button/_radio-buttons.scss +112 -0
  71. package/components/radio-button/radio-buttons.mdx +28 -0
  72. package/components/radio-button/radio-buttons.stories.ts +51 -0
  73. package/components/search/autocomplete.ts +620 -0
  74. package/components/search/autocompleteSpec.js +321 -0
  75. package/components/slider/_range.scss +157 -0
  76. package/components/slider/range.ts +216 -0
  77. package/components/snackbar/_toast.scss +68 -0
  78. package/components/snackbar/toastSpec.js +132 -0
  79. package/components/snackbar/toasts.ts +312 -0
  80. package/components/switch/_switches.scss +121 -0
  81. package/components/tabs/_tabs.scss +171 -0
  82. package/components/tabs/tabs.mjs +31 -0
  83. package/components/tabs/tabs.ts +358 -0
  84. package/components/tabs/tabsSpec.js +180 -0
  85. package/components/textfield/_file-input.scss +41 -0
  86. package/components/textfield/_input-fields.scss +368 -0
  87. package/components/textfield/_select.scss +104 -0
  88. package/components/textfield/formfields.css +311 -0
  89. package/components/textfield/forms.ts +182 -0
  90. package/components/textfield/formsSpec.js +142 -0
  91. package/components/textfield/select.ts +472 -0
  92. package/components/textfield/selectSpec.js +390 -0
  93. package/components/textfield/textfield.mjs +29 -0
  94. package/components/textfield/textfield.test.mjs +10 -0
  95. package/components/timepicker/_timepicker.scss +362 -0
  96. package/components/timepicker/timepicker.ts +905 -0
  97. package/components/tooltip/_tooltip.scss +40 -0
  98. package/components/tooltip/tooltip.ts +380 -0
  99. package/components/tooltip/tooltipSpec.js +145 -0
  100. package/dist/css/materialize.colors.min.css +6 -0
  101. package/dist/css/materialize.css +7578 -6326
  102. package/dist/css/materialize.min.css +6 -13
  103. package/dist/css/materialize.min.css.map +1 -0
  104. package/dist/js/materialize.cjs.js +8410 -0
  105. package/dist/js/materialize.d.ts +2625 -0
  106. package/dist/js/materialize.js +8415 -12374
  107. package/dist/js/materialize.min.js +6 -6
  108. package/dist/js/materialize.mjs +8382 -0
  109. package/package.json +82 -47
  110. package/sass/_colors.scss +417 -0
  111. package/sass/_global.scss +490 -0
  112. package/sass/_grid.scss +172 -0
  113. package/sass/_table_of_contents.scss +28 -0
  114. package/sass/_tapTarget.scss +102 -0
  115. package/sass/_typography.scss +58 -0
  116. package/sass/_variables.scss +56 -0
  117. package/sass/materialize.scss +51 -0
  118. package/sass/mixins.module.scss +168 -0
  119. package/extras/noUiSlider/nouislider.css +0 -406
  120. package/extras/noUiSlider/nouislider.js +0 -2147
  121. package/extras/noUiSlider/nouislider.min.js +0 -1
  122. package/js/anime.min.js +0 -34
  123. package/js/autocomplete.js +0 -448
  124. package/js/buttons.js +0 -354
  125. package/js/cards.js +0 -40
  126. package/js/carousel.js +0 -717
  127. package/js/cash.js +0 -960
  128. package/js/characterCounter.js +0 -136
  129. package/js/chips.js +0 -481
  130. package/js/collapsible.js +0 -275
  131. package/js/component.js +0 -44
  132. package/js/datepicker.js +0 -975
  133. package/js/dropdown.js +0 -635
  134. package/js/forms.js +0 -275
  135. package/js/global.js +0 -444
  136. package/js/materialbox.js +0 -453
  137. package/js/modal.js +0 -382
  138. package/js/parallax.js +0 -138
  139. package/js/pushpin.js +0 -148
  140. package/js/range.js +0 -263
  141. package/js/scrollspy.js +0 -295
  142. package/js/select.js +0 -450
  143. package/js/sidenav.js +0 -580
  144. package/js/slider.js +0 -359
  145. package/js/tabs.js +0 -402
  146. package/js/tapTarget.js +0 -314
  147. package/js/timepicker.js +0 -647
  148. package/js/toasts.js +0 -310
  149. package/js/tooltip.js +0 -303
  150. package/js/waves.js +0 -335
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014-2019 Materialize
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2026 Materialize
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,91 +1,55 @@
1
- <p align="center">
2
- <a href="http://materializecss.com/">
3
- <img src="http://materializecss.com/res/materialize.svg" width="150">
4
- </a>
5
- </p>
6
-
7
- <h3 align="center">MaterializeCSS</h3>
8
-
9
- <p align="center">
10
- Materialize, a CSS Framework based on material design.
11
- <br>
12
- <a href="http://materializecss.com/"><strong>-- Browse the docs --</strong></a>
13
- <br>
14
- <br>
15
- <a href="https://travis-ci.com/Dogfalo/materialize">
16
- <img src="https://travis-ci.com/Dogfalo/materialize.svg?branch=master" alt="Travis CI badge">
17
- </a>
18
- <a href="https://badge.fury.io/js/materialize-css">
19
- <img src="https://badge.fury.io/js/materialize-css.svg" alt="npm version badge">
20
- </a>
21
- <a href="https://cdnjs.com/libraries/materialize">
22
- <img src="https://img.shields.io/cdnjs/v/materialize.svg" alt="CDNJS version badge">
23
- </a>
24
- <a href="https://david-dm.org/Dogfalo/materialize">
25
- <img src="https://david-dm.org/Dogfalo/materialize/status.svg" alt="dependencies Status badge">
26
- </a>
27
- <a href="https://david-dm.org/Dogfalo/materialize#info=devDependencies">
28
- <img src="https://david-dm.org/Dogfalo/materialize/dev-status.svg" alt="devDependency Status badge">
29
- </a>
30
- <a href="https://gitter.im/Dogfalo/materialize">
31
- <img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter badge">
32
- </a>
33
- </p>
34
-
35
- ## Table of Contents
36
- - [Quickstart](#quickstart)
37
- - [Documentation](#documentation)
38
- - [Supported Browsers](#supported-browsers)
39
- - [Changelog](#changelog)
40
- - [Testing](#testing)
41
- - [Contributing](#contributing)
42
- - [Copyright and license](#copyright-and-license)
43
-
44
- ## Quickstart:
45
- Read the [getting started guide](http://materializecss.com/getting-started.html) for more information on how to use materialize.
46
-
47
- - [Download the latest release](https://github.com/Dogfalo/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/Dogfalo/materialize/releases/))
48
- - Clone the repo: `git clone https://github.com/Dogfalo/materialize.git` (Beta: `git clone -b v1-dev https://github.com/Dogfalo/materialize.git`)
49
- - Include the files via [cdnjs](https://cdnjs.com/libraries/materialize). More [here](http://materializecss.com/getting-started.html). ([Beta](https://cdnjs.com/libraries/materialize/1.0.0-beta))
50
- - Install with [npm](https://www.npmjs.com): `npm install materialize-css` (Beta: `npm install materialize-css@next`)
51
- - Install with [Bower](https://bower.io): `bower install materialize` ([DEPRECATED](https://bower.io/blog/2017/how-to-migrate-away-from-bower/))
52
- - Install with [Atmosphere](https://atmospherejs.com): `meteor add materialize:materialize` (Beta: `meteor add materialize:materialize@=1.0.0-beta`)
53
-
54
- ## Documentation
55
- The documentation can be found at <http://materializecss.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org/en/) installed on your computer.
56
-
57
- ### Running documentation locally
58
- Run these commands to set up the documentation:
59
-
60
- ```bash
61
- git clone https://github.com/Dogfalo/materialize
62
- cd materialize
63
- npm install
64
- ```
65
-
66
- Then run `grunt monitor` to compile the documentation. When it finishes, open a new browser window and navigate to `localhost:8000`. We use [BrowserSync](https://www.browsersync.io/) to display the documentation.
67
-
68
- ### Documentation for previous releases
69
- Previous releases and their documentation are available for [download](https://github.com/Dogfalo/materialize/releases).
70
-
71
- ## Supported Browsers:
72
- Materialize is compatible with:
73
-
74
- - Chrome 35+
75
- - Firefox 31+
76
- - Safari 9+
77
- - Opera
78
- - Edge
79
- - IE 11+
80
-
81
- ## Changelog
82
- For changelogs, check out [the Releases section of materialize](https://github.com/Dogfalo/materialize/releases) or the [CHANGELOG.md](CHANGELOG.md).
83
-
84
- ## Testing
85
- We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](CONTRIBUTING.md#jasmine-testing-guide).
86
-
87
- ## Contributing
88
- Check out the [CONTRIBUTING document](CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/Dogfalo/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
89
-
90
- ## Copyright and license
91
- Code Copyright 2018 Materialize. Code released under the MIT license.
1
+ <p align="center">
2
+ <a href="https://materialize.kevinzarshenas.com" target="_blank">
3
+ <img src="https://materializeweb.com/images/materialize.svg" width="200"/>
4
+ </a>
5
+ </p>
6
+
7
+ <h3 align="center">kmaterialize</h3>
8
+
9
+ <p align="center">
10
+ kmaterialize, a CSS Framework based on Material Design.
11
+ <br>
12
+ <a target="_blank" href="https://materialize.kevinzarshenas.com"><strong>[ Browse the docs ]</strong></a>
13
+ </p>
14
+
15
+ ## Getting started
16
+ Read the [getting started guide](https://materialize.kevinzarshenas.com/getting-started.html) for more information on how to use kmaterialize.
17
+
18
+ - Clone the repo: `git clone https://github.com/materializecss/materialize.git`
19
+ - Install with [npm](https://www.npmjs.com): `npm install kmaterialize`
20
+
21
+ ## Testing
22
+ To run tests locally you first have to build the files and then run the tests. This can be done with the command `npm test`;
23
+ To get more info and debug information you can do the following:
24
+ run `npx jasmine-browser-runner` then go to the url via browser `http://localhost:8888`. The tests will then run and show detailed feedback.
25
+
26
+ ## Development
27
+ The documentation can be found at <https://materialize.kevinzarshenas.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org) installed on your computer.
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
+
30
+ ### Running documentation locally
31
+ See [Materialize Docs Repo](https://github.com/materializecss/materialize-docs) to see Materialize in Action.
32
+
33
+ ### Releases
34
+ Previous releases are available [here](https://github.com/materializecss/materialize/releases). You can also find the changelog under each release.
35
+
36
+ ## Supported Browsers:
37
+ Materialize is compatible with:
38
+
39
+ - Chrome 35+
40
+ - Firefox 31+
41
+ - Safari 9+
42
+ - Opera
43
+ - Edge
44
+
45
+ ## Testing
46
+ We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](docs/CONTRIBUTING.md#jasmine-testing-guide).
47
+
48
+ ## Quick Testing and Development
49
+ For quick testing install live-server node package globally and run `npm run demo`
50
+
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.
53
+
54
+ ## Copyright and license
55
+ Code Copyright 2026 kmaterialize. Code released under the MIT license.
@@ -0,0 +1,223 @@
1
+ /* @use '../../sass/variables' as *;
2
+ @use '../../sass/global' as *;
3
+
4
+ :root {
5
+ --navbar-height: 64px;
6
+ --navbar-height-mobile: 56px; // todo: do not change
7
+ --appbar-title-font-size: 24px;
8
+ }
9
+
10
+ .nav-wrapper {
11
+ height: 100%;
12
+ background-color: var(--md-sys-color-surface);
13
+ padding-left: 4px;
14
+ padding-right: 4px;
15
+ display: flex;
16
+ align-items: center;
17
+ }
18
+
19
+ .navbar {
20
+ color: var(--md-sys-color-on-surface);
21
+ @extend .z-depth-1;
22
+ height: var(--navbar-height-mobile);
23
+
24
+ &.nav-extended {
25
+ height: auto;
26
+ .nav-wrapper {
27
+ min-height: var(--navbar-height-mobile);
28
+ height: auto;
29
+ }
30
+ .nav-content {
31
+ position: relative;
32
+ line-height: normal;
33
+ }
34
+ }
35
+
36
+ // Navbar Links
37
+ ul:not(.dropdown-content) {
38
+ list-style-type: none;
39
+ margin: 0;
40
+ display: flex;
41
+ align-items: center;
42
+ gap: 1em;
43
+
44
+ & > li {
45
+ transition: background-color 0.3s;
46
+ padding: 0;
47
+
48
+ & > a {
49
+ transition: background-color 0.3s;
50
+ color: var(--md-sys-color-on-surface);
51
+ display: block;
52
+ cursor: pointer;
53
+
54
+
55
+ &.active {
56
+ //background-color: var(--md-sys-color-primary-container-dark);
57
+ }
58
+ &:hover:not(.active) {
59
+ // background-color: var(--md-sys-color-on-primary-dark);
60
+ }
61
+
62
+ &.btn,
63
+ &.btn-large,
64
+ &.btn-flat,
65
+ &.btn-floating {
66
+ margin-top: -2px;
67
+ margin-left: 15px;
68
+ margin-right: 15px;
69
+ display: inline-block;
70
+
71
+ & > .material-icons,
72
+ & > .material-symbols-outlined,
73
+ & > .material-symbols-rounded,
74
+ & > .material-symbols-sharp {
75
+ height: inherit;
76
+ line-height: inherit;
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ &.left {
83
+ float: left;
84
+ }
85
+ }
86
+
87
+ a {
88
+ color: var(--md-sys-color-on-primary);
89
+ }
90
+
91
+ i,
92
+ [class^='mdi-'],
93
+ [class*='mdi-'],
94
+ i.material-icons,
95
+ i.material-symbols-outlined,
96
+ i.material-symbols-rounded,
97
+ i.material-symbols-sharp {
98
+ display: block;
99
+ font-size: 24px;
100
+ height: var(--navbar-height-mobile);
101
+ line-height: var(--navbar-height-mobile);
102
+ }
103
+
104
+
105
+ // Collapse button
106
+ .sidenav-trigger {
107
+ float: left;
108
+ position: relative;
109
+ z-index: 1;
110
+ height: var(--navbar-height-mobile);
111
+ margin: 0 18px;
112
+
113
+ i {
114
+ height: var(--navbar-height-mobile);
115
+ line-height: var(--navbar-height-mobile);
116
+ }
117
+ }
118
+
119
+ // Logo
120
+ .brand-logo {
121
+ color: var(--md-sys-color-on-surface);
122
+ font-size: var(--appbar-title-font-size);
123
+ display: inline-block;
124
+ padding: 0;
125
+
126
+ &.center {
127
+ left: 50%;
128
+ transform: translateX(-50%);
129
+ }
130
+
131
+ &.right {
132
+ right: 0.5rem;
133
+ padding: 0;
134
+ }
135
+
136
+ i,
137
+ [class^='mdi-'],
138
+ [class*='mdi-'],
139
+ i.material-icons,
140
+ i.material-symbols-outlined,
141
+ i.material-symbols-rounded,
142
+ i.material-symbols-sharp {
143
+ float: left;
144
+ margin-right: 15px;
145
+ }
146
+ }
147
+
148
+ // Title
149
+ .nav-title {
150
+ display: inline-block;
151
+ font-size: 32px;
152
+ padding: 28px 0;
153
+ }
154
+
155
+ // Navbar Search Form
156
+ form {
157
+ height: 100%;
158
+ }
159
+ .input-field {
160
+ margin: 0;
161
+ height: 100%;
162
+
163
+ input[type='search'] {
164
+ height: 100%;
165
+ font-size: 1.2rem;
166
+ border: none;
167
+ padding-left: 2rem;
168
+ color: var(--md-sys-color-on-primary);
169
+
170
+ &:focus,
171
+ &[type='text']:valid,
172
+ &[type='password']:valid,
173
+ &[type='email']:valid,
174
+ &[type='url']:valid,
175
+ &[type='date']:valid {
176
+ border: none;
177
+ box-shadow: none;
178
+ }
179
+ }
180
+
181
+ label {
182
+ top: 0;
183
+ left: 0;
184
+
185
+ i {
186
+ color: var(--font-on-primary-color-medium);
187
+ transition: color 0.3s;
188
+ }
189
+
190
+ &.active i {
191
+ color: var(--md-sys-color-on-primary);
192
+ }
193
+ }
194
+ }
195
+ }
196
+
197
+ // Fixed Navbar
198
+ .navbar-fixed {
199
+ position: relative;
200
+ height: var(--navbar-height-mobile);
201
+ z-index: 997;
202
+
203
+ .navbar {
204
+ position: fixed;
205
+ right: 0;
206
+ }
207
+ }
208
+
209
+ @media #{$medium-and-up} {
210
+ .nav.nav-extended .nav-wrapper {
211
+ min-height: var(--navbar-height-mobile);
212
+ }
213
+ .nav,
214
+ .navbar .nav-wrapper i,
215
+ nav a.sidenav-trigger,
216
+ .navbar a.sidenav-trigger i {
217
+ height: var(--navbar-height);
218
+ line-height: var(--navbar-height);
219
+ }
220
+ .navbar-fixed {
221
+ height: var(--navbar-height);
222
+ }
223
+ } */
@@ -0,0 +1,235 @@
1
+ :root {
2
+ --navbar-height: 64px;
3
+ --navbar-height-mobile: 56px;
4
+ --appbar-title-font-size: 24px;
5
+ }
6
+
7
+ /* :where() keeps this whole rule at zero specificity, so a color utility
8
+ class (.primary, .secondary, .surface, etc.) placed on the same element
9
+ always wins over this base/fallback styling, no matter which rule comes
10
+ later in the stylesheet. Without it, "background-color" here tied on
11
+ specificity with ".primary" and (being later in source order) silently
12
+ overrode the intended navbar color whenever both classes were present. */
13
+ :where(.nav-wrapper) {
14
+ height: 100%;
15
+ background-color: var(--md-sys-color-surface);
16
+ padding-left: 4px;
17
+ padding-right: 4px;
18
+ display: flex;
19
+ align-items: center;
20
+ }
21
+
22
+ .navbar {
23
+ color: var(--md-sys-color-on-primary);
24
+ background-color: var(--md-sys-color-secondary-container);
25
+ width: 100%;
26
+ height: var(--navbar-height-mobile);
27
+ line-height: var(--navbar-height-mobile);
28
+ }
29
+
30
+ .navbar.nav-extended {
31
+ height: auto;
32
+ }
33
+
34
+ .navbar.nav-extended .nav-wrapper {
35
+ min-height: var(--navbar-height-mobile);
36
+ height: auto;
37
+ }
38
+
39
+ .navbar.nav-extended .nav-content {
40
+ position: relative;
41
+ line-height: normal;
42
+ }
43
+
44
+ .navbar ul:not(.dropdown-content) {
45
+ list-style-type: none;
46
+ margin: 0;
47
+ display: flex;
48
+ align-items: center;
49
+ gap: 1em;
50
+ }
51
+
52
+ .navbar ul:not(.dropdown-content).left {
53
+ float: left;
54
+ }
55
+
56
+ .navbar ul:not(.dropdown-content) > li {
57
+ transition: background-color 0.3s;
58
+ padding: 0;
59
+ }
60
+
61
+ .navbar ul:not(.dropdown-content) > li > a {
62
+ transition: background-color 0.3s;
63
+ color: var(--md-sys-color-on-surface);
64
+ display: block;
65
+ cursor: pointer;
66
+ }
67
+
68
+ .navbar ul:not(.dropdown-content) > li > a.btn,
69
+ .navbar ul:not(.dropdown-content) > li > a.btn-large,
70
+ .navbar ul:not(.dropdown-content) > li > a.btn-flat,
71
+ .navbar ul:not(.dropdown-content) > li > a.btn-floating {
72
+ margin-top: -2px;
73
+ margin-left: 15px;
74
+ margin-right: 15px;
75
+ display: inline-block;
76
+ }
77
+
78
+ .navbar ul:not(.dropdown-content) > li > a.btn > .material-icons,
79
+ .navbar ul:not(.dropdown-content) > li > a.btn-large > .material-icons,
80
+ .navbar ul:not(.dropdown-content) > li > a.btn-flat > .material-icons,
81
+ .navbar ul:not(.dropdown-content) > li > a.btn-floating > .material-icons,
82
+ .navbar ul:not(.dropdown-content) > li > a.btn > .material-symbols-outlined,
83
+ .navbar ul:not(.dropdown-content) > li > a.btn-large > .material-symbols-outlined,
84
+ .navbar ul:not(.dropdown-content) > li > a.btn-flat > .material-symbols-outlined,
85
+ .navbar ul:not(.dropdown-content) > li > a.btn-floating > .material-symbols-outlined,
86
+ .navbar ul:not(.dropdown-content) > li > a.btn > .material-symbols-rounded,
87
+ .navbar ul:not(.dropdown-content) > li > a.btn-large > .material-symbols-rounded,
88
+ .navbar ul:not(.dropdown-content) > li > a.btn-flat > .material-symbols-rounded,
89
+ .navbar ul:not(.dropdown-content) > li > a.btn-floating > .material-symbols-rounded,
90
+ .navbar ul:not(.dropdown-content) > li > a.btn > .material-symbols-sharp,
91
+ .navbar ul:not(.dropdown-content) > li > a.btn-large > .material-symbols-sharp,
92
+ .navbar ul:not(.dropdown-content) > li > a.btn-flat > .material-symbols-sharp,
93
+ .navbar ul:not(.dropdown-content) > li > a.btn-floating > .material-symbols-sharp {
94
+ height: inherit;
95
+ line-height: inherit;
96
+ }
97
+
98
+ .navbar a {
99
+ color: var(--md-sys-color-on-primary);
100
+ }
101
+
102
+ .navbar i,
103
+ .navbar [class^='mdi-'],
104
+ .navbar [class*='mdi-'],
105
+ .navbar i.material-icons,
106
+ .navbar i.material-symbols-outlined,
107
+ .navbar i.material-symbols-rounded,
108
+ .navbar i.material-symbols-sharp {
109
+ display: block;
110
+ font-size: 24px;
111
+ height: var(--navbar-height-mobile);
112
+ line-height: var(--navbar-height-mobile);
113
+ }
114
+
115
+ /* Collapse button */
116
+ .navbar .sidenav-trigger {
117
+ float: left;
118
+ position: relative;
119
+ z-index: 1;
120
+ height: var(--navbar-height-mobile);
121
+ margin: 0 18px;
122
+ }
123
+
124
+ .navbar .sidenav-trigger i {
125
+ height: var(--navbar-height-mobile);
126
+ line-height: var(--navbar-height-mobile);
127
+ }
128
+
129
+ /* Logo */
130
+ .navbar .brand-logo {
131
+ color: var(--md-sys-color-on-surface);
132
+ font-size: var(--appbar-title-font-size);
133
+ display: inline-block;
134
+ padding: 0;
135
+ }
136
+
137
+ .navbar .brand-logo.center {
138
+ left: 50%;
139
+ transform: translateX(-50%);
140
+ }
141
+
142
+ .navbar .brand-logo.right {
143
+ right: 0.5rem;
144
+ padding: 0;
145
+ }
146
+
147
+ .navbar .brand-logo i,
148
+ .navbar .brand-logo [class^='mdi-'],
149
+ .navbar .brand-logo [class*='mdi-'],
150
+ .navbar .brand-logo i.material-icons,
151
+ .navbar .brand-logo i.material-symbols-outlined,
152
+ .navbar .brand-logo i.material-symbols-rounded,
153
+ .navbar .brand-logo i.material-symbols-sharp {
154
+ float: left;
155
+ margin-right: 15px;
156
+ }
157
+
158
+ /* Title */
159
+ .navbar .nav-title {
160
+ display: inline-block;
161
+ font-size: 32px;
162
+ padding: 28px 0;
163
+ }
164
+
165
+ /* Navbar Search Form */
166
+ .navbar form {
167
+ height: 100%;
168
+ }
169
+
170
+ .navbar .input-field {
171
+ margin: 0;
172
+ height: 100%;
173
+ }
174
+
175
+ .navbar .input-field input[type='search'] {
176
+ height: 100%;
177
+ font-size: 1.2rem;
178
+ border: none;
179
+ padding-left: 2rem;
180
+ color: var(--md-sys-color-on-primary);
181
+ }
182
+
183
+ .navbar .input-field input[type='search']:focus,
184
+ .navbar .input-field input[type='search'][type='text']:valid,
185
+ .navbar .input-field input[type='search'][type='password']:valid,
186
+ .navbar .input-field input[type='search'][type='email']:valid,
187
+ .navbar .input-field input[type='search'][type='url']:valid,
188
+ .navbar .input-field input[type='search'][type='date']:valid {
189
+ border: none;
190
+ box-shadow: none;
191
+ }
192
+
193
+ .navbar .input-field label {
194
+ top: 0;
195
+ left: 0;
196
+ }
197
+
198
+ .navbar .input-field label i {
199
+ color: var(--font-on-primary-color-medium);
200
+ transition: color 0.3s;
201
+ }
202
+
203
+ .navbar .input-field label.active i {
204
+ color: var(--md-sys-color-on-primary);
205
+ }
206
+
207
+ /* Fixed Navbar */
208
+ .navbar-fixed {
209
+ position: relative;
210
+ height: var(--navbar-height-mobile);
211
+ z-index: 997;
212
+ }
213
+
214
+ .navbar-fixed .navbar {
215
+ position: fixed;
216
+ right: 0;
217
+ }
218
+
219
+ @media only screen and (min-width: 601px) {
220
+ .nav.nav-extended .nav-wrapper {
221
+ min-height: var(--navbar-height-mobile);
222
+ }
223
+
224
+ .nav,
225
+ .navbar .nav-wrapper i,
226
+ nav a.sidenav-trigger,
227
+ .navbar a.sidenav-trigger i {
228
+ height: var(--navbar-height);
229
+ line-height: var(--navbar-height);
230
+ }
231
+
232
+ .navbar-fixed {
233
+ height: var(--navbar-height);
234
+ }
235
+ }