Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 /* The order of z-index: | 5 /* The order of z-index: |
| 6 * - 2: drag-selection-bodrder | 6 * - 2: drag-selection-bodrder |
| 7 * - 3: preview-panel | 7 * - 3: preview-panel |
| 8 * - 500: scrollbar | 8 * - 500: scrollbar |
| 9 * - 500: splitter | 9 * - 500: splitter |
| 10 * - 525: spinner | 10 * - 525: spinner |
| (...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1932 left: 0; | 1932 left: 0; |
| 1933 pointer-events: none; | 1933 pointer-events: none; |
| 1934 position: absolute; | 1934 position: absolute; |
| 1935 right: 0; | 1935 right: 0; |
| 1936 top: 0; | 1936 top: 0; |
| 1937 z-index: 1; | 1937 z-index: 1; |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 #progress-center li { | 1940 #progress-center li { |
| 1941 display: block; | 1941 display: block; |
| 1942 min-height: 29px; /* label 17px + frame 12px */ | 1942 /* This must not be margin-bottom to calculate parent's height correctly. */ |
| 1943 padding-bottom: 20px; | 1943 padding-bottom: 20px; |
| 1944 position: relative; | |
| 1944 } | 1945 } |
| 1945 | 1946 |
| 1946 #progress-center label { | 1947 #progress-center label { |
| 1947 color: #777; | 1948 color: #777; |
| 1948 display: block; | 1949 display: block; |
| 1949 font: 12px/17px normal; | 1950 font: 12px/17px normal; |
| 1950 min-height: 17px; | 1951 min-height: 17px; |
| 1951 overflow: hidden; | 1952 overflow: hidden; |
| 1952 padding: 0 20px; | 1953 padding: 0 20px; |
| 1953 text-overflow: ellipsis; | 1954 text-overflow: ellipsis; |
| 1954 white-space: nowrap; | 1955 white-space: nowrap; |
| 1955 } | 1956 } |
| 1956 | 1957 |
| 1957 #progress-center li.error label { | 1958 #progress-center li.error label { |
| 1958 white-space: normal; | 1959 white-space: normal; |
| 1959 } | 1960 } |
| 1960 | 1961 |
| 1961 #progress-center .progress-frame { | 1962 #progress-center .progress-frame { |
| 1962 -webkit-padding-end: 10px; | 1963 -webkit-padding-end: 10px; |
| 1963 -webkit-padding-start: 20px; | 1964 -webkit-padding-start: 20px; |
| 1964 align-items: center; | 1965 align-items: center; |
| 1965 display: flex; | 1966 display: flex; |
| 1966 margin-top: 4px; | |
| 1967 } | |
| 1968 | |
| 1969 #progress-center li.error .progress-frame { | |
| 1970 height: 0; | |
| 1971 } | 1967 } |
| 1972 | 1968 |
| 1973 #progress-center .progress-bar { | 1969 #progress-center .progress-bar { |
| 1974 -webkit-margin-end: 24px; | 1970 -webkit-margin-end: 34px; |
| 1971 -webkit-margin-start: 20px; | |
| 1975 background: #d8d8d8; | 1972 background: #d8d8d8; |
| 1976 border-radius: 3px; | 1973 border-radius: 3px; |
| 1977 flex: 1 0 0; | 1974 flex: 1 0 0; |
| 1978 height: 6px; | 1975 height: 6px; |
| 1976 margin-top: 4px; | |
| 1979 opacity: 1; | 1977 opacity: 1; |
| 1980 overflow: hidden; | 1978 overflow: hidden; |
| 1981 } | 1979 } |
| 1982 | 1980 |
| 1983 #progress-center li.error .progress-bar, | 1981 #progress-center li.error .progress-bar, |
| 1984 #progress-center li.canceled .progress-bar, | |
| 1985 #progress-center li.quiet .progress-bar { | 1982 #progress-center li.quiet .progress-bar { |
| 1986 visibility: hidden; | 1983 display: none; |
| 1987 } | 1984 } |
| 1988 | 1985 |
| 1989 #progress-center .progress-track { | 1986 #progress-center .progress-track { |
| 1990 background: #787878; | 1987 background: #787878; |
| 1991 height: 100%; | 1988 height: 100%; |
| 1992 } | 1989 } |
| 1993 | 1990 |
| 1994 #progress-center .progress-track.animated { | 1991 #progress-center .progress-track.animated { |
| 1995 transition: width 300ms linear; | 1992 transition: width 300ms linear; |
| 1996 } | 1993 } |
| 1997 | 1994 |
| 1998 #progress-center button { | 1995 #progress-center button { |
| 1999 background: orange; | |
| 2000 border: none; | 1996 border: none; |
| 2001 cursor: pointer; | 1997 cursor: pointer; |
| 2002 flex: 0 0 auto; | |
| 2003 height: 12px; | 1998 height: 12px; |
| 2004 min-height: 0; | 1999 min-height: 0; |
| 2005 min-width: 0; | 2000 min-width: 0; |
| 2006 outline: none; | 2001 outline: none; |
| 2007 padding: 0; | 2002 padding: 0; |
| 2003 position: absolute; | |
| 2004 right: 10px; | |
| 2008 width: 12px; | 2005 width: 12px; |
| 2009 z-index: 0; | 2006 z-index: 0; |
| 2010 } | 2007 } |
| 2011 | 2008 |
| 2009 #progress-center button.cancel { | |
| 2010 top: 17px; | |
|
mtomasz
2014/01/15 06:38:01
Do we need so many magic numbers? Can't we use fle
hirono
2014/01/16 05:05:52
Yes, it will not work with different font size...
hirono
2014/01/16 08:46:24
Done.
| |
| 2011 } | |
| 2012 | |
| 2013 #progress-center li.error button.cancel, | |
| 2014 #progress-center li.quiet button.cancel { | |
| 2015 top: 3px; | |
| 2016 } | |
| 2017 | |
| 2012 #progress-center button.toggle { | 2018 #progress-center button.toggle { |
| 2013 background: -webkit-image-set( | 2019 background: -webkit-image-set( |
| 2014 url(../images/files/ui/process_drawer_button_opened.png) 1x, | 2020 url(../images/files/ui/process_drawer_button_opened.png) 1x, |
| 2015 url(../images/files/ui/2x/process_drawer_button_opened.png) 2x) | 2021 url(../images/files/ui/2x/process_drawer_button_opened.png) 2x) |
| 2016 no-repeat; | 2022 no-repeat; |
| 2017 position: absolute; | |
| 2018 right: 10px; | |
| 2019 top: 17px; /* label height */ | 2023 top: 17px; /* label height */ |
| 2020 transition: top 300ms ease-out; | |
| 2021 z-index: 1; | 2024 z-index: 1; |
| 2022 } | 2025 } |
| 2023 | 2026 |
| 2024 #progress-center button.toggle:hover { | 2027 #progress-center button.toggle:hover { |
| 2025 background: -webkit-image-set( | 2028 background: -webkit-image-set( |
| 2026 url(../images/files/ui/process_drawer_button_opened_hover.png) 1x, | 2029 url(../images/files/ui/process_drawer_button_opened_hover.png) 1x, |
| 2027 url(../images/files/ui/2x/process_drawer_button_opened_hover.png) 2x) | 2030 url(../images/files/ui/2x/process_drawer_button_opened_hover.png) 2x) |
| 2028 no-repeat; | 2031 no-repeat; |
| 2029 } | 2032 } |
| 2030 | 2033 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 2042 #progress-center:not(.opened) #progress-center-close-view.single ~ | 2045 #progress-center:not(.opened) #progress-center-close-view.single ~ |
| 2043 button.toggle, | 2046 button.toggle, |
| 2044 #progress-center button.cancel { | 2047 #progress-center button.cancel { |
| 2045 background: -webkit-image-set( | 2048 background: -webkit-image-set( |
| 2046 url(../images/files/ui/close_bar.png) 1x, | 2049 url(../images/files/ui/close_bar.png) 1x, |
| 2047 url(../images/files/ui/2x/close_bar.png) 2x) | 2050 url(../images/files/ui/2x/close_bar.png) 2x) |
| 2048 no-repeat; | 2051 no-repeat; |
| 2049 } | 2052 } |
| 2050 | 2053 |
| 2051 #progress-center:not(.opened) | 2054 #progress-center:not(.opened) |
| 2055 #progress-center-close-view.quiet ~ button.toggle, | |
| 2056 #progress-center:not(.opened) | |
| 2057 #progress-center-close-view.error ~ button.toggle { | |
| 2058 top: 3px; | |
| 2059 } | |
| 2060 | |
| 2061 #progress-center:not(.opened) | |
| 2052 #progress-center-close-view.single:not(.cancelable) ~ button.toggle, | 2062 #progress-center-close-view.single:not(.cancelable) ~ button.toggle, |
| 2053 #progress-center li:not(.cancelable) button.cancel { | 2063 #progress-center li:not(.cancelable) button.cancel { |
| 2054 visibility: hidden; | 2064 visibility: hidden; |
| 2055 } | 2065 } |
| 2056 | 2066 |
| 2057 #progress-center.opened button.toggle { | 2067 #progress-center.opened button.toggle { |
| 2058 background: -webkit-image-set( | 2068 background: -webkit-image-set( |
| 2059 url(../images/files/ui/process_drawer_button_closed.png) 1x, | 2069 url(../images/files/ui/process_drawer_button_closed.png) 1x, |
| 2060 url(../images/files/ui/2x/process_drawer_button_closed.png) 2x) | 2070 url(../images/files/ui/2x/process_drawer_button_closed.png) 2x) |
| 2061 no-repeat; | 2071 no-repeat; |
| 2062 top: 10px; | 2072 top: 10px; |
| 2063 } | 2073 } |
| 2064 | 2074 |
| 2065 #progress-center.opened button.toggle:hover { | 2075 #progress-center.opened button.toggle:hover { |
| 2066 background: -webkit-image-set( | 2076 background: -webkit-image-set( |
| 2067 url(../images/files/ui/process_drawer_button_closed_hover.png) 1x, | 2077 url(../images/files/ui/process_drawer_button_closed_hover.png) 1x, |
| 2068 url(../images/files/ui/2x/process_drawer_button_closed_hover.png) 2x) | 2078 url(../images/files/ui/2x/process_drawer_button_closed_hover.png) 2x) |
| 2069 no-repeat; | 2079 no-repeat; |
| 2070 } | 2080 } |
| 2071 | 2081 |
| 2072 #progress-center.opened button.toggle:active { | 2082 #progress-center.opened button.toggle:active { |
| 2073 background: -webkit-image-set( | 2083 background: -webkit-image-set( |
| 2074 url(../images/files/ui/process_drawer_button_closed_pressed.png) 1x, | 2084 url(../images/files/ui/process_drawer_button_closed_pressed.png) 1x, |
| 2075 url(../images/files/ui/2x/process_drawer_button_closed_pressed.png) 2x) | 2085 url(../images/files/ui/2x/process_drawer_button_closed_pressed.png) 2x) |
| 2076 no-repeat; | 2086 no-repeat; |
| 2077 } | 2087 } |
| OLD | NEW |