Skip to content

Commit

Permalink
Update changelog with the material theme details.
Browse files Browse the repository at this point in the history
Add more example to the docs site homepage header.
  • Loading branch information
ghinda committed Nov 18, 2015
1 parent c28863e commit 835bfaa
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## [4.0.0] - 2015-XX-XX

- BREAKING: New HTML markup for `switch-light`.
- BREAKING: New HTML markup for `switch-light`, more semantic and with more control over the label and switch widths and placement.
- BREAKING: Rename the `android` theme to `holo`.
- BREAKING: Remove the `less` version because it was unmaintained.
- `switch-toggle` no longer needs the `switch-X` number classes. Just add up to 6 items, no extra work needed.
- New `material` theme, mimicking material design.
- Fix issues with enlarged text on `switch-toggle`.
- Various tweaks to the `ios` theme.
- Change text color of the active option in the `switch-light` `candy` theme.
Expand Down
2 changes: 1 addition & 1 deletion site/css/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ label {
}

.row.toggle-demo {
margin: 0;
margin: emCalc(20) 0 0;
}

.row.toggle-demo > label,
Expand Down
84 changes: 76 additions & 8 deletions site/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ foundation: true

<div class="row toggle-demo">

<label class="switch-light switch-material">
<input type="checkbox" name="">
<label class="switch-light switch-candy">
<input type="checkbox">

<strong class="large-4 columns">
Wireless
Expand All @@ -46,6 +46,42 @@ foundation: true

</div>

<div class="row toggle-demo">

<label class="switch-light switch-material">
<input type="checkbox">

<strong class="large-4 columns">
Geolocation
</strong>

<span class="large-4 columns left">
<span>Off</span>
<span>On</span>
<a></a>
</span>
</label>

</div>

<div class="row toggle-demo">

<label class="switch-light switch-holo">
<input type="checkbox">

<strong class="large-4 columns">
Airplane Mode
</strong>

<span class="large-3 columns left">
<span>Off</span>
<span>On</span>
<a></a>
</span>
</label>

</div>

</div>
<div class="large-6 columns">

Expand All @@ -54,15 +90,47 @@ foundation: true

<div class="row toggle-demo">
<label class="large-3 columns">View</label>
<div class="switch-toggle switch-candy large-9 columns">
<input id="d-c1" name="view-d-c" type="radio" checked>
<label for="d-c1" onclick="">Week</label>

<input id="d-c2" name="view-d-c" type="radio">
<label for="d-c2" onclick="">Month</label>

<input id="d-c3" name="view-d-c" type="radio">
<label for="d-c3" onclick="">Year</label>

<a></a>
</div>
</div>

<div class="row toggle-demo">
<label class="large-3 columns">Storage</label>
<div class="switch-toggle switch-material large-9 columns">
<input id="week-d1" name="view-d" type="radio" checked>
<label for="week-d1" onclick="">Week</label>
<input id="d-h1" name="view-d-h" type="radio" checked>
<label for="d-h1" onclick="">MTP</label>

<input id="d-h2" name="view-d-h" type="radio">
<label for="d-h2" onclick="">UMS</label>

<input id="d-h3" name="view-d-h" type="radio">
<label for="d-h3" onclick="">PTP</label>

<a></a>
</div>
</div>

<div class="row toggle-demo">
<label class="large-3 columns">Debug</label>
<div class="switch-toggle switch-holo large-9 columns">
<input id="d-m1" name="view-d-m" type="radio" checked>
<label for="d-m1" onclick="">Disabled</label>

<input id="month-d2" name="view-d" type="radio">
<label for="month-d2" onclick="">Month</label>
<input id="d-m2" name="view-d-m" type="radio">
<label for="d-m2" onclick="">ADB</label>

<input id="month-d3" name="view-d" type="radio">
<label for="month-d3" onclick="">Year</label>
<input id="d-m3" name="view-d-m" type="radio">
<label for="d-m3" onclick="">DevTools</label>

<a></a>
</div>
Expand Down

0 comments on commit 835bfaa

Please sign in to comment.