Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/skin/firstRun.css

Issue 10860047: New toggle button on First-run page (Closed)
Patch Set: Created July 8, 2013, 10:26 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/ui/firstRun.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/skin/firstRun.css
===================================================================
--- a/chrome/skin/firstRun.css
+++ b/chrome/skin/firstRun.css
@@ -121,6 +121,7 @@
.feature:not([hidden])
{
display: block;
+ position: relative;
list-style-type: none;
padding-bottom: 20px;
}
@@ -441,62 +442,37 @@
.toggle
{
cursor: pointer;
+ position: absolute;
display: inline-block;
- width: 69px;
+ top: 50%;
+ height: 22px;
+ margin: -21px 0px 7px 0px;
border-radius: 9999px;
box-shadow: 0 0 0 1px #999;
overflow: hidden;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
}
-.toggle-on, .toggle-off, .toggle-blob
+.toggle:active
{
- height: 22px;
+ cursor: wait;
+}
+
+.toggle-on, .toggle-off
+{
+ min-width: 42px;
+ height: 100%;
font-size: 11px;
font-weight: 500;
text-align: center;
- line-height: 22px;
- float: left;
-}
-
-.toggle-inner, .toggle-on, .toggle-off, .toggle-blob
-{
- -moz-transition: all 0.2s;
- -webkit-transition: all 0.2s;
- transition: all 0.2s;
-}
-
-.toggle-inner
-{
- width: 185px;
- margin-left: 0px;
-}
-
-.toggle-blob
-{
- position: relative;
- width: 22px;
- margin-left: -11px;
- border-radius: 50px;
- box-shadow: 1px 1px 2px #888;
- background: #cfcfcf;
- background: -moz-linear-gradient(bottom, #cfcfcf 0%, #f5f5f5 100%);
- background: -webkit-linear-gradient(bottom, #cfcfcf 0%,#f5f5f5 100%);
- background: linear-gradient(to top, #cfcfcf 0%,#f5f5f5 100%);
- z-index: 99;
-}
-
-.toggle-blob:hover
-{
- background: #e4e4e4;
- background: -moz-linear-gradient(top, #e4e4e4 0%, #f9f9f9 100%);
- background: -webkit-linear-gradient(top, #e4e4e4 0%,#f9f9f9 100%);
- background: linear-gradient(to bottom, #e4e4e4 0%,#f9f9f9 100%);
+ line-height: 25px;
}
.toggle-on
{
- width: 59px;
- text-indent: -11px;
+ padding: 0px 30px 0px 10px;
color: rgba(255,255,255, 0.8);
text-shadow: 1px 1px rgba(0,0,0,0.2);
box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2);
@@ -505,9 +481,7 @@
.toggle-off
{
- width: 59px;
- margin-left: -11px;
- text-indent: 11px;
+ padding: 0px 10px 0px 30px;
color: rgba(0,0,0,0.6);
text-shadow: 1px 1px rgba(255,255,255,0.2);
background: #cfcfcf;
@@ -516,20 +490,30 @@
background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%);
}
-.off .toggle-inner
+.toggle-blob
{
- margin-left: -75px;
+ position: absolute;
+ top: 0px;
+ right: 0px;
+ height: 100%;
+ width: 22px;
+ border-radius: 50px;
+ box-shadow: 1px 1px 2px #888;
+ background: #cfcfcf;
+ background: -moz-linear-gradient(bottom, #cfcfcf 0%, #f5f5f5 100%);
+ background: -webkit-linear-gradient(bottom, #cfcfcf 0%,#f5f5f5 100%);
+ background: linear-gradient(to top, #cfcfcf 0%,#f5f5f5 100%);
+}
+
+.off .toggle-on
+{
+ margin-top: -22px;
}
.off .toggle-blob
{
- margin-left: -17.5px;
-}
-
-.off .toggle-on
-{
- width: 92.5px;
- text-indent: -17.5px;
+ left: 0px;
+ right: auto;
}
/* Adjust font size on smaller screens */
« no previous file with comments | « chrome/content/ui/firstRun.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld