aboutsummaryrefslogtreecommitdiff
path: root/chrome/css/redirector.css
blob: 2a29e98b18603bcb77b350a4731652883de7605b (plain) (blame)
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/* Redirector CSS */

/* entire page */
body { 
  font-family: Segoe UI, Tahoma, sans-serif; 
  font-size: 90%; 
  background: linear-gradient(to bottom, #afcffe, #fff);
  background-attachment: fixed; 
}

/* main header */
h1 { 
  margin-top: 25px; 
  margin-bottom: 0px; 
  text-align: center; 
  font-size: 280%; 
  line-height: 90%; 
  font-style: italic; 
  color: #222; 
}

/* sub-header */
h5 { 
  margin: 0px; 
  padding-left: 14em; 
  text-align: center; 
}

/* action buttons below header */
#actions { 
  margin-top: 12px; 
  margin-bottom: 10px; 
  text-align: center; 
}

/* table (list) of redirect rules */
#redirect-list { 
  width: 80em; 
  box-shadow: 0px 0px 2px black;
  border: solid 1px gray; 
  margin: auto; 
  padding: 0px;
  list-style-type: none; 
  list-style-position: outside;
  -moz-user-select: -moz-none;
}

/* individual cells within table of rules */
#redirect-list > li { 
  margin: 0px; 
  border-top: dotted 1px gray; 
  padding: 8px 2px 12px 10px; 
  font-size: 80%; 
}

#redirect-list > li:first-child { 
  border-top: none; 
}

#redirect-list > li:nth-child(odd) { 
  background-color: #f0f0f0; 
}

#redirect-list > li:nth-child(even) { 
  background-color: white; 
}

/* rule within each cell */
.disabled { 
  font-weight: bold;
  color: red; 
}

.description { 
  font-weight: bold; 
}

.patternLabel { 
  display: inline-block; 
  width: 4em; 
  margin-left: 5px; 
  margin-right: 4px; 
  text-align: right; 
}

.pattern, .redirectTo { 
  color: blue; 
}

.editdeleteRow { 
  margin-top: 8px; 
}

/* turn Edit and Delete functions into buttons, remove underlines and text shadows, apply useful colors */
.edit, .delete { 
  -moz-appearance: button; 
  padding-left: 4px !important; 
  padding-right: 4px !important;
  text-decoration: none !important; 
}

.edit { 
  color: green !important; 
}

.delete { 
  margin-left: 6px; 
  color: rgb(180,80,25) !important; 
}

/* all dialog boxes */
.dialog {
  display: none; 
  position: fixed; 
  box-shadow: 0px 0px 4px black;
  background: linear-gradient(to bottom, #fff, #afcffe);
  border-radius: 8px;
  margin: 0px auto; 
  padding: 10px;
}

label, input { 
  display: table-cell; 
}

.button-row { 
  display: block !important; 
  text-align: center;
}

button { 
  cursor: pointer; 
}

/* New (and Edit) Redirect dialog box */
#redirect-form > div { 
  display: table-row; 
  margin-top: 3px;
}

#redirect-form > div > label { 
  text-align: right;
  padding: 6px; 
}

#redirect-form > div > input[type='text'] { 
  display: inline-block; 
  width: 46em; 
  margin-top: 7px; 
}

/* Configuration dialog box */
#config { 
  padding-right: 18px; 
}

h2 { 
  text-align: center; 
  margin-top: 0px; 
  margin-bottom: 9px; 
}

#config > .button-row { 
  margin-top: 18px; 
}

#config > label { 
  display: inline; 
}

#config > input { 
  margin-top: 10px; 
}