mirror of
https://github.com/thejakubruzicka/MNotes.git
synced 2025-07-11 06:54:04 +02:00
New version. Add Material UI implementation with theme customization, about dialog, and news system
This commit is contained in:
parent
5bc9c9bdb1
commit
1d58835a65
190 changed files with 12296 additions and 54 deletions
39
components-wiki/figures/list/theming-icon.html
Normal file
39
components-wiki/figures/list/theming-icon.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<div class="figure-wrapper">
|
||||
<figure
|
||||
class="styled-example icon"
|
||||
aria-label="Image of a list and icon list items of food names with a different theme applied"
|
||||
style="padding-block: 16px;">
|
||||
<style>
|
||||
.styled-example.icon md-list {
|
||||
--md-list-container-color: #f4fbfa;
|
||||
--md-list-item-label-text-color: #161d1d;
|
||||
--md-list-item-supporting-text-color: #3f4948;
|
||||
--md-list-item-trailing-supporting-text-color: #3f4948;
|
||||
--md-list-item-leading-icon-color: #006a6a;
|
||||
--md-list-item-trailing-icon-color: #006a6a;
|
||||
--md-list-item-leading-icon-size: 20px;
|
||||
--md-list-item-trailing-icon-size: 20px;
|
||||
}
|
||||
.styled-example.icon md-list .unhealthy {
|
||||
--md-list-item-trailing-icon-color: #ba1a1a;
|
||||
}
|
||||
</style>
|
||||
<md-list>
|
||||
<md-list-item>
|
||||
<div slot="headline">Eggs</div>
|
||||
<md-icon slot="start">egg</md-icon>
|
||||
<md-icon slot="end">recommend</md-icon>
|
||||
</md-list-item>
|
||||
<md-list-item class="unhealthy">
|
||||
<div slot="headline">Ice Cream</div>
|
||||
<md-icon slot="start">icecream</md-icon>
|
||||
<md-icon slot="end">dangerous</md-icon>
|
||||
</md-list-item>
|
||||
<md-list-item>
|
||||
<div slot="headline">Orange</div>
|
||||
<md-icon slot="start">nutrition</md-icon>
|
||||
<md-icon slot="end">recommend</md-icon>
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
</figure>
|
||||
</div>
|
35
components-wiki/figures/list/theming-image.html
Normal file
35
components-wiki/figures/list/theming-image.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<div class="figure-wrapper">
|
||||
<figure
|
||||
class="styled-example image"
|
||||
aria-label="Image of a list and image list items of cats with a different theme applied"
|
||||
style="padding-block: 16px"
|
||||
>
|
||||
<style>
|
||||
.styled-example.image md-list {
|
||||
--md-list-container-color: #f4fbfa;
|
||||
--md-list-item-label-text-color: #161d1d;
|
||||
--md-list-item-supporting-text-color: #3f4948;
|
||||
--md-list-item-trailing-supporting-text-color: #3f4948;
|
||||
}
|
||||
.styled-example.image md-list img {
|
||||
height: 50px;
|
||||
width: 100px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
</style>
|
||||
<md-list>
|
||||
<md-list-item>
|
||||
<div slot="headline">Wide Cat</div>
|
||||
<img loading="lazy" slot="start" src="https://placekitten.com/200/100">
|
||||
</md-list-item>
|
||||
<md-list-item>
|
||||
<div slot="headline">Round kitty cat</div>
|
||||
<img loading="lazy" slot="start" src="https://placekitten.com/202/101">
|
||||
</md-list-item>
|
||||
<md-list-item>
|
||||
<div slot="headline">Softe cate</div>
|
||||
<img loading="lazy" slot="start" src="https://placekitten.com/212/106">
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
</figure>
|
||||
</div>
|
42
components-wiki/figures/list/theming-list.html
Normal file
42
components-wiki/figures/list/theming-list.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<div class="figure-wrapper">
|
||||
<figure
|
||||
class="styled-example list"
|
||||
aria-label="Image of a list and list items of foods with their inventory stock number with a different theme applied"
|
||||
style="padding-block: 16px;">
|
||||
<style>
|
||||
.styled-example {
|
||||
background-color: #f4fbfa;
|
||||
}
|
||||
.styled-example.list md-list {
|
||||
--md-list-container-color: #f4fbfa;
|
||||
--md-list-item-label-text-color: #161d1d;
|
||||
--md-list-item-supporting-text-color: #3f4948;
|
||||
--md-list-item-trailing-supporting-text-color: #3f4948;
|
||||
--md-list-item-label-text-font: system-ui;
|
||||
--md-list-item-supporting-text-font: system-ui;
|
||||
--md-list-item-trailing-supporting-text-font: system-ui;
|
||||
}
|
||||
.styled-example.list md-list [slot="trailing-supporting-text"] {
|
||||
width: 30px;
|
||||
text-align: end;
|
||||
}
|
||||
</style>
|
||||
<md-list>
|
||||
<md-list-item type="button">
|
||||
<div slot="headline">Apple</div>
|
||||
<div slot="supporting-text">In stock</div>
|
||||
<div slot="trailing-supporting-text">+100</div>
|
||||
</md-list-item>
|
||||
<md-list-item type="button">
|
||||
<div slot="headline">Banana</div>
|
||||
<div slot="supporting-text">In stock</div>
|
||||
<div slot="trailing-supporting-text">56</div>
|
||||
</md-list-item>
|
||||
<md-list-item type="button">
|
||||
<div slot="headline">Cucumber</div>
|
||||
<div slot="supporting-text">Low stock</div>
|
||||
<div slot="trailing-supporting-text">5</div>
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
</figure>
|
||||
</div>
|
31
components-wiki/figures/list/usage-icon.html
Normal file
31
components-wiki/figures/list/usage-icon.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<div class="figure-wrapper">
|
||||
<figure aria-label="A list with three items and dividers separating each item. The first item has the Lit logo and the text Lit. The second item has the Polymer logo and the text Polymer. The third item has the Angular logo and the text Angular.">
|
||||
<md-list style="max-width: 300px">
|
||||
<md-list-item>
|
||||
Lit
|
||||
<svg slot="start" style="height: 24px" viewBox="0 0 160 200">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="m160 80v80l-40-40zm-40 40v80l40-40zm0-80v80l-40-40zm-40 40v80l40-40zm-40-40v80l40-40zm40-40v80l-40-40zm-40 120v80l-40-40zm-40-40v80l40-40z"
|
||||
/>
|
||||
</svg>
|
||||
</md-list-item>
|
||||
<md-divider></md-divider>
|
||||
<md-list-item>
|
||||
Polymer
|
||||
<md-icon slot="start">polymer</md-icon>
|
||||
</md-list-item>
|
||||
<md-divider></md-divider>
|
||||
<md-list-item>
|
||||
Angular
|
||||
<svg slot="start" style="height: 24px" viewBox="0 0 250 250">
|
||||
<polygon points="108,135.4 125,135.4 125,135.4 125,135.4 142,135.4 125,94.5 " />
|
||||
<path
|
||||
d="M125,30L125,30L125,30L31.9,63.2l14.2,123.1L125,230l0,0l0,0l78.9-43.7l14.2-123.1L125,30z M183.1,182.6h-21.7h0
|
||||
l-11.7-29.2H125h0h0h-24.7l-11.7,29.2h0H66.9h0L125,52.1l0,0l0,0l0,0l0,0L183.1,182.6L183.1,182.6z"
|
||||
/>
|
||||
</svg>
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
</figure>
|
||||
</div>
|
22
components-wiki/figures/list/usage-image.html
Normal file
22
components-wiki/figures/list/usage-image.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="figure-wrapper">
|
||||
<figure
|
||||
aria-label="A list with three image items. The first item is a square picture of a cat and the text Cat. The second is a picture of a kitten with the text Kitty Cat. The third item is a square image of an older kitten with the text Cate."
|
||||
>
|
||||
<md-list style="max-width: 300px">
|
||||
<md-list-item>
|
||||
Cat
|
||||
<img slot="start" style="width: 56px" src="https://placekitten.com/112/112" />
|
||||
</md-list-item>
|
||||
<md-divider></md-divider>
|
||||
<md-list-item>
|
||||
Kitty Cat
|
||||
<img slot="start" style="width: 56px" src="https://placekitten.com/114/114" />
|
||||
</md-list-item>
|
||||
<md-divider></md-divider>
|
||||
<md-list-item>
|
||||
Cate
|
||||
<img slot="start" style="width: 56px" src="https://placekitten.com/116/116" />
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
</figure>
|
||||
</div>
|
30
components-wiki/figures/list/usage.html
Normal file
30
components-wiki/figures/list/usage.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<div class="figure-wrapper">
|
||||
<figure
|
||||
aria-label="Three items in a list. The first item says Apple as its headline. The second one says Banana in its headline as well as Banana is a yellow fruit as its sub header. The third list item says Cucumber in its headline and Cucumbers are long green fruits that are just as long as this multi-line description as its sub header which is on two lines."
|
||||
>
|
||||
<md-list style="max-width: 300px;">
|
||||
<md-list-item>
|
||||
Fruits
|
||||
</md-list-item>
|
||||
<md-divider></md-divider>
|
||||
<md-list-item>
|
||||
Apple
|
||||
</md-list-item>
|
||||
<md-list-item>
|
||||
Banana
|
||||
</md-list-item>
|
||||
<md-list-item>
|
||||
<div slot="headline">Cucumber</div>
|
||||
<div slot="supporting-text">Cucumbers are long green fruits that are just as long as this multi-line description</div>
|
||||
</md-list-item>
|
||||
<md-list-item
|
||||
interactive
|
||||
href="https://google.com/search?q=buy+kiwis&tbm=shop"
|
||||
target="_blank">
|
||||
<div slot="headline">Shop for Kiwis</div>
|
||||
<div slot="supporting-text">This will link you out in a new tab</div>
|
||||
<md-icon slot="end">open_in_new</md-icon>
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
</figure>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue