mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
updated to remove label
css now had one selector with 2 rules :)
This commit is contained in:
parent
1cecbc8cb4
commit
a36536efd1
@ -3,44 +3,16 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>jQuery UI Progressbar Static Markup Test Page</title>
|
<title>jQuery UI Progressbar Static Markup Test Page</title>
|
||||||
<link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css">
|
<link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css">
|
||||||
<style type="text/css">
|
|
||||||
h2 { margin:1.5em 0 .5em; }
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body style="font-size: 62.5%;">
|
<body style="font-size: 62.5%;">
|
||||||
|
|
||||||
|
|
||||||
<!-- Flexible width: -->
|
|
||||||
|
|
||||||
<div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="13">
|
<div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="13">
|
||||||
<div class="ui-progressbar-label">13% Completed</div>
|
<div class="ui-progressbar-value ui-state-default ui-corner-left" style="width:13%;"></div>
|
||||||
<div class="ui-progressbar-value ui-state-default ui-corner-left" style="width:13%;"><div class="ui-progressbar-label">13% Completed</div></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- users can set a left offset in px, %, ems, whatever to move the label along the axis
|
|
||||||
|
|
||||||
<div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="55">
|
|
||||||
<div class="ui-progressbar-label" style="left:350px;">55% Completed</div>
|
|
||||||
<div class="ui-progressbar-value ui-state-default ui-corner-left" style="width:55%"><div class="ui-progressbar-label" style="left:350px;">55% Completed</div></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br /><br/>
|
|
||||||
|
|
||||||
<div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="55">
|
|
||||||
<div class="ui-progressbar-label" style="left:600px;">55% Completed</div>
|
|
||||||
<div class="ui-progressbar-value ui-state-default ui-corner-left" style="width:55%"><div class="ui-progressbar-label" style="left:600px;">55% Completed</div></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2>Fixed width (px):</h2>
|
|
||||||
|
|
||||||
<div style="width:500px" class="ui-progressbar ui-progressbar-fixed ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="78">
|
|
||||||
<div class="ui-progressbar-label">78% Completed</div>
|
|
||||||
<div class="ui-progressbar-value ui-state-default ui-corner-left" style="width:78%"><div class="ui-progressbar-label">78% Completed</div></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
-->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
/* Progressbar
|
/* Progressbar
|
||||||
----------------------------------*/
|
----------------------------------*/
|
||||||
.ui-progressbar { position: relative; overflow:hidden; }
|
.ui-progressbar-value {margin: -1px; height:2em; }
|
||||||
.ui-progressbar, .ui-progressbar-value { height:1em; padding:.4em 0 .5em; }
|
|
||||||
.ui-progressbar-label { position: absolute; left:0; top: .3em; text-indent: .5em; border: 0; background: none; white-space: nowrap; }
|
|
||||||
.ui-progressbar-value { position: absolute; top:0; width:100%; margin: -1px; overflow: hidden; font-weight: normal !important; white-space: nowrap; }
|
|
Loading…
Reference in New Issue
Block a user