forked from refined-github/refined-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.css
More file actions
150 lines (125 loc) · 3.37 KB
/
Copy pathoptions.css
File metadata and controls
150 lines (125 loc) · 3.37 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
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
@media not screen and (width: 400px) { /* Excludes Edge */
:root {
min-width: 550px;
}
}
:root {
--github-red: #cb2431;
}
p {
margin-top: 0;
}
ul {
padding-left: 0;
list-style: none;
}
li[data-validation] {
margin-bottom: 0.3em;
}
[data-validation]::before {
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" fill="gray" d="M8 5.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zM4 8a4 4 0 118 0 4 4 0 01-8 0z"></path></svg>');
width: 16px;
height: 16px;
vertical-align: -4px;
margin-right: 0.3em;
display: inline-block;
}
[data-validation='valid']::before {
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" fill="%2328a745" d="M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z"></path></svg>');
}
[data-validation='invalid']::before {
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" fill="%23cb2431" d="M1.5 8a6.5 6.5 0 0110.535-5.096l-9.131 9.131A6.472 6.472 0 011.5 8zm2.465 5.096a6.5 6.5 0 009.131-9.131l-9.131 9.131zM8 0a8 8 0 100 16A8 8 0 008 0z"></path></svg>');
}
:root [name='customCSS'],
:root [name='personalToken'] {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 11px;
line-height: 1.5;
}
[name='personalToken'] {
width: 20em !important; /* https://github.com/sindresorhus/refined-github/issues/1374#issuecomment-397906701 */
display: inline-block !important;
}
[name='personalToken']:invalid {
border-color: var(--github-red) !important;
}
.feature:not([hidden]) {
display: flex;
}
.js-hotfixes:not(:empty) {
margin-bottom: 15px;
padding: 10px 15px;
border: 1px solid var(--github-red);
border-radius: 0.2em;
}
.js-hotfixes p {
margin-bottom: 0;
}
.js-features input[type='checkbox'] {
flex-shrink: 0;
}
.js-features input[type='checkbox']:not(*:root) {
/* Selector for Chrome only http://browserhacks.com/#ch */
margin-inline-end: 0.6em;
margin-top: 2px;
}
.js-features :not(:checked) + .info .feature-name {
text-decoration: line-through;
}
.js-features .description {
opacity: 80%;
}
.js-features a {
font-size: 0.9em;
}
.js-features a:first-of-type {
margin-left: 0.6em;
}
.js-features .info {
flex-grow: 1;
}
.js-features kbd {
display: inline-block;
padding: 3px 5px;
font-size: 0.8em;
line-height: 10px;
color: #444d56;
vertical-align: middle;
background-color: #fafbfc;
border: 1px solid #d1d5da;
border-radius: 6px;
box-shadow: inset 0 -1px 0 #d1d5da;
}
.feature-new .feature-name::after {
display: inline-block; /* Avoids the strikethrough on disabled features */
content: 'New';
font-size: 1em;
border: 1px solid;
border-radius: 0.2em;
padding: 0 0.3em;
margin-left: 0.8em;
text-transform: uppercase;
color: var(--github-red);
}
.sr-only {
display: none;
}
#debugging {
--background:
repeating-linear-gradient(
45deg,
var(--github-red),
var(--github-red) 7px,
transparent 7px,
transparent 14px
) no-repeat;
position: relative;
padding: 1em 0;
margin-bottom: 1em;
background:
var(--background) top / 100% 3px,
var(--background) bottom / 100% 3px;
}
#debugging p:last-child {
margin-bottom: 0;
}