-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathprefs.css
More file actions
107 lines (100 loc) · 2.07 KB
/
Copy pathprefs.css
File metadata and controls
107 lines (100 loc) · 2.07 KB
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
* {
font-family: Rubik, sans-serif
}
#scratchpad {
width: 60%;
height: 200px;
}
#pref_table, #website_table {
width: 100%;
border-collapse: collapse;
}
#website_table input {
width: calc(100% - 10ch);
}
/* stripes */
tr:nth-of-type(odd) {
background: #eee;
}
th {
background: #333;
color: white;
font-weight: bold;
}
td, th {
padding: 5px;
border: 1px solid #ccc;
text-align: left;
}
#saved_text, #website_saved_text {
color: green;
font-family: sans-serif;
font-style: italic;
font-size: 0.9em;
}
.moveup, .delrow {
letter-spacing: 4px;
cursor: pointer;
}
/* borrowed from: https://css-tricks.com/responsive-data-tables/ */
@media all and (max-device-width: 719px) {
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
}
#pref_table, #website_table, .button_group, .info_message {
margin-left: 0;
}
#pref_table, #website_table {
width: auto;
}
.button_group, .info_message, #saved_text {
font-size: 2em;
}
.button_group > button {
width: 38%;
height: 30px;
font-weight: bold;
}
/* Hide table headers (but not display: none;, for accessibility) */
th {
position: absolute;
top: -9999px;
left: -9999px;
}
tr { border: 1px solid #ccc; }
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 40%;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
padding-right: 10px;
white-space: nowrap;
}
td:nth-of-type(1):before { content: "Phrase"; }
td:nth-of-type(2):before { content: "Rewrite to"; }
td:nth-of-type(3):before { content: "Ignore case"; }
td:nth-of-type(4):before { content: "Match word"; }
.moveup, .delrow {
letter-spacing: 25px;
font-size: 140%;
}
}
.experimental_group {
font-style: italic;
font-size: larger;
}
@media (prefers-color-scheme: dark) {
body, button, input, td, textarea {
background-color: #313131;
color: #bfbfbf;
}
}