summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/md_downloads/toolbar.css
blob: ba94b688b021e42ca6e4e93d24c0fb1e85d1c3fa (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
110
111
112
/* Copyright 2015 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. */

:host {
  align-items: center;
  background: rgb(63, 85, 102);
  color: white;
  content-sizing: padding-box;
  display: flex;
  min-height: 56px;
}

#title h1 {
  -webkit-margin-end: 0;
  -webkit-margin-start: 24px;
  font-size: 107.7%;
  font-weight: normal;
  margin-bottom: 0;
  margin-top: 0;
}

#actions {
  display: flex;
  flex: none;
  width: var(--downloads-item-width);
}

:host-context(.loading) #actions {
  visibility: hidden;
}

:host(:not([downloads-showing])) #actions {
  justify-content: center;
}

#actions paper-button:first-of-type {
  -webkit-margin-start: -0.57em;  /* Matches paper-button padding. */
}

#actions paper-button:not(:last-of-type) {
  -webkit-margin-end: 8px;  /* Margin between items. */
}

#actions paper-button:last-of-type {
  -webkit-margin-end: -0.57em;  /* Matches paper-button padding. */
}

/* TODO(dbeam): use --paper-button-flat-keyboard-focus when possible.
 * https://github.com/PolymerElements/paper-button/pull/54 */
#actions paper-button /deep/ .keyboard-focus {
  color: white;
}

#actions {
  color: rgb(192, 199, 205);
}

#search {
  -webkit-padding-end: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
}

#title,
#search {
  /* (1024 total width - 622 item width) / 2 = 201 room to play. */
  flex: 1 0 201px;
}

paper-icon-button {
  --iron-icon-height: 20px;
  --iron-icon-width: 20px;
  --paper-icon-button: {
    height: 32px;
    padding: 6px;
    width: 32px;
  };
}

#more {
  --paper-menu-button: {
    padding: 0;
  };
  -webkit-margin-start: 16px;
}

paper-item {
  -webkit-user-select: none;
  cursor: pointer;
  font: inherit;
  min-height: 40px;
}

paper-item:hover {
  background: #eaeaea;  /* TODO(dbeam): real color? */
}

@media not all and (max-width: 1024px) {
  /* Hide vertical dot menu when there's enough room for #actions. */
  paper-menu-button {
    display: none;
  }
}

@media all and (max-width: 1024px) {
  /* Hide #actions for narrow windows; they're shown in a vertical dot menu. */
  #actions {
    display: none;
  }
}