@operato/menu 2.0.0-alpha.100
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/.editorconfig +29 -0
- package/.storybook/main.js +3 -0
- package/.storybook/server.mjs +8 -0
- package/CHANGELOG.md +241 -0
- package/README.md +75 -0
- package/demo/index.html +40 -0
- package/dist/src/index.d.ts +0 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/menu-landscape-styles.d.ts +1 -0
- package/dist/src/menu-landscape-styles.js +149 -0
- package/dist/src/menu-landscape-styles.js.map +1 -0
- package/dist/src/menu-portrait-styles.d.ts +1 -0
- package/dist/src/menu-portrait-styles.js +145 -0
- package/dist/src/menu-portrait-styles.js.map +1 -0
- package/dist/src/ox-menu-landscape.d.ts +21 -0
- package/dist/src/ox-menu-landscape.js +99 -0
- package/dist/src/ox-menu-landscape.js.map +1 -0
- package/dist/src/ox-menu-part.d.ts +29 -0
- package/dist/src/ox-menu-part.js +135 -0
- package/dist/src/ox-menu-part.js.map +1 -0
- package/dist/src/ox-menu-portrait.d.ts +13 -0
- package/dist/src/ox-menu-portrait.js +88 -0
- package/dist/src/ox-menu-portrait.js.map +1 -0
- package/dist/src/ox-top-menu-bar.d.ts +23 -0
- package/dist/src/ox-top-menu-bar.js +145 -0
- package/dist/src/ox-top-menu-bar.js.map +1 -0
- package/dist/src/types.d.ts +10 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/stories/ox-menu-container.d.ts +15 -0
- package/dist/stories/ox-menu-container.js +94 -0
- package/dist/stories/ox-menu-container.js.map +1 -0
- package/dist/stories/ox-menu-portrait.stories.d.ts +17 -0
- package/dist/stories/ox-menu-portrait.stories.js +46 -0
- package/dist/stories/ox-menu-portrait.stories.js.map +1 -0
- package/dist/stories/test-menus.d.ts +2 -0
- package/dist/stories/test-menus.js +179 -0
- package/dist/stories/test-menus.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +99 -0
- package/src/index.ts +0 -0
- package/src/menu-landscape-styles.ts +149 -0
- package/src/menu-portrait-styles.ts +145 -0
- package/src/ox-menu-landscape.ts +105 -0
- package/src/ox-menu-part.ts +131 -0
- package/src/ox-menu-portrait.ts +91 -0
- package/src/ox-top-menu-bar.ts +147 -0
- package/src/types.ts +10 -0
- package/stories/ox-menu-container.ts +97 -0
- package/stories/ox-menu-portrait.stories.ts +57 -0
- package/stories/test-menus.ts +180 -0
- package/themes/app-theme.css +145 -0
- package/tsconfig.json +23 -0
- package/web-dev-server.config.mjs +27 -0
- package/web-test-runner.config.mjs +41 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# EditorConfig helps developers define and maintain consistent
|
|
2
|
+
# coding styles between different editors and IDEs
|
|
3
|
+
# editorconfig.org
|
|
4
|
+
|
|
5
|
+
root = true
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
[*]
|
|
9
|
+
|
|
10
|
+
# Change these settings to your own preference
|
|
11
|
+
indent_style = space
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
# We recommend you to keep these unchanged
|
|
15
|
+
end_of_line = lf
|
|
16
|
+
charset = utf-8
|
|
17
|
+
trim_trailing_whitespace = true
|
|
18
|
+
insert_final_newline = true
|
|
19
|
+
|
|
20
|
+
[*.md]
|
|
21
|
+
trim_trailing_whitespace = false
|
|
22
|
+
|
|
23
|
+
[*.json]
|
|
24
|
+
indent_size = 2
|
|
25
|
+
|
|
26
|
+
[*.{html,js,md}]
|
|
27
|
+
block_comment_start = /**
|
|
28
|
+
block_comment = *
|
|
29
|
+
block_comment_end = */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { storybookPlugin } from '@web/dev-server-storybook';
|
|
2
|
+
import baseConfig from '../web-dev-server.config.mjs';
|
|
3
|
+
|
|
4
|
+
export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
|
5
|
+
...baseConfig,
|
|
6
|
+
open: '/',
|
|
7
|
+
plugins: [storybookPlugin({ type: 'web-components' }), ...baseConfig.plugins],
|
|
8
|
+
});
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [2.0.0-alpha.100](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.99...v2.0.0-alpha.100) (2024-04-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :bug: Bug Fix
|
|
10
|
+
|
|
11
|
+
* menu style ([6ff625c](https://github.com/hatiolab/operato/commit/6ff625cdd817869551445cad7d4b01f17243be2a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [2.0.0-alpha.99](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.98...v2.0.0-alpha.99) (2024-04-21)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### :bug: Bug Fix
|
|
19
|
+
|
|
20
|
+
* simplify menu styles ([bbec7a3](https://github.com/hatiolab/operato/commit/bbec7a35221e945a117fc8cedf791a2db9828c36))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [2.0.0-alpha.98](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.97...v2.0.0-alpha.98) (2024-04-21)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package @operato/menu
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## [2.0.0-alpha.95](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.94...v2.0.0-alpha.95) (2024-04-21)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @operato/menu
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## [2.0.0-alpha.94](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.93...v2.0.0-alpha.94) (2024-04-20)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @operato/menu
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## [2.0.0-alpha.93](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.92...v2.0.0-alpha.93) (2024-04-19)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @operato/menu
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## [2.0.0-alpha.92](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.91...v2.0.0-alpha.92) (2024-04-19)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @operato/menu
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## [2.0.0-alpha.90](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.89...v2.0.0-alpha.90) (2024-04-18)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package @operato/menu
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## [2.0.0-alpha.89](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.88...v2.0.0-alpha.89) (2024-04-18)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @operato/menu
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [2.0.0-alpha.88](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.87...v2.0.0-alpha.88) (2024-04-18)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @operato/menu
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## [2.0.0-alpha.87](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.86...v2.0.0-alpha.87) (2024-04-17)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @operato/menu
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## [2.0.0-alpha.86](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.85...v2.0.0-alpha.86) (2024-04-16)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @operato/menu
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## [2.0.0-alpha.85](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.84...v2.0.0-alpha.85) (2024-04-16)
|
|
105
|
+
|
|
106
|
+
**Note:** Version bump only for package @operato/menu
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## [2.0.0-alpha.82](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.81...v2.0.0-alpha.82) (2024-04-15)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @operato/menu
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## [2.0.0-alpha.81](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.80...v2.0.0-alpha.81) (2024-04-15)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @operato/menu
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## [2.0.0-alpha.80](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.79...v2.0.0-alpha.80) (2024-04-15)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @operato/menu
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## [2.0.0-alpha.77](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.76...v2.0.0-alpha.77) (2024-04-14)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @operato/menu
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## [2.0.0-alpha.72](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.71...v2.0.0-alpha.72) (2024-04-14)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### :bug: Bug Fix
|
|
148
|
+
|
|
149
|
+
* restyle ox-menu-portrait ([e128e3d](https://github.com/hatiolab/operato/commit/e128e3d7737d103e82fa85e2a54832f0dc9670af))
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## [2.0.0-alpha.69](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.68...v2.0.0-alpha.69) (2024-04-13)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### :bug: Bug Fix
|
|
157
|
+
|
|
158
|
+
* mwc=>md for context ([972f5fd](https://github.com/hatiolab/operato/commit/972f5fd8da02820b6d6238cf1dd099591f97d8df))
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## [2.0.0-alpha.68](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.67...v2.0.0-alpha.68) (2024-04-13)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### :bug: Bug Fix
|
|
166
|
+
|
|
167
|
+
* mwc=>md for context ([2bc13f2](https://github.com/hatiolab/operato/commit/2bc13f285f257782f73e5d7b5d1ddd197df85393))
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
## [2.0.0-alpha.64](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.63...v2.0.0-alpha.64) (2024-04-13)
|
|
172
|
+
|
|
173
|
+
**Note:** Version bump only for package @operato/menu
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## [2.0.0-alpha.63](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.62...v2.0.0-alpha.63) (2024-04-12)
|
|
180
|
+
|
|
181
|
+
**Note:** Version bump only for package @operato/menu
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## [2.0.0-alpha.62](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.61...v2.0.0-alpha.62) (2024-04-12)
|
|
188
|
+
|
|
189
|
+
**Note:** Version bump only for package @operato/menu
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## [2.0.0-alpha.61](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.60...v2.0.0-alpha.61) (2024-04-11)
|
|
196
|
+
|
|
197
|
+
**Note:** Version bump only for package @operato/menu
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [2.0.0-alpha.60](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.59...v2.0.0-alpha.60) (2024-04-11)
|
|
204
|
+
|
|
205
|
+
**Note:** Version bump only for package @operato/menu
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## [2.0.0-alpha.59](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.58...v2.0.0-alpha.59) (2024-04-11)
|
|
212
|
+
|
|
213
|
+
**Note:** Version bump only for package @operato/menu
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## [2.0.0-alpha.57](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.56...v2.0.0-alpha.57) (2024-04-07)
|
|
220
|
+
|
|
221
|
+
**Note:** Version bump only for package @operato/menu
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
**Note:** Version bump only for package @operato/menu
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## [2.0.0-alpha.55](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.54...v2.0.0-alpha.55) (2024-04-02)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### :bug: Bug Fix
|
|
239
|
+
|
|
240
|
+
* menu module ([bdf77c0](https://github.com/hatiolab/operato/commit/bdf77c0bca2e760061e47cdb3f3e62dccf29f7d0))
|
|
241
|
+
* migrate menu component module from things-factory ([81bf12e](https://github.com/hatiolab/operato/commit/81bf12e60e592f9cce696d5bad9b6e979f79c4ac))
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# \<ox-menu>
|
|
2
|
+
|
|
3
|
+
This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i menu
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<script type="module">
|
|
15
|
+
import '@operato/menu'
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<ox-menu></ox-menu>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Linting and formatting
|
|
22
|
+
|
|
23
|
+
To scan the project for linting and formatting errors, run
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm run lint
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
To automatically fix linting and formatting errors, run
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm run format
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Testing with Web Test Runner
|
|
36
|
+
|
|
37
|
+
To execute a single test run:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm run test
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
To run the tests in interactive watch mode run:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm run test:watch
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Demoing with Storybook
|
|
50
|
+
|
|
51
|
+
To run a local instance of Storybook for your component, run
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm run storybook
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
To build a production version of Storybook, run
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm run storybook:build
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Tooling configs
|
|
64
|
+
|
|
65
|
+
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
|
66
|
+
|
|
67
|
+
If you customize the configuration a lot, you can consider moving them to individual files.
|
|
68
|
+
|
|
69
|
+
## Local Demo with `web-dev-server`
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npm start
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
To run a local development server that serves the basic demo located in `demo/index.html`
|
package/demo/index.html
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en-GB">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
background: #fafafa;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#demo {
|
|
11
|
+
position: relative;
|
|
12
|
+
height: 100px;
|
|
13
|
+
background-color: lightgray;
|
|
14
|
+
text-align: center;
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="demo"></div>
|
|
21
|
+
|
|
22
|
+
<script type="module">
|
|
23
|
+
import { html, render } from 'lit'
|
|
24
|
+
import '../dist/src/ox-menu.js'
|
|
25
|
+
import { OxMenu } from '../dist/src/ox-menu.js'
|
|
26
|
+
|
|
27
|
+
const parent = document.querySelector('#demo')
|
|
28
|
+
parent.addEventListener('click', function (e) {
|
|
29
|
+
OxMenu.open({
|
|
30
|
+
template: html``,
|
|
31
|
+
top: e.pageY,
|
|
32
|
+
left: e.pageX,
|
|
33
|
+
parent
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
render(html`clike anywhere in this box to menu mini.`, parent)
|
|
38
|
+
</script>
|
|
39
|
+
</body>
|
|
40
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MenuLandscapeStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const MenuLandscapeStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
overflow-x: auto;
|
|
5
|
+
background-color: var(--secondary-text-color);
|
|
6
|
+
--focus-anchor-color: #e6ffa2;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host > div {
|
|
10
|
+
overflow-x: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host > div > ul {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
list-style: none;
|
|
17
|
+
margin: auto;
|
|
18
|
+
padding: 0;
|
|
19
|
+
border: var(--border-dark-color);
|
|
20
|
+
border-width: 0 1px;
|
|
21
|
+
max-width: 1250px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host > div > ul > li {
|
|
25
|
+
flex: 1;
|
|
26
|
+
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
}
|
|
30
|
+
:host > div > ul > li > a {
|
|
31
|
+
display: none;
|
|
32
|
+
font-weight: bold;
|
|
33
|
+
font-size: var(--fontsize-large);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ul[submenus] {
|
|
37
|
+
flex: 1;
|
|
38
|
+
list-style: none;
|
|
39
|
+
overflow-y: hidden;
|
|
40
|
+
background-color: var(--primary-color);
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: 0;
|
|
43
|
+
border-left: var(--border-dark-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ul[submenus] li {
|
|
47
|
+
min-width: 120px;
|
|
48
|
+
max-width: 180px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
a {
|
|
52
|
+
display: block;
|
|
53
|
+
padding: var(--padding-default) var(--padding-default) var(--padding-narrow) var(--padding-wide);
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
font: normal 14px var(--theme-font);
|
|
56
|
+
color: var(--theme-white-color);
|
|
57
|
+
text-transform: capitalize;
|
|
58
|
+
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
a:hover {
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
ul[submenus] a::before {
|
|
69
|
+
content: '';
|
|
70
|
+
display: inline-block;
|
|
71
|
+
position: relative;
|
|
72
|
+
top: -1px;
|
|
73
|
+
width: 5px;
|
|
74
|
+
height: 5px;
|
|
75
|
+
border: 1px solid var(--theme-white-color);
|
|
76
|
+
border-radius: 50%;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
margin-right: 3px;
|
|
79
|
+
}
|
|
80
|
+
ul[submenus] a:hover,
|
|
81
|
+
ul[submenus] li[active] a {
|
|
82
|
+
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
83
|
+
color: var(--focus-anchor-color);
|
|
84
|
+
font-weight: bold;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[description] {
|
|
88
|
+
background-color: var(--primary-color);
|
|
89
|
+
margin: 0;
|
|
90
|
+
padding: var(--padding-default) 0;
|
|
91
|
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
92
|
+
color: var(--focus-anchor-color);
|
|
93
|
+
font-size: 11px;
|
|
94
|
+
}
|
|
95
|
+
[description] md-icon {
|
|
96
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
97
|
+
margin-right: 4px;
|
|
98
|
+
padding: var(--padding-narrow);
|
|
99
|
+
border-radius: 0 5px 5px 0;
|
|
100
|
+
float: left;
|
|
101
|
+
font-size: 26px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media only screen and (max-width: 460px) {
|
|
105
|
+
:host {
|
|
106
|
+
min-width: 100vw;
|
|
107
|
+
}
|
|
108
|
+
:host > div {
|
|
109
|
+
display: initial;
|
|
110
|
+
}
|
|
111
|
+
:host > div > ul {
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
}
|
|
114
|
+
a {
|
|
115
|
+
padding: var(--padding-wide);
|
|
116
|
+
font: normal 15px var(--theme-font);
|
|
117
|
+
}
|
|
118
|
+
li[active] ul {
|
|
119
|
+
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
|
|
120
|
+
}
|
|
121
|
+
li li a {
|
|
122
|
+
display: block;
|
|
123
|
+
padding: var(--padding-wide) var(--padding-default) var(--padding-wide) 35px;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
font: normal 14px var(--theme-font);
|
|
128
|
+
}
|
|
129
|
+
li li[active] a {
|
|
130
|
+
font: bold 14px var(--theme-font);
|
|
131
|
+
}
|
|
132
|
+
:host > div > ul > li > a {
|
|
133
|
+
display: block;
|
|
134
|
+
}
|
|
135
|
+
:host > div > ul > li > a md-icon {
|
|
136
|
+
font-size: 1em;
|
|
137
|
+
position: relative;
|
|
138
|
+
top: 2px;
|
|
139
|
+
}
|
|
140
|
+
[description] {
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
143
|
+
ul[submenus] a:hover,
|
|
144
|
+
ul[submenus] li[active] a {
|
|
145
|
+
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`;
|
|
149
|
+
//# sourceMappingURL=menu-landscape-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-landscape-styles.js","sourceRoot":"","sources":["../../src/menu-landscape-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkJrC,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport const MenuLandscapeStyles = css`\n :host {\n overflow-x: auto;\n background-color: var(--secondary-text-color);\n --focus-anchor-color: #e6ffa2;\n }\n\n :host > div {\n overflow-x: auto;\n }\n\n :host > div > ul {\n display: flex;\n flex-direction: row;\n list-style: none;\n margin: auto;\n padding: 0;\n border: var(--border-dark-color);\n border-width: 0 1px;\n max-width: 1250px;\n }\n\n :host > div > ul > li {\n flex: 1;\n\n display: flex;\n flex-direction: column;\n }\n :host > div > ul > li > a {\n display: none;\n font-weight: bold;\n font-size: var(--fontsize-large);\n }\n\n ul[submenus] {\n flex: 1;\n list-style: none;\n overflow-y: hidden;\n background-color: var(--primary-color);\n margin: 0;\n padding: 0;\n border-left: var(--border-dark-color);\n }\n\n ul[submenus] li {\n min-width: 120px;\n max-width: 180px;\n }\n\n a {\n display: block;\n padding: var(--padding-default) var(--padding-default) var(--padding-narrow) var(--padding-wide);\n text-decoration: none;\n font: normal 14px var(--theme-font);\n color: var(--theme-white-color);\n text-transform: capitalize;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n a:hover {\n font-weight: bold;\n }\n\n ul[submenus] a::before {\n content: '';\n display: inline-block;\n position: relative;\n top: -1px;\n width: 5px;\n height: 5px;\n border: 1px solid var(--theme-white-color);\n border-radius: 50%;\n background-color: transparent;\n margin-right: 3px;\n }\n ul[submenus] a:hover,\n ul[submenus] li[active] a {\n background-color: rgba(var(--secondary-color-rgb), 0.3);\n color: var(--focus-anchor-color);\n font-weight: bold;\n }\n\n [description] {\n background-color: var(--primary-color);\n margin: 0;\n padding: var(--padding-default) 0;\n border-left: 1px solid rgba(0, 0, 0, 0.1);\n color: var(--focus-anchor-color);\n font-size: 11px;\n }\n [description] md-icon {\n background-color: rgba(0, 0, 0, 0.15);\n margin-right: 4px;\n padding: var(--padding-narrow);\n border-radius: 0 5px 5px 0;\n float: left;\n font-size: 26px;\n }\n\n @media only screen and (max-width: 460px) {\n :host {\n min-width: 100vw;\n }\n :host > div {\n display: initial;\n }\n :host > div > ul {\n flex-direction: column;\n }\n a {\n padding: var(--padding-wide);\n font: normal 15px var(--theme-font);\n }\n li[active] ul {\n border-bottom: 2px solid rgba(0, 0, 0, 0.1);\n }\n li li a {\n display: block;\n padding: var(--padding-wide) var(--padding-default) var(--padding-wide) 35px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font: normal 14px var(--theme-font);\n }\n li li[active] a {\n font: bold 14px var(--theme-font);\n }\n :host > div > ul > li > a {\n display: block;\n }\n :host > div > ul > li > a md-icon {\n font-size: 1em;\n position: relative;\n top: 2px;\n }\n [description] {\n display: none;\n }\n ul[submenus] a:hover,\n ul[submenus] li[active] a {\n background-color: rgba(var(--secondary-color-rgb), 0.3);\n }\n }\n`\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MenuPortraitStyles: import("lit").CSSResult;
|