Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1036)

Side by Side Diff: lib/views/stylesheet.less

Issue 14700043: Add support for an initial onboarding walkthrough
Patch Set: Created 11 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« app/views/onboarding.js ('K') | « app/views/onboarding.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 2
3 General CSS Notes 3 General CSS Notes
4 ================= 4 =================
5 5
6 z-indexes 6 z-indexes
7 ---------- 7 ----------
8 The rule of thumb for the z-index values to use is setup below 8 The rule of thumb for the z-index values to use is setup below
9 9
10 - Ground level: < 100 is for things that are flat on the surface without 10 - Ground level: < 100 is for things that are flat on the surface without
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 font-size: 26px; 515 font-size: 26px;
516 } 516 }
517 p { 517 p {
518 line-height: normal; 518 line-height: normal;
519 font-size: 18px; 519 font-size: 18px;
520 width: 301px; 520 width: 301px;
521 margin-left: auto; 521 margin-left: auto;
522 margin-right: auto; 522 margin-right: auto;
523 margin-top: 2ex; 523 margin-top: 2ex;
524 } 524 }
525
526 &.displayNone {
rharding 2013/10/15 14:55:34 there's already a .hidden class. Could that be use
527 display: none;
528 }
525 } 529 }
526 .environment-menu { 530 .environment-menu {
527 @border_radius: 20px; 531 @border_radius: 20px;
528 @background_color: @environment-menu-background-color; 532 @background_color: @environment-menu-background-color;
529 .create-border-radius(@border-radius); 533 .create-border-radius(@border-radius);
530 .create-box-shadow(0 0 2px rgba(0, 0, 0, 0.3)); 534 .create-box-shadow(0 0 2px rgba(0, 0, 0, 0.3));
531 display: none; 535 display: none;
532 background-color: @background_color; 536 background-color: @background_color;
533 color: @text-colour; 537 color: @text-colour;
534 top: 0; 538 top: 0;
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 h4 { 1934 h4 {
1931 font-family: @font-family-medium; 1935 font-family: @font-family-medium;
1932 font-size: 10pt; 1936 font-size: 10pt;
1933 line-height: 10pt; 1937 line-height: 10pt;
1934 } 1938 }
1935 } 1939 }
1936 p { 1940 p {
1937 font-size: 8pt; 1941 font-size: 8pt;
1938 } 1942 }
1939 } 1943 }
1944 #onboarding-background {
1945 display: block;
1946 position: absolute;
1947 top: 0;
1948 left: 0;
1949 width: 100%;
1950 height: 100%;
1951 z-index: 9999;
1952
1953 #onboarding-screen-mask {
1954 display: block;
1955 position: absolute;
1956 top: 80px;
1957 left: 0;
1958 width: 100%;
1959 height: 100%;
1960 z-index: 10000;
1961 }
1962
1963 #onboarding-message {
1964 .create-border-radius(@border-radius);
1965 display: block;
1966 z-index: 10001;
1967 position: relative;
1968 top: 100px;
1969 left: 350px;
1970 width: 320px;
1971 background-color: @inspector-background-color;
1972 padding: 20px;
1973
1974 .onboarding-cross {
1975 float: right;
1976 }
1977
1978 .header {
1979 margin-bottom: 20px;
1980 }
1981
1982 .header,
1983 .text {
1984 color: @charm-panel-configure-title-color;
1985 }
1986
1987 img {
1988 position: absolute;
1989 }
1990
1991 .panel {
1992 display: none;
1993 height: 169px;
1994 }
1995
1996 ul {
1997 z-index: 2;
rharding 2013/10/15 14:55:34 z-index 2? It's sitting inside an element of z-ind
1998 position: relative;
1999 list-style: none;
2000 margin-left: 0;
2001
2002 li {
2003 display: inline;
2004 }
2005
2006 a {
2007 @box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.3);
2008 .create-box-shadow(@box-shadow);
2009 .create-border-radius(@bws-corner);
2010 background-color: @inspector-dark;
2011 display: inline-block;
2012 height: 40px;
2013 margin-top: 17px;
2014 padding: 0 30px;
2015 color: #fff;
2016 line-height: 40px;
2017
2018 &.onboarding-next,
2019 &.onboarding-start {
2020 float: right;
2021 }
2022
2023 &.highlight {
2024 background-color: @charm-panel-orange;
2025 }
2026 }
2027 }
2028 }
2029
2030 &.state-0 {
2031 #onboarding-message {
2032 .panel-0 {
2033 display: block;
2034 }
2035 ul a.onboarding-next,
2036 ul a.onboarding-prev {
2037 display: none;
2038 }
2039 }
2040
2041 }
2042
2043 &.state-1 {
rharding 2013/10/15 14:55:34 this seems like it could be done using a .active f
Ant 2013/10/15 16:13:05 The reason I did it this way is because the differ
2044 #onboarding-screen-mask {
2045 left: 290px;
2046 background-color: rgba(0, 0, 0, 0.75);
2047 }
2048 #onboarding-message {
2049 .panel-1 {
2050 display: block;
2051 }
2052 ul a.onboarding-next {
2053 display: inline-block;
2054 }
2055 ul a.onboarding-start {
2056 display: none;
2057 }
2058 }
2059 }
2060
2061 &.state-2 {
2062 #onboarding-screen-mask {
2063 left: 0;
2064 background-color: rgba(0, 0, 0, 0.75);
2065 }
2066 #onboarding-message {
2067 .panel-2 {
2068 display: block;
2069 }
2070 ul a.onboarding-next {
2071 display: inline-block;
2072 }
2073 ul a.onboarding-start {
2074 display: none;
2075 }
2076 .service-blocks {
2077 top: 210px;
2078 left: 125px;
2079 }
2080 }
2081 }
2082
2083 &.state-3 {
2084 #onboarding-screen-mask {
2085 left: 0;
2086 background-color: rgba(0, 0, 0, 0.75);
2087 }
2088 #onboarding-message {
2089 .panel-3 {
2090 display: block;
2091 }
2092 ul a.onboarding-close {
2093 background-color: @charm-panel-orange;
2094 float: right;
2095 }
2096 ul a.onboarding-next {
2097 display: none;
2098 }
2099 ul a.onboarding-start {
2100 display: none;
2101 }
2102 .service-block {
2103 top: 320px;
2104 left: 90px;
2105 }
2106 .inspector {
2107 right: -370px;
2108 top: 0;
2109 }
2110 }
2111 }
2112
2113 }
1940 .alert { 2114 .alert {
1941 letter-spacing: normal; 2115 letter-spacing: normal;
1942 } 2116 }
1943 .yui3-slider-thumb { 2117 .yui3-slider-thumb {
1944 &:focus { 2118 &:focus {
1945 outline: none; 2119 outline: none;
1946 } 2120 }
1947 } 2121 }
1948 2122
1949 /* Old charm view */ 2123 /* Old charm view */
(...skipping 22 matching lines...) Expand all
1972 @import "content-panel.less"; 2146 @import "content-panel.less";
1973 @import "juju-inspector.less"; 2147 @import "juju-inspector.less";
1974 2148
1975 /** Views **/ 2149 /** Views **/
1976 @import "browser/editorial.less"; 2150 @import "browser/editorial.less";
1977 @import "browser/minimized.less"; 2151 @import "browser/minimized.less";
1978 @import "browser/search.less"; 2152 @import "browser/search.less";
1979 2153
1980 /** Cookies **/ 2154 /** Cookies **/
1981 @import "cookies.less"; 2155 @import "cookies.less";
OLDNEW
« app/views/onboarding.js ('K') | « app/views/onboarding.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b