Skip to content

Commit 98e44d7

Browse files
author
shu8
committed
v1.0.3 merge
2 parents b7f3a2d + 8c4a476 commit 98e44d7

10 files changed

+1443
-693
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sox.dialog.new.html
2+
sox.new.css

sox-dialog.html

-14
This file was deleted.

sox.css

+98-70
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,51 @@
11
/* -------- sox settings dialog ------- */
2+
23
#sox-settings-dialog {
3-
position: fixed;
4-
display: none;
5-
height: 100%;
4+
top: 34px;
5+
left: 230px;
6+
min-height: calc(100vh - 100px);
67
width: 550px;
7-
top: 0;
8-
left: 0;
9-
z-index: 9999;
10-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
11-
background-color: #fff;
12-
border-right: solid 1px #aaa;
8+
display: none;
139
}
14-
#sox-settings-dialog-title {
15-
padding: 10px;
16-
height: 30px;
10+
#sox-settings-dialog .modal-content {
11+
/* max-height: calc(100vh - 175px); */
12+
max-height: none;
13+
min-height: inherit;
1714
}
18-
#sox-settings-dialog-title a {
15+
#sox-settings-dialog .header h3 {
16+
width: 100%;
17+
}
18+
#sox-settings-dialog-version {
1919
float: right;
20-
margin-right: 5px;
21-
cursor: pointer;
20+
font-size: 14px;
2221
}
23-
#sox-settings-dialog-title h3 {
24-
display: inline;
22+
#sox-settings-dialog #search-container {
23+
min-height: 0;
24+
}
25+
#sox-settings-dialog #search-container .fa-search {
26+
position: relative;
27+
left: -350px;
28+
}
29+
#sox-settings-dialog #search-container #search {
30+
width: 350px;
31+
border-radius: 6px;
32+
text-indent: 20px;
2533
}
2634
#sox-settings-dialog-features {
27-
height: calc(100vh - 110px);
28-
overflow-y: auto;
29-
padding: 0 10px 10px 10px;
35+
/* padding: 0 10px 10px 10px; */
36+
overflow-y: scroll;
37+
height: calc(100vh - 250px);
3038
}
31-
#sox-settings-dialog-features h3 {
32-
margin-top: 10px;
33-
padding-bottom: 2px;
34-
border-bottom: 1px solid black;
39+
#sox-settings-dialog-features .modal-content div {
40+
margin-bottom: 3px;
3541
}
36-
#sox-settings-dialog-close {
37-
float: right;
42+
43+
#sox-settings-dialog-features .modal-content label > input {
44+
margin-right: 5px;
3845
}
39-
#sox-settings-dialog-close a {
40-
padding: 3px 6px 2px 6px;
41-
font-size: 16px;
42-
font-weight: normal;
43-
color: #fff !important;
44-
background-color: #222;
45-
font-family: Arial, Helvetica, sans-serif;
46-
line-height: 1;
46+
47+
#sox-settings-dialog-access-tokens-links {
48+
display: none;
4749
}
4850
#sox-settings-dialog-actions {
4951
height: 40px;
@@ -64,7 +66,7 @@
6466
color: #999;
6567
height: 24px !important;
6668
min-width: 34px;
67-
}
69+
}
6870
.sox-settings-button:hover {
6971
color: #999;
7072
}
@@ -73,6 +75,7 @@
7375
}
7476

7577
/* -------- sox specific features' CSS ------- */
78+
7679
#sox-scrollToTop {
7780
position: fixed;
7881
right: 0;
@@ -85,6 +88,7 @@
8588
}
8689

8790
/*Main centered divs, SE-style:*/
91+
8892
.sox-centered {
8993
width: 400px;
9094
z-index: 1001;
@@ -98,6 +102,7 @@
98102
}
99103

100104
/*Specifically for quickCommentShortcuts -- the div's too wide! https://github.com/shu8/Stack-Overflow-Optional-Features/issues/36*/
105+
101106
#quickCommentShortcuts.sox-centered {
102107
width: 75%;
103108
height: 90%;
@@ -109,10 +114,8 @@
109114
}
110115

