Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
List.less: Fixed Count Bubble icons
  • Loading branch information
Michael Dabydeen committed Oct 19, 2012
commit 3bae2bb76e43b1e4caebd09711a9067c9aa9e86a
48 changes: 48 additions & 0 deletions kitchenSink/countbubble.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE HTML>
<!--
* Copyright 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->

<html>
<head>
<meta charset="utf-8">
<title>Count Bubble</title>
<!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
<link rel="stylesheet" href="../dist/BlackBerry-JQM-all.min.css" />
<script src="../dist/BlackBerry-JQM-all.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="index.html" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
<a href="#" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
</div><!-- /header -->
<div data-role="content">
<ul data-role="listview">
<li><a href="#">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="#">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="#">Drafts <span class="ui-li-count">4</span></a></li>
<li><a href="#">Sent <span class="ui-li-count">328</span></a></li>
<li><a href="#">Trash <span class="ui-li-count">62</span></a></li>
</ul>
</div><!--/content-->
<div data-role="footer" data-theme="a">
<div id="action-bar-area" data-role="actionbar">
<div data-role="back"></div>
</div>
</div>
</div><!-- /page -->
</body>
</html>
1 change: 1 addition & 0 deletions kitchenSink/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ <h1>BB10 JQM KitchenSink</h1>
<li><a href="gridview.html" rel="external">Grid View</a></li>
<li><a href="listview.html">List View</a></li>
<li><a href="splitview.html">Split List View</a></li>
<li><a href="countbubble.html">Count Bubble</a></li>
<li><a href="progress.html" rel="external">Progress Bar</a></li>
<li><a href="radio.html">Radio Button Groups</a></li>
<li><a href="segmented_control.html">Segmented Control</a></li>
Expand Down
11 changes: 11 additions & 0 deletions less/list.less
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,14 @@ li.ui-btn.ui-btn-icon-right .ui-btn-inner {
font-size: @global-font-size;
}

.ui-li-has-count .ui-li-count {
top: 60%;
font-size: @p1;
padding: 0.25em, 0.5em;
border: 1px solid #000;
height: 10%;
line-height: 12px;
}