summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/login/header_bar.css
blob: 30f6d5112fd5dc879bff0e0376d8cf1e1011b0b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#login-header-bar {
  -webkit-padding-after: 7px;
  border-bottom: 3px solid black;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
}

#login-header-bar {
  -webkit-padding-before: 7px;
  /* Using copy of Ash launcher background with 0.8 opacity applied to it.
     Otherwise if opacity: 0.8 is set here it will affect button text as well.
     Have to position background differently so that opacity is not applied
     to child elements. */
  background-image: url('chrome://theme/IDR_LAUNCHER_BACKGROUND');
}

html[screen=lock] .login-header-bar-hidden {
  opacity: 0;
}
html[screen=lock] .login-header-bar-animate-fast {
  -webkit-transition: opacity 200ms ease-out;
}

html[screen=lock] .login-header-bar-animate-slow {
  -webkit-transition: opacity 2s ease-out;
}

.header-bar-item:first-child {
  -webkit-padding-start: 15px;
}

#login-header-bar button,
#login-header-bar button:active,
#login-header-bar button:focus,
#login-header-bar button:hover {
  -webkit-box-shadow: none;
  background: transparent none;
  cursor: pointer;
  height: 34px;
  margin: 0;
  min-width: 0;
  opacity: 0.6;
  padding: 5px 8px;
  vertical-align: middle;
}

#login-header-bar button:not(.button-restricted),
#login-header-bar button:active:not(.button-restricted),
#login-header-bar button:focus:not(.button-restricted),
#login-header-bar button:hover:not(.button-restricted) {
  color: white !important;
  opacity: 1 !important;
}

.header-bar-item {
  display: inline-block;
  height: 34px;
}

html[dir=rtl] .header-bar-item {
  background-position: right center;
}

#login-header-bar #shutdown-button,
#login-header-bar #add-user-button,
#login-header-bar #guest-user-button,
#login-header-bar #cancel-multiple-sign-in-button {
  -webkit-padding-start: 24px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 24px;
}

html[dir=rtl] #login-header-bar #shutdown-button,
html[dir=rtl] #login-header-bar #add-user-button,
html[dir=rtl] #login-header-bar #guest-user-button,
html[dir=rtl] #login-header-bar #cancel-multiple-sign-in-button {
  background-position: right center;
}

#login-header-bar #shutdown-button {
  background-image: url('chrome://theme/IDR_ICON_POWER_WHITE');
}

#login-header-bar #add-user-button {
  background-image: url('chrome://theme/IDR_ICON_ADD_USER_WHITE');
}

#login-header-bar #guest-user-button {
  background-image: url('chrome://theme/IDR_ICON_GUEST_WHITE');
}

#login-header-bar #cancel-multiple-sign-in-button {
  /* TODO(dzhioev): replace with appropriate image when possible. */
  background-image: url('chrome://theme/IDR_PANEL_CLOSE');
}

.button-restricted {
  border: 1px solid transparent;
  color: white !important;
  opacity: 0.4 !important;
}