111116
/*standOutDupeCloseMigrated signs */
112-
.standOutDupeCloseMigrated-duplicate,
113-
.standOutDupeCloseMigrated-closed,
114-
.standOutDupeCloseMigrated-migrated,
115-
.standOutDupeCloseMigrated-onhold {
117+
118+
.standOutDupeCloseMigrated-duplicate, .standOutDupeCloseMigrated-closed, .standOutDupeCloseMigrated-migrated, .standOutDupeCloseMigrated-onhold {
116119
color: #FFF;
117120
padding: 2px;
118121
border-radius: 4px;
@@ -132,29 +135,28 @@
132135
}
133136

134137
/*metaNewQuestionAlert for the mod diamond */
138+
135139
#new-meta-questions-button {
136140
cursor: pointer;
137141
width: 32px;
138142
}
139-
140143
.new-meta-questions-diamondOn {
141-
background-position: -218px -86px;
144+
background-position: -218px -86px;
142145
}
143146
.new-meta-questions-diamondOff {
144-
background-position: -138px -86px;
147+
background-position: -138px -86px;
145148
}
146-
147149
#new-meta-questions-dialog {
148150
top: 34px;
149-
left: 230px;
151+
left: 264px;
150152
width: 377px;
151153
}
152-
#new-meta-questions-dialog-list:empty::after{
154+
#new-meta-questions-dialog-list:empty::after {
153155
content: "No new meta questions at this time.";
154156
}
155157

156-
157158
/*addHotText for the 'this question is hot' banner */
159+
158160
.sox-hot {
159161
float: right;
160162
-ms-transform: rotate(30deg);
@@ -163,7 +165,9 @@ background-position: -138px -86px;
163165
font-size: xx-large;
164166
color: red;
165167
}
168+
166169
/*quickCommentShortcutsMain: */
170+
167171
.quickCommentShortcutsReminder {
168172
height: 40%;
169173
width: 13%;
@@ -177,7 +181,10 @@ background-position: -138px -86px;
177181
}
178182

179183
/*fixedTopbar */
184+
185+
180186
/*Ubuntu CSS by @UnicornsAreVeryVeryYummy - http://stackapps.com/users/33746/unicorns-are-very-very-yummy */
187+
181188
.fixedTopbar-links {
182189
z-index: 10001;
183190
line-height: 19.2px;
@@ -211,6 +218,7 @@ li.fixedTopbar-siteLink {
211218
}
212219

213220
/*Side by Side Editing (SBS, addSBSBtn, startSBS): https://github.com/szego/SE-Answers_scripts/blob/side-by-side/editing-and-toggling/side-by-side-editing.user.js:*/
221+
214222
#sidebar.sbs-on {
215223
display: none !important;
216224
}
@@ -270,23 +278,25 @@ li.fixedTopbar-siteLink {
270278
}
271279

272280
/*linkedPostsInline for the displayed post text; https://github.com/shu8/Stack-Overflow-Optional-Features/issues/48 */
281+
273282
.linkedPostsInline-loaded-body-shub .post-text {
274283
overflow-wrap: break-word;
275284
width: 630px;
276285
padding: 10px;
277286
}
278287

