Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
22b5d41
added images and material 3 page
esouthren Apr 11, 2023
54b65f6
Add card and buttons widgets
esouthren Apr 11, 2023
f3e1d6f
add containement widgets
esouthren Apr 11, 2023
5631433
sort file
esouthren Apr 11, 2023
6a8fc19
add navigation widgets
esouthren Apr 11, 2023
acc6d9b
add selection widgets
esouthren Apr 11, 2023
3928ed5
add remaining widgets
esouthren Apr 11, 2023
8f35d3e
update snackbar image
esouthren Apr 11, 2023
a90a624
added material 3 image container
esouthren Apr 12, 2023
6c41f90
added toggle switch
esouthren Apr 13, 2023
f4d4d25
added icon toggle
esouthren Apr 14, 2023
ec5a499
sassy clean
esouthren Apr 14, 2023
69ffd84
added card colors in json
esouthren Apr 14, 2023
a98ec66
update toggle position
esouthren Apr 14, 2023
160533f
update css
esouthren Apr 14, 2023
f21305c
update hover duration and toggle icon boundary
esouthren Apr 14, 2023
e8d001b
update image transparencies
esouthren Apr 18, 2023
3b1ed1d
remove light/dark toggle
esouthren Apr 18, 2023
0deaea6
add other hover images
esouthren Apr 18, 2023
d4b98a8
update formatting
esouthren Apr 18, 2023
13e0075
update copy
esouthren Apr 18, 2023
e2acb2d
code tidy
esouthren Apr 18, 2023
a3fcb39
update listTile link
esouthren Apr 18, 2023
e762d7c
sort json order and whitespace
esouthren Apr 18, 2023
eac578f
comment responses
esouthren Apr 18, 2023
e19107e
Added M2 page notice
esouthren Apr 18, 2023
76eb19f
copy updates
esouthren Apr 19, 2023
897e064
remove m2 card from widgets page
esouthren Apr 19, 2023
66e1757
comment responses
esouthren Apr 20, 2023
644d151
fix other catalog path URLs
esouthren Apr 20, 2023
49f85e6
comment updates
esouthren Apr 20, 2023
2e9d8d9
update buttons Url
esouthren Apr 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added card colors in json
  • Loading branch information
esouthren committed Apr 14, 2023
commit 69ffd84f5af5514f4f9f78fedba164f9d71fe5b5
20 changes: 14 additions & 6 deletions src/_data/catalog/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,30 @@
"description": "Visual, behavioral, and motion-rich widgets implementing the <a href=\"https://material.io/design/guidelines-overview\">Material 3 Design guidelines</a>.",
"subcategories": [
{
"name": "Actions"
"name": "Actions",
"color": "#D9E7CB"
},
{
"name": "Communication"
"name": "Communication",
"color": "#F9DBDA"
},
{
"name": "Containment"
"name": "Containment",
"color": "#F9DBDA"
},
{
"name": "Navigation"
"name": "Navigation",
"color": "#E5E4C2"

},
{
"name": "Selection"
"name": "Selection",
"color": "#D9E7CB"

},
{
"name": "Text Inputs"
"name": "Text Inputs",
"color": "#E5E4C2"
}
],
"id": "material3"
Expand Down
6 changes: 3 additions & 3 deletions src/_data/catalog/widgets.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,14 +415,14 @@
},
{
"name": "Common Buttons",
"description": "<b>Hover for Dark mode</b><br /><br />Buttons help people take action, such as sending an email, sharing a document, or liking a comment.",
"description": "Buttons help people take action, such as sending an email, sharing a document, or liking a comment.",
"categories": [],
"subcategories": [
"Actions"
],
"link": "https://api.flutter.dev/flutter/material/ButtonStyle-class.html",
"image": "/assets/images/docs/widget-catalog/material-3-buttons.png",
"darkimage": "/assets/images/docs/widget-catalog/material-3-buttons-dark.png'>",
"image": "<img class='m3-img' alt='' src='/assets/images/docs/widget-catalog/material-3-buttons.png'>",
"darkimage": "<img class='m3-img' alt='' src='/assets/images/docs/widget-catalog/material-3-buttons-dark.png'>",
"hoverimage": "<img alt='' src='/assets/images/docs/widget-catalog/material-3-leaves.png'>"
},
{
Expand Down
6 changes: 4 additions & 2 deletions src/_includes/docs/catalogpage-material-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@
<h2 id="{{sub.name}}">{{sub.name}}</h2>
<div class="card-deck card-deck--responsive">
{% for comp in components -%}

<div class="card">
<a href="{{comp.link}}">
<div class="card-image-holder-material-3">
<img class="m3-img" src="{{ comp.image }}" alt= ''/>

<div class="card-image-holder-material-3" style="--bg-color: {{sub.color}}">
{{ comp.image }}
<div class="card-image-material-3-hover">
{{comp.hoverimage}}
</div>
Expand Down
26 changes: 13 additions & 13 deletions src/_sass/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,31 +71,31 @@ dd {
float: right;
right: 50px;
position: absolute;

.m3-widget-brightness-icon {
position: relative;
top: 8px;
left: 8px;
}
}

.m3-widget-brightness-icon-container:hover {
background-color: $site-color-material-3-grey-hover;
}

.m3-widget-brightness-icon {
position:relative;
top: 8px;
left: 8px;
}

.card-image-holder-material-3 {
align-items: center;
z-index: -1;
background-color: $site-color-material-3-green;
background-size: 0%;
opacity: .999;
}
background-color: var(--bg-color, blue);

.m3-img {
max-width: 100%;
max-height: 100%;
width: auto;
z-index: 1;
img {
max-width: 100%;
max-height: 100%;
width: auto;
z-index: 1;
}
}

.card-image-material-3-hover {
Expand Down