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 June 7, 2013, 12:19 p.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
« chrome/content/ui/firstRun.js ('K') | « chrome/locale/en-US/firstRun.properties ('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
@@ -438,6 +438,112 @@
transition-duration: 0.15s;
}
+.toggle
+{
+ cursor: pointer;
+ display: inline-block;
+ width: 69px;
+ border-radius: 9999px;
+ box-shadow: 0 0 0 1px #999;
+ overflow: hidden;
+}
+
+.toggle-on, .toggle-off, .toggle-blob
+{
+ height: 22px;
+ 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;
+}
+
+.toggle-blob
+{
+ position: relative;
+ 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%);
+ 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%);
+}
+
+.toggle-on
+{
+ 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);
+ background: rgb(69,163,31);
+}
+
+.toggle-off
+{
+ width: 59px;
+ margin-left: -11px;
+ text-indent: 11px;
+ color: rgba(0,0,0,0.6);
+ text-shadow: 1px 1px rgba(255,255,255,0.2);
+ background: #cfcfcf;
+ background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%);
+ background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%);
+ background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%);
+}
+
+.disable .toggle-inner
+{
+ margin-left: 0px;
+}
+
+.disable .toggle-blob
+{
+ margin-left: -11px;
+}
+
+.disable .toggle-on
+{
+ width: 59px;
+ text-indent: -11px;
+}
+
+.enable .toggle-inner
+{
+ margin-left: -75px;
+}
+
+.enable .toggle-blob
+{
+ margin-left: -17.5px;
+}
+
+.enable .toggle-on
+{
+ width: 92.5px;
+ text-indent: -17.5px;
+}
+
/* Adjust font size on smaller screens */
@media (max-height: 800px)
{
« chrome/content/ui/firstRun.js ('K') | « chrome/locale/en-US/firstRun.properties ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld