blob: 68ee364dca0b83090f0b5439e366ecf1a5c55c72 (
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
113
114
115
116
117
118
119
120
121
122
|
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/cr_elements/md_select_css.html">
<link rel="import" href="../settings_shared_css.html">
<!-- Common styles for CUPS printer settings. -->
<dom-module id="cups-printer-shared">
<template>
<style include="settings-shared md-select">
[slot='dialog-body'] .settings-box {
border-top: none;
margin-bottom: 10px;
}
[slot='dialog-body'] .settings-box.two-line {
align-items: flex-start;
}
[slot='dialog-body'] .settings-box cr-input {
width: 100%;
}
/* The only input that has error-message are at the end, so we don't
need to allocate space for error-message under each input
for consistency. */
[slot='dialog-body'] .settings-box cr-input:not([error-message]) {
--cr-input-error-display: none;
}
[slot='dialog-body'] .settings-box .md-select {
width: 100%;
}
[slot='dialog-body'] .settings-box .printer-name-input {
width: 100%;
}
[slot='dialog-body'] .settings-box .browse-file-input {
width: auto;
--cr-input-width: 383px;
}
[slot='dialog-body'] .settings-box .browse-button {
margin-bottom: 8px;
margin-inline-start: 12px;
}
[slot='dialog-body'] .last {
margin-top: 20px;
}
[slot='dialog-body'] .center {
display: flex;
justify-content: center;
position: absolute;
top: 50%;
width: 100%;
}
[slot='dialog-body'] .eula {
padding-inline-start: 20px;
}
[slot='dialog-buttons'] {
display: flex;
justify-content: space-between;
width: 100%;
}
.flex-auto {
flex: 1 1 auto;
}
.list-item {
background: none;
border: none;
box-sizing: border-box;
color: var(--paper-grey-800);
cursor: pointer;
font: inherit;
min-height: 32px;
padding: 0 24px;
text-align: start;
width: 100%;
}
.list-item:focus {
background-color: var(--paper-grey-300);
outline: none;
}
#search input[type='search'] {
font: inherit;
}
#ppdLabel {
padding-inline-start: 20px;
}
#general-error-container {
height: 20px;
margin-top: 10px;
}
#general-error-icon {
--iron-icon-fill-color: var(--google-red-600);
}
#general-error-message {
color: var(--google-red-600);
display: inline-block;
font-size: 10px;
margin-inline-start: 5px;
}
#no-search-results {
text-align: center;
}
</style>
</template>
</dom-module>
|