279288
/*enhancedEditor (enhanced_editor folder)*/
289+
280290
.enhancedEditor-centered {
281-
width:40%;
282-
z-index:1001;
283-
top:190px;
284-
left:615.5px;
285-
display:inline-block;
286-
margin-top:-95.5px;
287-
margin-left:-216px;
288-
overflow:auto;
289-
height:70%;
291+
width: 40%;
292+
z-index: 1001;
293+
top: 190px;
294+
left: 615.5px;
295+
display: inline-block;
296+
margin-top: -95.5px;
297+
margin-left: -216px;
298+
overflow: auto;
299+
height: 70%;
290300
}
291301
.ownURL, .ownImage {
292302
border-radius: 5px;
@@ -308,7 +318,7 @@ hr.or {
308318
text-align: center;
309319
}
310320
hr.or:after {
311-
content:"or...";
321+
content: "or...";
312322
display: inline-block;
313323
position: relative;
314324
top: -0.7em;
@@ -324,56 +334,74 @@ hr.or:after {
324334
.DDG-credit {
325335
font-size: 0.8em;
326336
}
327-
328337
#enhancedEditor-aceEditor>#editor {
329338
position: absolute;
330339
top: 10%;
331340
right: 0;
332341
bottom: 0;
333342
left: 0;
334343
}
335-
336344
.enhancedEditor-aceLanguages {
337345
float: right;
338346
}
339-
340347
.enhancedEditor-addCode {
341-
float:right;
348+
float: right;
342349
margin-right: 5px;
343350
}
344-
345-
346351
.enhancedEditor-toolbar {
347352
border-left: 1px solid #ccc;
348353
border-right: 1px solid #ccc;
349354
padding-right: 147px;
350355
}
351-
352356
.enhancedEditor-toolbar > span {
353357
cursor: pointer;
354358
}
355-
356359
.enhancedEditor-toolbar >span+span {
357-
margin-left:2px;
360+
margin-left: 2px;
358361
}
359-
360362
.enhancedEditor-closeDialog {
361363
float: left;
362364
margin-right: 10px;
363365
font-size: 1.2em;
364366
cursor: pointer;
365367
}
366-
367368
.enhancedEditor-toolbar.findReplace > input[type='text'] {
368369
height: 10px;
369370
width: 25%;
370371
}
371-
372372
.enhancedEditor-toolbar.findReplace > input[type='button'] {
373373
width: 10%;
374374
height: 100%;
375375
}
376-
377376
.enhancedEditor-asLinkContainer {
378377
display: block;
379-
}
378+
}
379+
380+
/*downvotedPostsEditAlert - for the watch icon*/
381+
382+
.downvotedPostsEditAlert-watchPostForEdits {
383+
font-size: 20px;
384+
margin-top: 5px;
385+
}
386+
387+
/*chatEasyAccess - for the links (b elements)*/
388+
389+
.chatEasyAccess b {
390+
cursor: pointer;
391+
}
392+
.post-tag.favorite-tag-so {
393+
border-color: rgba(0, 0, 0, .3);
394+
background-color: #ffefc6;
395+
}
396+
.post-tag.favorite-tag-su {
397+
border-color: rgba(0, 0, 0, .3);
398+
background-color: #a1eaff;
399+
}
400+
.post-tag.favorite-tag-all {
401+
border-color: rgba(0, 0, 0, .3);
402+
background-color: #c3dafa;
403+
}
404+
.post-tag.favorite-tag-all:before, .post-tag.favorite-tag-su:before, .post-tag.favorite-tag-so:before {
405+
border-color: inherit;
406+
background-color: inherit;
407+
}

sox.dialog.html

+23-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
1-
<div id="sox-settings-dialog">
2-
<div id="sox-settings-dialog-title">
3-
<h3>Stack Overflow Extras - Settings</h3>
4-
<div id="sox-settings-dialog-close"><a title="Close Settings Dialog">×</a></div>
1+
<div class="topbar-dialog achievements-dialog dno" id="sox-settings-dialog">
2+
<div class="header">
3+
<h3>sox settings<span id="sox-settings-dialog-version"> v1.0.3dev</span></h3>
4+
</div>
5+
<div class="header">
6+
<h3>search</h3>
7+
</div>
8+
<div class="modal-content" id="search-container">
9+
<input type="text" id="search" placeholder="looking for a specific feature?">
10+
<i class="fa fa-search"></i>
11+
<a id="search-reset">reset</a>
512
</div>
613
<div id="sox-settings-dialog-features">
14+
<div id="sox-settings-dialog-access-tokens">
15+
<div class="header">
16+
<h3>access tokens</h3>
17+
</div>
18+
<div class="modal-content">
19+
<p>Access Tokens are required for some features in order to receive a higher allowance for requests to the API.</p>
20+
<p>Below are features that require access tokens. Click the links to get the token.</p>
21+
<a class="expander-arrow-small-hide" id="toggle-access-token-links"></a>
22+
<div id="sox-settings-dialog-access-tokens-links"></div>
23+
</div>
24+
</div>
725
</div>
826
<div id="sox-settings-dialog-actions">
927
<input id="sox-settings-dialog-save" type="submit" value="Save Changes">
1028
<a id="sox-settings-dialog-reset">Reset</a>
1129
<a id="sox-settings-dialog-report" target="_blank" href="https://github.com/soscripted/sox/issues/new">Report Issue</a>
1230
<a id="sox-settings-dialog-check-toggle"><i class="fa fa-check-square-o"></i></a>
13-
</div>
31+
</div>
1432
</div>

0 commit comments

Comments
 (0)